/* ==========================================================================
   Núcleo Directo — core
   Variables, reset, tipografía base, utilidades
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fuentes
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
    --ink: #14181f;
    --ink-soft: #4a5260;
    --midnight: #0b1326;
    --midnight-2: #111d38;
    --navy: #18305a;
    --navy-deep: #0f2142;
    --paper: #ffffff;
    --paper-alt: #f4f6fa;
    --line: #e2e6ee;
    --accent: #cc3333;
    --accent-strong: #a72828;
    --on-dark: #eef2f9;
    --on-dark-soft: #aab6cc;

    /* sombra de elevación reservada para tarjetas destacadas */
    --shadow-lift: 0 18px 48px rgba(11, 19, 38, 0.18);

    --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
    --font-text: "Inter", "Segoe UI", system-ui, sans-serif;

    --wrap: 1200px;
    --radius: 14px;
    --radius-sm: 8px;
}

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

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

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.4rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
}

p {
    margin: 0 0 1.1rem;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 3.5rem 0;
}

.section--tight {
    padding: 2.5rem 0;
}

.section--dark {
    background: var(--midnight);
    color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
    color: var(--on-dark);
}

.section--alt {
    background: var(--paper-alt);
}

.section__head {
    max-width: 46rem;
    margin-bottom: 2.25rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.section--dark .eyebrow {
    color: #ff7a7a;
}

.lede {
    font-size: 1.18rem;
    color: var(--ink-soft);
}

.section--dark .lede {
    color: var(--on-dark-soft);
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--accent-strong);
}

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: var(--navy);
}

.btn--on-dark {
    background: transparent;
    color: var(--on-dark);
    border-color: rgba(238, 242, 249, 0.3);
}

.btn--on-dark:hover {
    border-color: var(--on-dark);
}

/* --------------------------------------------------------------------------
   Accesibilidad
   -------------------------------------------------------------------------- */
.a11y-skip {
    position: absolute;
    left: 1rem;
    top: -120px;
    z-index: 60;
    background: var(--accent);
    color: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: top 0.2s ease;
}

.a11y-skip:focus {
    top: 1rem;
}

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

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

/* --------------------------------------------------------------------------
   Movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}
