/* ============================================================
   CIMIGEN - Hoja de estilos global unificada
   Paleta institucional: azul #0d6aaa / verde #a7cd82
   ============================================================ */
:root {
    --primary: #0d6aaa;
    --primary-dark: #0a5480;
    --primary-light: #1a8fd4;
    --secondary: #a7cd82;
    --secondary-dark: #8fb86a;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #6c757d;
    --footer-bg: #0a5480;
    --footer-text: #ffffff;
    --footer-link: #a7cd82;
    --radius: 24px;
    --shadow-sm: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.12);
    --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --grad-mix: linear-gradient(135deg, var(--primary), var(--secondary));
}

* { margin: 0; padding: 0; box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif; line-height: 1.6;
    color: var(--text); background: var(--white); overflow-x: hidden;
    max-width: 100%;
}
img { max-width: 100%; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- BOTONES ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 50px; font-weight: 700;
    font-size: 1rem; cursor: pointer; transition: all 0.4s;
    border: none; text-decoration: none; font-family: inherit;
}
.btn-primary { background: var(--secondary); color: var(--dark); box-shadow: 0 10px 30px rgba(167, 205, 130, 0.3); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(167, 205, 130, 0.5); background: var(--secondary-dark); }
.btn-blue { background: var(--primary); color: var(--white); box-shadow: 0 10px 30px rgba(13, 106, 170, 0.3); }
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-4px); box-shadow: 0 15px 40px rgba(13, 106, 170, 0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); transform: translateY(-4px); }
.btn-donate {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--dark); box-shadow: 0 10px 30px rgba(167, 205, 130, 0.45);
    font-size: 1.15rem; padding: 20px 46px;
}
.btn-donate:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 18px 45px rgba(167, 205, 130, 0.6); }
.btn-secondary { background: var(--light); color: var(--text); }
.btn-secondary:hover { background: #e9ecef; transform: translateY(-4px); }

/* ---------- BARRA DE PROGRESO DE SCROLL ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    z-index: 10001; box-shadow: 0 2px 10px rgba(167, 205, 130, 0.5);
}

/* ---------- CURSOR CORAZÓN VERDE ---------- */
.cursor-heart {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99999;
    font-size: 28px; transform: translate(-50%, -50%);
    filter: drop-shadow(0 3px 8px rgba(167, 205, 130, 0.8));
    will-change: transform;
}
.cursor-heart.beating { animation: heartBeat 0.8s ease-in-out infinite; }
@keyframes heartBeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    15% { transform: translate(-50%, -50%) scale(1.4); }
    30% { transform: translate(-50%, -50%) scale(1); }
    45% { transform: translate(-50%, -50%) scale(1.3); }
    60% { transform: translate(-50%, -50%) scale(1); }
}
.cursor-heart.clicking { transform: translate(-50%, -50%) scale(0.5); opacity: 0.6; }
@media (max-width: 768px) {
    .cursor-heart { display: none !important; }
    body { cursor: auto; }
    a, button, .btn { cursor: auto !important; }
}

/* ---------- HEADER PÍLDORA GLOBAL ---------- */
.header-pill {
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    z-index: 10000; width: 93%; max-width: 1400px;
    background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 60px; padding: 12px 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.header-pill.scrolled {
    top: 8px; background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); padding: 8px 30px;
}
.header-pill-container { display: flex; justify-content: space-between; align-items: center; }
.logo-pill { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-pill img { height: 55px; border-radius: 12px; transition: all 0.4s ease; }
.logo-pill:hover img { transform: scale(1.05); }
.logo-pill-text h3 { font-size: 1.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.logo-pill-text span {
    font-size: 0.65rem; color: var(--text-light); font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-pill-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-pill-links a {
    font-weight: 600; font-size: 0.88rem; color: var(--text);
    text-decoration: none; position: relative; padding: 8px 0; transition: all 0.3s ease;
    white-space: nowrap;   /* sin esto "Qué Hacemos" y "Servicios" se parten */
}
.logo-pill-text h3, .logo-pill-text span { white-space: nowrap; }
.nav-pill-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--secondary); transition: width 0.4s ease;
}
.nav-pill-links a:hover::after, .nav-pill-links a.active::after { width: 100%; }
.nav-pill-links a:hover { color: var(--primary); }
.nav-pill-donate {
    background: var(--primary) !important; color: white !important;
    padding: 10px 24px !important; border-radius: 50px !important;
    font-weight: 700 !important; display: inline-flex; align-items: center; gap: 8px;
}
.nav-pill-donate:hover {
    background: var(--primary-dark) !important; transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 106, 170, 0.3);
}
.nav-pill-donate::after { display: none !important; }
.mobile-menu-btn {
    display: none; background: none; border: none;
    font-size: 1.6rem; color: var(--primary); cursor: pointer;
}
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(40px);
    z-index: 9999; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-overlay a {
    font-size: 1.6rem; font-weight: 700; color: var(--primary);
    text-decoration: none; padding: 12px 30px;
}
.mobile-menu-close {
    position: absolute; top: 25px; right: 25px; background: none;
    border: none; font-size: 2rem; color: var(--primary); cursor: pointer;
}

/* ---------- HERO PORTADA (index) ---------- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 106, 170, 0.95) 0%, rgba(26, 143, 212, 0.88) 100%);
    padding: 140px 0 90px;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('img/ultrasonido.jpg') center/cover; opacity: 0.18;
}
.hero-content {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px;
    align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%;
}
.hero-text { color: white; min-width: 0; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px);
    padding: 10px 22px; border-radius: 50px; font-size: 0.9rem;
    margin-bottom: 25px; border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-badge i { color: var(--secondary); }
.hero-text h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800;
    margin-bottom: 20px; line-height: 1.12;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.hero-text h1 span { color: var(--secondary); }
.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: 30px;
    opacity: 0.95; line-height: 1.7; max-width: 550px;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* ── Los dos caminos del hero ─────────────────────────────────────────────
   Tarjetas en vez de botones: cada camino necesita una línea que explique a
   quién le habla. Con dos botones sueltos, "Necesito atención" y "Quiero
   ayudar" se leen igual de importantes y la señora tiene que adivinar cuál
   es el suyo. */
.hero-caminos { display: grid; gap: 14px; max-width: 560px; }
.camino {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; border-radius: var(--radius);
    text-decoration: none; border: 2px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.10); backdrop-filter: blur(6px);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.camino:hover, .camino:focus-visible {
    transform: translateY(-3px); background: rgba(255,255,255,.18);
    box-shadow: var(--shadow-sm); outline: none;
}
.camino-ico {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.35rem; color: #fff;
}
.camino-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.camino-txt strong { color: #fff; font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.camino-txt small { color: rgba(255,255,255,.88); font-size: .84rem; line-height: 1.4; }
.camino-flecha { margin-left: auto; color: rgba(255,255,255,.75); transition: transform .18s ease; }
.camino:hover .camino-flecha { transform: translateX(4px); }

/* El de la paciente pesa más EN REPOSO: es el que resuelve una necesidad
   urgente, y el donativo puede esperar treinta segundos.
   Pero al pasar el dedo o el ratón los DOS reaccionan igual — antes solo el
   verde parecía vivo y el de donar se sentía apagado, como si no se pudiera
   apretar (11-ago-2026). Cada uno se enciende con su propio color. */
.camino-paciente { background: rgba(255,255,255,.20); border-color: var(--secondary); }
.camino-paciente .camino-ico { background: var(--secondary); color: var(--primary-dark); }
.camino-paciente:hover, .camino-paciente:focus-visible {
    background: var(--secondary); border-color: var(--secondary);
}
.camino-paciente:hover .camino-txt strong,
.camino-paciente:hover .camino-txt small,
.camino-paciente:hover .camino-flecha { color: var(--primary-dark); }
.camino-paciente:hover .camino-ico { background: var(--primary-dark); color: #fff; }

.camino-donante .camino-ico { background: rgba(255,255,255,.22); }
.camino-donante:hover, .camino-donante:focus-visible {
    background: #fff; border-color: #fff;
}
.camino-donante:hover .camino-txt strong,
.camino-donante:hover .camino-flecha { color: var(--primary); }
.camino-donante:hover .camino-txt small { color: var(--text-light); }
.camino-donante:hover .camino-ico { background: var(--primary); color: #fff; }

@media (max-width: 640px) {
    .hero-caminos { max-width: 100%; }
    .camino { padding: 15px 16px; gap: 13px; }
    .camino-ico { width: 46px; height: 46px; font-size: 1.15rem; }
}

.hero-image { position: relative; min-width: 0; }
.hero-image img {
    border-radius: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    width: 100%; object-fit: cover; aspect-ratio: 4/3;
}
.hero-stats {
    position: absolute; bottom: -30px; left: -30px;
    background: white; padding: 22px 32px; border-radius: 20px;
    box-shadow: var(--shadow-md); display: flex; gap: 35px;
}
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 2.3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 5px; }

/* ---------- HERO INTERIOR (páginas internas) ---------- */
.page-hero {
    position: relative; overflow: hidden; color: white;
    padding: 170px 0 90px; text-align: center;
    background: linear-gradient(135deg, rgba(13, 106, 170, 0.93) 0%, rgba(10, 84, 128, 0.9) 100%);
}
.page-hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0.22; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.page-hero h1 span { color: var(--secondary); }
.page-hero p { font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 760px; margin: 0 auto; opacity: 0.95; }
.page-hero .btn { margin-top: 30px; }

/* ---------- SECCIONES ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--light); }
.section-title { text-align: center; margin-bottom: 65px; }
.section-title h2 {
    font-size: clamp(1.9rem, 4vw, 3rem); color: var(--primary);
    margin-bottom: 18px; position: relative; display: inline-block;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 4px; background: var(--secondary); border-radius: 2px;
}
.section-title p { font-size: 1.15rem; color: var(--text-light); max-width: 700px; margin: 28px auto 0; }

/* ---------- TARJETAS DE IMPACTO ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.impact-card {
    background: var(--white); padding: 45px 25px; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow-sm); transition: all 0.5s;
    position: relative; overflow: hidden;
}
.impact-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0); transition: transform 0.5s ease;
}
.impact-card:hover::before { transform: scaleX(1); }
.impact-card:hover { transform: translateY(-15px); box-shadow: var(--shadow-md); }
.impact-icon {
    width: 85px; height: 85px; background: var(--grad-brand);
    border-radius: 25px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px; font-size: 2.3rem; color: var(--white); transition: all 0.5s ease;
}
.impact-card:hover .impact-icon { transform: scale(1.15) rotate(8deg); border-radius: 50%; }
.impact-number { font-size: 3.2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 12px; }
.impact-label { font-size: 1.05rem; color: var(--text-light); font-weight: 500; }

/* ---------- PROGRAMAS TIMELINE HORIZONTAL ---------- */
.timeline-horizontal {
    position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 25px; margin-top: 60px; padding-top: 60px;
}
.timeline-horizontal::before {
    content: ''; position: absolute; top: 30px; left: 5%; right: 5%;
    height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}
.timeline-h-item {
    position: relative; text-align: center; padding: 30px 20px;
    background: white; border-radius: 20px; box-shadow: var(--shadow-sm);
    transition: all 0.4s ease; cursor: pointer;
    display: flex; flex-direction: column;
}
.timeline-h-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.timeline-h-photo {
    width: 100%; height: 150px; object-fit: cover; border-radius: 14px; margin-bottom: 18px;
}
.timeline-h-dot {
    position: absolute; top: -45px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 30px; background: var(--secondary);
    border: 5px solid white; border-radius: 50%;
    box-shadow: 0 5px 20px rgba(167, 205, 130, 0.4); transition: all 0.4s ease;
}
.timeline-h-item:hover .timeline-h-dot { transform: translateX(-50%) scale(1.3); background: var(--primary); }
.timeline-h-item h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 10px; }
.timeline-h-item p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; flex: 1; }
.timeline-h-btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    color: var(--primary); font-weight: 600; text-decoration: none;
    transition: all 0.3s ease; font-size: 0.9rem;
}
.timeline-h-btn:hover { gap: 15px; color: var(--primary-dark); }

/* ---------- ¿CÓMO PUEDES AYUDAR? (4 en fila) ---------- */
.help-section { background: var(--grad-brand); color: var(--white); position: relative; overflow: hidden; }
.help-section::before {
    content: ''; position: absolute; inset: 0;
    background: url('img/enfermera-pacientes.jpg') center/cover; opacity: 0.08;
}
.help-content { position: relative; z-index: 2; text-align: center; max-width: 1200px; margin: 0 auto; }
.help-content h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 20px; }
.help-content > p { font-size: 1.15rem; margin-bottom: 40px; opacity: 0.95; }
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; align-items: start; }
.help-card-expandable {
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius);
    overflow: hidden; transition: all 0.4s ease; text-align: left;
}
.help-card-expandable:hover {
    background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-8px);
}
.help-card-expandable.active {
    background: rgba(255, 255, 255, 0.15); border-color: var(--secondary);
    box-shadow: 0 20px 60px rgba(167, 205, 130, 0.3);
}
.help-card-header { padding: 30px 24px; cursor: pointer; position: relative; }
.help-icon-wrapper {
    width: 64px; height: 64px; background: rgba(167, 205, 130, 0.25);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--secondary); margin-bottom: 18px; transition: all 0.4s ease;
}
.help-card-expandable.active .help-icon-wrapper {
    background: var(--secondary); color: var(--dark);
    transform: scale(1.12) rotate(360deg); border-radius: 20px;
}
.help-card-header h4 { font-size: 1.3rem; color: white; margin-bottom: 8px; font-weight: 700; }
.help-card-preview { font-size: 0.9rem; opacity: 0.75; }
.help-arrow {
    position: absolute; top: 30px; right: 24px; font-size: 1.2rem;
    color: var(--secondary); transition: transform 0.4s ease;
}
.help-card-expandable.active .help-arrow { transform: rotate(180deg); }
.help-card-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px; font-size: 0.95rem;
}
.help-card-expandable.active .help-card-body { max-height: 900px; padding: 0 24px 30px; }
.help-card-body ul { list-style: none; padding: 0; margin: 15px 0; }
.help-card-body li {
    padding: 10px 0; color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.help-card-body li:last-child { border-bottom: none; }
.help-card-body li i { color: var(--secondary); margin-right: 10px; }
.donation-options { display: grid; gap: 12px; margin: 15px 0; }
.donation-option {
    background: rgba(255, 255, 255, 0.1); padding: 16px;
    border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.15);
}
.donation-option h5 { color: var(--secondary); margin-bottom: 8px; font-size: 1rem; }
.donation-option p { margin: 4px 0; font-size: 0.9rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    border-radius: 50px; font-size: 0.85rem; text-decoration: none;
    color: white; font-weight: 600; transition: all 0.3s ease;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.twitter { background: #000; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }

/* ---------- DONACIÓN (sin rojo: foto + degradado institucional) ---------- */
.donate-section {
    position: relative; color: white; text-align: center;
    padding: 130px 0; overflow: hidden;
}
.donate-section::before {
    content: ''; position: absolute; inset: 0;
    background: url('img/familia-hospital.jpg') center/cover;
}
.donate-section::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10, 84, 128, 0.88) 0%, rgba(13, 106, 170, 0.82) 55%, rgba(143, 184, 106, 0.75) 100%);
}
.donate-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.donate-content .hero-badge { margin-bottom: 22px; }
.donate-content h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 25px; }
.donate-content h2 span { color: var(--secondary); }
.donate-content p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.95; }
.hearts-container { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.heart { position: absolute; font-size: 2rem; animation: fallHeart 4s linear infinite; }
@keyframes fallHeart {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ---------- ALIADOS: CARRUSEL EN MOVIMIENTO ---------- */
.allies-section { background: var(--white); padding: 90px 0; overflow: hidden; }
.allies-marquee { position: relative; margin-top: 50px; overflow: hidden; }
.allies-marquee::before, .allies-marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.allies-marquee::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.allies-marquee::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.allies-track {
    display: flex; gap: 40px; width: max-content;
    animation: allyScroll 30s linear infinite;
}
.allies-marquee:hover .allies-track { animation-play-state: paused; }
@keyframes allyScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ally-logo {
    background: var(--light); padding: 25px 35px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease; flex-shrink: 0; width: 200px; height: 120px;
}
.ally-logo:hover { transform: scale(1.08); box-shadow: var(--shadow-sm); background: var(--white); }
.ally-logo img { max-width: 100%; max-height: 75px; filter: grayscale(100%); opacity: 0.7; transition: all 0.4s ease; }
.ally-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ---------- LÍNEA VERTICAL QUE BAJA CON EL SCROLL ---------- */
.scroll-journey { position: relative; }
.journey-line {
    position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 4px; background: rgba(13, 106, 170, 0.12); border-radius: 2px;
}
.journey-line-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px; transition: height 0.15s linear;
    box-shadow: 0 0 18px rgba(167, 205, 130, 0.6);
}
.journey-step {
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    gap: 70px; align-items: center; padding: 70px 0;
}
.journey-text, .journey-media { min-width: 0; }
.journey-step:nth-child(even) .journey-text { order: 2; }
.journey-step:nth-child(even) .journey-media { order: 1; }
.journey-dot {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.6);
    width: 26px; height: 26px; border-radius: 50%; background: var(--white);
    border: 5px solid rgba(13, 106, 170, 0.25); z-index: 2; transition: all 0.4s ease;
}
.journey-step.lit .journey-dot {
    border-color: var(--secondary); background: var(--primary);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 8px rgba(167, 205, 130, 0.25);
}
.journey-media img {
    width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
    object-fit: cover; aspect-ratio: 4/3;
}
.journey-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--primary); margin-bottom: 15px; }
.journey-text .journey-num {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 800;
    color: var(--secondary-dark); letter-spacing: 2px; font-size: 0.85rem;
    text-transform: uppercase; margin-bottom: 12px;
}
.journey-text p { color: var(--text-light); font-size: 1.05rem; line-height: 1.75; margin-bottom: 20px; }

/* ---------- HISTORIAS ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.story-card {
    background: var(--white); border-radius: 20px; padding: 35px 28px;
    box-shadow: var(--shadow-sm); transition: all 0.4s ease; position: relative;
}
.story-card::before {
    content: '\201C'; position: absolute; top: 14px; right: 24px;
    font-size: 4.5rem; color: rgba(167, 205, 130, 0.35); font-family: Georgia, serif; line-height: 1;
}
.story-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.story-card h4 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }
.story-card p { color: var(--text-light); font-size: 0.97rem; line-height: 1.7; }

/* ---------- FORMULARIOS ---------- */
.form-card { background: var(--white); padding: 45px; border-radius: 30px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea, .form-row input {
    width: 100%; padding: 14px 16px; border: 2px solid #e9ecef; border-radius: 12px;
    font-size: 1rem; font-family: inherit; transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
}

/* ---------- MODAL ---------- */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px);
    z-index: 20000; align-items: center; justify-content: center; padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--white); border-radius: 30px; max-width: 600px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative; animation: modalSlide 0.4s ease;
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header { padding: 40px 40px 20px; border-bottom: 1px solid var(--light); }
.modal-header h3 { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.modal-close {
    position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
    background: var(--light); border: none; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; z-index: 2;
}
.modal-close:hover { background: var(--primary); color: var(--white); transform: rotate(90deg); }
.modal-body { padding: 30px 40px 40px; }
.modal-body img { width: 100%; border-radius: 15px; margin-bottom: 20px; }
.modal-body p { color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 55px; }
/* ── Marca y aval del pie ──────────────────────────────────────────────────
   Los dos logos tenían el mismo tratamiento y competían: el pie se veía
   descuadrado y ninguno se leía bien (11-ago-2026). Ahora hay jerarquía —
   CIMIGEN es la marca, la JAP es quien la supervisa — y cada uno tiene la
   caja que le corresponde por su forma: el de CIMIGEN es cuadrado, el
   oficial es muy apaisado y necesita ancho, no alto. */
.footer-marca {
    display: inline-flex; background: var(--white); border-radius: 18px;
    padding: 12px 16px; margin-bottom: 22px;
}
.footer-marca img { height: 62px; width: auto; object-fit: contain; display: block; }

.footer-aval {
    display: inline-flex; flex-direction: column; gap: 8px;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
    border-radius: 16px; padding: 14px 18px; margin-bottom: 26px; max-width: 360px;
}
.footer-aval span {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
    font-weight: 700; color: var(--footer-link); opacity: .9;
}
/* Fondo blanco propio: el logotipo oficial es guinda y verde sobre blanco,
   y sobre el azul del pie perdería contraste. Un logo oficial no se retoca. */
.footer-aval img {
    width: 100%; height: auto; display: block;
    background: var(--white); border-radius: 10px; padding: 9px 11px;
}
@media (max-width: 480px) { .footer-aval { max-width: 100%; } }
.footer-brand p { opacity: 0.9; line-height: 1.8; margin-bottom: 28px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 48px; height: 48px; background: rgba(255, 255, 255, 0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    color: var(--footer-text); transition: all 0.4s ease; text-decoration: none;
}
.footer-social a:hover { background: var(--secondary); color: var(--dark); transform: translateY(-5px); }
.footer-column h4 { font-size: 1.25rem; margin-bottom: 22px; position: relative; padding-bottom: 14px; }
.footer-column h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px; background: var(--secondary);
}
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 13px; }
.footer-column a { color: var(--footer-link); transition: all 0.3s ease; text-decoration: none; font-weight: 500; }
.footer-column a:hover { color: var(--white); padding-left: 8px; }
.footer-column p { opacity: 0.9; margin-bottom: 14px; }
.footer-column i { color: var(--secondary); margin-right: 10px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
}
.footer-bottom p { opacity: 0.8; font-size: 0.9rem; }
.footer-bottom-links { display: flex; gap: 26px; }
.footer-bottom-links a { color: var(--footer-link); font-size: 0.9rem; text-decoration: none; font-weight: 500; }
.footer-bottom-links a:hover { color: var(--white); }

/* ---------- FLOTANTES ---------- */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; width: 64px; height: 64px;
    background: #25d366; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 2.2rem; color: var(--white);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); z-index: 999; transition: all 0.4s ease;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.12); }
.scroll-top {
    position: fixed; bottom: 28px; left: 28px; width: 52px; height: 52px;
    background: var(--primary); border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: var(--white); font-size: 1.2rem; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 998;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-5px); }

/* ---------- ANIMACIÓN DE APARICIÓN ---------- */
.reveal { opacity: 0; transform: translateY(45px); transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .nav-pill-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 520px; margin: 0 auto; }
    .hero-stats { position: relative; bottom: 0; left: 0; margin-top: 25px; justify-content: center; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-horizontal { grid-template-columns: repeat(2, 1fr); gap: 60px 20px; }
    .timeline-horizontal::before { display: none; }
    .timeline-h-dot { top: -40px; }
    .help-grid { grid-template-columns: repeat(2, 1fr); }
    .stories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .journey-line { left: 26px; }
    .journey-dot { left: 26px; }
    .journey-step { grid-template-columns: 1fr; gap: 26px; padding: 55px 0 55px 70px; }
    .journey-step:nth-child(even) .journey-text { order: 1; }
    .journey-step:nth-child(even) .journey-media { order: 2; }
}

@media (max-width: 768px) {
    .header-pill { width: 95%; padding: 10px 20px; }
    .logo-pill img { height: 45px; }
    .logo-pill-text h3 { font-size: 1rem; }
    .logo-pill-text span { font-size: 0.6rem; }
    .section { padding: 75px 0; }
    .page-hero { padding: 140px 0 70px; }
    .hero { padding: 120px 0 60px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
    .hero-stats { flex-direction: column; gap: 15px; padding: 20px 30px; }
    .impact-grid { grid-template-columns: 1fr; }
    .timeline-horizontal { grid-template-columns: 1fr; gap: 50px; }
    .help-grid { grid-template-columns: 1fr; }
    .stories-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 30px 22px; }
    .grid-2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .header-pill { padding: 8px 15px; }
    .logo-pill img { height: 40px; }
    .logo-pill-text { display: none; }
    .hero { min-height: auto; padding: 110px 0 50px; }
    .hero-text h1 { font-size: 1.7rem; }
    .hero-text p { font-size: 0.95rem; }
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 1.7rem; }
    .btn { width: 100%; max-width: 320px; justify-content: center; }
    .ally-logo { width: 160px; height: 100px; padding: 18px 22px; }
    .whatsapp-float { width: 56px; height: 56px; font-size: 1.9rem; bottom: 20px; right: 20px; }
    .scroll-top { bottom: 20px; left: 20px; }
}

/* ============================================================
   BLOG
   ============================================================ */
.aviso-banner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px 24px; border-radius: 16px; margin-bottom: 40px;
    border: 1px solid transparent;
}
.aviso-banner.aviso-info { background: rgba(13, 106, 170, 0.08); border-color: rgba(13, 106, 170, 0.25); }
.aviso-banner.aviso-exito { background: rgba(167, 205, 130, 0.18); border-color: rgba(143, 184, 106, 0.4); }
.aviso-banner.aviso-alerta { background: rgba(230, 168, 46, 0.12); border-color: rgba(230, 168, 46, 0.35); }
.aviso-icono {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: white;
}
.aviso-info .aviso-icono { background: var(--primary); }
.aviso-exito .aviso-icono { background: var(--secondary-dark); }
.aviso-alerta .aviso-icono { background: #e6a82e; }
.aviso-texto { flex: 1; min-width: 200px; }
.aviso-texto strong { display: block; color: var(--dark); font-size: 1.05rem; margin-bottom: 3px; }
.aviso-texto span { color: var(--text-light); font-size: 0.95rem; }
.aviso-banner .btn { flex-shrink: 0; padding: 10px 22px; font-size: 0.88rem; }

.blog-filtros { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 45px; justify-content: center; }
.blog-filtro {
    padding: 10px 22px; border-radius: 50px; background: var(--light); color: var(--text);
    font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.3s ease; border: 1px solid var(--light);
    font-family: inherit; cursor: pointer;
}
.blog-filtro:hover { border-color: var(--primary); color: var(--primary); }
.blog-filtro.active { background: var(--primary); color: white; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card {
    background: var(--white); border-radius: 22px; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.4s ease; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.post-card .post-image { width: 100%; height: 210px; object-fit: cover; }
.post-card .post-content { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-category {
    display: inline-block; align-self: flex-start; background: rgba(167, 205, 130, 0.2);
    color: var(--secondary-dark); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.5px;
    text-transform: uppercase; padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}
.post-title { font-size: 1.2rem; color: var(--dark); margin-bottom: 12px; line-height: 1.35; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 18px; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-light); border-top: 1px solid var(--light); padding-top: 14px; }
.post-meta .post-leer { color: var(--primary); font-weight: 700; text-decoration: none; }
.post-meta .post-leer:hover { color: var(--primary-dark); }

.blog-single { max-width: 780px; margin: 0 auto; }
.blog-single .post-category { margin-bottom: 18px; }
.blog-single h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--dark); margin-bottom: 18px; line-height: 1.25; }
.blog-single .post-meta-single { color: var(--text-light); font-size: 0.95rem; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--light); }
.blog-single .post-cover { width: 100%; border-radius: 24px; margin-bottom: 34px; box-shadow: var(--shadow-sm); max-height: 420px; object-fit: cover; }
.blog-single .post-body { font-size: 1.08rem; line-height: 1.85; color: var(--text); }
.blog-single .post-body p { margin-bottom: 22px; }
.blog-single .post-body img { border-radius: 18px; margin: 10px 0 22px; }
.blog-single .post-body a { color: var(--primary); font-weight: 600; }
.blog-single .post-body strong { color: var(--dark); }
.blog-back { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; text-decoration: none; margin-bottom: 30px; }
.blog-back:hover { gap: 14px; }

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .aviso-banner { flex-direction: column; align-items: flex-start; text-align: left; }
    .aviso-banner .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   INFORMES ANUALES (tarjeta cristal + número de año de fondo)
   ============================================================ */
.informe-card {
    position: relative; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px);
    border-radius: 28px; box-shadow: var(--shadow-md); border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 55px 60px; margin-bottom: 40px; overflow: hidden;
}
.informe-year-bg {
    position: absolute; top: 20px; left: 30px; font-size: 7rem; font-weight: 800;
    color: var(--primary); opacity: 0.08; line-height: 1; z-index: 0; pointer-events: none;
}
.informe-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 55px; align-items: center; }
.informe-header h3 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.informe-header h3 span { color: var(--primary); }
.informe-header p { font-size: 1.05rem; color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.informe-logros { list-style: none; padding: 0; margin: 0; }
.informe-logros li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.informe-logros li:last-child { margin-bottom: 0; }
.informe-logros i { color: var(--secondary-dark); font-size: 1.4rem; margin-top: 4px; width: 28px; text-align: center; flex-shrink: 0; }
.informe-logros strong { display: block; color: var(--dark); font-size: 1.08rem; }
.informe-logros small { color: var(--text-light); font-size: 0.9rem; }

@media (max-width: 900px) {
    .informe-card { padding: 40px 28px; }
    .informe-grid { grid-template-columns: 1fr; gap: 30px; }
    .informe-year-bg { font-size: 4.5rem; position: relative; top: auto; left: auto; margin-bottom: 10px; opacity: 0.12; }
}

/* ============================================================
   FORMULARIO MULTI-PASO (registro de voluntarios / referidos)
   ============================================================ */
.wizard-card {
    background: var(--white); border-radius: 28px; box-shadow: var(--shadow-md);
    padding: 50px 60px; max-width: 760px; margin: 0 auto;
}
.wizard-progress { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.wizard-progress::before {
    content: ''; position: absolute; top: 17px; left: 0; height: 3px; width: 100%;
    background: var(--light); z-index: 0;
}
.wizard-progress-fill {
    position: absolute; top: 17px; left: 0; height: 3px; width: 0%;
    background: var(--secondary); z-index: 0; transition: width 0.5s ease;
}
.wizard-step-dot { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; font-weight: 700; color: var(--text-light); font-size: 0.85rem; }
.wizard-step-dot .circle {
    width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 3px solid var(--light);
    display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; color: var(--text-light);
}
.wizard-step-dot.active .circle { border-color: var(--secondary); background: var(--secondary); color: var(--dark); }
.wizard-step-dot.active { color: var(--dark); }

.wizard-panels { position: relative; overflow: hidden; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: wizardIn 0.4s ease; }
@keyframes wizardIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

.wizard-buttons { display: flex; justify-content: space-between; margin-top: 30px; gap: 15px; }
.wizard-buttons .btn { flex: 1; justify-content: center; }

.chip-group { display: flex; gap: 12px; flex-wrap: wrap; }
.chip-group label {
    display: flex; align-items: center; gap: 8px; background: var(--light); padding: 10px 18px;
    border-radius: 50px; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease;
    border: 1.5px solid transparent;
}
.chip-group input { display: none; }
.chip-group input:checked + span { color: white; }
.chip-group label:has(input:checked) { background: var(--primary); border-color: var(--primary); }
.chip-group label:has(input:checked) span { color: white; }

.confidencial-toggle {
    display: flex; align-items: center; gap: 12px; background: rgba(167, 205, 130, 0.15);
    border: 1.5px solid rgba(143, 184, 106, 0.4); border-radius: 16px; padding: 16px 20px; margin-bottom: 26px;
}
.confidencial-toggle input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--secondary-dark); }
.confidencial-toggle label { font-weight: 600; color: var(--dark); font-size: 0.95rem; cursor: pointer; }
.confidencial-toggle small { display: block; color: var(--text-light); font-weight: 400; margin-top: 2px; }
.campo-referente.oculto { display: none; }

@media (max-width: 700px) {
    .wizard-card { padding: 32px 22px; }
    .wizard-progress .wizard-step-dot span.etiqueta { display: none; }
}

/* ============================================================
   MODAL DE PARTICIPACIÓN (quiero-ayudar.php)
   ============================================================ */
.modal-participar .modal-body .form-group { margin-bottom: 18px; }
.modal-participar .modal-header p { color: var(--text-light); margin-top: 6px; font-size: 0.95rem; }

/* ============================================================
   MODAL DE DESCARGA DE INFORME (captura email/teléfono + animación)
   ============================================================ */
.descarga-loader { display: none; flex-direction: column; align-items: center; text-align: center; padding: 30px 0; }
.descarga-loader.visible { display: flex; }
.descarga-loader-circle {
    width: 80px; height: 80px; border-radius: 50%; position: relative;
    border: 6px solid var(--light); border-top-color: var(--primary);
    animation: descargaSpin 0.9s linear infinite; margin-bottom: 22px;
    display: flex; align-items: center; justify-content: center;
}
.descarga-loader-circle i { font-size: 1.8rem; color: var(--primary); }
.descarga-loader-circle.completo { animation: none; border-color: var(--secondary); }
.descarga-loader-circle.completo i { color: var(--secondary-dark); }
@keyframes descargaSpin { to { transform: rotate(360deg); } }
.descarga-loader p { color: var(--text-light); font-weight: 600; }

/* ============================================================
   TESTIMONIOS: VIDEO + PIZARRA DE POST-ITS
   ============================================================ */
.youtube-embed {
    position: relative; width: 100%; max-width: 900px; margin: 0 auto;
    aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.youtube-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.pizarra-testimonios {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 34px 26px; padding: 10px;
}
.postic {
    --rot: 2deg;
    position: relative; padding: 26px 22px 20px; min-height: 190px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 4px 8px 18px rgba(0, 0, 0, 0.15); cursor: pointer;
    transform: rotate(var(--rot)); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.postic:hover { transform: rotate(0deg) scale(1.05) translateY(-4px); box-shadow: 6px 14px 26px rgba(0, 0, 0, 0.22); z-index: 2; }
.postic-pin {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff8a8a, #c62828);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.postic-texto { font-size: 0.98rem; color: #3a3a2c; line-height: 1.55; font-style: italic; }
.postic-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 0.85rem; }
.postic-nombre { font-weight: 700; color: #2b2b1f; }
.postic-corazones { font-size: 0.8rem; letter-spacing: -2px; }

.postic-amarillo { background: #fff4b8; }
.postic-verde { background: #d7f2c2; }
.postic-azul { background: #cfe9f7; }
.postic-rosa { background: #fbd8e6; }

/* ---------- SELECTOR DE CORAZONES ---------- */
.corazones-selector { display: flex; gap: 10px; font-size: 1.8rem; }
.corazones-selector i { color: var(--light); -webkit-text-stroke: 1.5px var(--secondary-dark); cursor: pointer; transition: transform 0.2s ease; }
.corazones-selector i:hover { transform: scale(1.15); }
.corazones-selector i.activo { color: var(--secondary); -webkit-text-stroke: 1.5px var(--secondary-dark); }

@media (max-width: 700px) {
    .pizarra-testimonios { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 26px 18px; }
    .postic { min-height: 160px; padding: 20px 16px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ¿QUÉ NECESITAS HOY?  ·  la puerta de la paciente
   Añadido el 11-ago-2026. Hasta entonces el sitio entero hablaba con el
   donante: el hero, el menú y las cinco secciones. Quien llegaba con una
   necesidad de salud no encontraba nada suyo.
   Usa la paleta de siempre (azul de marca + verde) para que no se sienta un
   parche pegado, y no carga ninguna librería nueva.
   ═══════════════════════════════════════════════════════════════════════════ */
.necesito { background: linear-gradient(180deg, #fff 0%, var(--light) 100%); }

.nec-entradas {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px; max-width: 1000px; margin: 0 auto 34px;
}
/* Cada entrada es una tarjeta con foto al fondo y su color propio. El emoji
   sobre blanco se leía como un botón de trámite; la foto hace que la señora
   se reconozca en la tarjeta antes de terminar de leerla. */
.nec-entrada {
    --c: var(--primary);
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; min-height: 190px; padding: 26px 18px;
    border-radius: var(--radius); cursor: pointer;
    background: var(--white); border: 2px solid #e8eef4; font: inherit;
    color: var(--text); text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .22s cubic-bezier(.34,1.4,.64,1), border-color .22s ease, box-shadow .22s ease;
}
/* La foto vive en un pseudo-elemento para poder acercarla sin mover el texto. */
.nec-entrada::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background-image: var(--foto); background-size: cover; background-position: center;
    transform: scale(1.02); transition: transform .5s ease, opacity .3s ease;
    opacity: .22;
}
/* Velo del color del tema: sin él, ocho fotos de calidades distintas se ven
   como un collage. Con él, todas parecen de la misma familia. */
.nec-entrada::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.80) 100%);
    transition: background .3s ease;
}
.nec-entrada:hover, .nec-entrada:focus-visible {
    transform: translateY(-6px); border-color: var(--c);
    box-shadow: var(--shadow-md); outline: none;
}
.nec-entrada:hover::before { transform: scale(1.12); opacity: .34; }
.nec-entrada.on { border-color: var(--c); }
.nec-entrada.on::before { opacity: .38; transform: scale(1.1); }
.nec-entrada.on::after {
    background: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.72) 100%);
}
.nec-emoji {
    font-size: 2.6rem; line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nec-entrada:hover .nec-emoji { transform: scale(1.12) rotate(-5deg); }
.nec-entrada.on .nec-emoji { animation: nec-salto .5s ease; }
@keyframes nec-salto {
    0% { transform: scale(1); } 45% { transform: scale(1.28) rotate(-8deg); } 100% { transform: scale(1.12); }
}
.nec-label { font-weight: 800; font-size: 1.06rem; line-height: 1.3; color: var(--primary-dark); }
/* El nombre "de verdad" del servicio, en chiquito: ella busca "estoy
   embarazada", pero conviene que aprenda que eso se llama control prenatal. */
.nec-hint {
    font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--c); background: rgba(255,255,255,.75);
    padding: 3px 12px; border-radius: 30px;
}
.nec-entrada.on .nec-hint { background: var(--c); color: #fff; }

.nec-respuesta { max-width: 860px; margin: 0 auto; }
.nec-card {
    --c: var(--primary);
    position: relative; overflow: hidden;
    background: var(--white); border-radius: var(--radius); padding: 34px 34px 34px 40px;
    box-shadow: var(--shadow-md);
}
/* Franja del color de la entrada elegida: une visualmente la tarjeta con el
   botón que se acaba de tocar, para que se entienda que es su respuesta. */
.nec-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--c);
}
.nec-card h3 { color: var(--c) !important; }
.nec-card.entra { animation: nec-entra .35s ease both; }
@keyframes nec-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.nec-card h3 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 14px; }
.nec-card p { line-height: 1.8; color: var(--text); margin-bottom: 18px; }
.nec-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.nec-card li { position: relative; padding-left: 30px; line-height: 1.6; color: var(--text-light); }
.nec-card li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    width: 21px; height: 21px; border-radius: 50%; background: var(--secondary);
    color: var(--primary-dark); font-size: .75rem; font-weight: 900;
    display: grid; place-items: center;
}
.nec-acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-dark {
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

.nec-pie {
    text-align: center; margin-top: 28px; color: var(--text-light);
    font-size: .95rem; line-height: 1.7;
}
.nec-pie a { color: var(--primary); font-weight: 700; }

/* Botón flotante de WhatsApp — sustituye al chat embebido de Eva. */
.wa-flotante {
    position: fixed; bottom: 22px; right: 22px; z-index: 9990;
    display: flex; align-items: center; gap: 10px;
    background: #25d366; color: #fff; text-decoration: none;
    padding: 14px 20px 14px 16px; border-radius: 40px;
    box-shadow: 0 6px 24px rgba(0,0,0,.28); font-weight: 700; font-size: .95rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.wa-flotante i { font-size: 1.5rem; }
.wa-flotante:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.34); }
/* En el teléfono se queda solo el icono: la barra de abajo ya va apretada. */
@media (max-width: 560px) {
    .wa-flotante span { display: none; }
    .wa-flotante { padding: 16px; border-radius: 50%; }
}

/* La entrada de la paciente, destacada en el menú. */
.nav-pill-atencion { color: var(--primary) !important; font-weight: 800 !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   PÁGINA "NECESITO ATENCIÓN"  (necesito-atencion.php)
   ═══════════════════════════════════════════════════════════════════════════ */
.na-hero p { max-width: 760px; margin: 0 auto 30px; }
.na-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* «¿Y si no me alcanza?» — la pregunta que más pena da hacer, contestada
   antes de que la tenga que hacer. Por eso va arriba de los servicios. */
.na-cuota-card {
    display: flex; gap: 24px; align-items: flex-start;
    background: linear-gradient(135deg, #f3f9ff 0%, #f7fbf2 100%);
    border: 2px solid var(--secondary); border-radius: var(--radius);
    padding: 34px; max-width: 940px; margin: 0 auto;
}
.na-cuota-ico { font-size: 2.6rem; line-height: 1; flex-shrink: 0; }
.na-cuota-card h2 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 14px; }
.na-cuota-card p { line-height: 1.85; margin-bottom: 12px; color: var(--text); }
.na-cuota-card p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
    .na-cuota-card { flex-direction: column; padding: 26px 20px; gap: 14px; }
}

/* ── Acordeón de servicios ────────────────────────────────────────────────
   Cada servicio trae su color en --c (lo pone el PHP). Con ocho tarjetas
   iguales en blanco la página se leía como una lista de trámites; el color
   le da identidad a cada uno sin romper la paleta, porque solo se usa en el
   acento, nunca en fondos grandes. */
.na-lista { max-width: 920px; margin: 0 auto; display: grid; gap: 16px; }
.na-item {
    --c: var(--primary);
    position: relative; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
    border: 2px solid #eef3f7;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
/* Franja de color a la izquierda: crece cuando la tarjeta se abre. */
.na-item::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: var(--c); opacity: .35; transition: opacity .3s ease, width .3s ease;
}
.na-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.na-item:hover::before { opacity: .7; }
.na-item.abierto { border-color: var(--c); box-shadow: var(--shadow-md); }
.na-item.abierto::before { opacity: 1; width: 7px; }

/* Entrada escalonada al hacer scroll: reutiliza el .reveal que ya usa el
   sitio (script.js) y solo le agrega el retardo de cada tarjeta. */
.na-item.reveal { transition-delay: var(--d, 0ms); }

.na-cab {
    width: 100%; display: flex; align-items: center; gap: 18px;
    padding: 22px 26px 22px 30px; background: none; border: none; cursor: pointer;
    font: inherit; text-align: left; color: var(--text);
}
.na-cab:hover { background: #fbfdff; }
/* El emoji en un círculo teñido con el color del servicio. */
.na-ico {
    flex-shrink: 0; width: 58px; height: 58px; border-radius: 18px;
    display: grid; place-items: center; font-size: 1.8rem; line-height: 1;
    background: #f1f6fa;   /* respaldo para navegadores sin color-mix */
    background: color-mix(in srgb, var(--c) 14%, #fff);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 28%, #fff);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.na-item.abierto .na-ico,
.na-cab:hover .na-ico { transform: scale(1.08) rotate(-4deg); background: #e7eff6; background: color-mix(in srgb, var(--c) 22%, #fff); }
.na-tit { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.na-tit strong { font-size: 1.22rem; color: var(--primary-dark); font-weight: 800; line-height: 1.25; }
.na-item.abierto .na-tit strong { color: var(--c); }
.na-tit small { color: var(--text-light); font-size: .92rem; line-height: 1.4; }
.na-mas {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
    background: var(--light); color: var(--c);
    display: grid; place-items: center; transition: transform .35s ease, background .25s ease;
}
.na-item.abierto .na-mas { transform: rotate(180deg); background: var(--c); color: #fff; }

/* max-height la calcula el JS con scrollHeight: fijarla a mano se rompe en
   cuanto cambia el texto o el ancho de la pantalla. */
.na-cuerpo { max-height: 0; overflow: hidden; transition: max-height .42s cubic-bezier(.4,0,.2,1); }
.na-cuerpo-in { padding: 4px 30px 28px; }
.na-cuerpo-in > p { line-height: 1.85; color: var(--text); margin-bottom: 22px; }

/* Foto del servicio: apaisada y con un velo del color propio, para que las
   fotos (de calidades distintas) se vean como una sola familia. */
.na-foto {
    height: 190px; border-radius: 18px; margin-bottom: 22px;
    background-size: cover; background-position: center; position: relative;
    box-shadow: inset 0 -60px 80px -40px rgba(10, 84, 128, .55);
    box-shadow: inset 0 -60px 80px -40px color-mix(in srgb, var(--c) 70%, transparent);
}
@media (max-width: 640px) { .na-foto { height: 150px; } }

.na-datos { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; margin-bottom: 20px; }
@media (max-width: 640px) { .na-datos { grid-template-columns: 1fr; gap: 16px; } }
.na-dato {
    background: var(--light);        /* respaldo */
    border: 1.5px solid #e8eef4;    /* respaldo */
    background: color-mix(in srgb, var(--c) 6%, #fff);
    border: 1.5px solid color-mix(in srgb, var(--c) 16%, #fff);
    border-radius: 18px; padding: 18px 20px;
}
.na-dato h4 {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--c); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.na-dato p { line-height: 1.6; color: var(--text); }
.na-dato ul { list-style: none; display: grid; gap: 8px; }
.na-dato li { position: relative; padding-left: 22px; line-height: 1.55; color: var(--text); font-size: .95rem; }
.na-dato li::before {
    content: ''; position: absolute; left: 4px; top: .55em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .55;
}

.na-extra {
    background: #fffbea; border-left: 4px solid #f0c000; border-radius: 12px;
    padding: 14px 18px; line-height: 1.7; margin-bottom: 22px; color: #6b5900;
}
.na-extra i { color: #d9a400; margin-right: 6px; }
.na-acciones { display: flex; gap: 12px; flex-wrap: wrap; }
/* El botón de preguntar toma el color del servicio: refuerza dónde está. */
.na-item .na-acciones .btn-primary {
    background: var(--c); color: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 32%, transparent);
}
.na-item .na-acciones .btn-primary:hover {
    filter: brightness(.9); color: #fff;
}
.na-item .na-acciones .btn-outline-dark { border-color: var(--c); color: var(--c); }
.na-item .na-acciones .btn-outline-dark:hover { background: var(--c); color: #fff; }

/* Lo que NO tenemos. Decirlo evita un viaje perdido, y es lo que se espera
   de una institución que se toma en serio la honestidad. */
.na-nodisp {
    max-width: 920px; margin: 0 auto; background: var(--white);
    border: 2px dashed #d8e2ea; border-radius: var(--radius); padding: 30px 34px;
}
.na-nodisp h3 { color: var(--primary-dark); font-size: 1.25rem; margin-bottom: 18px; }
.na-nodisp h3 i { color: var(--primary-light); margin-right: 8px; }
.na-nodisp ul { list-style: none; display: grid; gap: 14px; }
.na-nodisp li { line-height: 1.75; color: var(--text-light); padding-left: 20px; position: relative; }
.na-nodisp li::before { content: '—'; position: absolute; left: 0; color: var(--secondary-dark); }
.na-nodisp strong { color: var(--text); }

.na-cierre { text-align: center; max-width: 720px; margin: 0 auto; }
.na-cierre h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--primary-dark); margin-bottom: 16px; }
.na-cierre > p { line-height: 1.8; color: var(--text-light); margin-bottom: 26px; }
.na-tel { margin-top: 22px; color: var(--text-light); font-size: .95rem; }
.na-tel strong { color: var(--primary); }

/* Puente de que-hacemos.php hacia la página de servicios. */
.qh-puente {
    display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
    justify-content: space-between; max-width: 940px; margin: 0 auto;
    background: linear-gradient(135deg, #f3f9ff 0%, #f7fbf2 100%);
    border: 2px solid var(--secondary); border-radius: var(--radius); padding: 32px 36px;
}
.qh-puente h2 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 10px; }
.qh-puente p { line-height: 1.75; color: var(--text); max-width: 560px; }
@media (max-width: 700px) { .qh-puente { flex-direction: column; align-items: flex-start; padding: 26px 22px; } }

/* ── Contacto · "Aquí te esperamos" ──────────────────────────────────────── */
.ct-tarjeta {
    background: var(--grad-brand); color: #fff;
    padding: 40px; border-radius: 30px; margin-bottom: 26px;
}
.ct-tarjeta h2 { font-size: 1.7rem; margin-bottom: 14px; }
.ct-intro { font-size: 1.02rem; line-height: 1.8; opacity: .95; margin-bottom: 28px; }
.ct-datos { display: grid; gap: 18px; }
.ct-dato {
    display: flex; gap: 16px; align-items: flex-start;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px; padding: 20px 22px;
    transition: background .25s ease, transform .25s ease;
}
.ct-dato:hover { background: rgba(255,255,255,.16); transform: translateX(3px); }
.ct-ico {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
    background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.15rem;
}
.ct-dato h3 {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
    font-weight: 800; margin-bottom: 8px; color: var(--footer-link);
}
.ct-dato p { margin: 0 0 6px; line-height: 1.65; opacity: .95; }
.ct-dato p:last-child { margin-bottom: 0; }
.ct-dato a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.ct-dato a:hover { border-bottom-color: #fff; }
.ct-link {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 4px;
    font-size: .88rem; font-weight: 700; border-bottom: none !important;
    color: var(--footer-link) !important;
}
.ct-link:hover { color: #fff !important; }
.ct-aviso {
    font-size: .86rem; opacity: .85 !important; display: flex; align-items: center; gap: 8px;
    margin-top: 8px !important;
}
@media (max-width: 560px) { .ct-tarjeta { padding: 28px 22px; } }

/* ── Nuestro equipo (nosotros.php) ───────────────────────────────────────
   Tres tarjetas grandes con foto; al tocarlas se abre la ficha de quien
   atiende. Antes eran tres iconos con una palabra debajo. */
/* Rejilla normal cuando caben todas. Al activarse el riel (.es-riel), pasa a
   una fila que se desplaza: cada tarjeta ocupa un tercio del ancho visible. */
.eq-riel-wrap { position: relative; }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.eq-riel-wrap.es-riel { overflow: hidden; padding: 0 4px; }
.eq-riel-wrap.es-riel .eq-grid {
    display: flex; gap: 26px; transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.eq-riel-wrap.es-riel .eq-card { flex: 0 0 calc((100% - 52px) / 3); }
@media (max-width: 1050px) { .eq-riel-wrap.es-riel .eq-card { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 700px)  { .eq-riel-wrap.es-riel .eq-card { flex-basis: 100%; } }

.eq-flecha {
    position: absolute; top: 105px; z-index: 3;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--white); color: var(--primary); font-size: 1rem;
    box-shadow: var(--shadow-md); transition: transform .2s ease, opacity .2s ease;
}
.eq-flecha:hover:not(:disabled) { transform: scale(1.1); background: var(--primary); color: #fff; }
.eq-flecha:disabled { opacity: .35; cursor: default; }
.eq-ant { left: -14px; }
.eq-sig { right: -14px; }
@media (max-width: 640px) { .eq-ant { left: 2px; } .eq-sig { right: 2px; } }

.eq-puntos { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.eq-punto {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
    background: #cfdae4; transition: width .25s ease, background .25s ease;
}
.eq-punto.on { width: 26px; border-radius: 6px; background: var(--primary); }
.eq-card {
    display: block; width: 100%; padding: 0; border: none; cursor: pointer;
    font: inherit; text-align: left; color: inherit;
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .28s cubic-bezier(.34,1.3,.64,1), box-shadow .28s ease;
    transition-delay: var(--d, 0ms);
}
.eq-card:hover, .eq-card:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow-md); outline: none; }

.eq-foto {
    display: block; height: 200px; background-size: cover; background-position: center;
    position: relative; transition: transform .5s ease;
}
.eq-card:hover .eq-foto { transform: scale(1.06); }
/* Velo azul de marca: unifica fotos de calidades distintas y deja respirar
   el icono que va montado encima. */
.eq-foto::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,106,170,.30) 0%, rgba(13,106,170,.72) 100%);
}
.eq-body { display: block; padding: 44px 26px 26px; position: relative; }
.eq-ico {
    position: absolute; top: -34px; left: 26px;
    width: 64px; height: 64px; border-radius: 20px;
    background: var(--white); color: var(--primary);
    display: grid; place-items: center; font-size: 1.5rem;
    box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.eq-card:hover .eq-ico { transform: scale(1.08) rotate(-6deg); background: var(--secondary); color: var(--primary-dark); }
.eq-nombre { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); line-height: 1.25; }
.eq-resumen { display: block; margin-top: 8px; color: var(--text-light); line-height: 1.65; font-size: .95rem; }
.eq-vermas {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
    color: var(--primary); font-weight: 700; font-size: .9rem;
}
.eq-vermas i { transition: transform .25s ease; }
.eq-card:hover .eq-vermas i { transform: translateX(5px); }

/* ── Ficha del especialista (popup) ─────────────────────────────────────── */
.eq-modal { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 20px; }
.eq-modal[hidden] { display: none; }
.eq-modal-fondo {
    position: absolute; inset: 0; background: rgba(10,30,50,.62);
    backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s ease;
}
.eq-modal.on .eq-modal-fondo { opacity: 1; }
.eq-modal-caja {
    position: relative; background: var(--white); border-radius: 26px;
    width: min(620px, 100%); max-height: 88vh; overflow-y: auto; padding: 34px;
    box-shadow: var(--shadow-md);
    transform: translateY(18px) scale(.97); opacity: 0;
    transition: transform .26s cubic-bezier(.34,1.3,.64,1), opacity .26s ease;
}
.eq-modal.on .eq-modal-caja { transform: none; opacity: 1; }
.eq-modal-x {
    position: absolute; top: 16px; right: 18px; background: var(--light); border: none;
    width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1;
    color: var(--text-light); cursor: pointer; transition: background .2s ease, color .2s ease;
}
.eq-modal-x:hover { background: var(--primary); color: #fff; }
.eq-modal-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; padding-right: 40px; }
.eq-modal-ico {
    flex-shrink: 0; width: 58px; height: 58px; border-radius: 18px;
    background: var(--grad-mix); color: #fff; display: grid; place-items: center; font-size: 1.4rem;
}
.eq-modal-head h3 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 6px; }
.eq-modal-head p { color: var(--text-light); line-height: 1.65; font-size: .95rem; }
.eq-medicos { display: grid; gap: 18px; margin-bottom: 24px; }
.eq-med { display: flex; gap: 18px; align-items: flex-start; background: var(--light); border-radius: 18px; padding: 18px; }
.eq-med-foto {
    flex-shrink: 0; width: 92px; height: 92px; border-radius: 16px;
    background-size: cover; background-position: center top;
}
.eq-med-txt h4 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 3px; }
.eq-med-ced { display: block; font-size: .78rem; color: var(--text-light); margin-bottom: 10px; }
.eq-med-txt p { line-height: 1.7; color: var(--text); font-style: italic; font-size: .94rem; }
.eq-sinmed { color: var(--text-light); line-height: 1.75; margin-bottom: 24px; }
.eq-modal-btn { width: 100%; justify-content: center; }
@media (max-width: 560px) {
    .eq-modal-caja { padding: 26px 20px; }
    .eq-med { flex-direction: column; }
    .eq-med-foto { width: 100%; height: 160px; }
}

/* ── Redes en el blog ────────────────────────────────────────────────────── */
.redes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.red-card {
    --c: var(--primary);
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    border-top: 4px solid var(--c);
    transition: transform .25s ease, box-shadow .25s ease;
}
.red-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Cada red con su color, que es como la gente las reconoce. */
.red-fb { --c: #1877f2; }
.red-ig { --c: #d6249f; }
.red-yt { --c: #ff0000; }

.red-card header { display: flex; align-items: center; gap: 14px; padding: 22px 24px 16px; }
.red-ico {
    width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
    background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.25rem;
}
.red-card h3 { font-size: 1.15rem; color: var(--primary-dark); line-height: 1.2; }
.red-card header span { font-size: .86rem; color: var(--text-light); }
.red-cuerpo { flex: 1; padding: 0 24px 18px; }
.red-vacio { color: var(--text-light); line-height: 1.7; font-size: .93rem; }

/* ── Reels de Facebook ───────────────────────────────────────────────────
   Verticales, como se graban y como se ven en el teléfono. El reproductor de
   Facebook trae su propia portada, así que se cargan directo y la miniatura
   real es lo primero que se ve. */
/* Carrusel: scroll horizontal nativo con scroll-snap. En el teléfono se
   desliza con el dedo sin una línea de JavaScript; las flechas solo son un
   atajo para quien usa ratón. */
.reels-carrusel { position: relative; max-width: 1120px; margin: 0 auto; }
.reels-riel {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 6px 4px 14px;
    scrollbar-width: none;                 /* Firefox */
    -ms-overflow-style: none;
}
.reels-riel::-webkit-scrollbar { display: none; }
.reels-riel > .reel { flex: 0 0 clamp(260px, 30%, 330px); scroll-snap-align: start; }
@media (max-width: 640px) { .reels-riel > .reel { flex-basis: 82%; } }

.reels-flecha {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--white); color: var(--primary); font-size: 1.05rem;
    box-shadow: var(--shadow-md); transition: transform .2s ease, background .2s ease;
}
.reels-flecha:hover { transform: translateY(-50%) scale(1.1); background: var(--primary); color: #fff; }
.reels-ant { left: -16px; }
.reels-sig { right: -16px; }
@media (max-width: 1180px) { .reels-ant { left: 4px; } .reels-sig { right: 4px; } }

.reels-puntos { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.reels-punto {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
    background: #cfdae4; transition: width .25s ease, background .25s ease;
}
.reels-punto.on { width: 26px; border-radius: 6px; background: var(--primary); }
.reel {
    position: relative; border-radius: 20px; overflow: hidden;
    background: #0a1520; box-shadow: var(--shadow-md);
    transition: transform .25s ease, box-shadow .25s ease;
}
.reel:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(0,0,0,.20); }
/* El plugin de Facebook entrega un alto fijo; con la proporción 9:16 y el
   iframe al 100% se ve completo sin barras negras a los lados. */
.reel iframe { display: block; width: 100%; aspect-ratio: 9/16; border: 0; }
.reel-titulo {
    padding: 13px 16px; background: var(--white); color: var(--primary-dark);
    font-weight: 700; font-size: .93rem; line-height: 1.45;
}
.reels-pie { text-align: center; margin-top: 30px; }
.reels-pie a {
    display: inline-flex; align-items: center; gap: 9px; color: #1877f2;
    font-weight: 700; text-decoration: none; padding: 11px 22px;
    border: 2px solid #1877f2; border-radius: 40px; transition: .2s;
}
.reels-pie a:hover { background: #1877f2; color: #fff; }
@media (max-width: 480px) { .reels-grid { grid-template-columns: 1fr; } }

/* ── Redes en el blog ────────────────────────────────────────────────────── */
.redes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.red-card {
    --c: var(--primary);
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    border-top: 4px solid var(--c);
    transition: transform .25s ease, box-shadow .25s ease;
}
.red-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Cada red con su color, que es como la gente las reconoce. */
.red-fb { --c: #1877f2; }
.red-ig { --c: #d6249f; }
.red-yt { --c: #ff0000; }

.red-card header { display: flex; align-items: center; gap: 14px; padding: 22px 24px 16px; }
.red-ico {
    width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
    background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.25rem;
}
.red-card h3 { font-size: 1.15rem; color: var(--primary-dark); line-height: 1.2; }
.red-card header span { font-size: .86rem; color: var(--text-light); }
.red-cuerpo { flex: 1; padding: 0 24px 18px; }
.red-vacio { color: var(--text-light); line-height: 1.7; font-size: .93rem; }

/* ── Reels de Facebook ───────────────────────────────────────────────────
   Vertical, como se ven en el teléfono. El reproductor se carga al tocarlo:
   si los tres cargaran de entrada, Facebook rastrearía a todo el que abre el
   blog — y aquí puede haber alguien leyendo sobre su embarazo. */
.reels-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 24px; justify-content: center;
}
.reel {
    position: relative; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden;
    background: linear-gradient(160deg, #1877f2 0%, #0a5480 100%);
    box-shadow: var(--shadow-md);
    transition: transform .25s ease;
}
.reel:not(.cargado):hover { transform: translateY(-6px); }
.reel-play {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: none; border: none; cursor: pointer; color: #fff; font: inherit; padding: 26px;
}
.reel-tri {
    width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.55);
    display: grid; place-items: center; font-size: 1.6rem; padding-left: 5px;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), background .25s ease;
}
.reel-play:hover .reel-tri { transform: scale(1.12); background: rgba(255,255,255,.34); }
.reel-txt { font-size: 1rem; font-weight: 700; line-height: 1.45; text-align: center; }
.reel.cargado { background: #000; }
.reels-pie { text-align: center; margin-top: 28px; }
.reels-pie a {
    display: inline-flex; align-items: center; gap: 9px; color: #1877f2;
    font-weight: 700; text-decoration: none; padding: 11px 22px;
    border: 2px solid #1877f2; border-radius: 40px; transition: .2s;
}
.reels-pie a:hover { background: #1877f2; color: #fff; }

.ig-mosaico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig-mosaico a { display: block; border-radius: 9px; overflow: hidden; aspect-ratio: 1; }
.ig-mosaico img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ig-mosaico a:hover img { transform: scale(1.08); }

.red-pronto {
    display: inline-block; background: var(--c); color: #fff; font-size: .72rem;
    font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 13px; border-radius: 30px; margin-bottom: 12px;
}
.red-link {
    display: block; padding: 15px 24px; border-top: 1px solid #eef2f6;
    color: var(--c); font-weight: 700; font-size: .92rem; text-decoration: none;
    transition: background .2s ease;
}
.red-link:hover { background: #fafcfe; }

/* ── El menú en pantallas intermedias (11-ago-2026) ──────────────────────────
   El menú completo se muestra hasta los 1024px, así que entre 1025 y 1400px
   convivían 8 entradas + 2 iconos + Donar + el logo con su subtítulo largo. No
   cabían, y como nada tenía prohibido partirse, "Qué Hacemos" y "Servicios"
   caían en dos renglones y el header se veía amontonado.
   Se aprieta por pasos en vez de saltar de golpe al menú de hamburguesa. */
@media (max-width: 1400px) {
    .nav-pill-links { gap: 15px; }
    .nav-pill-links a { font-size: .84rem; }
    .header-pill { padding: 10px 22px; }
}
@media (max-width: 1240px) {
    .nav-pill-links { gap: 11px; }
    .nav-pill-links a { font-size: .8rem; }
    /* "ASOCIACIÓN HISPANO MEXICANA I.A.P." es lo más largo del header y lo que
       menos falta hace: el logo ya identifica a la institución. */
    .logo-pill-text span { display: none; }
    .logo-pill img { height: 46px; }
    .nav-pill-donate { padding: 9px 16px !important; }
    /* El icono de "Servicios" suma ancho y no aporta al entenderlo. */
    .nav-pill-atencion i { display: none; }
}
@media (max-width: 1100px) {
    .nav-pill-links { gap: 8px; }
    .nav-pill-links a { font-size: .76rem; }
    .logo-pill-text h3 { font-size: 1.02rem; }
}
