/* ============================================================
 * homepage.css — Página pública de inicio (index.php)
 * G2 — refactor (Lote index)
 *
 * NOTA IMPORTANTE SOBRE LA CROMÁTICA:
 *   Esta página es la REFERENCIA VISUAL del proyecto. Los colores
 *   aquí definidos son los originales del primer diseño y NO se
 *   subordinan al sistema de tokens canónicos de _tokens.css.
 *   Las demás páginas se diseñan tomando esta home como referencia,
 *   no al revés.
 *
 *   Por esa razón, todos los hex se mantienen literales y agrupados
 *   en este :root local con nombres semánticos. Si en el futuro
 *   se decide alinear la home con _tokens.css, ese será un lote
 *   dedicado y consciente.
 *
 * Estructura:
 *   1. Hero
 *   2. Trust Bar
 *   3. Three Ways To Fight (era 100% inline)
 *   4. Features
 *   5. Process
 *   6. Roles cards (Patient/Doctor/Researcher — eran 100% inline)
 *   6b. Community Banner (era 100% inline)
 *   7. Testimonials (eran 100% inline)
 *   8. About / SEO (era 100% inline)
 *   9. CTA Final
 *   10. Responsive
 *   11. Animations / Scroll-in
 * ============================================================ */

/* ============================================================
 *  PALETA CROMÁTICA — referencia visual de la home
 *  (idéntica al diseño original; se mantiene literal por decisión)
 * ============================================================ */
:root {
    /* Blues (corporate identity) */
    --hp-navy:        #002855;  /* navy más oscuro */
    --hp-blue-900:    #003d7a;  /* blue dark */
    --hp-blue-700:    #0056a3;  /* blue principal */
    --hp-blue-500:    #2563eb;  /* blue medium / CTA */
    --hp-blue-600:    #1d4ed8;  /* blue dark variant */
    --hp-blue-400:    #3b82f6;  /* blue light */
    --hp-blue-300:    #60a5fa;  /* blue soft */

    /* Cyans / Sky */
    --hp-sky:         #0284c7;  /* cyan / sky */
    --hp-cyan:        #0ea5e9;  /* cyan light */
    --hp-cyan-dark:   #0891b2;  /* cyan oscuro */
    --hp-cyan-bright: #06b6d4;  /* cyan brillante */

    /* Accents */
    --hp-amber:       #f59e0b;  /* estrellas testimonials */
    --hp-amber-light: #fbbf24;
    --hp-yellow:      #facc15;  /* texto destacado del hero */
    --hp-green:       #059669;
    --hp-red:         #ef4444;

    /* Neutrals */
    --hp-text:        #1e293b;  /* texto principal */
    --hp-text-mut:    #64748b;  /* texto secundario */
    --hp-slate-400:   #94a3b8;  /* trust logos */
    --hp-bg:          #f8fafc;  /* body bg */
    --hp-bg-blue:     #eff6ff;  /* bg azul claro */
    --hp-bg-cyan:     #ecfeff;  /* bg cyan claro */
    --hp-bg-subtle:   #f1f5f9;
    --hp-border:      #e2e8f0;
    --hp-border-blue: #bfdbfe;
}

body { background: var(--hp-bg); }

/* ============================================================
 * 1. HERO
 * ============================================================ */
.hero-section {
    min-height: 92vh;
    background-image: url('/assets/images/colorectal-cancer-fight.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    contain: layout style paint;
}
.hero-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    /* Lote H v2 — azules MÁS VIVOS y eléctricos (no navy oscuro).
       Opacidad ligeramente más alta para que el texto destaque sin
       aplastar la imagen. Gradiente direccional: más opaco arriba-izq
       (zona de texto), más respiración abajo-der (zona de la célula). */
    background: linear-gradient(135deg,
        rgba(0, 95, 200, 0.72) 0%,
        rgba(15, 120, 220, 0.58) 40%,
        rgba(20, 145, 215, 0.45) 75%,
        rgba(0, 175, 200, 0.38) 100%);
    z-index: 1;
}
.hero-section::after {
    content: '';
    position: absolute; top: -50%; right: -30%; width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none; z-index: 1;
}
.hero-section.no-image {
    background: linear-gradient(135deg, var(--hp-blue-900) 0%, var(--hp-blue-700) 50%, var(--hp-cyan) 100%);
}
.hero-section.no-image::before { display: none; }
.hero-section .container { position: relative; z-index: 10; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content { position: relative; z-index: 10; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    /* Lote H — fondo con más opacidad para mejor contraste sobre imagen vibrante */
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    padding: 10px 20px; border-radius: 50px;
    color: white; font-weight: 600; font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.30);
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.hero-title {
    font-size: 3.8rem; font-weight: 900; color: white;
    margin-bottom: 1.5rem; line-height: 1.15;
    /* Lote H v2 — sombra triple para destacar sobre azul vibrante.
       Cercana sólida + media + halo lejano. */
    text-shadow:
        0 1px 2px rgba(0,0,0,0.65),
        0 3px 8px rgba(0,0,0,0.45),
        0 6px 28px rgba(0,0,0,0.35);
}
.hero-title span {
    display: block;
    color: var(--hp-yellow);
    -webkit-text-fill-color: var(--hp-yellow);
}
.hero-subtitle {
    font-size: 1.35rem; font-weight: 400;
    color: rgba(255,255,255,0.97);
    margin-bottom: 2.5rem; line-height: 1.7; max-width: 600px;
    /* Lote H v2 — triple sombra suave + medio + lejano */
    text-shadow:
        0 1px 2px rgba(0,0,0,0.55),
        0 2px 6px rgba(0,0,0,0.40),
        0 4px 18px rgba(0,0,0,0.25);
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 3rem;
}
.btn-hero {
    padding: 16px 32px; font-size: 1.1rem; font-weight: 700;
    border-radius: 14px; transition: all 0.3s ease;
    text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.btn-hero:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.btn-hero-primary {
    background: white; color: var(--hp-blue-700);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    color: var(--hp-blue-900);
}
.btn-hero-outline {
    background: rgba(255,255,255,0.1); color: white;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
}
.btn-hero-outline:hover {
    background: white;
    color: var(--hp-blue-700);
    border-color: white;
    transform: translateY(-4px);
}
/* Variant for the "Donate" button in hero (transparent with backdrop blur) */
.btn-hero-donate {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(10px);
}
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: left; }
.hero-stat-number { font-size: 2.5rem; font-weight: 900; color: white; line-height: 1; margin-bottom: 5px; }
.hero-stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); font-weight: 500; }

/* ============================================================
 * 2. TRUST BAR
 * ============================================================ */
.trust-section {
    padding: 20px 0; background: white;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.trust-label { font-size: 0.82rem; font-weight: 600; color: var(--hp-text-mut); }
.trust-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.trust-logo {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hp-slate-400);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

/* ============================================================
 * 3. THREE WAYS TO FIGHT — antes 100% inline styles
 * ============================================================ */
.three-ways-section {
    padding: 70px 0;
    background: white;
}
.three-ways-header {
    text-align: center;
    margin-bottom: 3rem;
}
.three-ways-title {
    font-weight: 800;
    font-size: 2rem;
    color: var(--hp-text);
}
.three-ways-subtitle {
    color: var(--hp-text-mut);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 10px auto 0;
}
.three-ways-card {
    border-radius: 20px;
    padding: 35px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.three-ways-card--treatment {
    background: linear-gradient(135deg, var(--hp-blue-600), var(--hp-cyan));
}
.three-ways-card--search {
    background: linear-gradient(135deg, var(--hp-blue-700), var(--hp-sky));
}
.three-ways-card--research {
    background: linear-gradient(135deg, var(--hp-blue-400), var(--hp-blue-600));
}
.three-ways-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.three-ways-card-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.three-ways-card-text {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}
.three-ways-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    font-size: 0.95rem;
}

/* ============================================================
 * 4. FEATURES
 * ============================================================ */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--hp-bg) 0%, white 100%);
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--hp-bg-blue), var(--hp-bg-cyan));
    padding: 8px 18px; border-radius: 50px;
    color: var(--hp-blue-700); font-weight: 700; font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid var(--hp-border-blue);
}
.section-title {
    font-size: 3rem; font-weight: 800; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--hp-blue-900) 0%, var(--hp-blue-500) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { font-size: 1.2rem; color: var(--hp-text-mut); max-width: 600px; margin: 0 auto; }
.feature-card {
    background: white; border-radius: 24px; padding: 35px; height: 100%;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 2px solid var(--hp-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-8px); border-color: transparent;
    box-shadow: 0 20px 50px rgba(0, 86, 163, 0.15);
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--hp-blue-900), var(--hp-blue-700), var(--hp-cyan-dark));
    transform: scaleX(0); transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 80px; height: 80px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; margin-bottom: 25px; position: relative;
}
.icon-cyan {
    background: linear-gradient(135deg, var(--hp-cyan-dark), var(--hp-cyan-bright));
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
}
.icon-blue {
    background: linear-gradient(135deg, var(--hp-blue-500), var(--hp-blue-400));
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}
.icon-amber {
    background: linear-gradient(135deg, var(--hp-blue-700), var(--hp-cyan-dark));
    box-shadow: 0 8px 25px rgba(0, 86, 163, 0.3);
}
.icon-green {
    background: linear-gradient(135deg, var(--hp-cyan-dark), var(--hp-cyan-bright));
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
}
.icon-violet {
    background: linear-gradient(135deg, var(--hp-blue-900), var(--hp-blue-700));
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.3);
}
.icon-pink {
    background: linear-gradient(135deg, var(--hp-blue-500), var(--hp-blue-300));
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}
.feature-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; color: var(--hp-text); }
.feature-description { color: var(--hp-text-mut); line-height: 1.7; font-size: 1rem; }

/* ============================================================
 * 5. STATS (if used) — preservado del CSS original
 * ============================================================ */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--hp-blue-900) 0%, var(--hp-blue-700) 50%, var(--hp-cyan-dark) 100%);
    position: relative; overflow: hidden;
}
.stats-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover; opacity: 0.5;
}
.stat-card { text-align: center; color: white; padding: 30px 20px; position: relative; z-index: 2; }
.stat-icon {
    width: 70px; height: 70px; background: rgba(255,255,255,0.15);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.8rem; backdrop-filter: blur(10px);
}
.stat-number { font-size: 3.5rem; font-weight: 900; margin-bottom: 10px; color: white; text-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.stat-label { font-size: 1.1rem; color: rgba(255,255,255,0.9); font-weight: 500; }

/* ============================================================
 * 6. PROCESS (How it works)
 * ============================================================ */
.process-section { padding: 100px 0; background: white; }
.process-card {
    background: linear-gradient(135deg, var(--hp-bg), white);
    border-radius: 24px; padding: 50px 30px 40px;
    text-align: center; border: 2px solid var(--hp-border);
    height: 100%; position: relative; transition: all 0.3s;
}
.process-card:hover {
    border-color: var(--hp-blue-700);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.process-number {
    width: 70px; height: 70px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 900; color: white;
    margin: 0 auto 25px; position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.process-number-1 { background: linear-gradient(135deg, var(--hp-blue-900), var(--hp-blue-700)); }
.process-number-2 { background: linear-gradient(135deg, var(--hp-blue-700), var(--hp-blue-500)); }
.process-number-3 { background: linear-gradient(135deg, var(--hp-blue-500), var(--hp-cyan-dark)); }
.process-number-4 { background: linear-gradient(135deg, var(--hp-cyan-dark), var(--hp-cyan-bright)); }
.process-icon {
    position: absolute; bottom: -8px; right: -8px;
    width: 36px; height: 36px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 1rem;
}
.process-icon-1 { color: var(--hp-blue-900); }
.process-icon-2 { color: var(--hp-blue-700); }
.process-icon-3 { color: var(--hp-blue-500); }
.process-icon-4 { color: var(--hp-cyan-dark); }
.process-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: var(--hp-text); }
.process-description { color: var(--hp-text-mut); font-size: 0.95rem; line-height: 1.6; }
@media (min-width: 992px) {
    .process-connector { position: relative; }
    .process-connector::after {
        content: ''; position: absolute; top: 75px; right: -10%; width: 20%; height: 3px;
        background: linear-gradient(90deg, var(--hp-border), var(--hp-blue-700));
        border-radius: 3px;
    }
}

/* ============================================================
 * 7. ROLES (Patient / Doctor / Researcher) — antes 100% inline
 * ============================================================ */
.roles-section {
    padding: 80px 0;
    background: linear-gradient(180deg, white 0%, var(--hp-bg) 100%);
}
.role-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 2px solid var(--hp-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}
.role-card:hover {
    transform: translateY(-6px);
}
.role-card--patient:hover {
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}
.role-card--doctor:hover {
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.15);
}
.role-card--researcher:hover {
    box-shadow: 0 15px 40px rgba(0, 40, 85, 0.15);
}
.role-card-header {
    padding: 28px 28px 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
}
.role-card--patient .role-card-header {
    background: linear-gradient(135deg, var(--hp-blue-500), var(--hp-blue-400));
}
.role-card--doctor .role-card-header {
    background: linear-gradient(135deg, var(--hp-sky), var(--hp-cyan));
}
.role-card--researcher .role-card-header {
    background: linear-gradient(135deg, var(--hp-navy), var(--hp-blue-900));
}
.role-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.role-card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}
.role-card-subtitle {
    margin: 4px 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}
.role-card-body {
    padding: 24px 28px;
    flex: 1;
}
.role-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.role-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--hp-text-mut);
}
.role-card-list i {
    flex-shrink: 0;
    margin-top: 2px;
}
.role-card--patient .role-card-list i { color: var(--hp-blue-500); }
.role-card--doctor .role-card-list i { color: var(--hp-sky); }
.role-card--researcher .role-card-list i { color: var(--hp-navy); }
.role-card-footer {
    padding: 0 28px 24px;
}
.role-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.role-card-cta:hover {
    transform: translateY(-2px);
    color: white;
}
.role-card--patient .role-card-cta {
    background: linear-gradient(135deg, var(--hp-blue-500), var(--hp-blue-400));
}
.role-card--doctor .role-card-cta {
    background: linear-gradient(135deg, var(--hp-sky), var(--hp-cyan));
}
.role-card--researcher .role-card-cta {
    background: linear-gradient(135deg, var(--hp-navy), var(--hp-blue-900));
}

/* ============================================================
 * 7b. COMMUNITY BANNER — antes 100% inline
 * ============================================================ */
.community-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-blue-700) 50%, var(--hp-sky) 100%);
    position: relative;
    overflow: hidden;
}
.community-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.community-section .container { position: relative; z-index: 2; }
.community-content { color: white; }
.community-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.15);
}
.community-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}
.community-desc {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 520px;
}
.community-features-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.12);
}
.community-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.community-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}
.community-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.community-feature-title {
    font-weight: 700;
    font-size: 0.95rem;
}
.community-feature-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}
.community-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: var(--hp-navy);
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 20px;
    transition: all 0.3s;
}
.community-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: var(--hp-navy);
}

/* ============================================================
 * 8. TESTIMONIALS — antes 100% inline
 * ============================================================ */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--hp-bg) 0%, white 100%);
}
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    height: 100%;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 2px solid var(--hp-border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.testimonial-stars {
    color: var(--hp-amber);
    font-size: 0.95rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.testimonial-text {
    color: var(--hp-text);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--hp-bg-subtle);
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}
.testimonial-avatar--cyan {
    background: linear-gradient(135deg, var(--hp-sky), var(--hp-cyan));
}
.testimonial-avatar--blue {
    background: linear-gradient(135deg, var(--hp-blue-500), var(--hp-blue-400));
}
.testimonial-avatar--navy {
    background: linear-gradient(135deg, var(--hp-navy), var(--hp-blue-900));
}
.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--hp-text);
}
.testimonial-role {
    font-size: 0.78rem;
    color: var(--hp-text-mut);
}

/* ============================================================
 * 9. ABOUT / SEO — antes 100% inline
 * ============================================================ */
.about-section {
    background: linear-gradient(135deg, var(--hp-bg-blue) 0%, var(--hp-bg-blue) 50%, var(--hp-bg) 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,86,163,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.about-section .container {
    max-width: 1000px;
    position: relative;
}
.about-header {
    text-align: center;
    margin-bottom: 35px;
}
.about-pill {
    background: linear-gradient(135deg, var(--hp-blue-700), var(--hp-blue-500));
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.about-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    height: 100%;
}
.about-card--sky {
    border: 1px solid rgba(0,86,163,0.1);
}
.about-card--navy {
    border: 1px solid rgba(59,130,246,0.1);
}
.about-card--blue {
    border: 1px solid rgba(59,130,246,0.1);
}
.about-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.about-card-icon i {
    color: white;
    font-size: 1.2rem;
}
.about-card--sky .about-card-icon {
    background: linear-gradient(135deg, var(--hp-sky), var(--hp-cyan));
}
.about-card--navy .about-card-icon {
    background: linear-gradient(135deg, var(--hp-navy), var(--hp-blue-900));
}
.about-card--blue .about-card-icon {
    background: linear-gradient(135deg, var(--hp-blue-600), var(--hp-blue-400));
}
.about-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--hp-text);
    margin-bottom: 8px;
}
.about-card-text {
    color: var(--hp-text-mut);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* ============================================================
 * 10. CTA FINAL
 * ============================================================ */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(-45deg, var(--hp-blue-900), var(--hp-blue-700), var(--hp-cyan-dark), var(--hp-blue-500));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    text-align: center; position: relative; overflow: hidden;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.cta-section::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: rotate 40s linear infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cta-content { position: relative; z-index: 2; }
.cta-title { font-size: 3rem; font-weight: 800; color: white; margin-bottom: 1.5rem; }
.cta-subtitle { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-cta {
    padding: 18px 45px; font-size: 1.2rem; font-weight: 700;
    border-radius: 14px; background: white; color: var(--hp-blue-700);
    text-decoration: none; display: inline-flex; align-items: center; gap: 12px;
    transition: all 0.3s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.btn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    color: var(--hp-blue-900);
}

/* CTA secondary links (footer of CTA section) */
.cta-secondary-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-secondary-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
 * 11. SCROLL-IN ANIMATIONS (driven by IntersectionObserver in JS)
 *     Replaces inline style.opacity / style.transform that the
 *     JS used to set element-by-element.
 * ============================================================ */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
 * 12. RESPONSIVE
 * ============================================================ */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-stats { gap: 30px; }
    .section-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 80px 0; background-attachment: scroll; }
    .hero-section::after { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-stat-number { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn-hero { justify-content: center; }
    .section-title { font-size: 2rem; }
    .stat-number { font-size: 2.5rem; }
    .cta-title { font-size: 2rem; }
    .stat-icon { backdrop-filter: none; background: rgba(255,255,255,0.2); }
    .process-card:hover { transform: none; }
    .trust-inner { flex-direction: column; gap: 12px; }
    .trust-logos { gap: 16px; }
    .trust-logo { font-size: 0.78rem; }
    .three-ways-title { font-size: 1.6rem; }
    .community-title { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-section::after,
    .stat-icon,
    .process-card,
    .btn-hero,
    .scroll-fade-in {
        animation: none !important;
        transition: none !important;
    }
    .scroll-fade-in {
        opacity: 1;
        transform: none;
    }
}
