/* ESTILOS COMPARTIDOS: fuentes, colores, reglas generales y navegación. */
/* 1. Fuentes locales. WOFF2 reduce descargas y mantiene las tipografías originales. */
@font-face {
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../assets/fredoka-light.woff2') format('woff2');
}

/* Pesos de Poppins del diseño: regular, negrita y seminegrita reales. */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/poppins-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/poppins-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/poppins-semibold.woff2') format('woff2');
}

@font-face {
    font-family: 'Fredoka One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../assets/original-font-0.woff2) format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(../assets/original-font-1.woff2) format('woff2');
}

/* 2. Colores, escala del diseño y reglas generales. */
/* Escala proporcional al marco original de 1728 unidades. */
:root {
    font-size: 0.925926vw;
    --cream: #fff8f0;
    --gray: #f0f0f0;
    --ink: #4b4b49;
    --yellow: #ffba00;
    --orange: #ff9100;
    --red: #ff3c4a;
    --pink: #ffa4be;
    --blue: #54b2ff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 11rem;
}

body {
    margin: 0;
    position: relative;
    background-color: var(--gray);
    background-size: 108rem auto;
    /* Compensa la cabecera más baja para conservar la posición de los vectores. */
    background-position: 0 -2.2318rem;
    background-repeat: no-repeat;
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    font-size: 1.5625rem;
    line-height: 1.52;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Fredoka One', sans-serif;
    font-weight: 400;
    line-height: 1.22;
}

p {
    margin: 0;
    font-size: 1.5625rem;
    line-height: 1.52;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 0.2rem solid #12477f;
    outline-offset: 0.3rem;
}

section {
    position: relative;
    overflow: hidden;
}

/* 3. Cabecera, logotipo y navegación compartida. */
.site_header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    height: 8.0182rem;
    padding: 0;
    background: var(--cream);
}

.brand {
    position: absolute;
    left: 3.3706rem;
    top: 0.5rem;
    width: 6.9598rem;
    height: 6.5881rem;
}

.brand img {
    width: 100%;
}

.main_navigation {
    position: absolute;
    left: 13.75rem;
    top: 3.0807rem;
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.0625rem solid #8d8d88;
    border-radius: 5rem;
    padding: 0.2rem 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.nav_link:hover {
    transform: translateY(-0.2rem);
}

.home_link:hover,
.home_link.is_active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.about_link:hover,
.about_link.is_active,
.activities_link:hover,
.activities_link.is_active {
    background: var(--yellow);
    border-color: #dda200;
}

.offerings_link:hover,
.offerings_link.is_active {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.levels_link:hover,
.levels_link.is_active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

.facilities_link:hover,
.facilities_link.is_active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.programs_link:hover,
.programs_link.is_active {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
}

.contact_link {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.contact_link:hover,
.contact_link.is_active {
    background: var(--pink);
    border-color: var(--pink);
}

.menu_toggle {
    display: none;
}
/* 4. Accesibilidad: enlaces visibles y movimiento reducido. */
.text_link {
    text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
