:root {
    /* Paleta Servincol Pro */
    --bg-body: #000000;
    --bg-card: #0f0f11;
    --bg-card-hover: #161618;
    --primary: #0071e3;       /* Apple Blue */
    --accent: #5e5ce6;        /* Indigo */
    --success: #32d74b;       /* Verde */
    --warning: #ff9f0a;       /* Naranja */
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --gradient-brand: linear-gradient(135deg, #2997ff, #bf5af2);
    --font-stack: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Variables Google Reviews */
    --g-bg: #202124;
    --g-border: #3c4043;
    --g-text: #e8eaed;
    --g-muted: #9aa0a6;
    --g-stars: #F4B400;
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 0;
}

/* CANVAS FONDO (Red Neuronal) */
#tech-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0.4; pointer-events: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { letter-spacing: -0.015em; font-weight: 600; color: #fff; }
h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em; }
h2 { font-size: 3rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 15px; }
p { font-size: 1.1rem; color: var(--text-muted); font-weight: 400; line-height: 1.6; }

/* UTILS */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.text-center { text-align: center; }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.eyebrow { color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; }

/* NAVBAR DESKTOP */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1); height: 60px; transition: top 0.3s;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px;}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: #dcdcdc; font-size: 0.9rem; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }

/* HERO SECTION */
.hero {
    min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000 80%);
    padding-top: 60px; position: relative;
}
.typing-text::after { content: '|'; animation: blink 1s infinite; color: var(--primary); }
@keyframes blink { 50% { opacity: 0; } }

/* MARQUEE INFINITO */
.tech-marquee { background: #050505; padding: 30px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; overflow: hidden; white-space: nowrap; position: relative; z-index: 5; }
.marquee-content { display: inline-block; animation: scroll 40s linear infinite; }
.tech-item { display: inline-flex; align-items: center; gap: 10px; margin: 0 30px; color: #555; font-weight: 600; font-size: 1.2rem; }
.tech-item span { font-size: 1.5rem; } 
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 30px; border-radius: 30px; font-size: 1rem; font-weight: 500; text-decoration: none; transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 0 20px rgba(0, 113, 227, 0.3); border: 1px solid rgba(255,255,255,0.1); }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 0 40px rgba(0, 113, 227, 0.6); }
.btn-primary:active { transform: scale(0.95); }
.btn-outline { border: 1px solid #333; color: #fff; background: rgba(255,255,255,0.05); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 60px 0; perspective: 1000px; }

.card {
    background: var(--bg-card); border-radius: 24px; padding: 35px; text-align: left;
    transition: transform 0.1s ease-out, background 0.3s, border-color 0.3s;
    position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
    display: flex; flex-direction: column; justify-content: space-between;
    transform-style: preserve-3d; will-change: transform;
}
.card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.25); box-shadow: 0 25px 50px rgba(0,0,0,0.6); }
.card-large { grid-column: span 2; }

/* Brillo del Mouse (Solo Desktop) */
.card::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.5s;
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 2; }

/* Píldoras Tecnológicas */
.tech-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { font-size: 0.75rem; background: rgba(255,255,255,0.05); color: #ccc; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); }

/* --- SOPORTE TICKET PORTAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px);
    z-index: 9999; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.ticket-modal {
    background: #0f0f11; width: 95%; max-width: 600px;
    border-radius: 24px; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    overflow: hidden; transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.active .ticket-modal { transform: scale(1); }

.modal-header {
    padding: 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(90deg, #1c1c1e, #0f0f11);
}
.close-modal { cursor: pointer; color: #fff; font-size: 1.5rem; transition: 0.3s; }
.close-modal:hover { color: var(--primary); transform: rotate(90deg); }

.modal-body { padding: 30px; max-height: 80vh; overflow-y: auto; }

/* INPUTS TECNOLÓGICOS (Corrección de Select) */
.tech-input-group { margin-bottom: 20px; }
.tech-label { display: block; color: var(--text-muted); font-size: 0.75rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;}

.tech-input {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid #333;
    padding: 15px; border-radius: 12px; color: #fff; font-family: inherit; font-size: 1rem;
    transition: 0.3s; outline: none;
}
.tech-input:focus { border-color: var(--primary); background: rgba(0, 113, 227, 0.05); }

/* --- CORRECCIÓN IMPORTANTE: Menú Desplegable Oscuro --- */
.tech-input option {
    background-color: #000; /* Fondo Negro para opciones */
    color: #fff;            /* Texto Blanco */
    padding: 10px;
}

/* File Upload */
.file-upload-wrapper {
    position: relative; width: 100%; height: 50px; border: 1px dashed #555;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; color: #888; font-size: 0.9rem; margin-top: 10px;
}
.file-upload-wrapper:hover { border-color: var(--primary); color: #fff; background: rgba(255,255,255,0.02); }
.file-upload-wrapper input { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Telemetría */
/* --- TELEMETRÍA "HACKER STYLE" --- */
.telemetry-box {
    background: #000; /* Fondo negro puro */
    border: 1px solid var(--primary); /* Borde Azul Neón */
    border-left: 3px solid var(--primary);
    padding: 15px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-family: 'Courier New', Courier, monospace; /* Fuente Monospace */
    color: var(--primary); /* Texto Azul */
    margin-bottom: 20px; 
    text-align: left;
    min-height: 80px;
    box-shadow: inset 0 0 20px rgba(0, 113, 227, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efecto de escaneo (linea bajando) */
.telemetry-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(0, 113, 227, 0.3);
    box-shadow: 0 0 10px var(--primary);
    animation: scanline 2s linear infinite;
    opacity: 0.3;
}

@keyframes scanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

.log-line { display: block; margin-bottom: 2px; }
.log-success { color: #32d74b; } /* Verde */
.log-warn { color: #ff9f0a; }    /* Naranja */
.log-error { color: #ff3b30; }   /* Rojo */
.log-white { color: #fff; }      /* Blanco */

/* Tracker & Timeline */
.tracker-box { margin-top: 30px; background: #111; border: 1px solid var(--primary); padding: 20px; border-radius: 15px; text-align: left; }
.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.status-Pendiente { background: rgba(255, 165, 0, 0.2); color: orange; border: 1px solid orange; }
.status-Solucionado { background: rgba(50, 215, 75, 0.2); color: #32d74b; border: 1px solid #32d74b; }

.timeline-track { display: flex; justify-content: space-between; position: relative; margin: 30px 0; }
.timeline-track::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: #333; z-index: 0; transform: translateY(-50%); }
.t-step { position: relative; z-index: 1; background: #111; border: 2px solid #333; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: 0.3s; color: #fff; }
.t-step.active { border-color: var(--primary); background: #000; box-shadow: 0 0 15px var(--primary); color: var(--primary); }
.t-step.completed { border-color: var(--success); background: var(--success); color: #000; }

/* GOOGLE REVIEWS */
.google-section { background: #000; padding: 100px 0; overflow: hidden; }
.google-summary { display: inline-flex; align-items: center; background: var(--g-bg); padding: 10px 25px; border-radius: 50px; margin-bottom: 40px; border: 1px solid var(--g-border); gap: 15px; }
.g-logo-main { width: 24px; height: 24px; }
.g-score { font-size: 1.5rem; font-weight: 700; color: var(--g-text); }
.g-stars-row { color: var(--g-stars); letter-spacing: 2px; }
.reviews-scroller { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 30px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reviews-scroller::-webkit-scrollbar { display: none; }
.g-card { background-color: var(--g-bg); min-width: 320px; max-width: 320px; padding: 24px; border-radius: 16px; border: 1px solid var(--g-border); scroll-snap-align: center; display: flex; flex-direction: column; justify-content: space-between; font-family: 'Roboto', arial, sans-serif; }
.g-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.g-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; color: #fff; font-size: 1.1rem; }
.g-user-info h4 { font-size: 0.95rem; color: var(--g-text); margin: 0; font-weight: 600; }
.g-user-info span { font-size: 0.75rem; color: var(--g-muted); display: block; }
.g-rating { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.g-stars { color: var(--g-stars); font-size: 0.9rem; letter-spacing: 1px; }
.g-time { font-size: 0.8rem; color: var(--g-muted); }
.g-text { font-size: 0.9rem; line-height: 1.5; color: var(--g-text); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.g-footer { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--g-border); display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--g-muted); }

/* ANIMACIONES SCROLL */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 📱 MOBILE APP MODE --- */
.mobile-bottom-nav { display: none; }

@media (max-width: 900px) {
    body { padding-bottom: 90px; } 
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .nav-links, .btn-primary.desktop-only { display: none; }
    
    .hero { min-height: 80vh; padding-top: 40px; }
    
    .mobile-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
        background: rgba(15, 15, 17, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255,255,255,0.1); justify-content: space-around;
        padding: 10px 0 25px 0; z-index: 9999;
    }
    
    .nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #86868b; font-size: 0.7rem; gap: 5px; transition: color 0.3s; }
    .nav-item.active { color: var(--primary); }
    .nav-item svg { width: 24px; height: 24px; fill: currentColor; }

    .bento-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 15px;
        padding-bottom: 20px; margin: 40px -24px; padding: 0 24px 20px 24px;
    }
    
    .card { min-width: 85%; scroll-snap-align: center; height: auto; transform: none !important; }
    .card:active { transform: scale(0.98) !important; background: var(--bg-card-hover); } 
}

/* --- BITÁCORA DEL SISTEMA (CHAT LOG) --- */
.sys-msg { color: #888; margin-bottom: 5px; display: block; border-left: 2px solid #333; padding-left: 8px; }
.sys-msg span { color: var(--primary); font-weight: bold; }
.sys-msg.active { color: #fff; border-left-color: #ff9f0a; animation: pulseText 2s infinite; }
.sys-msg.success { color: var(--success); border-left-color: var(--success); }
@keyframes pulseText { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }