/* ===== RESET & BASE ===== */
/* Landing v2 — dynamic copy update */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== SKIP LINKS ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #6c3baa;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6c3baa;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 15, 40, 0.65) 0%,
        rgba(10, 15, 40, 0.55) 60%,
        rgba(10, 15, 40, 0.75) 100%
    );
}

.hero-content {
    max-width: 700px;
    color: #fff;
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-content strong {
    font-size: 1.3rem;
}

/* ===== STORE BUTTONS ===== */
.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge-link {
    display: inline-block;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.google-play {
    background: #000;
    color: #fff;
}

.app-store {
    background: #000;
    color: #fff;
}

/* ===== WHY AMALIA ===== */
.why-amalia {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    color: #6c3baa;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-amalia h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d2d2d;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: #f9f7fc;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 59, 170, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== SPECIALTIES ===== */
.specialties {
    position: relative;
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #6c3baa 0%, #9b59b6 50%, #8e44ad 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialties-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: url('https://www.amaliasalud.com/wp-content/themes/bootscore-child/assets/img/vintage-geometric-background.svg') center/cover no-repeat;
}

.specialties-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.specialties-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
}

.app-mockup {
    max-width: 420px;
    margin: 0 auto;
}

.app-mockup img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ===== AGENDA SECTION ===== */
.agenda-section {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.agenda-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 0.8rem;
}

.agenda-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.agenda-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.agenda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 59, 170, 0.1);
}

.agenda-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda-icon img {
    width: 60px;
    height: 60px;
}

.agenda-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.8rem;
}

.agenda-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== DOCTORS SECTION ===== */
.doctors-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.doctors-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 1rem;
}

.doctors-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.doctors-features {
    margin-bottom: 2rem;
}

.doctor-feature {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #6c3baa;
}

.doctor-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.3rem;
}

.doctor-feature p {
    color: #666;
    font-size: 0.95rem;
}

.download-cta {
    font-size: 1rem;
    font-weight: 600;
    color: #6c3baa;
    margin-bottom: 1.5rem;
}

.doctors-content .store-buttons {
    justify-content: flex-start;
}

.doctors-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctors-image img {
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== HASHTAG BANNER ===== */
.hashtag-banner {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #6c3baa, #9b59b6);
}

.hashtag-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #9b59b6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9b59b6;
}

.footer-bottom p {
    color: #888;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .doctors-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .doctors-content .store-buttons {
        justify-content: center;
    }

    .doctor-feature {
        border-left: none;
        border-bottom: 2px solid #6c3baa;
        padding-left: 0;
        padding-bottom: 1rem;
    }

    .doctors-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.6rem;
    }

    .why-amalia h2,
    .specialties-content h2,
    .agenda-section h2,
    .doctors-content h2 {
        font-size: 1.5rem;
    }

    .hashtag-banner h2 {
        font-size: 1.8rem;
    }

    .features-grid,
    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== AMALIA BRAND SYSTEM (from Figma) ===== */
:root {
    /* Identity */
    --brand-logo-blue:  #94ABE1;   /* Azul del logo */
    --brand-screen-bg:  #EEF3FB;   /* Azul fondo de pantallas */
    --brand-dashboard:  #D6E4F7;   /* Tono dashboard */
    --brand-action:     #6B8FD4;   /* Azul de botones / acciones */
    --brand-red:        #FF373E;   /* Rojo — solo íconos, errores y alertas */
    --brand-coral:      #F3AAA0;   /* Iconografía / acento suave */
    --brand-peach:      #FFE4DD;   /* Acento más claro */
    /* Text */
    --text-heading:     #1A1A2E;   /* Títulos */
    --text-body:        #6B7280;   /* Descripciones / secundario */
    /* Neutral surfaces */
    --surface-white:    #FFFFFF;
    --surface-light:    #EEF3FB;
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body:    'DM Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--surface-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
}

/* ===== SKIP LINK ===== */
.skip-link {
    background: var(--brand-action);
}

/* ===== LOGO ===== */
.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

/* ===== STORE BADGES ===== */
.google-play,
.app-store {
    background: var(--text-heading);
    color: #fff;
}

/* ===== SECTION LABEL ===== */
.section-label {
    color: var(--brand-action);
}

/* ===== WHY AMALIA ===== */
.why-amalia h2 {
    color: var(--text-heading);
}

.feature-card {
    background: var(--surface-light);
}

.feature-card:hover,
.agenda-card:hover {
    box-shadow: 0 10px 30px rgba(107, 143, 212, 0.18);
}

.feature-card h3 {
    color: var(--text-heading);
}

/* ===== SPECIALTIES ===== */
.specialties {
    background: linear-gradient(135deg, #1A1A2E 0%, #6B8FD4 100%);
}

/* ===== AGENDA ===== */
.agenda-section h2 {
    color: var(--text-heading);
}

.agenda-card {
    border-color: var(--brand-screen-bg);
}

.agenda-card h3 {
    color: var(--text-heading);
}

/* ===== DOCTORS SECTION ===== */
.doctors-content h2 {
    color: var(--text-heading);
}

.doctor-feature {
    border-left-color: var(--brand-action);
}

.download-cta {
    color: var(--brand-action);
}

/* ===== HASHTAG BANNER ===== */
.hashtag-banner {
    background: linear-gradient(135deg, #1A1A2E 0%, #6B8FD4 100%);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-heading);   /* #1A1A2E */
}

.footer-col h5 {
    color: var(--surface-white);
}

.footer-col ul li a:hover {
    color: var(--brand-logo-blue);
}

.footer-logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);   /* logo blanco en footer oscuro */
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 992px) {
    .doctor-feature {
        border-left: none;
        border-bottom: 2px solid var(--brand-action);
        padding-left: 0;
        padding-bottom: 1rem;
    }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* stagger children inside grids */
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.5s; }
.steps-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.steps-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.steps-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.pain-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.pain-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ===== NAVBAR CTA ===== */
.btn-nav {
    background: var(--brand-action);
    color: #fff;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}
.btn-nav:hover {
    background: #5578c2;
    transform: translateY(-1px);
}

/* ===== HERO (updated) ===== */
.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #fff;
}
.highlight-text {
    color: #94ABE1;
    position: relative;
    white-space: nowrap;
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-trust {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
}
.hero-trust strong {
    color: #fff;
    font-size: 1rem;
}

/* ===== PAIN SECTION ===== */
.pain-section {
    background: var(--surface-white);
    padding: 5rem 2rem;
}
.pain-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.pain-inner h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 3rem;
    line-height: 1.4;
}
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.pain-card {
    background: #fff5f5;
    border: 1px solid #ffe0e0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255,55,62,0.1);
}
.pain-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.8rem;
}
.pain-card p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.5;
}

/* ===== SOCIAL PROOF BANNER ===== */
.proof-banner {
    background: var(--surface-light);
    padding: 3.5rem 2rem;
}
.proof-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.proof-stat {
    text-align: center;
    padding: 1rem 3rem;
    flex: 1;
    min-width: 180px;
}
.proof-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-action);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.proof-plus {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-action);
    vertical-align: super;
}
.proof-stat p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
}
.proof-divider {
    width: 1px;
    height: 60px;
    background: rgba(107,143,212,0.25);
    flex-shrink: 0;
}

/* ===== HOW IT WORKS ===== */
.how-section {
    padding: 5rem 2rem;
    background: var(--surface-white);
}
.how-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.how-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 3rem;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    counter-reset: steps;
}
.step-card {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107,143,212,0.18);
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-action);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.step-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.55;
}

/* ===== SPECIALTIES (updated layout) ===== */
.specialties-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}
.section-label-light {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    display: block;
    margin-bottom: 0.8rem;
}
.specialties-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}
.specialties-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
}
.specialties-list li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ===== TRUST BANNER ===== */
.trust-banner {
    background: var(--text-heading);
    padding: 5rem 2rem;
    text-align: center;
}
.trust-inner {
    max-width: 800px;
    margin: 0 auto;
}
.trust-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-logo-blue);
    margin-bottom: 1.2rem;
}
.trust-inner h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
}
.trust-inner h2 em {
    color: var(--brand-logo-blue);
    font-style: normal;
}

/* ===== HASHTAG BANNER (updated) ===== */
.hashtag-sub {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}
.hashtag-banner .store-buttons {
    margin-top: 2rem;
    justify-content: center;
}

/* ===== RESPONSIVE (new sections) ===== */
@media (max-width: 900px) {
    .specialties-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .specialties-content h2 {
        text-align: center;
    }
    .specialties-list {
        justify-content: center;
    }
    .proof-divider {
        display: none;
    }
    .proof-stat {
        padding: 1rem 1.5rem;
    }
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .pain-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .trust-inner h2 {
        font-size: 1.5rem;
    }
    .proof-number {
        font-size: 2.4rem;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .specialties-list {
        grid-template-columns: 1fr;
    }
}
