/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
    --bg-body: #0a0f1e;
    --bg-deep: #060b16;
    --bg-card: #252525;
    --text-main: #e0e0e0;
    --accent: #5e81ac;
    --accent-bright: #7aa3d4;
    --input-bg: #333333;
    --border-main: #444;

    /* Portal */
    --portal-panel-bg: rgba(20, 28, 50, 0.75);
    --portal-border: rgba(80, 120, 200, 0.3);
    --card-manual-bg: rgba(230, 235, 245, 0.95);
    --card-ia-bg: linear-gradient(135deg, #6b4fa0 0%, #8b5cf6 50%, #a78bfa 100%);
    --glow-blue: rgba(94, 129, 172, 0.4);
    --glow-purple: rgba(139, 92, 246, 0.5);
}

/* ============================================================
   ACCESIBILIDAD / SEO — Texto solo para lectores de pantalla y
   crawlers (no ocupa espacio visual, no altera ningún diseño).
   Usado para enriquecer semánticamente el H1 del portal con la
   keyword principal sin tocar el titular visual de marca.
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   FONDO TECH: GRID + PARTÍCULAS
   ============================================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(94, 129, 172, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 129, 172, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(94, 129, 172, 0.5);
    border-radius: 2px;
    transform: rotate(45deg);
    animation: floatParticle linear infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0%   { transform: rotate(45deg) translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: rotate(45deg) translateY(-110vh) scale(0.5); opacity: 0; }
}
