/* ============================================================
   00 · Base — reset, tipografía, grilla y componentes comunes
   ============================================================
   Los colores, tipografías y medidas viven en tema.css, que se
   carga ANTES que este archivo. Aquí no debe aparecer ningún
   color literal: si hace falta uno nuevo, se agrega como
   variable al tema. Así una landing para otro cliente se
   reskinea reemplazando un solo archivo.
   ============================================================ */

/* --- Reset ------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

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

/* --- Accesibilidad ----------------------------------------- */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.saltar-al-contenido {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--sobre-claro);
    font-weight: 700;
}
.saltar-al-contenido:focus { left: 0; }

.solo-lectores {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- Layout ------------------------------------------------ */

.contenedor {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.seccion { padding: clamp(56px, 8vw, 104px) 0; }

.seccion--alt { background: var(--bg-alt); }

/* --- Encabezado de sección --------------------------------- */

.antetitulo {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.encabezado-seccion {
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: clamp(36px, 5vw, 58px);
    text-align: center;
}

.encabezado-seccion p { color: var(--text-soft); }

/* --- Botones ----------------------------------------------- */

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.boton--primario {
    background: var(--grad);
    color: var(--sobre-acento);
    box-shadow: 0 8px 22px rgba(27, 63, 216, .3);
}

/* Ámbar: sólo para lo urgente (plazo de la Ley 21.719). Usado con
   mesura; si todo es urgente, nada lo es. */
.boton--alerta {
    background: var(--alerta);
    color: var(--sobre-claro);
    box-shadow: 0 8px 22px rgba(240, 160, 32, .25);
}

.boton--secundario {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.boton:hover { transform: translateY(-2px); }
.boton--secundario:hover { background: rgba(255, 255, 255, .06); }
.boton:active { transform: translateY(0); }

/* --- Animación de entrada ---------------------------------- */

.revelar {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}

.revelar.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .revelar { opacity: 1; transform: none; }
}
