/* ==========================================================================

    LA TEACHER BY SANJA
    LANDING · DESIGN SYSTEM

========================================================================== */


/* ==========================================================================
   RESET
========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100svh;
    overflow-x: hidden;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: #F8FAFD;
    color: #182230;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ==========================================================================
   VARIABLES
========================================================================== */

:root {

    /* Colors */
    --blue:         #2F5DA8;
    --blue-light:   #4B79C5;
    --blue-dark:    #1D3F7A;
    --green:        #25D366;
    --green-dark:   #1ebe59;
    --accent:       #F26E88;
    --text:         #182230;
    --text-muted:   #64748B;
    --border:       #E2EAF4;
    --bg:           #F8FAFD;
    --surface:      #FFFFFF;

    /* Radius */
    --radius-sm:    14px;
    --radius-md:    22px;
    --radius-lg:    36px;
    --radius-pill:  999px;

    /* Shadows */
    --shadow-sm:    0 4px 16px rgba(47, 93, 168, .07);
    --shadow-md:    0 16px 48px rgba(47, 93, 168, .12);
    --shadow-lg:    0 40px 100px rgba(47, 93, 168, .16);

    /* Easing */
    --ease:         cubic-bezier(.22, .61, .36, 1);

    /* Layout */
    --container:    1200px;

}


/* ==========================================================================
   SELECTION
========================================================================== */

::selection {
    background: var(--blue);
    color: #fff;
}


/* ==========================================================================
   CONTAINER
========================================================================== */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}


/* ==========================================================================
   PAGE BACKGROUND
========================================================================== */

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.bg-glow--1 {
    width: 700px;
    height: 700px;
    top: -220px;
    left: -180px;
    background: radial-gradient(circle, rgba(47, 93, 168, .13) 0%, transparent 70%);
}

.bg-glow--2 {
    width: 600px;
    height: 600px;
    bottom: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(242, 110, 136, .09) 0%, transparent 70%);
}

.bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(47, 93, 168, .055) 1px, transparent 1px);
    background-size: 26px 26px;
}


/* ==========================================================================
   SITE HEADER
========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(248, 250, 253, .88);
    border-bottom: 1px solid var(--border);
    animation: fadeDown .7s var(--ease) both;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    width: clamp(160px, 26vw, 240px);
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    padding-top: 8px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
    box-shadow: 0 4px 18px rgba(47, 93, 168, .28);
}

.nav-cta:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(47, 93, 168, .4);
}


/* ==========================================================================
   HERO
========================================================================== */

.hero {
    position: relative;
    padding: clamp(72px, 10vw, 80px) 0 clamp(56px, 8vw, 112px);
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(380px, 44vw, 680px);
    pointer-events: none;
    z-index: -1;
}

.hero-visual img {
    width: 100%;
    opacity: 0.3;
    filter: blur(.4px);
    will-change: transform;
    transition: transform .12s linear;
}


/* Badge */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    border: 1px solid rgba(47, 93, 168, .15);
    font-size: .8rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 28px;

}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}


/* Title */

.hero-title {
    font-size: clamp(3.2rem, 7.5vw, 6.8rem);
    font-weight: 800;
    line-height: .94;
    letter-spacing: -.04em;
    color: var(--text);
    margin-bottom: 48px;
    max-width: 840px;
}

.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--blue);
}


/* Sub */

.hero-sub {
    font-size: clamp(.98rem, 1.4vw, 1.2rem);
    font-weight: 400;
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 840px;
    margin-bottom: 18px;
}


/* Actions */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 55px 0;
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 52px;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all .3s var(--ease);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--whatsapp {
    background: var(--green);
    color: #fff;
    box-shadow: 0 6px 22px rgba(37, 211, 102, .32);
}

.btn--whatsapp:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(37, 211, 102, .44);
}

.btn--outline {
    background: rgba(255, 255, 255, .82);
    color: var(--text);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


/* Tags */

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all .3s var(--ease);
}

.hero-tags span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-tags span:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-2px);
}

.hero-tags span:hover::before {
    background: rgba(255, 255, 255, .7);
}


/* ==========================================================================
   SECTIONS SHARED
========================================================================== */

section {
    padding: clamp(72px, 9vw, 128px) 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 18px;
    max-width: 680px;
}

.section-sub {
    font-size: clamp(.95rem, 1.3vw, 1.12rem);
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 56px;
}


/* ==========================================================================
   FEATURES
========================================================================== */

.features {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 52px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all .35s var(--ease);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 93, 168, .18);
    background: var(--surface);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(47, 93, 168, .07);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    transition: background .3s var(--ease);
}

.feature-card:hover .feature-icon {
    background: rgba(47, 93, 168, .12);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue);
}

.feature-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: .9rem;
    line-height: 1.78;
    color: var(--text-muted);
}

/* Featured card — Cambridge Exams */
.feature-card--featured {
    background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(47, 93, 168, .32);
    position: relative;
    overflow: hidden;
}

.feature-card--featured::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}

.feature-card--featured::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    pointer-events: none;
}

.feature-card--featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(47, 93, 168, .48);
    border-color: transparent;
    background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.feature-card--featured .feature-icon {
    background: rgba(255, 255, 255, .16);
}

.feature-card--featured:hover .feature-icon {
    background: rgba(255, 255, 255, .24);
}

.feature-card--featured .feature-icon svg {
    stroke: #fff;
}

.feature-card--featured h3 {
    color: #fff;
}

.feature-card--featured p {
    color: rgba(255, 255, 255, .8);
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}


/* ==========================================================================
   CONTACT
========================================================================== */

.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 24px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .35s var(--ease);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 93, 168, .22);
}

.contact-card--wa {
    border-color: rgba(37, 211, 102, .28);
    background: rgba(37, 211, 102, .03);
}

.contact-card--wa:hover {
    border-color: rgba(37, 211, 102, .48);
    background: rgba(37, 211, 102, .07);
    box-shadow: 0 16px 48px rgba(37, 211, 102, .14);
}

.contact-card__icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(47, 93, 168, .07);
    display: grid;
    place-items: center;
    transition: background .3s var(--ease);
}

.contact-card:hover .contact-card__icon {
    background: rgba(47, 93, 168, .12);
}

.contact-card--wa .contact-card__icon {
    background: rgba(37, 211, 102, .11);
}

.contact-card--wa:hover .contact-card__icon {
    background: rgba(37, 211, 102, .18);
}

.contact-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue);
}

.contact-card--wa .contact-card__icon svg {
    stroke: none;
    fill: var(--green);
}

.contact-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-card__label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-card__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-card__hint {
    font-size: .8rem;
    color: var(--text-muted);
}

.contact-card__arrow {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    flex-shrink: 0;
    transition: transform .3s var(--ease), stroke .3s var(--ease);
}

.contact-card:hover .contact-card__arrow {
    transform: translateX(4px);
    stroke: var(--blue);
}

.contact-card--wa:hover .contact-card__arrow {
    stroke: var(--green);
}

.contact-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    color: var(--text-muted);
}

.contact-location svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent);
    flex-shrink: 0;
}


/* ==========================================================================
   FOOTER
========================================================================== */

.site-footer {
    padding: 56px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-logo {
    width: clamp(160px, 20vw, 210px);
    opacity: .75;
    user-select: none;
    -webkit-user-drag: none;
}

.footer-tagline {
    font-size: .98rem;
    font-weight: 300;
    font-style: italic;
    color: var(--blue);
}

.footer-copy {
    font-size: .8rem;
    color: var(--text-muted);
}


/* ==========================================================================
   REVEAL — ANIMACIÓN CSS PURA (sin dependencia de JS)
========================================================================== */

.reveal {
    animation: revealUp .7s var(--ease) both;
}

.reveal--delay-1 { animation-delay: .08s; }
.reveal--delay-2 { animation-delay: .18s; }
.reveal--delay-3 { animation-delay: .30s; }
.reveal--delay-4 { animation-delay: .44s; }


/* ==========================================================================
   ANIMACIONES
========================================================================== */

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1;  transform: scale(1);   }
    50%       { opacity: .8; transform: scale(.75); }
}


/* ==========================================================================
   RESPONSIVE — TABLET
========================================================================== */

@media (max-width: 1024px) {

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================================
   RESPONSIVE — MOBILE
========================================================================== */

@media (max-width: 768px) {

    .container {
        width: calc(100% - 40px);
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

}

@media (max-width: 480px) {

    .container {
        width: calc(100% - 40px);
    }

    .hero-title {
        font-size: clamp(2.8rem, 11vw, 3.5rem);
    }

    .nav-logo {
        width: 160px;
    }

    .contact-card__value {
        font-size: .92rem;
    }

    .hide-mobile {
        display: none;
    }

}
