/* ============================================================================
 * association.css — Página "La Asociación" (info corporativa de la entidad)
 * ----------------------------------------------------------------------------
 * Extraído del <style> inline de association.php en la armonización G1
 * (Lote 3). Usa tokens de _tokens.css.
 *
 * EXCEPCIÓN CROMÁTICA INTENCIONAL — DECISIÓN DEL FOUNDER:
 *   Esta página mantiene una paleta multicolor (no all-blue) en mission
 *   cards, board cards y funds steps. La diferenciación cromática transmite
 *   información: cada misión, cada miembro de la junta y cada paso del flujo
 *   de fondos tienen su propio color para reforzar la identidad visual.
 *   Esto NO es deuda técnica — es decisión de diseño validada por David.
 *   No "corregir" a all-blue en futuras pasadas.
 *
 * Cambios respecto al inline original:
 *   1. Eliminado :root local (7 variables) — todas reemplazadas por tokens.
 *   2. HERO migrado de teal/verde (linear-gradient #1e3a5f, --teal, --teal-dark)
 *      a azul corporativo (blue-900, blue-700, blue-500). Coherente con el
 *      resto de archivos refactorizados (terms-privacy, my-story, etc.).
 *      Botón "Descargar Estatutos" también migrado al mismo gradient azul
 *      tras revisión visual en staging (decisión founder).
 *   3. Eliminados 29 style="..." inline del HTML, sustituidos por las clases
 *      definidas aquí abajo (.section-title-h2, .grad-care, .role-president,
 *      .container-narrow-*, etc.).
 *   4. Tokens legacy se usan (--color-red, --color-green, --color-violet-dark,
 *      --color-pink, --color-teal) en mission/board/funds porque corresponden
 *      a valores idénticos a los originales — cero regresión visual.
 *   5. Colores SIN equivalente exacto en tokens (#f59e0b, #1e3a5f, #06b6d4,
 *      #a855f7) se mantienen hardcoded con comentario justificativo. Son
 *      decoración específica de esta página.
 * ============================================================================ */


/* ───────────────────────────────────────────────────────────────────────────
 * Body
 * ─────────────────────────────────────────────────────────────────────────── */
body {
    background: var(--bg-body);
}


/* ───────────────────────────────────────────────────────────────────────────
 * Containers de ancho personalizado (sustituyen style="max-width: ..." inline)
 * ─────────────────────────────────────────────────────────────────────────── */
.container-narrow-700 {
    max-width: 700px;
}

.container-narrow-800 {
    max-width: 800px;
}


/* ───────────────────────────────────────────────────────────────────────────
 * Títulos y subtítulos de sección (sustituyen style="..." inline en h2/h3/p)
 * ─────────────────────────────────────────────────────────────────────────── */
.section-title-h2 {
    font-weight: 800;
    color: var(--text-primary);
}

.section-title-h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-subtitle-muted {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-text-muted {
    color: var(--text-muted);
    margin-bottom: 25px;
}


/* ───────────────────────────────────────────────────────────────────────────
 * Hero — migrado a azul corporativo (decisión founder)
 * ─────────────────────────────────────────────────────────────────────────── */
.assoc-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-blue-900) 0%, var(--color-blue-700) 50%, var(--color-blue-500) 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}

.assoc-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Patrón de cruces blancas tenues. Color/opacidad hardcoded por SVG inline */
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.assoc-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
}

.assoc-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.assoc-hero .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 750px;
    margin: 0 auto;
}

.assoc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}


/* ───────────────────────────────────────────────────────────────────────────
 * Mission cards (3 misiones — paleta multicolor intencional)
 * ─────────────────────────────────────────────────────────────────────────── */
.mission-section {
    padding: 80px 0;
    background: var(--color-white);
}

.mission-card {
    background: var(--bg-body);
    border-radius: var(--radius-xl);
    padding: 35px;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-blue-700);
}

.mission-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mission-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}


/* ───────────────────────────────────────────────────────────────────────────
 * Gradientes decorativos (compartidos entre mission cards y funds steps)
 *
 * Color codes:
 *   .grad-care     — apoyo/donación   → ámbar a rojo (calor, emoción humana)
 *   .grad-tech     — tecnología/expediente → azul a violeta (digital)
 *   .grad-research — investigación/pago → verde (ciencia, acción positiva)
 *   .grad-control  — control/auditoría → violeta a rosa (revisión, supervisión)
 *
 * Algunos colores no tienen token canónico exacto y se mantienen hardcoded
 * como decoración intencional específica de esta página (decisión founder).
 * ─────────────────────────────────────────────────────────────────────────── */

/* Ámbar a rojo. #f59e0b no está en tokens canónicos (es ámbar más vivo que
   --color-warning #d97706); se mantiene hardcoded para preservar el tono
   exacto del diseño actual. */
.grad-care {
    background: linear-gradient(135deg, #f59e0b, var(--color-red));
}

/* Azul canónico a violeta legacy. Ambos en tokens. */
.grad-tech {
    background: linear-gradient(135deg, var(--color-blue-400), var(--color-violet-dark));
}

/* Verde a verde oscuro. Ambos en tokens (legacy y semántico). */
.grad-research {
    background: linear-gradient(135deg, var(--color-green), var(--color-success));
}

/* Violeta a rosa, ambos en tokens legacy. */
.grad-control {
    background: linear-gradient(135deg, var(--color-violet-dark), var(--color-pink));
}


/* ───────────────────────────────────────────────────────────────────────────
 * Board (Junta Directiva) — 4 cards con paleta diferenciada
 * ─────────────────────────────────────────────────────────────────────────── */
.board-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.board-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.board-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--color-white);
}

.board-card h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.board-role {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.board-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Gradients de iconos por cargo. #1e3a5f, #a855f7, #06b6d4 no tienen token
   canónico exacto — se mantienen hardcoded como decoración intencional. */
.board-icon-president {
    background: linear-gradient(135deg, #1e3a5f, var(--color-blue-500));
}

.board-icon-secretary {
    background: linear-gradient(135deg, var(--color-violet-dark), #a855f7);
}

.board-icon-treasurer {
    background: linear-gradient(135deg, var(--color-teal), #06b6d4);
}

.board-icon-committee {
    background: linear-gradient(135deg, var(--color-red), #f59e0b);
}

/* Color del role bajo el nombre del cargo */
.role-president {
    color: var(--color-blue-500);
}

.role-secretary {
    color: var(--color-violet-dark);
}

.role-treasurer {
    color: var(--color-teal);
}

.role-committee {
    color: var(--color-red);
}


/* ───────────────────────────────────────────────────────────────────────────
 * How Funds Work — 4 pasos numerados con paleta diferenciada
 * ─────────────────────────────────────────────────────────────────────────── */
.funds-section {
    padding: 80px 0;
    background: var(--color-white);
}

.funds-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--bg-subtle);
}

.funds-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-white);
    flex-shrink: 0;
}

.funds-step h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.funds-step p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Los step-number-1/2/3 reutilizan los gradientes definidos arriba (mission
   cards usan los mismos colores). Step-number-4 es único de funds. */


/* ───────────────────────────────────────────────────────────────────────────
 * Registry section (datos registrales)
 * ─────────────────────────────────────────────────────────────────────────── */
.registry-section {
    padding: 60px 0;
    /* Verde menta muy claro — residuo de cuando había un token --bg-teal-soft.
       Se mantiene hardcoded por ser decoración específica. */
    background: #f0fdf4;
}

.registry-box {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.registry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-subtle);
}

.registry-item:last-child {
    border-bottom: none;
}

.registry-item strong {
    color: var(--text-primary);
    min-width: 180px;
}

.registry-item span {
    color: var(--text-muted);
}

.registry-email {
    color: var(--color-teal);
    text-decoration: none;
    font-weight: 600;
}

.registry-email:hover {
    color: var(--color-teal-dark);
    text-decoration: underline;
}


/* ───────────────────────────────────────────────────────────────────────────
 * Statutes download section (zona "abajo del todo" — degradado mantenido)
 * ─────────────────────────────────────────────────────────────────────────── */
.statutes-section {
    padding: 60px 0;
    background: var(--bg-body);
}

/* Botón principal: mismo degradado azul corporativo que el hero (decisión
   founder revisada tras ver staging — el azul→teal no convencía). */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-blue-900) 0%, var(--color-blue-700) 50%, var(--color-blue-500) 100%);
    color: var(--color-white);
    padding: 16px 35px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    /* rgba literal de var(--color-blue-700) #0056a3 con alpha 0.3 */
    box-shadow: 0 4px 15px rgba(0, 86, 163, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    /* rgba literal de var(--color-blue-700) #0056a3 con alpha 0.4 */
    box-shadow: 0 8px 25px rgba(0, 86, 163, 0.4);
    color: var(--color-white);
}

/* Botón secundario (Portal de Transparencia): mismo estilo pero gradiente
   azul-violeta para diferenciarlo del primario. */
.btn-download-secondary {
    background: linear-gradient(135deg, var(--color-blue-900), var(--color-violet-dark));
    margin-left: 12px;
}

.btn-download-secondary:hover {
    /* Sin sombra teal específica aquí — usa la misma transición */
}


/* ───────────────────────────────────────────────────────────────────────────
 * CTA section final
 * ─────────────────────────────────────────────────────────────────────────── */
.assoc-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-slate-800) 0%, var(--color-slate-700) 100%);
    color: var(--color-white);
    text-align: center;
}

.assoc-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.assoc-cta p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Botón "Donar ahora" — gradient cálido (es el botón de donación). Coherente
   con var(--gradient-donate) del sistema. */
.btn-cta-donate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-donate);
    color: var(--color-white);
    padding: 16px 35px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-donate:hover {
    transform: translateY(-2px);
    color: var(--color-white);
}

/* Botón "Nuestra historia" — outline blanco transparente */
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--color-white);
    padding: 14px 33px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}


/* ───────────────────────────────────────────────────────────────────────────
 * Responsive
 * ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .assoc-hero {
        padding: 80px 0 60px;
    }

    .assoc-hero h1 {
        font-size: 2.2rem;
    }

    .registry-item {
        flex-direction: column;
        gap: 4px;
    }

    .registry-item strong {
        min-width: auto;
    }

    .btn-download-secondary {
        margin-left: 0;
        margin-top: 12px;
    }
}
