/*
 * global.css — Ticosoft Futuro Digital
 * Estilos base, layout, utilidades y clases globales
 * ====================================================
 */

/* --------------------------------------------------
   BASE DOCUMENTO
   -------------------------------------------------- */

html {
    max-width: 100%;
    overflow-x: clip;
    background: var(--color-bg);
    color-scheme: dark;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
}

body {
    max-width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(41, 151, 255, 0.035),
            transparent 40%
        ),
        var(--color-bg);

    color: var(--color-text);

    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: 400;

    line-height: 1.5;

    overflow-x: clip;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------
   SELECCIÓN DE TEXTO
   -------------------------------------------------- */

::selection {
    background: var(--color-purple);
    color: var(--color-white);
}

/* --------------------------------------------------
   FOCO ACCESIBLE
   -------------------------------------------------- */

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

/* --------------------------------------------------
   SKIP LINK (ACCESIBILIDAD)
   -------------------------------------------------- */

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: var(--z-modal);
    transform: translateY(-200%);
    background: var(--color-white);
    color: var(--color-bg);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

/* --------------------------------------------------
   CONTENEDORES DE LAYOUT
   -------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--page-padding-desktop);
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--page-padding-desktop);
}

/* --------------------------------------------------
   SECCIONES
   -------------------------------------------------- */

.section {
    position: relative;
    width: 100%;
}

/* --------------------------------------------------
   TIPOGRAFÍA EDITORIAL
   -------------------------------------------------- */

.display-title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.035em;
}

/* --------------------------------------------------
   TEXTO CON GRADIENTE DE MARCA
   -------------------------------------------------- */

.brand-gradient-text {
    background: var(--gradient-brand);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------
   EYEBROW / LABEL SUPERIOR
   -------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-white-soft);
}

.eyebrow::before {
    content: '';
    width: 2px;
    height: 34px;
    background: var(--gradient-brand);
    flex-shrink: 0;
}

/* --------------------------------------------------
   VISIBILIDAD POR DISPOSITIVO
   -------------------------------------------------- */

.desktop-only {
    display: block;
}

.tablet-only,
.mobile-only {
    display: none;
}

/* --------------------------------------------------
   MAIN CONTENT
   -------------------------------------------------- */

#main-content {
    position: relative;
    z-index: var(--z-base);
}

/* --------------------------------------------------
   SCROLL-MARGIN: compensar header fijo en anclas
   -------------------------------------------------- */

section[id] {
    scroll-margin-top: 110px;
}
