/* ==========================================================================
   1. VARIABLES DE COLOR EXACTAS DE LA IMAGEN
   ========================================================================== */
:root {
    --bg-page: #fdfbf7;         /* Fondo crema/off-white de la imagen */
    --bg-nav: #09141f;          /* Azul noche profundo para la Navbar y Footer */
    --bg-card: #0d1e2d;         /* Azul oscuro institucional para los recuadros */
    --accent-wine: #800020;     /* Vino/Borgoña sofisticado */
    --accent-wine-hover: #5c0017;
    --text-dark: #0f172a;       /* Títulos principales */
    --text-muted: #4a5568;      /* Texto de los párrafos en fondo claro */
    --text-light: #ffffff;      /* Texto dentro de la Navbar y Tarjetas */
    --border-card: #1e3a5f;     /* Borde azulado para los recuadros */
}

/* ==========================================================================
   2. RESETS Y TIPOGRAFÍA GENERAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Estructura de Contenedores */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    width: 100%; 
}

.container-narrow { 
    max-width: 750px; 
    margin: 0 auto; 
    width: 100%; 
}

/* ==========================================================================
   3. BARRA DE NAVEGACIÓN (ESTILO IMAGEN DE REFERENCIA)
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    background-color: var(--bg-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo img {
    max-height: 40px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li { 
    margin-left: 30px; 
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid var(--accent-wine);
}

/* Botón Give / Donate de la Navbar */
.nav-donate-btn {
    background-color: var(--accent-wine) !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 2px;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.nav-donate-btn:hover {
    background-color: var(--accent-wine-hover) !important;
    border-bottom: none !important;
}

/* Elemento oculto por defecto en escritorio (Menú Hamburguesa) */
.menu-toggle {
    display: none;
}

/* ==========================================================================
   4. SECCIÓN HERO (PÁGINA PRINCIPAL)
   ========================================================================== */
.hero {
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(rgba(253, 251, 247, 0.85), rgba(253, 251, 247, 0.98)), url('images/idea1.jpg') no-repeat center center/cover;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-align: center;
}

.hero h1 .italic-serif {
    font-style: italic;
    color: var(--accent-wine);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-cta {
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-cta.primary {
    background-color: var(--accent-wine);
    color: #ffffff;
}

.btn-cta.primary:hover {
    background-color: var(--accent-wine-hover);
}

.btn-cta.secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
}

/* ==========================================================================
   5. SECCIONES Y TEXTOS (ALINEACIÓN GLOBAL CENTRADA)
   ========================================================================== */
section { 
    padding: 90px 6%; 
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 35px;
    text-align: center; 
    width: 100%;
}

.section-title span, 
.section-text.text-large span {
    color: var(--accent-wine);
}

.section-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 30px;
}

.section-text.text-large {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    line-height: 1.4;
    margin-bottom: 45px;
    text-align: center;
}

/* ==========================================================================
   6. BLOQUES Y RECUADROS (ESTILO INSTITUCIONAL DE LA IMAGEN)
   ========================================================================== */
.confession-content, 
.board-grid {
    margin-top: 50px;
}

.tradition-box, 
.member-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 35px;
    border-radius: 4px;
    margin-bottom: 30px;
    color: var(--text-light);
    text-align: left;
}

.tradition-box h3, 
.member-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
}

.tradition-box p, 
.member-info .role {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reajuste de Grid para Mission Partners */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.member-card {
    padding: 0;
    overflow: hidden;
}

.member-image-container {
    width: 100%;
    height: 300px;
}

.member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 25px 20px;
}

/* ==========================================================================
   7. REPRODUCTOR DE VIDEO
   ========================================================================== */
.video-section {
    background-color: #f4f1ea; 
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.1);
}

.video-container video {
    width: 100%;
    display: block;
}

/* ==========================================================================
   8. INTERFAZ MEJORADA PARA LA PÁGINA DE CONTACTO
   ========================================================================== */
.contact-page-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

.form-group input, 
.contact-form textarea {
    width: 100%;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-radius: 4px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-wine);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.btn-submit {
    background-color: var(--accent-wine);
    color: #ffffff;
    border: none;
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    align-self: center;
    min-width: 220px;
}

.btn-submit:hover {
    background-color: var(--accent-wine-hover);
}

/* ==========================================================================
   9. INTERFAZ MEJORADA PARA LA PÁGINA DE DONACIONES
   ========================================================================== */
.donate-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.donate-card {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    max-width: 580px;
    width: 100%;
    padding: 50px 45px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border-radius: 4px;
}

.donate-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}

.donate-lead {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 45px;
    text-align: center;
}

.donation-options h3 {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    padding: 14px 0;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    background-color: #f8fafc;
    border-color: var(--text-dark);
}

.amount-btn.active {
    background-color: var(--accent-wine);
    border-color: var(--accent-wine);
    color: #ffffff;
}

.custom-amount {
    position: relative;
    margin-bottom: 45px;
}

.currency-symbol {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
}

.custom-amount input {
    width: 100%;
    padding: 16px 16px 16px 40px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 1rem;
}

.btn-donate-submit {
    width: 100%;
    background-color: var(--accent-wine);
    color: #ffffff;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-donate-submit:hover { 
    background-color: var(--accent-wine-hover); 
}

.secure-text {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
    background-color: var(--bg-nav);
    text-align: center;
    padding: 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   11. RESPONSIVO MEJORADO (MÓVILES Y TABLETAS)
   ========================================================================== */
@media (max-width: 768px) {
    /* Ajustes Globales de Sección */
    section {
        padding: 60px 5%;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .section-text.text-large {
        font-size: 1.3rem;
    }

    /* Hero Adaptable */
    .hero {
        height: auto;
        min-height: 70vh;
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .btn-cta {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Menú de Navegación Móvil */
    nav {
        padding: 15px 5%;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animación de Hamburguesa a 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-nav);
        align-items: center;
        padding-top: 40px;
        transition: left 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
        width: 80%;
        text-align: center;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom: none;
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .nav-donate-btn {
        display: inline-block !important;
        width: 100%;
    }

    /* Formularios y Donaciones */
    .donate-card {
        padding: 30px 20px;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}