:root {
    --primary: #00F3FF; /* Cyber Cyan */
    --secondary: #7000FF; /* Plasma Violet */
    --accent: #FF0055; /* Neon Pink */
    --bg-dark: #020306;
    --text-main: #E2E8F0;
    --text-dim: #94A3B8;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.gamer-mode {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Mesh Background */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 0% 0%, rgba(112, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 0, 85, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 243, 255, 0.05) 0%, transparent 50%);
}

/* HUD Grid */
.hud-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    opacity: 0.5;
}

/* Hero Modernization */
.hero-gamer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-gamer h1 {
    font-size: 8rem;
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -6px;
    background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-gamer .accent-text {
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 12px;
    font-weight: 800;
    display: block;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px var(--primary));
}

/* Floating Glass Cards */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 60px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px) scale(1.02);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05) 0%, transparent 30%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.glass-panel:hover::before {
    opacity: 1;
}

/* Cyber Buttons */
/* Ultimate Balanced Nav - Pill Style */
.hud-nav a { color: var(--text-dim); }
.hud-nav a:hover { color: var(--primary); }
.hud-nav .status-tag { color: var(--primary); background: rgba(0, 243, 255, 0.05); border-color: rgba(0, 243, 255, 0.1); }

/* Spanish Buttons & Redirectors */
.cyber-cta {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 15px 40px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 2px;
}

.cyber-cta:hover {
    color: #000;
    background: var(--primary);
    box-shadow: 0 0 30px var(--primary);
    transform: translateY(-3px);
}

/* Section Header Mastery */
.sec-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   GAMER MODE — RESPONSIVE MOBILE
   ============================================================ */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
    .hero-gamer h1 {
        font-size: 6rem !important;
        letter-spacing: -3px !important;
    }
}

/* --- Mobile landscape (≤ 900px) --- */
@media (max-width: 900px) {
    /* Hero — auto height, top padding para mobil nav */
    .hero-gamer {
        height: auto !important;
        min-height: 100svh;
        padding-top: 90px !important;
        padding-bottom: 60px !important;
    }
    .hero-gamer h1 {
        font-size: 4.5rem !important;
        letter-spacing: -2px !important;
        line-height: 0.9 !important;
    }
    .hero-gamer p { font-size: 1rem !important; }

    /* Botones hero → column */
    .hero-gamer [style*="display: flex; justify-content: center; gap: 15px"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .hero-gamer .cyber-cta { width: 80%; text-align: center !important; }

    /* Section paddings generales — override inline styles con !important */
    section[id] {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    /* #hacemos: quitar min-height 100vh que rompe el scroll en mobile */
    #hacemos {
        min-height: auto !important;
        display: block !important;
    }

    /* #hacemos — grid 1.1fr 0.9fr → 1 col */
    #hacemos .container > div {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }
    #hacemos h2 {
        font-size: 2.8rem !important;
        letter-spacing: -1.5px !important;
    }

    /* #especificaciones — 4 col → 2 col */
    #especificaciones .container > div[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    #especificaciones h2 {
        font-size: 2.8rem !important;
        letter-spacing: -1.5px !important;
    }
    #especificaciones [style*="padding: 135px"] {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    /* #faq — grid 0.8fr 1.2fr → 1 col */
    #faq .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    /* Sticky heading → no sticky en mobile */
    #faq [style*="position: sticky"] {
        position: relative !important;
        top: auto !important;
    }
    #faq h2 {
        font-size: 2.8rem !important;
        letter-spacing: -1px !important;
    }

    /* Contact heading */
    .contact-title {
        font-size: 3.5rem !important;
        letter-spacing: -2px !important;
        margin: 30px 0 20px !important;
    }

    /* Footer — 3 col → 1 col */
    footer .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    footer .container > div[style*="justify-content:space-between"] {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
}

/* --- Mobile portrait (≤ 768px) --- */
@media (max-width: 768px) {
    .hero-gamer h1 {
        font-size: 3.2rem !important;
        letter-spacing: -1px !important;
        margin-bottom: 20px !important;
    }

    /* Specs → 1 col */
    #especificaciones .container > div[style*="repeat(4"] {
        grid-template-columns: 1fr !important;
    }
    #especificaciones .container > div[style*="repeat(4"] > div {
        padding: 30px 25px !important;
    }

    .contact-title {
        font-size: 2.8rem !important;
        letter-spacing: -1.5px !important;
        margin: 20px 0 !important;
    }

    /* Glass panel padding reducido */
    .glass-panel { padding: 30px !important; border-radius: 20px !important; }
}

/* --- Móvil muy pequeño (≤ 480px) --- */
@media (max-width: 480px) {
    .hero-gamer h1 {
        font-size: 2.5rem !important;
        letter-spacing: -0.5px !important;
    }

    #hacemos h2,
    #especificaciones h2,
    #faq h2,
    .contact-title {
        font-size: 2.2rem !important;
        letter-spacing: -0.5px !important;
    }

    .cyber-cta { padding: 12px 25px !important; font-size: 0.7rem !important; letter-spacing: 2px !important; }

    /* FAQ cards padding */
    #faq .container > div > div > div { padding: 25px !important; }
}
