/* ==========================================================================
   NeuralV v6 — BASE: tokens, tipografía y componentes
   Sistema de diseño propio. Nada de esto pisa el style.css de producción.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
    /* Color: escala de grises fría, un único acento */
    --ink: #1d1d1f;
    --ink-soft: #6e6e73;
    --ink-faint: #86868b;
    --surface: #ffffff;
    --surface-alt: #f5f5f7;
    /* Azul muy oscuro en vez de negro: mantiene la seriedad pero pertenece a
       la marca. El negro puro es de nadie; este azul es tuyo. */
    --surface-dark: #0a1a2f;
    --surface-dark-alt: #102741;
    --surface-dark-soft: #16304e;
    --brand: #006bf0;
    --brand-hover: #0058c7;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.16);
    --line-dark: rgba(255, 255, 255, 0.14);

    /* Semánticos, uso muy medido */
    --alert: #d7263d;
    --ok: #1a8f4c;
    --warn: #b4780a;

    /* Tipografía: una sola familia, siete tamaños. Ni uno más. */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --t-display: clamp(2.75rem, 6vw, 4.5rem);
    --t-h1: clamp(2.25rem, 4.5vw, 3.25rem);
    --t-h2: clamp(1.75rem, 3vw, 2.5rem);
    --t-h3: 1.375rem;
    --t-body-lg: 1.3125rem;
    --t-body: 1.0625rem;
    --t-small: 0.9375rem;
    --t-micro: 0.75rem;

    /* Ritmo vertical: escala de 8 */
    --s-1: 0.5rem;
    --s-2: 1rem;
    --s-3: 1.5rem;
    --s-4: 2rem;
    --s-5: 3rem;
    --s-6: 4rem;
    --s-7: 6rem;
    --s-8: 7.5rem;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 980px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 24px 64px rgba(0, 0, 0, 0.1);

    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --wrap: 1120px;
    --wrap-text: 720px;
}

/* --- 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);
    font-size: var(--t-body);
    line-height: 1.55;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

/* Foco visible: accesibilidad, no negociable */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Tipografía --------------------------------------------------------- */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.08;
    text-wrap: balance;
}

.display { font-size: var(--t-display); font-weight: 600; letter-spacing: -0.03em; }
h1, .h1 { font-size: var(--t-h1); }
h2, .h2 { font-size: var(--t-h2); }
h3, .h3 { font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.25; }

.lead {
    font-size: var(--t-body-lg);
    line-height: 1.45;
    color: var(--ink-soft);
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.eyebrow {
    display: block;
    font-size: var(--t-micro);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: var(--s-2);
}

.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* --- Layout ------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.wrap-text { max-width: var(--wrap-text); margin-inline: auto; }

.section { padding: var(--s-8) 0; }
.section-sm { padding: var(--s-7) 0; }
.section-alt { background: var(--surface-alt); }

.section-dark {
    background: var(--surface-dark);
    color: #f5f5f7;
}

.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #a1a1a6; }
.section-dark .eyebrow { color: #86868b; }

.section-head { max-width: var(--wrap-text); margin: 0 auto var(--s-6); text-align: center; }
.section-head .lead { margin-top: var(--s-2); }

.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Botones ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: var(--t-small);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.section-dark .btn-ghost { border-color: var(--line-dark); color: #fff; }
.section-dark .btn-ghost:hover { background: #fff; color: var(--ink); }

.btn-lg { padding: 1rem 2rem; font-size: var(--t-body); }
.btn-block { width: 100%; }

/* Enlace con flecha: el patrón de navegación secundaria del sistema */
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand);
    font-size: var(--t-body);
    transition: gap 0.25s var(--ease);
}

.link::after { content: "›"; font-size: 1.2em; line-height: 1; transform: translateY(-1px); }
.link:hover { gap: 0.6rem; }

/* --- Tarjeta ------------------------------------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-4);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.section-alt .card { background: var(--surface); border-color: transparent; box-shadow: var(--shadow-sm); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.section-dark .card {
    background: var(--surface-dark-alt);
    border-color: var(--line-dark);
}

.card h3 { margin-bottom: var(--s-1); }
.card p { color: var(--ink-soft); font-size: var(--t-small); }
.section-dark .card p { color: #a1a1a6; }

/* --- Iconos: SVG de trazo, 1.5px, heredan color ------------------------- */
.icon {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm { width: 18px; height: 18px; }
.icon-brand { color: var(--brand); }

/* --- Formularios -------------------------------------------------------- */
.field { margin-bottom: var(--s-2); }

.field label {
    display: block;
    font-size: var(--t-small);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.input, .select, .textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: var(--t-body);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 107, 240, 0.12);
}

.textarea { resize: vertical; min-height: 120px; }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236e6e73' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.6rem;
    color: var(--ink);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }

/* --- Responsive -----------------------------------------------------------
   Lo relativo a .nav-* y .footer-grid vive en navegacion.css (junto a sus
   reglas base): esa hoja se carga DESPUÉS de esta, así que una regla suya
   sin media query gana igualmente a una regla de aquí con media query,
   aunque el viewport cumpla la condición. Component + su responsive,
   siempre en el mismo archivo. */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    :root { --s-8: 4.5rem; --s-7: 3.5rem; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .promos-inner { grid-template-columns: 1fr; }
    .promo + .promo { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .form-row { grid-template-columns: 1fr; }
}
