/* =========================================
   1. VARIABLES Y SISTEMA DE DISEÑO
   ========================================= */
/* Importar fuentes futuristas para el logo estilo 'tech' */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Nueva Paleta - Tema Oscuro Tech (Inspirado en imágenes) */
    --color-primary: #FFD700;
    /* Amarillo Oro - Título/Logo Brillante */
    --color-primary-dark: #ccac00;
    /* Tono más oscuro */
    --color-secondary: #FF8C00;
    /* Naranja Vibrante - AcentosTech */
    --color-accent: #FFFFFF;
    /* Blanco - Texto resaltado */

    /* Bases oscuras para fondo */
    --glass-bg: rgba(255, 255, 255, 0.05);
    /* Vidrio muy sutil sobre fondo oscuro */
    --glass-border: rgba(255, 215, 0, 0.2);
    /* Borde dorado tenue */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Fondos y Texto */
    --bg-body: #0a0a0a;
    /* Negro casi puro */
    --bg-card: #141414;
    /* Gris muy oscuro */
    --text-main: #E0E0E0;
    /* Gris claro para lectura */
    --text-muted: #A0A0A0;
    /* Gris medio */
    --text-light: #FFFFFF;

    /* Tipografía */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    /* Fuente Tech Angulares (Logo) */

    /* Espaciado y Diseño */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 4px;
    /* Bordes más rectos para estilo tech */
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Soporte para Modo Oscuro (Previsión futura/Preferencia del sistema) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #121212;
        --bg-card: #1E1E1E;
        --text-main: #E0E0E0;
        --text-muted: #A0A0A0;
        --glass-bg: rgba(0, 0, 0, 0.3);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* =========================================
   2. RESET Y ESTILOS BASE
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accesibilidad Base - Estados de Foco */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
}

/* Preferencia de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   3. UTILIDADES Y DISEÑO (LAYOUT)
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Asegurar visibilidad si el recorte falla */
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    /* Brillo suave */
}

/* =========================================
   4. COMPONENTES
   ========================================= */

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: black;
    /* Texto negro para contraste sobre amarillo */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: black;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Tarjeta de Vidrio (Glass Card) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* Barra de Navegación (Navbar) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    /* Fondo casi negro */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    /* Línea sutil dorada */
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    /* Fuente Tech para Logo */
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    /* Brillo neón */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    /* Blanco/Gris */
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--color-secondary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* Pie de Página (Footer) */
.footer {
    background: #111;
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 4rem;
}

/* =========================================
   5. CONSULTAS RESPONSIVAS (RESPONSIVE QUERIES)
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
    }

    .nav-links .nav-link {
        color: #000000;

    .nav-links.active {
        right: 0;
    }
}

/* =========================================
   6. ANIMACIONES (Aparición al Desplazarse / Scroll Reveal)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);

}

