/**
 * VIRAXIS — Base
 * Reset, tipografía base, utilidades de layout y accesibilidad.
 */

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

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--t-base) var(--ease-standard), color var(--t-base) var(--ease-standard);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

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

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

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

/* Reset explícito: ninguna librería externa debe poder colorear o
   dimensionar un <nav> por defecto (causó un bug visible con
   Materialize antes de quitarlo del proyecto). */
nav {
    background: none;
    height: auto;
    line-height: normal;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: var(--color-primary);
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4 {
    color: var(--color-text);
}

p {
    margin: 0;
}

/* ===== Foco visible — accesibilidad ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
    font-family: var(--font-utility);
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* ===== Contenedor ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ===== Secciones ===== */
.section {
    padding-block: var(--space-section);
    position: relative;
}

.section-head {
    max-width: 680px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.faq-head {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-utility);
    font-weight: 700;
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-cta);
    box-shadow: 0 0 0 4px rgba(248, 173, 42, 0.18);
}

.section-title {
    font-size: var(--fs-2xl);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.section-text {
    color: var(--color-text-muted);
    margin-top: 14px;
}

.text-muted-strong {
    color: var(--color-text-muted);
    display: block;
    margin-top: 6px;
}

.text-flow {
    background: linear-gradient(100deg, var(--color-secondary), var(--color-accent) 60%, var(--color-cta));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: flow-gradient 6s ease infinite;
}

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: inline;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
