/* --- 1. IMPORTACIÓN GLOBAL DE FUENTES --- */
/* Importamos todas las fuentes que usa la app al principio */
@import url('https://fonts.google.com/share?selection.family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900');
@import url('https://fonts.google.com/share?selection.family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900');

/* --- 1.5. VARIABLE GLOBAL DE COLOR --- */
/* Aquí puedes cambiar el color #A8D5BA en un solo lugar.
  Todas las demás variables "--primary-green-light" toman su valor de aquí.
*/
:root {
  --global-light-green: #5ED067;
}


/* --- 2. ESTILOS GLOBALES Y RESETEO --- */
/* Estilos que se aplican a TODAS las páginas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #E0E0E0; /* Fondo gris exterior por defecto */
    display: flex;
    flex-direction: column; /* <-- ESTA ES LA CORRECCIÓN CLAVE */
    align-items: center; /* Centra el contenido */
    font-size: 16px;

}

/* Estilo global para links (de links.css) */
a {
    text-decoration: none !important;
    color: inherit;
}
a:focus {
    outline: 2px solid rgba(58,125,68,0.35);
    outline-offset: 2px;
}

/* --- 3. ESTILOS DE PÁGINAS ESPECÍFICAS --- */
/* Cada bloque de estilos está "envuelto" en un ID único. */
/* Debes añadir este ID al <body> de cada página HTML. */

/* === PÁGINA: home.html === */
#page-home {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    background-color: var(--primary-green-light);
}
#page-home #hero {
    width: 100%;
    max-width: 414px;
    height: 850px; 
    background: var(--primary-green-light);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#page-home .splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}
#page-home .logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); 
}
#page-home .tagline {
    font-size: 1.1rem;
    font-weight: 500;
    color: #FFFFFF;
    max-width: 250px;
    line-height: 1.4;
}

/* === PÁGINA: welcome.html === */
#page-welcome {
    --primary-green-light: var(--global-light-green);
    --primary-green-dark: #3A7D44;
    --primary-coral: #FF6B6B;  /* Color coral para el botón */
    --text-dark: #333333;      /* Texto oscuro para "Registrarse" */
    --text-light: #757575;      /* Texto gris para "Saltar" */
    --bg-white: #FFFFFF;
    
    /* El fondo exterior de la app */
    background-color: var(--primary-green-light); 
}

#page-welcome .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px; 
    background: var(--bg-white); /* El fondo del contenedor es BLANCO */
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden; /* Importante para la curva */
    display: flex;
    flex-direction: column; /* Alinea el contenido verticalmente */
}

#page-welcome .splash-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupa toda la altura */
}

/* --- SECCIÓN VERDE SUPERIOR --- */
#page-welcome .splash-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Ocupa el espacio disponible, empujando los botones hacia abajo */
    
    background: var(--primary-green-light);
    padding: 60px 30px 40px 30px;
    
    /* ¡LA CLAVE! Esto crea la curva */ 
    
    border-bottom-right-radius: 300px;
    
    /* Sombra sutil para la curva */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#page-welcome .logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#page-welcome .logo {
    /* Filtro para hacer el SVG (que es verde) de color blanco */
    filter: brightness(0) invert(1); 
    width: 220px;
    height: auto;
}

#page-welcome .logo-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-top: 25px; /* Espacio entre logo y "¡Bienvenido!" */
    line-height: 1.3;
}

/* --- SECCIÓN BLANCA INFERIOR (BOTONES) --- */
#page-welcome .splash-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Espacio entre los botones */
    padding: 50px 30px; /* Espacio alrededor de los botones */
    
    /* Se asegura de que esta parte tenga fondo blanco */
    background: var(--bg-white); 
}

/* Estilo base para los botones en esta página */
#page-welcome .btn {
    display: block;
    width: 100%;
    max-width: 300px; /* Ancho máximo para los botones */
    padding: 16px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700; /* Letra gruesa */
    border-radius: 30px; /* Bordes de píldora */
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Botón "Iniciar sesión" (Principal) */
#page-welcome .btn-primary {
    background: var(--primary-coral);
    color: var(--bg-white);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

/* Botón "Registrarse" (Secundario) */
#page-welcome .btn-secondary {
    background: none;
    color: var(--text-dark); /* Color oscuro (negro/gris) */
}

/* Botón "Saltar" (Terciario) */
#page-welcome .btn-tertiary {
    background: none;
    color: var(--text-light); /* Color gris claro */
    font-weight: 500; /* Menos grueso */
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Efecto hover */
#page-welcome .btn:hover {
    transform: translateY(-2px);
}

/* === UNIFICADO: Bottom Navigation === */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--primary-green-light);
    padding: 15px 0 20px 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 50;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: var(--border-radius-button);
    transition: all 0.3s ease;
}
.bottom-nav .nav-icon-img {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    object-fit: contain;
    filter: var(--filter-black-to-white);
    transition: filter 0.3s ease;
}
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
    background: var(--bg-white);
    color: var(--primary-green-dark) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}
.bottom-nav .nav-item.active .nav-icon-img,
.bottom-nav .nav-item:hover .nav-icon-img {
    filter: var(--filter-black-to-green) !important;
}

/* === PÁGINA: login.html === */
#page-login {
    --primary-green-light: var(--global-light-green);
    --primary-coral: #FF6B6B;  /* Color coral de los botones */
    --text-white: #FFFFFF;
    --text-dark: #333333;
    --border-color: #E0E0E0;
    --border-color-light: rgba(255, 255, 255, 0.5); /* Borde de input blanco semi-transparente */

    /* Fondo verde para toda la página */
    background-color: var(--primary-green-light);
}

/* Contenedor principal */
#page-login .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px; 
    background: var(--primary-green-light);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 25px; /* Padding general */
}

/* Encabezado */
#page-login .signup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
}
#page-login .back-button {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-white);
    text-decoration: none;
    flex: 1; /* Ocupa espacio */
}
#page-login .logo {
    filter: brightness(0) invert(1); /* Logo a blanco */
    width: 120px; /* Tamaño ajustado */
    height: auto;
    flex: 2; /* Ocupa más espacio para centrarse */
    text-align: center;
}
#page-login .header-placeholder {
    flex: 1; /* Espacio vacío para balancear el botón de volver */
}

/* Contenido Principal */
#page-login .signup-content {
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
    justify-content: flex-start; /* Alinea al inicio */
    padding-top: 20px;
}
#page-login .title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 30px; /* Espacio después del título */
    line-height: 1.3;
    text-align: center;
}

/* Botones */
#page-login .btn {
    display: block;
    width: 100%;
    padding: 16px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#page-login .btn:hover {
    transform: translateY(-2px);
}

/* Botón Google */
#page-login .btn-google {
    background: var(--bg-white, #FFF);
    color: var(--text-dark);
    position: relative;
    padding-left: 50px; /* Espacio para el logo de Google */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#page-login .btn-google::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/c/c1/Google_%22G%22_logo.svg') no-repeat center center;
    background-size: contain;
}

/* Separador "o" */
#page-login .separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-white);
    opacity: 0.8;
    margin: 30px 0;
}
#page-login .separator::before,
#page-login .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color-light);
}
#page-login .separator .or-text {
    padding: 0 15px;
    font-weight: 500;
}

/* Formulario */
#page-login .signup-form { 
    width: 100%;
}
#page-login .form-group { 
    margin-bottom: 30px; /* Más espacio entre campos */
    position: relative; 
}
#page-login .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}
#page-login .form-group input[type="email"],
#page-login .form-group input[type="password"] {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-color-light);
    background: transparent;
    padding: 10px 5px;
    font-size: 1rem;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
}
#page-login .form-group input:focus { 
    outline: none; 
    border-bottom-color: var(--text-white); /* Borde blanco al seleccionar */
}
/* Placeholder blanco */
#page-login .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Botón Mostrar/Ocultar Contraseña */
#page-login .show-password-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem; /* Tamaño del ícono */
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 38px; /* Ajustar posición vertical */
    opacity: 0.8;
}

/* Botón "Ingresar" */
#page-login .btn-create-account {
    background: var(--primary-coral); /* Color coral */
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    margin-top: 30px;
}

/* Link "Registrarse" (Oculto para coincidir con la imagen) */
#page-login .signup-content > p {
    display: none; /* Oculta el link de registrarse */
}
#page-login .login-link {
    color: var(--text-white);
    font-weight: 700;
    text-decoration: underline;
}

/* === PÁGINA: registration.html === */
#page-registration {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --text-dark: #333333;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --border-radius-input: 12px;
    background-color: var(--primary-green-light);
}
#page-registration .splash-container {
    width: 100%;
    max-width: 414px;
    height: 850px; 
    background: var(--primary-green-light);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#page-registration .splash-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 350px;
    background: var(--bg-white);
    border-top-left-radius: 200px;
    z-index: 1;
}
#page-registration #signup, #page-registration .page-wrapper, #page-registration .signup-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}
#page-registration .signup-container {
     padding: 40px 30px 20px 30px; 
}
#page-registration .signup-header {
    width: 100%;
    margin-bottom: 20px;
}
#page-registration .back-button {
    text-decoration: none;
    color: var(--primary-green-dark);
    font-weight: 500;
    font-size: 0.9rem;
}
#page-registration .signup-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
#page-registration .title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.3;
}
#page-registration .btn {
    display: block;
    width: 100%;
    padding: 16px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#page-registration .btn:hover {
    transform: translateY(-2px);
}
#page-registration .btn-google {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    position: relative;
    padding-left: 50px;
}
#page-registration .btn-google::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/c/c1/Google_%22G%22_logo.svg') no-repeat center center;
    background-size: contain;
}
#page-registration .btn-create-account {
    background: var(--primary-green-dark);
    color: var(--bg-white);
    box-shadow: 0 8px 20px rgba(58, 125, 68, 0.25);
    margin-top: 20px;
}
#page-registration .separator {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px 0 15px 0;
    color: var(--text-dark);
}
#page-registration .or-text {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    gap: 15px;
}
#page-registration .or-text::before,
#page-registration .or-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--primary-green-dark);
}
#page-registration .register-email-text {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    width: 100%;
}
#page-registration .signup-form {
    width: 100%;
}
#page-registration .form-group {
    margin-bottom: 15px;
}
#page-registration .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
#page-registration .form-group input[type="email"],
#page-registration .form-group input[type="password"],
#page-registration .form-group input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-input);
    font-size: 1rem;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
}
#page-registration .form-group input:focus {
    outline: none;
    border-color: var(--primary-green-dark);
    box-shadow: 0 0 0 2px rgba(58, 125, 68, 0.2);
}
#page-registration .password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#page-registration .show-password-btn {
    background: none;
    border: none;
    color: var(--primary-green-dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
#page-registration .signup-content > p {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}
#page-registration .login-link {
    color: var(--primary-green-dark);
    font-weight: 600;
    text-decoration: none;
}

/* === PÁGINA: mapCasos.html (mapCasos) === */
#page-map-casos {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --text-dark: #333333;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-radius-card: 20px;
    --border-radius-button: 15px;
    --filter-black-to-green: brightness(0) saturate(100%) invert(35%) sepia(34%) saturate(1450%) hue-rotate(82deg) brightness(93%) contrast(88%);
    --filter-black-to-white: brightness(0) invert(1);
    background-color: var(--primary-green-light); /* Fondo verde claro del body */
}

#page-map-casos .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px; 
    background: var(--bg-light-gray);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    border: 10px solid var(--primary-green-light); /* Borde verde del diseño */
}

/* Tu CSS original con modificaciones */


#page-map-casos .icon-back {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    text-decoration: none; /* Añadido para enlaces */
}

#page-map-casos .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Padding reducido para un header más compacto */
    padding: 5px;
    background: var(--bg-light-gray);
    border-bottom: 1px solid #ddd;
}

#page-map-casos .logo-container {
    display: flex;
    align-items: center;
    /* Esto ayuda a centrar si el logo es más pequeño */
    flex-grow: 1;
    justify-content: center;
}

#page-map-casos .logo-icon {
    /* --- ESTE ES EL CAMBIO PRINCIPAL --- */
    /* Reducido de 120px a 40px */
    width: 80px;
    height: 80px;
    filter: var(--filter-black-to-green); /* Colorea el ícono de ECO */
    border-radius: 12px; /* redondeo del icono */
    overflow: hidden; /* asegura que el contenido respete el border-radius */
    display: inline-block;
}

    /* Footer-specific logo (cuando el body no tiene id=page-footer) */
    /* Usa el id del img en footer.html (#footer-icon) para aplicar el mismo hover
       sin reactivar el hover en la página de mapa. */
    #footer-icon {
        display: inline-block;
        cursor: pointer;
        transition: transform 400ms cubic-bezier(.2,.9,.3,1), box-shadow 400ms ease, filter 400ms ease, border-radius 400ms ease;
        will-change: transform, filter, border-radius;
        border-radius: 12px;
        overflow: hidden;
    }

    #footer-icon:hover {
        transform: translateY(-6px) scale(1.06) rotate(-6deg);
        box-shadow: 0 14px 34px rgba(34,49,63,0.18);
        filter: var(--filter-black-to-green) brightness(1.06) contrast(1.04);
        border-radius: 16px;
    }

/* Hover/interaction effects for the logo in map and report pages */
#footer-icon,
#page-map-casos .logo-icon,
#page-report-map-red .logo-icon,
#page-report-map-white .logo-icon {
    display: inline-block;
    cursor: pointer;
    /* Transiciones más largas para un efecto más suave */
    transition: transform 400ms cubic-bezier(.2,.9,.3,1), box-shadow 400ms ease, filter 400ms ease, border-radius 400ms ease;
    will-change: transform, filter, border-radius;
    border-radius: 12px;
    overflow: hidden;
}

/* Hover on the red and white report pages; map page logo has no hover */

#page-report-map-red .logo-icon:hover,
#page-report-map-white .logo-icon:hover {
    /* ligero levantamiento, escala y rotación sutil */
    transform: translateY(-6px) scale(1.06) rotate(-6deg);
    box-shadow: 0 14px 34px rgba(34,49,63,0.18);
    /* mantén la coloración verde y realza ligeramente el brillo/contraste */
    filter: var(--filter-black-to-green) brightness(1.06) contrast(1.04);
    /* al hacer hover, suavemente redondeamos un poco más (opcional) */
    border-radius: 16px;
}

#page-map-casos .logo-text-main {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
}

#page-map-casos .logo-leaf {
    font-size: 1.2rem;
    color: var(--primary-green-dark);
    transform: rotate(20deg);
}


.icon-user {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Añadido para que no se encoja */
    flex-shrink: 0; 
}

.icon-user img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

#page-map-casos .main-content {
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 0 20px;
    padding-bottom: 120px;
}

#page-map-casos .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 15px;
}
#page-map-casos .section-header h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
}
#page-map-casos .section-link {
    font-size: 0.9rem;
    color: var(--primary-green-dark);
    text-decoration: none;
    font-weight: 500;
}

#page-map-casos .map-card {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius-card);
    background-image: url('../img/maps.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#page-map-casos .map-overlay-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-button);
    padding: 12px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#page-map-casos .overlay-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    filter: grayscale(100%); /* B&W como en el diseño */
}

#page-map-casos .map-overlay-card h3 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

#page-map-casos .icons-container {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    gap: 4px;
}

#page-map-casos .trash-icon {
    width: 16px;
    height: 16px;
    filter: var(--filter-black-to-green); /* Íconos de basura verdes */
}

#page-map-casos .details-link {
    font-size: 0.75rem;
    color: var(--primary-green-dark);
    text-decoration: none;
    font-weight: 500;
}

#page-map-casos .cases-section {
    margin-bottom: 20px;
}

#page-map-casos .cases-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#page-map-casos .case-card {
    width: 100%;
    height: 220px;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
#page-map-casos .case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

#page-map-casos .bottom-nav {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--primary-green-light);
    padding: 15px 0 20px 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

#page-map-casos .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: var(--border-radius-button);
    transition: all 0.3s ease;
}

#page-map-casos .nav-icon-img {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    object-fit: contain;
    filter: var(--filter-black-to-white);
}

#page-map-casos .nav-item.active {
    background: var(--bg-white);
    color: var(--primary-green-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px); 
}

#page-map-casos .nav-item.active .nav-icon-img {
    filter: var(--filter-black-to-green);
}

/* ======================================================= */
/* === PÁGINA: reportInAction.html (Tarjeta Rojo Pastel) === */
/* ======================================================= */
/* ======================================================= */
/* === PÁGINA: reportInAction.html (Tarjeta Rojo Pastel) === */
/* ======================================================= */
#page-report-map-red {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --pastel-red-bg: #FFD4D4;
    --dark-red-text: #B71C1C;
    --text-dark: #333333;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-radius-card: 20px;
    --border-radius-button: 15px;
    --filter-black-to-green: brightness(0) saturate(100%) invert(35%) sepia(34%) saturate(1450%) hue-rotate(82deg) brightness(93%) contrast(88%);
    --filter-black-to-white: brightness(0) invert(1);
    --filter-black-to-gray: grayscale(100%) opacity(0.6);
}
#page-report-map-red .mobile-container {
    width: 100%; max-width: 414px; height: 850px; background: var(--bg-light-gray);
    border-radius: 40px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative; overflow: hidden; display: flex; flex-direction: column;
}
#page-report-map-red .light-theme { background: var(--bg-light-gray); }


#page-report-map-red .top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 25px 20px 25px; background: var(--bg-light-gray);
    border-bottom: 1px solid var(--border-color); /* <-- AÑADIDO */
}
#page-report-map-red .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 0; /* evita que ocupe todo el espacio */
    gap: 8px;
    color: var(--primary-green-dark);
}

/* Limita el tamaño del logo para que sea más pequeño */
#page-report-map-red .logo-container img,
#page-report-map-red .logo-container svg {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    filter: var(--filter-black-to-green);
}
#page-report-map-red .icon-back { font-size: 1.8rem; font-weight: 500; color: var(--text-dark); cursor: pointer; }
#page-report-map-red .top-nav h1 { font-size: 1.4rem; font-weight: 600; color: var(--text-dark); }
#page-report-map-red .nav-icons-right { display: flex; gap: 10px; }







#page-report-map-red .icon-back { 
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    text-decoration: none; /* Añadido para enlaces */
}
#page-report-map-red .top-nav h1 { font-size: 1.4rem; font-weight: 600; color: var(--text-dark); }
#page-report-map-red .nav-icons-right { display: flex; gap: 10px; }
/* Unificado: .icon-circle para todas las páginas de report-map */
.icon-circle {
    width: 38px;
    height: 38px;
    background: var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Unificado: nav-icon-top global para iconos dentro de icon-circle */
.nav-icon-top {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: var(--filter-black-to-green) !important;
    transition: all 0.2s ease;
    border-radius: 50%;
    display: block;
}
.icon-circle:last-child .nav-icon-top {
    filter: none;
    height: 24px;
    width: 24px;
    opacity: 0.7;
}
#page-report-map-red .main-content {
    flex-grow: 1; overflow-y: hidden; padding: 0 25px;
    display: flex; flex-direction: column; position: relative;
}
#page-report-map-red .map-controls {
    display: flex; gap: 10px; margin-bottom: 15px; z-index: 20;
}
#page-report-map-red .search-bar {
    flex-grow: 1; background: var(--bg-white); border-radius: var(--border-radius-button);
    padding: 10px 15px; display: flex; align-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
#page-report-map-red .search-icon-img { width: 20px; height: 20px; margin-right: 10px; filter: var(--filter-black-to-green); }
#page-report-map-red .search-bar input {
    flex-grow: 1; border: none; outline: none; font-size: 1rem;
    color: var(--text-dark); font-family: 'Poppins', 'Roboto', sans-serif;
}
#page-report-map-red .filter-button {
    width: 42px; height: 42px; background: var(--bg-white); border-radius: var(--border-radius-button);
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#page-report-map-red .filter-button:hover { transform: scale(1.1); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
#page-report-map-red .filter-icon-img { width: 20px; height: 20px; object-fit: contain; filter: var(--filter-black-to-green); }
#page-report-map-red .map-view {
    flex-grow: 1; background-color: #EFEFEF; border-radius: var(--border-radius-card);
    position: relative; background-image: url('../img/maps.png');
    background-size: cover; background-position: center; overflow: hidden;
}
#page-report-map-red .location-ring {
    position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
    width: 30px; height: 30px; border: 3px solid var(--primary-green-dark);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    background: rgba(58, 125, 68, 0.2); z-index: 10;
}
#page-report-map-red .location-dot { width: 10px; height: 10px; background: var(--primary-green-dark); border-radius: 50%; }
#page-report-map-red .map-overlay-card {
    position: absolute; top: 38%; left: 50%; transform: translateX(-50%);
    width: 250px; z-index: 5; background: var(--pastel-red-bg);
    color: var(--dark-red-text); border-radius: var(--border-radius-card);
    padding: 15px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); text-align: center;
}
#page-report-map-red .overlay-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; margin-bottom: 8px; }
#page-report-map-red .map-overlay-card h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--dark-red-text); }
#page-report-map-red .icons-container {
    margin: 8px 0; display: flex; justify-content: center; align-items: center; gap: 5px;
}
#page-report-map-red .icons-container img { width: 20px; height: 20px; filter: var(--filter-black-to-gray); }
#page-report-map-red .details-link {
    font-size: 0.85rem; text-decoration: none; font-weight: 500;
    color: var(--dark-red-text); transition: opacity 0.2s ease;
}
#page-report-map-red .details-link:hover { opacity: 0.7; }
#page-report-map-red .filter-dropdown {
    position: absolute; top: 5px; right: 5px; width: 200px; background: var(--bg-white);
    border-radius: var(--border-radius-card); box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 15px; z-index: 30; display: none; opacity: 0;
    transform: translateY(-10px); transition: all 0.2s ease-out;
}
#page-report-map-red .filter-dropdown.show { display: block; opacity: 1; transform: translateY(0); }
#page-report-map-red .filter-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; font-weight: 600; color: var(--text-dark); font-size: 1.1rem;
}
#page-report-map-red .close-filter { font-size: 1.5rem; cursor: pointer; color: var(--text-light); }
#page-report-map-red .filter-options { display: flex; flex-direction: column; gap: 10px; }
#page-report-map-red .filter-option {
    border: 1px solid #E0E0E0; background: none; border-radius: 10px; padding: 8px 12px;
    text-align: left; color: var(--text-dark); font-size: 0.9rem; font-weight: 500;
    cursor: pointer; display: flex; align-items: center; transition: all 0.2s;
}
#page-report-map-red .filter-option:hover { background: #F0F0F0; }
#page-report-map-red .filter-option.active {
    background: var(--primary-green-light); color: var(--bg-white); border-color: var(--primary-green-light);
}
#page-report-map-red .filter-option-icon {
    width: 18px; height: 18px; margin-right: 8px;
    object-fit: contain; filter: var(--filter-black-to-green);
}
#page-report-map-red .filter-option.active .filter-option-icon { filter: var(--filter-black-to-white); }
#page-report-map-red .bottom-nav {
    display: flex; justify-content: space-around; align-items: center;
    background: var(--primary-green-light); padding: 15px 0 20px 0;
    border-top-left-radius: 30px; border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05); z-index: 50;
    position: absolute; bottom: 0; left: 0; width: 100%;
}
#page-report-map-red .nav-item {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: var(--bg-white); font-weight: 500; font-size: 0.8rem; cursor: pointer;
    padding: 8px 15px; border-radius: var(--border-radius-button); transition: all 0.3s ease;
}
#page-report-map-red .nav-icon-img {
    width: 26px; height: 26px; margin-bottom: 4px; object-fit: contain;
    filter: var(--filter-black-to-white); transition: filter 0.3s ease;
}
#page-report-map-red .nav-item.active,
#page-report-map-red .nav-item:hover {
    background: var(--bg-white); color: var(--primary-green-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); transform: translateY(-10px);
}
#page-report-map-red .nav-item.active .nav-icon-img,
#page-report-map-red .nav-item:hover .nav-icon-img {
    filter: var(--filter-black-to-green);
}

/* ================================================== */
/* === PÁGINA: reportMap.html (Tarjeta BLANCA) === */
/* ================================================== */
#page-report-map-white {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --text-dark: #333333;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-radius-card: 20px;
    --border-radius-button: 15px;
    --filter-black-to-green: brightness(0) saturate(100%) invert(35%) sepia(34%) saturate(1450%) hue-rotate(82deg) brightness(93%) contrast(88%);
    --filter-black-to-white: brightness(0) invert(1);
}
#page-report-map-white .mobile-container {
    width: 100%; max-width: 414px; height: 850px; background: var(--bg-light-gray);
    border-radius: 40px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative; overflow: hidden; display: flex; flex-direction: column;
}
#page-report-map-white .light-theme { background: var(--bg-light-gray); }
#page-report-map-white .top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 25px 20px 25px; background: var(--bg-light-gray);
    border-bottom: 1px solid var(--border-color); /* <-- AÑADIDO */
}
#page-report-map-white .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 0; /* evita que ocupe todo el espacio */
    gap: 8px;
    color: var(--primary-green-dark);
}

/* Limita el tamaño del logo para que sea más pequeño */
#page-report-map-white .logo-container img,
#page-report-map-white .logo-container svg {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    filter: var(--filter-black-to-green);
}
#page-report-map-white .icon-back { font-size: 1.8rem; font-weight: 500; color: var(--text-dark); cursor: pointer; }
#page-report-map-white .top-nav h1 { font-size: 1.4rem; font-weight: 600; color: var(--text-dark); }
#page-report-map-white .nav-icons-right { display: flex; gap: 10px; }



#page-report-map-white .main-content {
    flex-grow: 1; overflow-y: hidden; padding: 0 25px;
    display: flex; flex-direction: column; position: relative;
}
#page-report-map-white .map-controls {
    display: flex; gap: 10px; margin-bottom: 15px; z-index: 20;
}
#page-report-map-white .search-bar {
    flex-grow: 1; background: var(--bg-white); border-radius: var(--border-radius-button);
    padding: 10px 15px; display: flex; align-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
#page-report-map-white .search-icon-img { width: 20px; height: 20px; margin-right: 10px; filter: var(--filter-black-to-green); }
#page-report-map-white .search-bar input {
    flex-grow: 1; border: none; outline: none; font-size: 1rem;
    color: var(--text-dark); font-family: 'Poppins', 'Roboto', sans-serif;
}
#page-report-map-white .filter-button {
    width: 42px; height: 42px; background: var(--bg-white); border-radius: var(--border-radius-button);
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#page-report-map-white .filter-button:hover { transform: scale(1.1); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
#page-report-map-white .filter-icon-img { width: 20px; height: 20px; object-fit: contain; filter: var(--filter-black-to-green); }
#page-report-map-white .map-view {
    flex-grow: 1; background-color: #EFEFEF; border-radius: var(--border-radius-card);
    position: relative; background-image: url('../img/maps.png');
    background-size: cover; background-position: center; overflow: hidden;
}
#page-report-map-white .location-ring {
    position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
    width: 30px; height: 30px; border: 3px solid var(--primary-green-dark);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    background: rgba(58, 125, 68, 0.2); z-index: 10;
}
#page-report-map-white .location-dot { width: 10px; height: 10px; background: var(--primary-green-dark); border-radius: 50%; }
/* ESTILO DE TARJETA BLANCA */
#page-report-map-white .map-overlay-card {
    position: absolute; top: 38%; left: 50%; transform: translateX(-50%);
    width: 250px; z-index: 5; background: var(--bg-white); /* Fondo blanco */
    color: var(--text-dark); /* Texto oscuro */
    border-radius: var(--border-radius-card);
    padding: 15px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); text-align: center;
}
#page-report-map-white .overlay-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; margin-bottom: 8px; }
#page-report-map-white .map-overlay-card h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text-dark); } /* Texto oscuro */
#page-report-map-white .icons-container {
    margin: 8px 0; display: flex; justify-content: center; align-items: center; gap: 5px;
}
#page-report-map-white .icons-container img { width: 20px; height: 20px; filter: var(--filter-black-to-gray); }
#page-report-map-white .details-link {
    font-size: 0.85rem; text-decoration: none; font-weight: 500;
    color: var(--primary-green-dark); /* Link verde */
    transition: opacity 0.2s ease;
}
#page-report-map-white .details-link:hover { opacity: 0.7; }
/* FIN ESTILO TARJETA BLANCA */
#page-report-map-white .filter-dropdown {
    position: absolute; top: 5px; right: 5px; width: 200px; background: var(--bg-white);
    border-radius: var(--border-radius-card); box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 15px; z-index: 30; display: none; opacity: 0;
    transform: translateY(-10px); transition: all 0.2s ease-out;
}
#page-report-map-white .filter-dropdown.show { display: block; opacity: 1; transform: translateY(0); }
#page-report-map-white .filter-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; font-weight: 600; color: var(--text-dark); font-size: 1.1rem;
}
#page-report-map-white .close-filter { font-size: 1.5rem; cursor: pointer; color: var(--text-light); }
#page-report-map-white .filter-options { display: flex; flex-direction: column; gap: 10px; }
#page-report-map-white .filter-option {
    border: 1px solid #E0E0E0; background: none; border-radius: 10px; padding: 8px 12px;
    text-align: left; color: var(--text-dark); font-size: 0.9rem; font-weight: 500;
    cursor: pointer; display: flex; align-items: center; transition: all 0.2s;
}
#page-report-map-white .filter-option:hover { background: #F0F0F0; }
#page-report-map-white .filter-option.active {
    background: var(--primary-green-light); color: var(--bg-white); border-color: var(--primary-green-light);
}
#page-report-map-white .filter-option-icon {
    width: 18px; height: 18px; margin-right: 8px;
    object-fit: contain; filter: var(--filter-black-to-green);
}
#page-report-map-white .filter-option.active .filter-option-icon { filter: var(--filter-black-to-white); }
#page-report-map-white .bottom-nav {
    display: flex; justify-content: space-around; align-items: center;
    background: var(--primary-green-light); padding: 15px 0 20px 0;
    border-top-left-radius: 30px; border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05); z-index: 50;
    position: absolute; bottom: 0; left: 0; width: 100%;
}
#page-report-map-white .nav-item {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: var(--bg-white); font-weight: 500; font-size: 0.8rem; cursor: pointer;
    padding: 8px 15px; border-radius: var(--border-radius-button); transition: all 0.3s ease;
}
#page-report-map-white .nav-icon-img {
    width: 26px; height: 26px; margin-bottom: 4px; object-fit: contain;
    filter: var(--filter-black-to-white); transition: filter 0.3s ease;
}
#page-report-map-white .nav-item.active,
#page-report-map-white .nav-item:hover {
    background: var(--bg-white); color: var(--primary-green-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); transform: translateY(-10px);
}
#page-report-map-white .nav-item.active .nav-icon-img,
#page-report-map-white .nav-item:hover .nav-icon-img {
    filter: var(--filter-black-to-green);
}

/* === PÁGINA: reportSeccion.html === */
#page-report-seccion {
    --primary-green-light: var(--global-light-green);
    --primary-green-dark: #3A7D44;
    --primary-coral: #FF6B6B;  /* Color coral de los botones */
    --primary-red: #FF3B30; /* Color rojo (usado por .btn-primary por defecto) */
    --text-dark: #333333;
    --text-light: #757575;
    --border-color: #E0E0E0;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9; /* Fondo de la página */
    --border-radius-card: 20px;
    --border-radius-button: 15px;
    --border-radius-pill: 30px;
    --filter-black-to-white: brightness(0) invert(1);
    --filter-black-to-green: brightness(0) saturate(100%) invert(35%) sepia(34%) saturate(1450%) hue-rotate(82deg) brightness(93%) contrast(88%);
}

#page-report-seccion .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px;
    background: var(--bg-light-gray); /* <-- CAMBIADO: Fondo gris claro */
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden; /* Oculta el scroll-y del main-content */
    display: flex;
    flex-direction: column;
}

#page-report-seccion .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 25px 20px 25px;
    background: var(--bg-light-gray); /* <-- CAMBIADO: Fondo gris claro */
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0; /* Evita que el header se encoja */
}
#page-report-seccion .icon-back {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}
#page-report-seccion .top-nav h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-report-seccion .icon-placeholder {
    width: 20px;
}

/* Contenido principal con scroll */
#page-report-seccion .main-content {
    flex-grow: 1;
    overflow-y: auto; /* Permite scroll solo en esta área */
    padding: 20px 25px;
    padding-bottom: 150px; /* <-- CAMBIADO: Más espacio para la nav bar flotante */
    background: var(--bg-light-gray);
}
#page-report-seccion .report-section {
    margin-bottom: 25px;
}
#page-report-seccion .report-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Sección de Fotos */
#page-report-seccion .photo-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}
#page-report-seccion .photo-card {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-button);
    flex-shrink: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
}
#page-report-seccion .photo-card.loaded {
    overflow: hidden;
    border: none;
}
#page-report-seccion .photo-card.loaded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#page-report-seccion .photo-card.add-photo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--border-color);
    color: var(--text-light);
    cursor: pointer;
}
#page-report-seccion .add-icon {
    font-size: 1.8rem;
    color: #CCCCCC;
}
#page-report-seccion .add-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    margin-top: 5px;
}

/* Descripción */
#page-report-seccion .description-input {
    width: 100%;
    height: 120px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-button);
    padding: 15px;
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    resize: none;
    background: var(--bg-white); /* <-- CAMBIADO */
}
#page-report-seccion .description-input::placeholder {
    color: var(--text-light);
}

/* Categorías */
#page-report-seccion .category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
#page-report-seccion .category-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px; /* <-- CAMBIADO: Más padding */
    border: 1px solid var(--border-color);
    background: var(--bg-white); /* <-- CAMBIADO: Fondo blanco */
    border-radius: var(--border-radius-pill);
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark); /* <-- CAMBIADO: Texto oscuro */
    cursor: pointer;
    transition: all 0.2s ease;
}
#page-report-seccion .cat-icon {
    font-size: 0.9rem;
    margin-right: 5px;
    color: transparent;
    text-shadow: 0 0 0 var(--text-dark); /* <-- CAMBIADO: Ícono oscuro */
    transition: all 0.2s ease;
}

/* --- ESTILO ACTIVO DE CATEGORÍA (COMO EN EL DISEÑO) --- */
#page-report-seccion .category-tag.active {
    background: var(--primary-green-dark); /* <-- CAMBIADO: Fondo verde oscuro */
    border-color: var(--primary-green-dark);
    color: var(--bg-white); /* <-- CAMBIADO: Texto blanco */
}
#page-report-seccion .category-tag.active .cat-icon {
    text-shadow: 0 0 0 var(--bg-white); /* <-- CAMBIADO: Ícono blanco */
}

/* Nivel de Gravedad */
#page-report-seccion .severity-level {
    display: flex;
    gap: 8px;
}
#page-report-seccion .severity-icon {
    font-size: 1.8rem;
    color: transparent;
    text-shadow: 0 0 0 var(--border-color); /* <-- CAMBIADO: Relleno gris */
    cursor: pointer;
}
#page-report-seccion .severity-icon.active {
    text-shadow: 0 0 0 var(--primary-green-dark); /* <-- CAMBIADO: Relleno verde */
}

/* Botones de Acción */
#page-report-seccion .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}
#page-report-seccion .btn {
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', 'Roboto', sans-serif;
}
#page-report-seccion .btn-primary {
    background: var(--primary-coral); /* <-- CAMBIADO: Color coral */
    color: var(--bg-white);
}
#page-report-seccion .btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color); /* <-- CAMBIADO: Borde gris claro */
}

/* === BARRA DE NAVEGACIÓN (NUEVO DISEÑO FLOTANTE) === */
#page-report-seccion .bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--primary-green-light);
    padding: 15px 0 20px 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 50;
}
#page-report-seccion .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: var(--border-radius-button);
    transition: all 0.3s ease;
}
#page-report-seccion .nav-icon-img {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    object-fit: contain;
    filter: var(--filter-black-to-white);
}
#page-report-seccion .nav-item.active,
#page-report-seccion .nav-item:hover {
    background: var(--bg-white);
    color: var(--primary-green-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}
#page-report-seccion .nav-item.active .nav-icon-img,
#page-report-seccion .nav-item:hover .nav-icon-img {
    filter: var(--filter-black-to-green);
}

/* === PÁGINA: reportDetail.html === */
#page-report-detail {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --primary-red: #FF3B30;
    --text-dark: #333333;
    --text-light: #757575;
    --border-color: #E0E0E0;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-radius-card: 20px;
    --border-radius-button: 15px;
    --border-radius-pill: 30px;
}
#page-report-detail .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px;
    background: var(--bg-white);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#page-report-detail .report-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 120px; 
}
#page-report-detail .image-container {
    width: 100%;
    height: 350px;
    position: relative;
    background: #EEE;
}
#page-report-detail .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#page-report-detail .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
    color: var(--bg-white);
}
#page-report-detail .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 25px 0 25px;
}
#page-report-detail .icon-back {
    font-size: 1.8rem;
    font-weight: 500;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: var(--bg-white); /* Asegura que sea blanco */
}
#page-report-detail .status-tag {
    background: var(--primary-red);
    color: var(--bg-white);
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}
#page-report-detail .bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 25px;
}
#page-report-detail .title-block h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
#page-report-detail .title-block p {
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
#page-report-detail .image-counter {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-pill);
}
#page-report-detail .info-bar {
    width: 100%;
    height: 50px;
    background: var(--primary-red);
    display: flex;
    align-items: center;
    padding: 0 25px;
}
#page-report-detail .info-icon {
    font-size: 1.7rem;
    margin-right: 5px;
    color: transparent;
    text-shadow: 0 0 0 var(--bg-white); /* <-- CAMBIADO: Ícono oscuro */
    transition: all 0.2s ease;
}
#page-report-detail .details-content {
    padding: 25px;
}
#page-report-detail .content-section {
    margin-bottom: 25px;
}
#page-report-detail .content-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}
#page-report-detail .content-section > p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}
#page-report-detail .timestamp {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
}
#page-report-detail .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
#page-report-detail .category-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-light-gray);
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-green-dark);
}
#page-report-detail .cat-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    color: transparent;
    text-shadow: 0 0 0 var(--primary-green-dark);
}

/* ... (el resto de tus estilos de #page-report-detail) ... */

#page-report-detail .reporter-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === REEMPLAZA ESTO === */
#page-report-detail .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E0E0E0;
    
    /* AÑADIDO: La clave para recortar la imagen */
    overflow: hidden; 
}

/* === AÑADE ESTO === */
#page-report-detail .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena el círculo sin distorsionar */
}

#page-report-detail .reporter-text {
    display: flex;
    flex-direction: column;
}

/* ... (el resto de tus estilos) ... */

#page-report-detail .username {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-report-detail .points {
    font-size: 0.8rem;
    color: var(--text-light);
}
#page-report-detail .footer-button-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 20px 25px 30px 25px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
    z-index: 100;

    /* --- LÍNEAS AÑADIDAS --- */
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente (opcional) */
}
#page-report-detail .cta-button {
    width: 60%;
    max-width: 350px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    background: var(--primary-red);
    color: var(--bg-white);
    transition: background-color 0.2s ease;

    /* Centrado */
    display: block;
    margin: 0 auto;
    text-align: center;
    align-self: center;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 420px) {
    #page-report-detail .cta-button {
        width: 90%;
        max-width: none;
    }
}
#page-report-detail .cta-button:hover {
    background: #E03024;
}













/* === PÁGINA: reportResolved.html === */
#page-report-detail-resolved {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --primary-red: #FF3B30;
    --text-dark: #333333;
    --text-light: #757575;
    --border-color: #E0E0E0;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-radius-card: 20px;
    --border-radius-button: 15px;
    --border-radius-pill: 30px;
}
#page-report-detail-resolved .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px;
    background: var(--bg-white);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#page-report-detail-resolved .report-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 120px; 
}
#page-report-detail-resolved .image-container {
    width: 100%;
    height: 350px;
    position: relative;
    background: #EEE;
}
#page-report-detail-resolved .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#page-report-detail-resolved .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
    color: var(--bg-white);
}
#page-report-detail-resolved .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 25px 0 25px;
}
#page-report-detail-resolved .icon-back {
    font-size: 1.8rem;
    font-weight: 500;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: var(--bg-white); /* Asegura que sea blanco */
}
#page-report-detail-resolved .status-tag {
    background: var(--global-light-green);
    color: var(--bg-white);
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}
#page-report-detail-resolved .bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 25px;
}
#page-report-detail-resolved .title-block h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
#page-report-detail-resolved .title-block p {
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
#page-report-detail-resolved .image-counter {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-pill);
}
#page-report-detail-resolved .info-bar {
    width: 100%;
    height: 50px;
    background: var(--global-light-green);
    display: flex;
    align-items: center;
    padding: 0 25px;
}
#page-report-detail-resolved .info-icon {
    font-size: 1.7rem;
    margin-right: 5px;
    color: transparent;
    text-shadow: 0 0 0 var(--bg-white); /* <-- CAMBIADO: Ícono oscuro */
    transition: all 0.2s ease;
}
#page-report-detail-resolved .details-content {
    padding: 25px;
}
#page-report-detail-resolved .content-section {
    margin-bottom: 25px;
}
#page-report-detail-resolved .content-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}
#page-report-detail-resolved .content-section > p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}
#page-report-detail-resolved .timestamp {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
}
#page-report-detail-resolved .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
#page-report-detail-resolved .category-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-light-gray);
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-green-dark);
}
#page-report-detail-resolved .cat-icon {
    font-size: 0.9rem;
    margin-right: 6px;
    color: transparent;
    text-shadow: 0 0 0 var(--primary-green-dark);
}

/* ... (el resto de tus estilos de #page-report-detail-resolved) ... */

#page-report-detail-resolved .reporter-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === REEMPLAZA ESTO === */
#page-report-detail-resolved .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E0E0E0;
    
    /* AÑADIDO: La clave para recortar la imagen */
    overflow: hidden; 
}

/* === AÑADE ESTO === */
#page-report-detail-resolved .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena el círculo sin distorsionar */
}

#page-report-detail-resolved .reporter-text {
    display: flex;
    flex-direction: column;
}

/* ... (el resto de tus estilos) ... */

#page-report-detail-resolved .username {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-report-detail-resolved .points {
    font-size: 0.8rem;
    color: var(--text-light);
}
#page-report-detail-resolved .footer-button-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 20px 25px 30px 25px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
    z-index: 100;
}
#page-report-detail-resolved .cta-button {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    background: black;
    color: var(--bg-white);
    transition: background-color 0.2s ease;
}
#page-report-detail-resolved .cta-button:hover {
    background: gray;
}
















/* === PÁGINA: userDetail.html === */
#page-user-detail {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --text-dark: #333333;
    --text-light: #757575;
    --text-on-green: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-color: #E0E0E0;
    --btn-dark: #424242;
    --border-radius-card: 20px;
    --border-radius-button: 15px;
    --border-radius-pill: 30px;
    --filter-black-to-white: brightness(0) invert(1);
    --filter-black-to-green: brightness(0) saturate(100%) invert(35%) sepia(34%) saturate(1450%) hue-rotate(82deg) brightness(93%) contrast(88%);
}
#page-user-detail .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px;
    background: var(--bg-light-gray);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#page-user-detail .profile-header {
    background: var(--primary-green-light);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
    z-index: 10;
}
#page-user-detail .header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 40px 25px 15px 25px;
    color: var(--text-on-green);
}
#page-user-detail .icon-back {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-on-green);
    cursor: pointer;
}
#page-user-detail .header-nav h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-on-green);
}
#page-user-detail .icon-placeholder {
    width: 20px;
}
/* Avatar (CORREGIDO) */
#page-user-detail .avatar-container {
    position: relative;
    margin-bottom: 10px;
    
    /* AÑADIDO: Dale forma y tamaño al CONTENEDOR */
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Haz que el contenedor sea un círculo */
    border: 4px solid var(--bg-white);
    overflow: hidden; /* Recorta la imagen que se salga del círculo */
}

#page-user-detail .avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* (El .rank-badge sigue igual, no es necesario cambiarlo) */
#page-user-detail .rank-badge {
    position: absolute;
    bottom: 10px;
    right: 30px;
    transform: none;
    background: var(--bg-white);
    color: var(--primary-green-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: var(--border-radius-pill);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#page-user-detail .user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-on-green);
}
#page-user-detail .user-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-on-green);
}
#page-user-detail .level-tag {
    background: var(--bg-white);
    color: var(--primary-green-dark);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    margin: 8px 0;
}
#page-user-detail .edit-profile-btn {
    background: transparent;
    border: 1px solid var(--text-on-green);
    color: var(--text-on-green);
    padding: 6px 16px;
    border-radius: var(--border-radius-pill);
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}
#page-user-detail .profile-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
    padding-bottom: 120px; 
}
#page-user-detail .progress-section {
    margin-bottom: 20px;
}
#page-user-detail .progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
#page-user-detail .label-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-user-detail .label-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}
#page-user-detail .progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
#page-user-detail .progress-bar-fill {
    height: 100%;
    background: var(--primary-green-dark);
    border-radius: 4px;
}
#page-user-detail .progress-subtext {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}
#page-user-detail .stats-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 20px;
    margin-bottom: 20px;
}
#page-user-detail .stat-item {
    text-align: center;
}
#page-user-detail .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}
#page-user-detail .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 2px;
}
#page-user-detail .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}
#page-user-detail .btn {
    padding: 16px;
    border-radius: var(--border-radius-card);
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
#page-user-detail .btn-dark {
    background: var(--btn-dark);
    color: var(--bg-white);
}
#page-user-detail .profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#page-user-detail .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
#page-user-detail .info-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}
#page-user-detail .info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-user-detail .bottom-nav {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--primary-green-light);
    padding: 15px 0 30px 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 100;
}
#page-user-detail .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: var(--border-radius-button);
    transition: all 0.3s ease;
}
#page-user-detail .nav-icon, #page-user-detail .nav-icon-img {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: transparent;
    text-shadow: 0 0 0 var(--bg-white);
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: var(--filter-black-to-white);
}
#page-user-detail .nav-item.active {
    background: var(--bg-white);
    color: var(--primary-green-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px); 
}
#page-user-detail .nav-item.active .nav-icon,
#page-user-detail .nav-item.active .nav-icon-img {
    text-shadow: 0 0 0 var(--primary-green-dark);
    filter: var(--filter-black-to-green);
}

/* === PÁGINA: userLeaderboard.html === */
#page-leaderboard {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --text-dark: #333333;
    --text-light: #757575;
    --text-on-green: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-color: #E0E0E0;
    --avatar-placeholder: #E0E0E0;
    --border-radius-card: 20px;
    --border-radius-button: 15px;
}
#page-leaderboard .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px;
    background: var(--bg-white);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#page-leaderboard .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 25px 20px 25px;
    background: var(--bg-light-gray); /* <-- MODIFICADO (antes --bg-white) */
    border-bottom: 1px solid var(--border-color);
}
#page-leaderboard .icon-back {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}
#page-leaderboard .top-nav h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-leaderboard .icon-placeholder {
    width: 20px;
}
#page-leaderboard .leaderboard-content {
    flex-grow: 1;
    overflow-y: auto;
}
#page-leaderboard .podium-section {
    padding: 20px 15px;
}
#page-leaderboard .podium-cards {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
#page-leaderboard .podium-card {
    flex: 1;
    background: var(--primary-green-light);
    border-radius: var(--border-radius-card);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-on-green);
    position: relative;
    transition: transform 0.18s ease, height 0.18s ease;
}
#page-leaderboard .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--avatar-placeholder);
    margin-bottom: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#page-leaderboard .list-avatar {
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#page-leaderboard .avatar-placeholder img,
#page-leaderboard .list-avatar img,
#page-leaderboard .podium-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
#page-leaderboard .podium-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-on-green);
}
#page-leaderboard .podium-score {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-on-green);
}
#page-leaderboard .rank-1 {
    order: 2;
    height: 190px;
    font-size: 1.1rem;
    transform: translateY(-12px);
    z-index: 2;
}
#page-leaderboard .rank-2 {
    order: 1;
    height: 170px;
}
#page-leaderboard .rank-3 {
    order: 3;
    height: 160px;
    transform: translateY(10px);
    z-index: 1;
}
#page-leaderboard .crown-icon {
    position: absolute;
    top: 10px;
    font-size: 1.5rem;
}
#page-leaderboard .podium-steps {
    display: flex;
    border: 2px solid var(--primary-green-light);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    background: var(--bg-white);
}
#page-leaderboard .step {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-green-dark);
}
#page-leaderboard .step-2 {
    border-top: 2px solid var(--primary-green-light);
    border-right: 2px solid var(--primary-green-light);
}
#page-leaderboard .step-3 {
    border-top: 2px solid var(--primary-green-light);
}
#page-leaderboard .ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 15px;
}
#page-leaderboard .list-item {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--border-radius-card);
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
#page-leaderboard .list-rank {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    width: 30px;
}
#page-leaderboard .list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--avatar-placeholder);
    margin: 0 15px;
}
#page-leaderboard .list-name {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}
#page-leaderboard .list-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}
#page-leaderboard .footer-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    padding: 0 30px 30px 30px;
    line-height: 1.5;
}

/* === PÁGINA: achievements.html === */
#page-achievements {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --text-dark: #333333;
    --text-light: #343434;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-color: #E0E0E0;
    --locked-gray: #2d2d2d;
    --border-radius-card: 20px;
}
#page-achievements .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px;
    background: var(--bg-light-gray);
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#page-achievements .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 25px 20px 25px;
    background: var(--bg-light-gray); /* <-- MODIFICADO (antes --bg-white) */
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}
#page-achievements .icon-back {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}
#page-achievements .top-nav h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-achievements .icon-placeholder {
    width: 20px;
}
#page-achievements .main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 25px;
    background: var(--bg-light-gray);
}
#page-achievements .progress-header {
    text-align: center;
    margin-bottom: 25px;
}
#page-achievements .percentage {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}
#page-achievements .subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}
#page-achievements .achievements-progress {
    margin-bottom: 25px;
}
#page-achievements .progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
#page-achievements .label-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-achievements .label-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}
#page-achievements .progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
#page-achievements .progress-bar-fill {
    height: 100%;
    background: var(--primary-green-dark);
    border-radius: 4px;
}
#page-achievements .progress-subtext {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}
#page-achievements .achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#page-achievements .achievement-item {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--border-radius-card);
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}
#page-achievements .achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 15px;
}
#page-achievements .achievement-text {
    flex-grow: 1;
}
#page-achievements .achievement-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}
#page-achievements .achievement-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}
#page-achievements .points-badge {
    position: absolute;
    top: 0;
    right: -1px;
    background: var(--locked-gray);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-bottom-left-radius: 10px;
}
#page-achievements .achievement-item.locked {
    opacity: 0.7;
}
#page-achievements .achievement-item.locked .achievement-icon {
    background: var(--locked-gray);
    color: transparent;
    text-shadow: 0 0 0 var(--bg-white);
}
#page-achievements .achievement-item.locked .achievement-text h3,
#page-achievements .achievement-item.locked .achievement-text p {
    color: var(--text-light);
}
#page-achievements .achievement-item.locked .points-badge {
    background: var(--locked-gray);
}
#page-achievements .achievement-item.unlocked .achievement-icon {
    background: var(--primary-green-light);
    color: transparent;
    text-shadow: 0 0 0 var(--primary-green-dark);
}
#page-achievements .achievement-item.unlocked .points-badge {
    background: var(--primary-green-light);
    color: var(--primary-green-dark);
}

/* === PÁGINA: map.html (Select Zone) === */
/* --- NOTA: Esta página usa un color verde diferente (#9BD3AF) y se ha dejado intacta --- */
#page-select-zone {
    --primary-green-light: #9BD3AF; 
    --bg-light: #FFFFFF;            /* Fondo blanco */
    --card-bg: #F9F9F9;           /* Fondo gris claro de las tarjetas */
    --text-dark: #333333;           /* Texto principal oscuro */
    --text-gray: #757575;           /* Texto secundario gris */
    --border-radius-card: 20px;
    font-family: 'Manrope', 'Poppins', sans-serif;
}
#page-select-zone .container {
    width: 100%;
    max-width: 414px;
    height: 850px;
    background: var(--bg-light); /* Fondo blanco */
    color: var(--text-dark);     /* Texto oscuro */
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#page-select-zone .header {
    padding: 40px 30px 20px 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}
#page-select-zone .back-button {
    background: none;
    border: none;
    position: absolute;
    top: 45px;
    left: 30px;
    cursor: pointer;
}
#page-select-zone .back-icon { 
    width: 12px; 
    height: 20px; 
    /* El ícono de flecha es negro por defecto, no necesita filtro */
}
#page-select-zone .title { 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin-bottom: 10px; 
    color: var(--text-dark);
}
#page-select-zone .subtitle { 
    font-size: 0.95rem; 
    color: var(--text-gray);
    line-height: 1.5; 
}
#page-select-zone .zones-grid {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    z-index: 10;
}
#page-select-zone .zone-card {
    background: var(--card-bg); /* Fondo gris claro */
    color: var(--text-dark);
    border-radius: var(--border-radius-card);
    padding: 20px;
    text-decoration: none;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
#page-select-zone .zone-card:hover { transform: translateY(-5px); }
#page-select-zone .zone-title { 
    font-size: 1.1rem; 
    font-weight: 800; 
    margin-bottom: 8px; 
}
#page-select-zone .zone-description {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}
#page-select-zone .zone-arrow {
    background: none;
    border: none;
    align-self: flex-end;
    cursor: pointer;
    padding-top: 10px;
}
#page-select-zone .arrow-icon { 
    width: 18px; 
}
#page-select-zone .footer {
    text-align: center;
    padding: 20px 30px 30px 30px;
    z-index: 10;
}
#page-select-zone .or-text { 
    color: var(--text-gray);
    margin-bottom: 10px; 
}
#page-select-zone .location-button {
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    cursor: pointer;
}
#page-select-zone .footer-decoration {
    position: absolute;
    bottom: -550px; /* <-- POSICIÓN CORREGIDA */
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    z-index: 1; /* Detrás del footer y la grilla */
}
#page-select-zone .decoration-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--primary-green-light);
}

/* === Slideshow: mapCasos === */
#page-map-casos .slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 36px 0; /* leave space for dots */
}

#page-map-casos .slides-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

#page-map-casos .slides-wrapper .case-card {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

#page-map-casos .case-card {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
#page-map-casos .case-card img {
    width: 100%;
    max-width: 360px;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* nav buttons */
#page-map-casos .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    cursor: pointer;
    border: none;
    font-size: 18px;
    line-height: 1;
}
#page-map-casos .nav-btn.prev { left: 12px; }
#page-map-casos .nav-btn.next { right: 12px; }

/* dots */
#page-map-casos .dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}
#page-map-casos .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0;
    cursor: pointer;
}
#page-map-casos .dot.active {
    background: var(--primary-green-dark, #3A7D44);
    box-shadow: 0 4px 10px rgba(58,125,68,0.18);
}

@media (max-width: 420px) {
    #page-map-casos .nav-btn { width: 32px; height: 32px; }
    #page-map-casos .case-card img { max-width: 320px; }
}

/* Agranda todos los emoji de las categorías en introduction.html */
.category-icon {
    font-size: 3rem;
    display: inline-block;
    line-height: 1;
}

/* === PÁGINA: afterWelcome.html === */
#page-after-welcome {
    --primary-green-light: var(--global-light-green);
    --primary-coral: #FF6B6B;
    --text-dark: #333333;
    --text-light: #757575;
    --bg-white: #FFFFFF;
}

#page-after-welcome .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px; 
    background: var(--bg-white); /* Fondo principal es blanco */
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    
    position: relative; /* CLAVE: para posicionar el círculo */
    overflow: hidden;  /* CLAVE: para cortar el círculo */
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
}

/* --- SECCIÓN DE TEXTO --- */
#page-after-welcome .splash-content-text {
    background: var(--bg-white);
    text-align: center;
    padding: 40px 35px;
    position: relative; /* Para que esté sobre el círculo */
    z-index: 10;
    margin-bottom: 250px; /* Empuja el texto hacia arriba */
}

#page-after-welcome .splash-content-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

#page-after-welcome .splash-content-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto; /* Centra el párrafo */
}

/* --- CÍRCULO VERDE (Posicionado) --- */
#page-after-welcome .green-circle-container {
    position: absolute;
    z-index: 5; /* Detrás del texto y el botón */
    background: var(--primary-green-light);
    
    width: 750px; 
    height: 750px; /* <-- CAMBIADO A 500px PARA HACERLO ELIPSE */
    border-radius: 50%;
    
    bottom: -350px;
    left: -290px; 

    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    /* Se quitaron las propiedades de flex y padding */
}

/* --- Botón "Comenzar" --- */
#page-after-welcome .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 16px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* --- ESTILOS DE POSICIONAMIENTO DEL BOTÓN --- */
#page-after-welcome .btn-primary {
    background: var(--primary-coral);
    color: var(--bg-white);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);

    /* --- CLAVE: Posicionamiento absoluto --- */
    position: absolute;
    z-index: 15; /* Encima de todo */
    bottom: 160px; /* Ajusta esta distancia desde abajo */
    left: 12%;
}

#page-after-welcome .btn:hover {
    transform: translateY(-2px);
}

/* === PÁGINA: introduction.html === */
#page-introduction {
    --primary-green-light: var(--global-light-green);
    --primary-coral: #FF6B6B;
    --text-white: #FFFFFF;
    --text-dark: #333333;
    --filter-white-to-green-light: invert(65%) sepia(35%) saturate(702%) hue-rotate(84deg) brightness(97%) contrast(92%); /* Verde claro */
    --btn-dark-bg: #424242; /* Botón "Siguiente" oscuro */
    --dot-inactive: rgba(255, 255, 255, 0.4);
    --bg-white: #FFFFFF;
}

/* --- CORRECCIÓN PARA ÍCONOS NEGROS EN SLIDESHOW --- */
/* Esto busca cualquier ícono de slide que tenga "000000" (negro) 
  en su URL y le aplica un filtro para hacerlo blanco.
*/
#page-introduction .slide-icon[src*="000000"] {
    filter: brightness(0) invert(1);
}

#page-introduction .mobile-container {
    width: 100%;
    max-width: 414px;
    height: 850px; 
    background: var(--primary-green-light); /* Fondo verde */
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Flecha de Volver */
#page-introduction .back-button {
    position: absolute;
    top: 40px;
    left: 25px;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-white);
    text-decoration: none;
    z-index: 20;
}

/* Contenedor del Slideshow */
#page-introduction .slideshow-container {
    flex-grow: 1; /* Ocupa todo el espacio menos los controles */
    width: 100%;
    overflow: hidden; /* Oculta los slides que no se ven */
}

/* --- Bloque a modificar --- */
#page-introduction .slideshow-wrapper {
    display: flex;
    width: 500%; /* <-- CAMBIA ESTO (antes era 400%) */
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

#page-introduction .slide {
    width: 20%; /* 100% / 4 slides */
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 40px 40px 40px;
    text-align: center;
    color: var(--text-white);
    position: relative; /* Para Slide 4 */
}

#page-introduction .slide-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 40px;
}

#page-introduction .slide-text h1 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 300px;
}
#page-introduction .slide-text p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light, #757575);
    line-height: 1.6;
    max-width: 320px;
    margin-top: 15px;
}

/* Estilos específicos para Slide 4 */
#page-introduction .slide-4 {
    background: var(--bg-white); /* Fondo blanco */
    color: var(--text-dark); /* Texto oscuro */
    justify-content: flex-end; /* Alinea el texto abajo */
    padding-bottom: 60px;
}
#page-introduction .green-circle-shape {
    position: absolute;
    z-index: 1;
    background: var(--primary-green-light);
    width: 400px; 
    height: 600px;
    border-radius: 50%;
    top: -300px; /* Posiciona el círculo arriba */
     
}
#page-introduction .slide-4 .slide-text {
    position: relative;
    z-index: 2; /* Texto por encima del círculo */
}


/* Controles (Puntos y Botones) */
#page-introduction .slide-controls {
    flex-shrink: 0;
    padding: 30px 40px 40px 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: transparent; /* El fondo es el del slide activo */
    position: relative;
    z-index: 10;
}

/* Estilos para los botones de esta página */
#page-introduction .btn {
    width: 100%;
    max-width: 300px;
    padding: 16px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
#page-introduction .btn-primary {
    background: var(--btn-dark-bg);
    color: var(--text-white);
}
#page-introduction .btn-secondary {
    background: none;
    color: var(--text-white);
    opacity: 0.7;
    font-weight: 500;
}
#page-introduction .slide-4 ~ .slide-controls .btn-secondary {
    color: var(--text-light, #757575); /* Botón "Saltar" en gris en slide 4 */
}

/* Paginación (Puntos) */
#page-introduction .pagination-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}
#page-introduction .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot-inactive);
    transition: all 0.3s ease;
}
#page-introduction .dot.active {
    background: var(--primary-coral);
    transform: scale(1.1);
}

/* --- NUEVOS ESTILOS PARA SLIDE 5 (categories) --- */
#page-introduction .slide-5 {
    background: var(--bg-white); /* Fondo blanco */
    color: var(--text-dark); /* Texto oscuro */
    padding: 0; /* Quitamos el padding global del slide */
    justify-content: flex-start; /* Alinea contenido arriba */
    align-items: flex-start; /* Alinea contenido a la izquierda */
    overflow-y: auto; /* Permite scroll si las categorías son muchas */
}
#page-introduction .slide-5 .top-nav-slide-5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 25px 20px 25px;
    width: 100%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color, #E0E0E0);
    flex-shrink: 0;
}
#page-introduction .slide-5 .top-nav-slide-5 .back-button-slide-5 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
}
#page-introduction .slide-5 .top-nav-slide-5 h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}
#page-introduction .slide-5 .top-nav-slide-5 .placeholder-icon {
    width: 20px; /* Para mantener el espacio a la derecha */
}

#page-introduction .categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 20px;
    padding: 30px 25px; /* Padding para la grilla */
    width: 100%;
    box-sizing: border-box;
}

#page-introduction .category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#page-introduction .category-card .category-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 15px;
    /* --- CAMBIO AQUÍ: Ahora usa el filtro para convertir a blanco, luego a verde --- */
    filter: brightness(0) invert(1) var(--filter-white-to-green-light); 
    
}

#page-introduction .category-card h2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

#page-introduction .category-card ul {
    list-style: none; /* Sin viñetas */
    padding: 0;
    margin: 0;
}

#page-introduction .category-card ul li {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    position: relative;
    padding-left: 12px; /* Espacio para el punto */
}
#page-introduction .category-card ul li::before {
    content: "•"; /* Punto como viñeta */
    color: var(--text-light); /* Color del punto */
    position: absolute;
    left: 0;
    top: 0;
}

/* Info text debajo de los botones */
#page-introduction .info-text {
    font-size: 0.8rem;
    color: var(--text-light); /* Color gris */
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px; /* Separación de los botones */
}
#page-introduction .info-text img {
    width: 18px;
    height: 18px;
    filter: var(--filter-black-to-grey, brightness(0) saturate(100%) invert(47%) sepia(0%) saturate(14%) hue-rotate(189deg) brightness(97%) contrast(92%)); /* Icono de ayuda gris */
}

/* Ajustes de control para el slide 5 */
#page-introduction .slide-5 ~ .slide-controls {
    background: var(--bg-white); /* Controles en blanco */
    border-top: 1px solid var(--border-color); /* Separador */
}
#page-introduction .slide-5 ~ .slide-controls .btn-primary {
    background: var(--primary-coral); /* Botón principal coral */
    color: var(--text-white);
}
#page-introduction .slide-5 ~ .slide-controls .btn-secondary {
    color: var(--text-light); /* Botón "Saltar" gris */
}
#page-introduction .slide-5 ~ .slide-controls .pagination-dots .dot.active {
    background: var(--primary-coral); /* Punto activo coral */
}


/* === PÁGINA: Footer Legal (page-footer.html) === */
/* Este estilo usa el ID "page-footer" y clona
  la apariencia de "page-select-zone" para
  mostrar el texto legal.
*/
#page-footer {
    --primary-green-light: var(--global-light-green); /* <--- MODIFICADO */
    --primary-green-dark: #3A7D44;
    --text-dark: #333333;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --border-radius-card: 20px;
    --border-radius-button: 15px;
    --filter-black-to-green: brightness(0) saturate(100%) invert(35%) sepia(34%) saturate(1450%) hue-rotate(82deg) brightness(93%) contrast(88%);
    --filter-black-to-white: brightness(0) invert(1);
    background-color: var(--primary-green-light);
}

#page-footer .container {
    /* Estilo de contenedor estándar (como userDetail o mapCasos) */
    width: 100%;
    max-width: 414px;
    height: 850px;
    background: var(--bg-light); /* Fondo blanco */
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header (se mantiene igual) */
#page-footer .header {
    padding: 40px 30px 20px 30px;
    text-align: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0; /* No encoger el header */
    border-bottom: 1px solid var(--border-color); /* Separador */
    background: var(--bg-white);
}
#page-footer .back-button {
    background: none;
    border: none;
    position: absolute;
    top: 45px;
    left: 30px;
    cursor: pointer;
}
#page-footer .back-icon { 
    width: 12px; 
    height: 20px; 
}
#page-footer .title { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--text-dark);
}

/* Área de contenido para el texto legal */
#page-footer .main-content {
    flex-grow: 1;
    overflow-y: auto; 
    padding: 30px;
    background: var(--bg-white);
    padding-bottom: 120px; 
}

#page-footer .nav-item {
    font-size: 0.9rem;
    color: var(--bg-white);
    line-height: 1.6;
    border-radius: var(--border-radius-button);
}

#page-footer .bottom-nav {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--primary-green-light);
    padding: 15px 0 20px 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

#page-footer .nav-icon-img {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    object-fit: contain;
    filter: var(--filter-black-to-white);
}

#page-footer .nav-item.active {
    background: var(--bg-white);
    color: var(--primary-green-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px); 
}

#page-footer .nav-item.active .nav-icon-img {
    filter: var(--filter-black-to-green);
}


/* =================================
   ===== Estilos del Pop-up de Ubicación =====
   ================================= */

/* El fondo oscuro semitransparente */
.popup-overlay {
    position: fixed; /* Usamos fixed para cubrir toda la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro translúcido */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Asegura que esté por encima de todo */
    padding: 20px;
    box-sizing: border-box; /* Para que el padding no afecte el ancho */
}

/* La ventana (modal) en sí */
.popup-modal {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    max-width: 300px; /* Límite de ancho en pantallas grandes */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Animación sutil de aparición */
    transform: scale(0.95);
    opacity: 0;
    animation: fadeInScale 0.2s ease-out forwards;
}

/* Animación */
@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


.popup-icon {
    margin-bottom: 12px;
    /* Ajusta el color del ícono si es necesario. 
       Para SVG usarías 'fill', para PNG (como este) puedes usar 'filter'
       o simplemente elegir un ícono del color correcto. */
}

.popup-modal h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem; /* 20px */
    color: #333;
}

.popup-modal p {
    margin: 0 0 24px 0;
    font-size: 0.9rem; /* 14px */
    color: #666;
    line-height: 1.4;
}

.popup-buttons {
    display: flex;
    gap: 10px; /* Espacio entre botones */
}

.popup-btn {
    flex: 1; /* Hace que ambos botones ocupen el mismo espacio */
    padding: 12px;
    font-size: 1rem; /* 16px */
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-deny {
    background-color: #f0f0f0; /* Gris claro */
    color: #555;
}

.btn-deny:hover {
    background-color: #e0e0e0;
}

.btn-accept {
    /* Intento usar el color coral de tu app :) */
    background-color: var(--primary-coral, #FF6B6B); 
    color: white;
}

.btn-accept:hover {
    background-color: var(--primary-coral-dark, #e05a5a);
}