/* ============================================================
   CIDENER Corporation — main.css
   Design tokens, reset moderno y estilos base
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ---------- Design Tokens ---------- */
:root {
    /* Marca */
    --color-primary: #00d4ff;
    --color-primary-light: #66e5ff;
    --color-primary-dark: #0099cc;
    --color-secondary: #7c3aed;
    --color-accent: #f59e0b;

    /* Neutros oscuros */
    --color-darker: #050816;
    --color-dark: #0a0e27;
    --color-surface: #111633;

    /* Texto */
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-white: #ffffff;

    /* Fondos y bordes glass */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.10);
    --border-glass-hover: rgba(0, 212, 255, 0.45);

    /* Tipografía */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Escala tipográfica */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;
    --text-5xl: 4rem;

    /* Espaciado */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-7: 6rem;

    /* Radios */
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Sombras y glow */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
    --glow-primary: 0 0 25px rgba(0, 212, 255, 0.35);
    --glow-primary-lg: 0 0 45px rgba(0, 212, 255, 0.55);

    /* Gradientes */
    --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-text: linear-gradient(120deg, #ffffff 0%, var(--color-primary) 55%, var(--color-secondary) 100%);

    /* Movimiento */
    --transition-base: 300ms ease;
    --transition-bounce: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Capas */
    --z-nav: 300;
    --z-menu: 400;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-darker);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
}

/* Selección de texto con color de marca */
::selection {
    background: var(--color-primary);
    color: var(--color-darker);
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-darker); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

/* ---------- Layout base ---------- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.main {
    position: relative;
    z-index: 1;
}

/* ---------- Fondo animado global ---------- */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--color-darker);
    overflow: hidden;
}

/* Nebulosas de color girando lentamente */
.bg-animation::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.10), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.10), transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(245, 158, 11, 0.05), transparent 35%);
    animation: bg-rotate 45s linear infinite;
}

/* Rejilla técnica sutil (estética industrial/tech) */
.bg-animation::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}