/* CSS RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F8F5F0;        /* Fondo crema cálido */
    --text-color: #2D2522;      /* Texto oscuro carbón */
    --accent-color: #A36A4C;    /* Acento terracota */
    --muted-color: #8C8275;     /* Gris andino para textos secundarios */
    --light-card-bg: #EFECE5;   /* Fondo ligeramente oscuro para tarjetas */
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   HEADER & NAVIGATION (Caja flotante inteligente)
   ========================================= */
header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(0); 
    
    width: 90%;
    max-width: 1000px; 
    padding: 1rem 2.5rem;
    border-radius: 50px;
    
    /* EL CAMBIO ESTÁ AQUÍ: 
       Mismo degradado beige de la cita, pero con 90% de opacidad (0.9) 
       para mantener la elegancia del menú flotante */
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.9) 0%, rgba(227, 219, 203, 0.9) 100%); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    
    /* Borde ligeramente café para combinar con el beige */
    border: 1px solid rgba(187, 175, 160, 0.356);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; 
    
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.header-hidden {
    transform: translateX(-50%) translateY(-150%);
}



/* =========================================
   TEXTOS DEL MENÚ FLOTANTE
   ========================================= */
.logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    color: #2D2522;
}

.logo span {
    
    color: #2D2522;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* AQUÍ EL CAMBIO: Un tono taupe/café suave para los enlaces inactivos */
    color: rgb(92, 79, 71); 
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    /* La línea inferior usa el mismo terracota del logo */
    background-color: #1f5e0c; 
    transition: var(--transition);
}

nav a:hover, nav a.active {
    /* Cuando pasas el mouse o la pestaña está activa, el texto resalta en carbón */
    color: #25381a; 
}

nav a.active::after, nav a:hover::after {
    width: 100%;
}

/* =========================================
   HERO DARK ELEGANCE (Estilo image_83e58a)
   ========================================= */

/* Colores específicos de esta sección */
.hero-dark {
    --dark-bg: #0B1713;        /* Fondo verde bosque casi negro */
    --gold-text: #E3D3C1;      /* Texto principal arena/dorado */
    --muted-gold: #9CA89B;     /* Textos secundarios en verde salvia apagado */
    --accent-color: #1A3026;   /* Verde oscuro para el arco */
    
    background-color: var(--dark-bg);
    color: var(--gold-text);
    position: relative;
    padding: 6rem max(1.5rem, calc((100% - 1200px) / 2));
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    min-height: 85vh;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    /* Resplandor adaptado al verde */
    background: radial-gradient(circle, rgba(26, 48, 38, 0.6) 0%, rgba(11, 23, 19, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    /* Le quitamos el padding-left que tenía antes para que la letra "L" 
       de "LA VOZ" se alinee perfectamente con la "D" de "DOLORES" en tu logo superior */
    padding-left: 0; 
}

/* Subtítulo superior con línea */
.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--muted-gold);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-subtitle .line {
    height: 1px;
    width: 40px;
    background-color: var(--muted-gold);
}

/* Título principal tipográfico */
.hero-dark h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    font-weight: 400;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero-dark h1 .italic-text {
    font-style: italic;
    text-transform: lowercase;
    font-size: 1.1em;
    padding-right: 0.2em; /* Compensación visual para la cursiva */
}

.hero-dark h1 .star {
    font-size: 0.4em;
    vertical-align: middle;
    color: var(--gold-text);
}

/* Párrafo descriptivo */
.hero-dark p {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted-gold);
    max-width: 450px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Botones (Outline dorado y texto simple) */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--muted-gold);
    border-radius: 50px; /* Bordes redondeados tipo pastilla */
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--gold-text);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--gold-text);
    color: var(--dark-bg);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--muted-gold);
    transition: var(--transition);
}

.btn-secondary:hover {
    color: var(--gold-text);
}

/* Área gráfica derecha (El Arco) */
.hero-graphic-area {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    z-index: 2;
}

/* Borde exterior decorativo */
.arch-outline {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid rgba(230, 203, 181, 0.3); /* Línea dorada sutil */
    border-radius: 250px 250px 0 0; /* Forma de arco */
    pointer-events: none;
    z-index: 1;
}

/* Contenedor principal de la imagen */
.arch-image-container {
    width: 100%;
    height: 100%;
    background-color: var(--accent-color); /* Usa el nuevo color de acento */
    border-radius: 250px 250px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.arch-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto llene el arco sin deformarse */
}

/* Placeholder temporal (eliminar cuando pongas la foto) */
.image-placeholder {
    color: rgba(230, 203, 181, 0.5);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Insignia Circular (El sello inferior derecho) */
.circular-badge {
    position: absolute;
    bottom: -20px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(230, 203, 181, 0.4);
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    /* Animación de rotación muy lenta y elegante */
    animation: spin 20s linear infinite;
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Deshacer la rotación para que el texto se lea recto */
    animation: spin-reverse 20s linear infinite;
}

.badge-initials {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
    color: var(--gold-text);
}

.badge-text {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--muted-gold);
    margin-top: 5px;
}

/* Animaciones para el sello */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

/* =========================================
   SECTION: INTRO QUOTE (Estilo Editorial Beige)
   ========================================= */

.intro-quote {
    width: 100%;
    /* Degradado lineal: de beige muy claro a beige más oscuro/tostado */
    background: linear-gradient(135deg, #FDFBF7 0%, #E3DBCB 100%);
    padding: 7rem 1.5rem;
    text-align: center;
    /* Sombra interior sutil para dar la sensación de textura */
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.02);
}

.intro-quote-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Cabecera decorativa (Línea - Estrella - Texto - Estrella - Línea) */
.quote-decorative-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

.deco-line {
    height: 1px;
    width: 60px; /* Largo de las líneas laterales */
    background-color: rgba(45, 37, 34, 0.3); /* Línea oscura semitransparente */
}

.deco-star {
    font-size: 0.8rem;
    color: #2D2522; /* Color carbón oscuro */
}

.deco-title {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.35em; /* Separación amplia entre letras */
    text-transform: uppercase;
    color: #2D2522;
}

/* Estilos de la frase */
.intro-quote blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Se adapta al tamaño de pantalla */
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: #2D2522; /* Texto oscuro para contrastar sobre el beige */
}

/* Autor de la frase */
.intro-quote cite {
    display: inline-block;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #5A4D45; /* Tono café ceniza, sutilmente más claro que la frase */
    font-weight: 500;
    padding-top: 1.5rem;
    /* Pequeña línea superior encima del nombre */
    border-top: 1px solid rgba(45, 37, 34, 0.2); 
}

.intro-quote blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.intro-quote cite {
    font-style: normal;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    font-weight: 600;
}

/* =========================================
   SECTION: TEASER CARDS (Verde Bosque y Textura)
   ========================================= */

.exploration {
    width: 100%;
    /* Fondo verde oscuro */
    background-color: #0B1713;
    
    /* Textura en Base64 mezclada con un degradado sutil */
    background-image: 
        url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMjAwIDIwMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48ZmlsdGVyIGlkPSdub2lzZUZpbHRlcic+PGZlVHVyYnVsZW5jZSB0eXBlPSdmcmFjdGFsTm9pc2UnIGJhc2VGcmVxdWVuY3k9JzAuOCcgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNub2lzZUZpbHRlciknIG9wYWNpdHk9JzAuMDYnLz48L3N2Zz4="),
        linear-gradient(135deg, #0F1E19 0%, #0B1713 100%);
    background-blend-mode: overlay, normal;
    
    /* Ocupa todo el ancho pero centra el contenido a 1200px */
    padding: 8rem max(1.5rem, calc((100% - 1200px) / 2));
    margin: 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

/* Cabecera Decorativa del Título */
.header-decorative-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.header-decorative-dark .deco-line {
    height: 1px;
    width: 60px;
    background-color: rgba(227, 211, 193, 0.2); /* Línea dorada semitransparente */
}

.header-decorative-dark .deco-star {
    font-size: 0.8rem;
    color: #E3D3C1; /* Dorado claro */
}

.header-decorative-dark h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem; /* Aumentamos el tamaño (antes era 1.1rem) */
    letter-spacing: 0.25em; /* Ajustamos un poco el espaciado para que se vea balanceado */
    text-transform: uppercase;
    color: #E3D3C1;
    font-weight: 400;
}

.section-header p {
    color: #9CA89B; /* Verde salvia claro para el texto secundario */
    font-size: 1rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

.grid-teasers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Diseño de las Tarjetas (Cards) */
.card {
    background-color: #FDFBF7; /* Fondo CLARO (beige crema elegante) */
    border: 1px solid rgba(45, 37, 34, 0.05);
    padding: 3.5rem 2.5rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Sombra suave */
}

.card:hover {
    transform: translateY(-5px);
    background-color: #F4EFE6; /* Se oscurece ligerísimamente al pasar el mouse */
    border-color: rgba(45, 37, 34, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.card-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: rgba(168, 100, 66, 0.2); /* Número terracota muy transparente como marca de agua */
    margin-bottom: 1.5rem;
    font-style: italic;
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #2D2522; /* Texto oscuro carbón para máximo contraste */
}

.card p {
    color: #5A4D45; /* Café ceniza oscuro para el texto descriptivo */
    font-size: 0.95rem;
    margin-bottom: 3rem;
    flex-grow: 1;
    font-weight: 300;
    line-height: 1.7;
}

.card-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2D2522; /* Enlace oscuro */
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    border-top: 1px solid rgba(45, 37, 34, 0.1); /* Línea divisoria oscura */
    padding-top: 1.5rem;
}

.card:hover .card-link {
    color: #A86442; /* Cambia a color terracota al pasar el cursor */
}

.card:hover .card-link svg {
    transform: translateX(5px);
}


/* =========================================
   FOOTER (Estilo Banner Editorial)
   ========================================= */

footer {
    width: 100%;
    /* Fondo beige cálido que conecta con el resto del diseño */
    background-color: #FDFBF7; 
    padding: 5rem 1.5rem 2rem 1.5rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Contenedor principal que alinea las líneas y el texto */
.footer-decorative-banner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* La magia de las líneas extensibles */
.footer-line {
    flex-grow: 1; /* Esto obliga a la línea a estirarse hasta los bordes de la pantalla */
    height: 1px;
    background-color: rgba(168, 100, 66, 0.4); /* Terracota semitransparente */
}

.footer-star {
    color: #A86442; /* Color terracota puro */
    font-size: 1.2rem;
}

.footer-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.4em; /* Tracking (espaciado) muy amplio como en la referencia */
    text-transform: uppercase;
    color: #8C7C70; /* Color taupe/café ceniza para mantener la sutileza */
    white-space: nowrap; /* Evita que el texto colapse en dos renglones */
}

/* Texto miniatura inferior */
.footer-bottom {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8C7C70;
    opacity: 0.6;
}

/* Ajuste responsive para que no se rompa en teléfonos */
@media (max-width: 768px) {
    .footer-decorative-banner {
        gap: 0.8rem;
    }
    
    .footer-text {
        font-size: 0.65rem;
        letter-spacing: 0.25em;
    }
    
    .footer-star {
        font-size: 0.8rem;
    }
    
    .footer-line {
        min-width: 10px; /* Asegura que la línea siempre exista aunque la pantalla sea minúscula */
    }
}




/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .hero-dark {
        grid-template-columns: 1fr;
        padding: 4rem 1.5rem;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-subtitle, .hero-actions {
        justify-content: center;
    }
    
    .hero-text {
        padding-left: 0;
    }
    
    .arch-outline {
        display: none; /* Ocultamos el borde extra en móviles para ahorrar espacio */
    }
    
    .circular-badge {
        right: 10px;
        bottom: -10px;
        width: 100px;
        height: 100px;
    }

    .grid-teasers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    header {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =========================================
   ESTILOS DEL MENÚ HAMBURGUESA (Definitivo)
   ========================================= */

/* Por defecto en PC el botón de hamburguesa está oculto */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    z-index: 100;
}

/* Las tres líneas del botón hamburguesa (color oscuro para que contraste con el header claro) */
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #2D2522;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ESTILOS PARA MÓVILES (Pantallas menores a 900px) */
@media (max-width: 900px) {
    /* Forzamos al header flotante a mantenerse en una fila: Logo a la izq y Botón a la der */
    header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 90% !important;
        padding: 1rem 1.5rem !important;
    }

    /* Mostramos el botón de hamburguesa en celulares */
    .menu-toggle {
        display: flex;
    }

    /* Ocultamos el menú de navegación por defecto y lo convertimos en desplegable flotante */
    .nav-menu {
        position: absolute;
        top: calc(100% + 15px); /* Se despliega justo debajo del header flotante */
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(253, 251, 247, 0.95) 0%, rgba(227, 219, 203, 0.95) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(187, 175, 160, 0.356);
        border-radius: 20px;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

    /* Cuando JavaScript añade la clase 'active', el menú se despliega suavemente */
    .nav-menu.active {
        max-height: 300px;
        padding: 1.5rem 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-menu ul li a {
        font-size: 0.95rem;
        letter-spacing: 0.15em;
        color: #2D2522;
    }

    /* Animación: Las líneas de la hamburguesa se convierten en una "X" elegante cuando está abierto */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}


/* =========================================
   RESPONSIVO PARA LA SECCIÓN DE ORGANIZACIÓN
   ========================================= */
@media (max-width: 900px) {
    .community-organization {
        padding: 4rem 1.5rem; /* Ajusta los espacios en pantallas pequeñas */
    }

    .org-grid {
        grid-template-columns: 1fr !important; /* Pasa de 2 columnas a 1 sola columna vertical */
        gap: 2rem !important; /* Espacio limpio entre las tarjetas */
    }

    .org-item {
        padding: 2rem 1.5rem; /* Hace que el contenido interno respire mejor en móviles */
    }
}