/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #1e3a8a;
    --blue-dark: #152a63;
    --blue-light: #2e4fb8;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --max-width: 1200px;
    --header-h: 80px;
    --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-blue {
    color: var(--blue);
}

.text-red {
    color: var(--red);
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
}

.btn--primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.45);
}

.btn--ghost {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn--ghost:hover {
    background: var(--blue);
    color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--blue);
}

.btn--white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* =========================
   HEADER
   ========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo-img {
    height: 72px;
    width: auto;
    transform: scale(2.2) translateY(4px);
    transform-origin: left center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    display: inline-block;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700);
    border-radius: 999px;
    transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
    color: var(--blue);
    background: var(--gray-100);
}

.nav__link--summer {
    color: #d97706;
    font-weight: 700;
}

.nav__link--summer:hover {
    color: #b45309;
}

.nav__link--cta {
    background: var(--blue);
    color: var(--white);
    padding: 10px 22px;
}

.nav__link--cta:hover {
    background: var(--blue-dark);
    color: var(--white);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 999px;
    padding: 3px;
    gap: 1px;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-500);
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}

.lang-btn:hover {
    color: var(--blue);
}

.lang-btn.active {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue);
    transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Switcher en móvil: junto al hamburger, a la derecha */
@media (max-width: 720px) {
    .lang-switcher {
        order: 2;
    }

    .nav__toggle {
        order: 3;
    }
}

/* =========================
   HERO
   ========================= */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 100px;
    background:
        radial-gradient(circle at 85% 10%, rgba(220, 38, 38, 0.08), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(30, 58, 138, 0.08), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--blue);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat__number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 4px;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Hero visual */
.hero__visual {
    position: relative;
    height: 480px;
}

.hero__card {
    position: absolute;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 130px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.hero__card p {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-top: 6px;
}

.hero__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.hero__card--1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.hero__card--2 {
    top: 20px;
    right: 20px;
    animation-delay: 1.5s;
}

.hero__card--2 .hero__card-icon {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.hero__card--3 {
    bottom: 30px;
    right: 20px;
    animation-delay: 3s;
}

.hero__card--3 .hero__card-icon {
    background: linear-gradient(135deg, #0f172a, #334155);
}

.hero__slogan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    padding: 30px 34px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--blue) 0%, #2e4fb8 55%, var(--red) 130%);
    color: var(--white);
    box-shadow:
        0 20px 48px rgba(30, 58, 138, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.3;
    animation: slogan-float 6s ease-in-out infinite, slogan-glow 4s ease-in-out infinite;
    animation-delay: 0.8s, 0s;
    z-index: 3;
    overflow: hidden;
}

.hero__slogan::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.25) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: slogan-shine 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
    pointer-events: none;
}

.hero__slogan-spark {
    flex-shrink: 0;
    display: inline-flex;
    color: #fde68a;
    filter: drop-shadow(0 0 6px rgba(253, 230, 138, 0.6));
    animation: spark 2.6s ease-in-out infinite;
}

.hero__slogan-text {
    position: relative;
}

.hero__slogan strong {
    font-weight: 800;
    color: #fde047;
}

.hero__slogan em {
    font-style: normal;
    position: relative;
    display: inline-block;
}

.hero__slogan em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: linear-gradient(90deg, #fde047, rgba(253, 224, 71, 0));
    border-radius: 2px;
}

@keyframes slogan-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(-3deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(-3deg) translateY(-14px); }
}

@keyframes spark {
    0%, 100% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.18) rotate(-12deg); }
    60% { transform: scale(1.1) rotate(14deg); }
}

@keyframes slogan-glow {
    0%, 100% {
        box-shadow:
            0 18px 36px rgba(30, 58, 138, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow:
            0 22px 44px rgba(220, 38, 38, 0.38),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

@keyframes slogan-shine {
    0% { transform: translateX(-100%); }
    55%, 100% { transform: translateX(120%); }
}

.hero__badge {
    position: absolute;
    bottom: 30px;
    left: -10px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 130px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.hero__badge span {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hero__badge strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-800);
}

.hero__badge small {
    color: var(--gray-500);
    font-size: 0.72rem;
    line-height: 1.2;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* =========================
   SECTION HEADERS
   ========================= */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.section-header__tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--red);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header__description {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* =========================
   FEATURES
   ========================= */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Historia */
.features__story {
    position: relative;
}

.features__year {
    position: absolute;
    top: -32px;
    left: -12px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(30, 58, 138, 0.06);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
}

.features__story-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    margin: 12px 0 20px;
}

.features__story-title em {
    font-style: normal;
    color: var(--red);
}

.features__story-lead {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 460px;
}

.features__story-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.features__story-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.features__story-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    margin-top: 7px;
}

/* Grid tarjetas */
.features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.feature-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card__icon-wrap--blue {
    background: rgba(30, 58, 138, 0.08);
}

.feature-card__icon-wrap--red {
    background: rgba(220, 38, 38, 0.08);
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card__text {
    color: var(--gray-500);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* =========================
   COURSES
   ========================= */
.courses {
    padding: 100px 0;
    position: relative;
    background-color: #f8faff;
    overflow: hidden;
}

.courses::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3C!-- Comillas grandes --%3E%3Ctext x='8' y='52' font-family='Georgia,serif' font-size='72' fill='%231e3a8a' opacity='0.055'%3E%E2%80%9C%3C/text%3E%3C!-- ABC --%3E%3Ctext x='110' y='40' font-family='Arial,sans-serif' font-size='13' font-weight='800' letter-spacing='4' fill='%23dc2626' opacity='0.09'%3EABC%3C/text%3E%3C!-- Linea subrayado --%3E%3Cline x1='108' y1='45' x2='158' y2='45' stroke='%23dc2626' stroke-width='2' opacity='0.07'/%3E%3C!-- Burbuja speech --%3E%3Crect x='120' y='90' width='52' height='34' rx='10' fill='none' stroke='%231e3a8a' stroke-width='2' opacity='0.07'/%3E%3Cpolygon points='128,124 135,136 142,124' fill='none' stroke='%231e3a8a' stroke-width='2' opacity='0.07'/%3E%3Cline x1='130' y1='103' x2='162' y2='103' stroke='%231e3a8a' stroke-width='1.5' opacity='0.06'/%3E%3Cline x1='130' y1='112' x2='155' y2='112' stroke='%231e3a8a' stroke-width='1.5' opacity='0.06'/%3E%3C!-- Lapiz inclinado --%3E%3Cg transform='rotate(-30 40 148)' opacity='0.08'%3E%3Crect x='28' y='128' width='10' height='38' rx='2' fill='none' stroke='%231e3a8a' stroke-width='2'/%3E%3Cpolygon points='28,166 33,178 38,166' fill='%231e3a8a'/%3E%3Cline x1='28' y1='136' x2='38' y2='136' stroke='%231e3a8a' stroke-width='1.5'/%3E%3C/g%3E%3C!-- Estrellita --%3E%3Cpolygon points='172,158 174,164 181,164 175,168 177,174 172,170 167,174 169,168 163,164 170,164' fill='%23dc2626' opacity='0.1'/%3E%3C!-- Onda sonido --%3E%3Cpath d='M8 155 Q14 145 20 155 Q26 165 32 155 Q38 145 44 155' fill='none' stroke='%231e3a8a' stroke-width='2' opacity='0.07'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
}

/* === ACADEMIAS SPLIT === */
.academies__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.academy-card {
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.academy-card--left {
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.academy-card--right {
    background: linear-gradient(160deg, #1e3a8a 0%, #162d6e 100%);
    color: var(--white);
    box-shadow: 0 24px 60px rgba(30, 58, 138, 0.3);
}

.academy-card__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.academy-card--left .academy-card__tag {
    background: rgba(30, 58, 138, 0.08);
    color: var(--blue);
}

.academy-card--right .academy-card__tag {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.academy-card__title {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: inherit;
}

.academy-card__title strong {
    font-weight: 800;
    display: block;
    font-size: 1.7rem;
}

.academy-card--right .academy-card__title {
    color: var(--white);
}

.academy-card__desc {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-top: 10px;
    opacity: 0.75;
}

.academy-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.academy-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--gray-700);
}

.academy-card__features li span {
    color: var(--blue);
    font-weight: 700;
}

.academy-card__cta {
    align-self: flex-start;
}

.academy-card--right .academy-card__cta {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
}

.academy-card--right .academy-card__cta:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Precios */
.academy-prices {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.academy-prices__label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
    margin-bottom: -6px;
}

.academy-prices__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    min-width: 80px;
    flex: 1;
    text-align: center;
    gap: 4px;
}

.price-pill span {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
}

.price-pill--accent {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.5);
}

.academy-prices__extras {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.price-extra {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
}

.price-extra__label {
    font-size: 0.8rem;
    opacity: 0.7;
}

.price-extra__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
}

/* Horarios */
.academy-schedule {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.academy-schedule__title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.academy-schedule__title span {
    font-weight: 400;
    opacity: 0.65;
}

.academy-schedule__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.academy-schedule__list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 14px;
    position: relative;
}

.academy-schedule__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(220, 38, 38, 0.8);
    font-weight: 700;
}

.academy-schedule__list li strong {
    color: var(--white);
    font-weight: 600;
}

/* Variantes light para Vilanova */
.academy-prices--light .academy-prices__label {
    color: var(--gray-500);
}

.price-pill--light {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.price-pill--light span {
    color: var(--gray-900);
}

.price-pill--accent-light {
    background: rgba(30, 58, 138, 0.06);
    border-color: rgba(30, 58, 138, 0.2);
}

.academy-prices__extras--light {
    margin-top: 4px;
}

.price-extra--light {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.price-extra__value--dark {
    color: var(--gray-900);
}

/* Responsive academias */
@media (max-width: 860px) {
    .academies__split {
        grid-template-columns: 1fr;
    }
}

/* =========================
   METHOD
   ========================= */
.method {
    padding: 100px 0;
}

.method__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.method__content .section-header__tag,
.method__content .section-header__title,
.method__content .section-header__description {
    text-align: left;
}

.method__content .section-header__title {
    margin-top: 16px;
}

.method__content .section-header__description {
    max-width: 100%;
    margin: 0 0 40px;
}

.method__steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.method__step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.method__step-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
}

.method__step:nth-child(2) .method__step-number {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.method__step:nth-child(3) .method__step-number {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
}

.method__step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.method__step p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.method__image-box {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--blue), var(--blue-light) 60%, var(--red) 130%);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.method__image-box::before,
.method__image-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.method__image-box::before {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -80px;
}

.method__image-box::after {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -60px;
}

.method__image-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.method__image-text {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    font-style: italic;
}

.method__image-author {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* =========================
   TESTIMONIALS
   ========================= */

/* =========================
   VERANO 2026
   ========================= */
.summer {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #0f1f5c 0%, #1e3a8a 45%, #1a1040 100%);
    overflow: hidden;
    color: var(--white);
}

.summer__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(100px, 18vw, 220px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: 0.15em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.summer::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.summer::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 200, 48, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.summer__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Tag */
.summer__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Título */
.summer__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 16px;
}

.summer__title-accent {
    color: #fbbf24;
}

.summer__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 400px;
}

/* Badge gratuita */
.summer__badge-free {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1000;
    border-radius: 14px;
    padding: 14px 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
}

.summer__badge-free-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summer__badge-free-value {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.summer__badge-free-date {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.75;
}

/* Niveles pill */
.summer__level-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 10px 20px;
}

.summer__level-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.summer__level-range {
    font-size: 1rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.03em;
}

/* Detalles derecha */
.summer__group-block {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.summer__detail-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summer__age-list {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.summer__age-list li span {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
}

/* Features */
.summer__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.summer__features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.summer__feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.summer__features strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.summer__features p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* CTA */
.summer__price {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 20px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    border-left: 4px solid #fbbf24;
}

.summer__price-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.summer__price-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.summer__price-value {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
    letter-spacing: -0.02em;
}

.summer__price-period {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.summer__cta {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    font-weight: 700;
    width: 100%;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
}

.summer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(220, 38, 38, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .summer__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .summer__bg-text {
        font-size: 80px;
    }
}

.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial__google {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.testimonial__google:hover {
    color: #4285F4;
}

.testimonial__stars {
    color: #f59e0b;
    letter-spacing: 2px;
}

.testimonial__text {
    color: var(--gray-700);
    font-style: italic;
    flex-grow: 1;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--red));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial__author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial__author small {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* =========================
   CTA BANNER
   ========================= */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 70%, var(--red) 140%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-banner__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-banner p {
    opacity: 0.9;
}

/* =========================
   CONTACT
   ========================= */
.contact {
    padding: 100px 0;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact__info .section-header__tag,
.contact__info .section-header__title,
.contact__info .section-header__description {
    text-align: left;
}

.contact__info .section-header__title {
    margin-top: 16px;
}

.contact__info .section-header__description {
    max-width: 100%;
    margin: 0 0 40px;
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact__list strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact__list p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Form */
.contact__form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-500);
    cursor: pointer;
}

.form__check-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    cursor: pointer;
}

.form__group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--gray-900);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
}

.form__group textarea {
    resize: vertical;
    min-height: 100px;
}

.form__submit {
    grid-column: 1 / -1;
    width: 100%;
    padding: 16px;
}

.form__feedback {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    margin: 0;
    min-height: 20px;
}

.form__feedback.success {
    color: #059669;
}

.form__feedback.error {
    color: var(--red);
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding-top: 80px;
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 60px;
    align-items: start;
}

.footer__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    object-position: left top;
    display: block;
    margin-top: -14px;
    margin-bottom: 38px;
    filter: brightness(0) invert(1);
    transform: scale(1.5);
    transform-origin: left top;
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--gray-300);
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background var(--transition), transform var(--transition);
}

.footer__social a:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.footer__col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col a,
.footer__col li {
    font-size: 0.9rem;
    color: var(--gray-300);
    transition: color var(--transition);
}

.footer__col a:hover {
    color: var(--white);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* =========================
   WHATSAPP FAB
   ========================= */
.whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    z-index: 50;
    transition: transform var(--transition);
}

.whatsapp:hover {
    transform: scale(1.08);
}

/* =========================
   ANIMATIONS ON SCROLL
   ========================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 960px) {
    .hero__container,
    .method__container,
    .contact__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__visual {
        height: 400px;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

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

@media (max-width: 720px) {
    :root {
        --header-h: 60px;
    }

    .header {
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    .header__logo-img {
        height: 52px;
        transform: scale(2.2) translateY(2px);
    }

    .header__container {
        gap: 0;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 10px;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-120%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav__link {
        text-align: center;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding: calc(var(--header-h) + 24px) 0 60px;
        background:
            radial-gradient(circle at 85% 10%, rgba(220, 38, 38, 0.06), transparent 35%),
            radial-gradient(circle at 10% 70%, rgba(30, 58, 138, 0.06), transparent 40%),
            var(--white);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .features__year {
        font-size: 5rem;
    }

    .features,
    .courses,
    .method,
    .testimonials,
    .contact {
        padding: 70px 0;
    }

    .contact__form {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 40px;
    }

    .cta-banner__container {
        flex-direction: column;
        text-align: center;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero__visual {
        height: 360px;
        width: 100%;
    }

    .hero__card {
        min-width: 110px;
        padding: 12px;
    }

    .hero__card p {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .hero__card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero__card--1 {
        top: 16px;
        left: 8px;
    }

    .hero__card--2 {
        top: 16px;
        right: 8px;
    }

    .hero__card--3 {
        bottom: 16px;
        right: 8px;
    }

    .hero__badge {
        bottom: 16px;
        left: 8px;
        padding: 12px;
        min-width: 110px;
    }

    .hero__badge span {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero__slogan {
        width: 220px;
        padding: 22px 24px;
        font-size: 1.2rem;
        gap: 12px;
    }

    .hero__slogan-spark svg {
        width: 22px;
        height: 22px;
    }
}

/* =========================
   POPUP NUEVA ACADEMIA
   ========================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.popup {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s ease;
}

.popup-overlay.is-visible .popup {
    transform: translateY(0) scale(1);
}

.popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.popup__close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.popup__badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(220, 38, 38, 0.1));
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    border: 1px solid rgba(30, 58, 138, 0.15);
}

.popup__icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
}

.popup__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 24px;
}

.popup__title span {
    background: linear-gradient(135deg, var(--blue), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup__date {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(135deg, var(--blue), #2e4fb8);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.popup__date-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.popup__date-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.popup__text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 28px;
}

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

@media (max-width: 480px) {
    .popup {
        padding: 32px 24px;
    }

    .popup__title {
        font-size: 1.35rem;
    }
}

/* =========================
   LEGAL MODAL
   ========================= */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.legal-modal-overlay[hidden] {
    display: none;
}

.legal-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.legal-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.legal-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.legal-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}

.legal-modal__close:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.legal-modal__body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--gray-700);
}

.legal-modal__body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 1.5rem 0 0.5rem;
}

.legal-modal__body h3:first-child {
    margin-top: 0;
}

.legal-modal__body p {
    margin-bottom: 0.75rem;
}

.legal-modal__body ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.legal-modal__body li {
    margin-bottom: 0.35rem;
}

.legal-modal__body a {
    color: var(--blue);
    text-decoration: underline;
}

.legal-modal__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1rem 0;
}

.legal-modal__body th,
.legal-modal__body td {
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.legal-modal__body th {
    background: var(--gray-100);
    font-weight: 600;
}

.legal-modal__body code {
    background: var(--gray-100);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* =========================
   COOKIE BANNER
   ========================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--white);
    z-index: 1500;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.15);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.55;
    min-width: 200px;
    color: var(--gray-200);
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-banner__link {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-300);
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
    transition: color var(--transition);
}

.cookie-banner__link:hover {
    color: var(--white);
}

.btn--sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

/* =========================
   LINK-STYLE BUTTONS
   ========================= */
.link-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue);
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    display: inline;
}

.link-btn:hover {
    color: var(--blue-dark);
}

/* =========================
   FOOTER LEGAL BUTTONS
   ========================= */
.footer__legal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-align: left;
    opacity: 0.75;
    transition: opacity var(--transition);
}

.footer__legal-btn:hover {
    opacity: 1;
}

/* =========================
   FORM LEGAL INFO (art. 13 RGPD)
   ========================= */
.form__legal-info {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .legal-modal__header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .legal-modal__body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* =========================
   TEST DE NIVEL MODAL
   ========================= */
.test-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.test-modal-overlay[hidden] {
    display: none;
}

.test-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.test-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    z-index: 1;
}

.test-modal__close:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.test-screen {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.test-progress-wrap {
    margin-bottom: 1.5rem;
}

.test-progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.test-progress-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.test-progress-label {
    font-size: 0.82rem;
    color: var(--gray-500);
    text-align: right;
}

.test-header {
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.test-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.test-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
}

.test-data-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.test-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.test-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

.test-field input {
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--gray-900);
    transition: border-color var(--transition);
    background: var(--white);
}

.test-field input:focus {
    outline: none;
    border-color: var(--blue);
}

.test-questions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.test-question {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.test-question__text {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.test-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.test-option input[type="radio"] {
    display: none;
}

.test-option:hover {
    border-color: var(--blue-light);
    background: var(--gray-50);
}

.test-option--selected {
    border-color: var(--blue);
    background: #eff6ff;
}

.test-option__letter {
    font-weight: 700;
    color: var(--blue);
    font-size: 0.88rem;
    min-width: 18px;
    padding-top: 1px;
}

.test-option__text {
    font-size: 0.92rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.test-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.test-btn-next,
.test-btn-prev {
    min-width: 140px;
}

.test-error {
    font-size: 0.85rem;
    color: var(--red);
    min-height: 1.2rem;
    margin-top: 0.25rem;
}

.test-result {
    text-align: center;
    padding: 1rem 0;
}

.test-result__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.test-level-badge {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue);
    background: #eff6ff;
    border: 3px solid var(--blue);
    border-radius: var(--radius-lg);
    padding: 0.5rem 2rem;
    margin-bottom: 1.25rem;
}

.test-result__score {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.test-result__desc {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.test-result__cta {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-weight: 500;
}

.test-btn-contact {
    margin: 0 auto;
    display: inline-block;
}

@media (max-width: 600px) {
    .test-screen {
        padding: 1.25rem;
    }

    .test-header {
        padding-right: 2rem;
    }

    .test-title {
        font-size: 1.2rem;
    }

    .test-level-badge {
        font-size: 2.2rem;
        padding: 0.4rem 1.5rem;
    }

    .test-nav {
        flex-direction: column-reverse;
    }

    .test-btn-next,
    .test-btn-prev {
        width: 100%;
        text-align: center;
    }
}
