/* ============================================
   BASE - SURCO SALVAJE
   Reset + variables + tipografía
   ============================================ */

/* ============================================
   FUENTES
   ============================================ */
@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/SpaceGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/SpaceGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/SpaceGrotesk-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../assets/fonts/SpaceMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../assets/fonts/SpaceMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
    /* Colores del negocio (del JSON) */
    --primario: #00E5FF;
    --secundario: #B026FF;
    --fondo: #0B0B12;
    --texto: #F0F0F5;

    /* Variaciones */
    --primario-oscuro: #00B8CC;
    --primario-claro: #66F0FF;
    --secundario-oscuro: #8B1FD0;
    --secundario-claro: #D966FF;
    --texto-suave: #B8B8C8;
    --texto-tenue: #7A7A8C;
    --blanco: #FFFFFF;
    --negro: #000000;

    /* Fondo con variaciones */
    --fondo-950: #08080E;
    --fondo-900: #0B0B12;
    --fondo-850: #111118;
    --fondo-800: #16161F;
    --fondo-700: #1E1E2A;
    --fondo-600: #2A2A38;
    --borde: #1E1E2A;
    --borde-fuerte: #2A2A38;

    /* Degradados neón */
    --gradiente-neon: linear-gradient(135deg, #00E5FF 0%, #B026FF 100%);
    --gradiente-neon-horizontal: linear-gradient(90deg, #00E5FF 0%, #B026FF 100%);

    /* Tipografía */
    --fuente-titulos: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fuente-cuerpo: 'Space Mono', 'SF Mono', Monaco, 'Courier New', monospace;

    /* Espaciado */
    --esp-1: 4px;
    --esp-2: 8px;
    --esp-3: 12px;
    --esp-4: 16px;
    --esp-5: 20px;
    --esp-6: 24px;
    --esp-8: 32px;
    --esp-10: 40px;
    --esp-12: 48px;
    --esp-16: 64px;
    --esp-20: 80px;
    --esp-24: 96px;
    --esp-32: 128px;

    /* Radios (sin redondeo, todo cuadrado) */
    --radio-sm: 0px;
    --radio-md: 0px;
    --radio-lg: 0px;
    --radio-full: 999px;

    /* Transiciones */
    --transicion: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transicion-lenta: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Ancho máximo */
    --max-ancho: 1400px;
    --max-ancho-texto: 760px;

    /* Glow neón */
    --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.5);
    --glow-purple: 0 0 20px rgba(176, 38, 255, 0.5);
}

/* ============================================
   RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--fuente-cuerpo);
    background: var(--fondo);
    color: var(--texto);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Grano fino de fondo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    line-height: 1.05;
    color: var(--texto);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--esp-4);
}

a {
    color: var(--primario);
    text-decoration: none;
    transition: color var(--transicion);
}

a:hover {
    color: var(--primario-claro);
}

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

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

ul, ol {
    list-style: none;
}

/* ============================================
   CONTENEDOR
   ============================================ */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.contenedor {
    width: 100%;
    max-width: var(--max-ancho);
    margin: 0 auto;
    padding: 0 var(--esp-6);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--fondo-950);
}

::-webkit-scrollbar-thumb {
    background: var(--gradiente-neon-horizontal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primario);
}

/* ============================================
   SELECCIÓN
   ============================================ */
::selection {
    background: var(--primario);
    color: var(--fondo);
}

/* ============================================
   UTILIDADES
   ============================================ */
.oculto {
    display: none !important;
}

.texto-centro {
    text-align: center;
}

/* ============================================
   EVITAR SELECCIÓN DE TEXTO EN ELEMENTOS INTERACTIVOS
   ============================================ */
button,
a,
.faq-pregunta,
.faq-item,
.header-nav-link,
.header-menu-btn,
.header-cta,
.header-logo,
.header-menu-movil-link,
.header-menu-movil-cta,
.btn,
.btn-primario,
.btn-secundario,
.producto-card,
.servicio-card,
.galeria-item,
.testimonio-card {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   RESPETO POR PREFERS-REDUCED-MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}