:root {
    --brand-primary: #0151cc;
    --brand-secondary: #f9f7f2;
    --brand-tertiary: #0f1842;
    --brand-accent: #c7d1ff;
    --brand-light-blue: #bddfff;
    --brand-dark: #02041a;
    --brand-surface: #0f1842;
    --brand-surface-raised: #101f59;
    --brand-muted: #c7d1ff;
    --cta-yellow: #febb22;
    --cta-yellow-hover: #eb8d00;
    --light-yellow: #fcf187;
    --text-primary: #f9f7f2;
    --text-secondary: #0f1842;
    --font-primary: 'Kumbh Sans', sans-serif;
    --radius: 10px;
    --shadow: 0 18px 48px rgb(2 4 26 / 35%), 0 0 32px rgb(1 81 204 / 13%);
    --content-width: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-space: clamp(2rem, 5vw, 4rem);
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background:
        radial-gradient(ellipse at 86% 12%, rgb(1 81 204 / 40%), transparent 48%),
        radial-gradient(ellipse at 12% 72%, rgb(1 81 204 / 18%), transparent 42%),
        var(--brand-dark);
}

main {
    flex: 1;
    min-width: 0;
}

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

iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 1rem;
    line-height: 1.25;
    font-weight: 700;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

h3 {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    margin: 0 0 1rem;
    color: var(--brand-muted);
}

ul,
ol {
    margin: 0 0 1rem;
    padding-inline-start: 1.5rem;
}

a {
    color: var(--cta-yellow);
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--cta-yellow);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.primary-cta-button,
.plan-btn,
.access-platform-button,
.Tidiomas-button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25em;
    min-height: 48px;
    max-width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: linear-gradient(105deg, var(--cta-yellow), var(--light-yellow));
    box-shadow: 0 9px 37px rgb(254 187 34 / 25%), inset 0 1px 0 rgb(255 255 255 / 42%);
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn-reset {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-secondary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.site-notice {
    width: min(calc(100% - 2 * var(--gutter)), 48rem);
    margin: var(--section-space) auto;
    padding: var(--gutter);
    border: 1px solid rgb(199 209 255 / 35%);
    border-radius: var(--radius);
    background: var(--brand-surface);
    color: var(--text-primary);
}

.site-header {
    position: relative;
    z-index: 10;
    color: var(--text-primary);
    background: var(--brand-surface);
    border-bottom: 1px solid rgb(199 209 255 / 14%);
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, var(--content-width));
    min-height: 88px;
    margin-inline: auto;
    padding: 1rem var(--gutter);
}

.logo a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
}

.logo img {
    width: 160px;
    max-height: 56px;
    object-fit: contain;
}

.hamburguer {
    min-height: 48px;
    padding: 0.5rem 1rem;
    border: 1px solid rgb(199 209 255 / 55%);
    border-radius: var(--radius);
    color: var(--text-primary);
    background: transparent;
    font-weight: 700;
}

.menu {
    position: absolute;
    inset-inline: var(--gutter);
    top: 100%;
    display: none;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid rgb(199 209 255 / 35%);
    border-radius: var(--radius);
    background: var(--brand-surface);
    box-shadow: var(--shadow);
}

.menu.active {
    display: block;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem;
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
}

.menu a[aria-current="page"] {
    color: var(--cta-yellow);
    text-decoration: underline;
}

.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--cta-yellow);
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: var(--gutter);
    z-index: 20;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--light-yellow);
    color: var(--text-secondary);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-footer {
    margin-top: var(--section-space);
    padding: 2rem var(--gutter);
    text-align: center;
    color: var(--text-primary);
    border-top: 1px solid rgb(199 209 255 / 16%);
    background: var(--brand-dark);
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 80px;
    border-radius: var(--radius);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgb(199 209 255 / 45%);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1.25rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
}

@media (hover: hover) {
    .primary-cta-button:hover,
    .plan-btn:hover,
    .access-platform-button:hover,
    .Tidiomas-button:hover,
    .btn:not(:disabled):hover {
        color: var(--text-secondary);
        background: linear-gradient(105deg, var(--cta-yellow-hover), var(--cta-yellow));
        box-shadow: 0 12px 42px rgb(254 187 34 / 41%);
        transform: translateY(-2px);
    }

    .menu a:hover,
    .hamburguer:hover,
    .social-links a:hover {
        color: var(--text-secondary);
        border-color: var(--cta-yellow);
        background: var(--cta-yellow);
    }
}

@media (min-width: 48rem) {
    body {
        font-size: 1.0625rem;
    }
}

@media (min-width: 75rem) {
    .hamburguer {
        display: none;
    }

    .menu,
    .menu.active {
        position: static;
        display: block;
        max-height: none;
        overflow: visible;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .menu ul {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .menu a {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
