/* ============================================================
   ITERIA VIA — Base compartida (portal, login, registro)
   Colores, reset, contenedor y botones.
   ============================================================ */

/* La letra Inter servida desde nuestro servidor (antes de Google: frenaba ~0.8 s cada pantalla). Variable 300–900,
   sólo latín y latín extendido; licencia en recursos/fuentes/OFL-Inter.txt (revisión de velocidad, 2026-10-19) */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fuentes/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fuentes/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Paleta ITERIA: azul claro + texto azul, a juego con el logo */
    --azul-fondo: #F5F9FF;
    --azul-claro: #E8F1FF;
    --azul-borde: #D6E4F7;
    --azul-texto: #0B2A5B;
    --azul-texto-2: #4A6488;
    --azul-marca: #1F6FEB;
    --azul-marca-oscuro: #1858C4;
    --azul-boton: #0B2A5B;          /* botones principales: azul marino */
    --azul-boton-hover: #16407F;

    --verde: #15803d;
    --verde-claro: #DCFCE7;
    --rojo: #b91c1c;
    --rojo-claro: #FEE2E2;

    --radius-sm: 8px;
    --radius-md: 12px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
    font-family: var(--font);
    color: var(--azul-texto);
    line-height: 1.6;
    background: var(--azul-fondo);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s, background-color 0.15s;
}

ul, ol {
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--azul-marca);
    outline-offset: 2px;
}

/* ===== CONTENEDOR ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--azul-boton);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--azul-boton-hover);
}

.btn-ghost {
    background: #fff;
    color: var(--azul-texto);
    border-color: var(--azul-borde);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--azul-claro);
}

.btn-blanco {
    background: #fff;
    color: var(--azul-texto);
}

.btn-blanco:hover {
    background: var(--azul-claro);
}

.btn-lg {
    padding: 14px 26px;
    font-size: 1rem;
}

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

/* Celular y tablet: los campos con letra de menos de 16 px hacen que el iPhone acerque la
   pantalla solo al tocarlos (y queda movida). Por eso aquí, y sólo aquí, se fuerza 16 px. */
@media (max-width: 900px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Transición suave entre páginas (el sistema no es de una sola página: cada clic del menú navega de verdad).
   Sin JS ni build: el navegador la hace sola si la soporta; si no, sigue como siempre (sin transición). */
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}
