:root {
    --bg-color: #030305;
    --primary: #00e5ff;
    --secondary: #7000ff;
    --text: #ffffff;
    --text-dim: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* --- CURSOR PERSONALIZADO --- */
.cursor-dot { width: 8px; height: 8px; background-color: var(--primary); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background-color 0.3s; }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(0, 229, 255, 0.5); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s; }

/* --- HEADER & NAVEGACIÓN --- */
header {
    position: fixed; width: 100%; top: 0; padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    /* Fondo negro oscuro con borde para separarlo del grid */
    background: #030305;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo-container { padding: 5px; display: inline-block; }
.logo-img { max-height: 45px; width: auto; object-fit: contain; }

nav { display: flex; gap: 30px; align-items: center; }

/* Contenedor para Submenús */
.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link { 
    color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600; 
    text-transform: uppercase; padding: 10px; transition: color 0.3s; letter-spacing: 1px; 
    display: inline-block;
}
.nav-link:hover { color: var(--primary); }

/* --- ESTILOS DEL SUBMENÚ --- */
.submenu {
    position: absolute;
    top: 100%; /* Justo debajo del nav-link */
    left: 0;
    background: #0a0a0f; /* Fondo oscuro elegante */
    min-width: 240px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    z-index: 101;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    color: var(--text-dim);
    text-decoration: none;
    display: block;
    padding: 12px 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submenu a:hover {
    color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
    padding-left: 30px; /* Efecto de desplazamiento al pasar el ratón */
}

/* Botón Cotizar */
.contact-btn {
    border: 1px solid var(--primary); color: var(--primary); border-radius: 30px;
    padding: 10px 25px; transition: all 0.3s; margin-left: 10px;
}
.contact-btn:hover { background: var(--primary); color: var(--bg-color); box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); }

/* --- FONDO TECNOLÓGICO --- */
.tech-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, #0d0b21 0%, #030305 100%); z-index: -3; }
.tech-bg::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; z-index: -2; }
.hero-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 65%); transform: translate(-50%, -50%); transition: left 0.1s linear, top 0.1s linear; }

/* --- SECCIÓN HERO --- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 140px 5% 50px 5%; overflow: hidden; }
.hero-container {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: 1400px; margin: 0 auto; z-index: 1; gap: 50px;
}

/* Textos Hero */
.hero-content { flex: 1; max-width: 700px; }
.status-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; margin-bottom: 30px; background: rgba(255,255,255,0.03); backdrop-filter: blur(5px); }
.pulsing-dot { width: 8px; height: 8px; background-color: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(0.95); opacity: 0.5; } }

.hero-content h1 { font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }
.text-outline { color: transparent; -webkit-text-stroke: 2px var(--primary); }
.typewriter-cursor { font-weight: 300; color: var(--primary); animation: blink 0.8s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-content p { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 40px; font-weight: 300; line-height: 1.6; }

/* Botones */
.magnetic-btn { display: inline-block; padding: 15px 35px; background: var(--text); color: var(--bg-color); font-size: 1rem; font-weight: 800; border-radius: 30px; text-transform: uppercase; text-decoration: none; transition: box-shadow 0.3s; }
.magnetic-btn:hover { box-shadow: 0 0 20px rgba(255,255,255,0.2); }

/* --- VISUALES FLOTANTES (PNGs) --- */
.hero-visuals {
    flex: 1; position: relative; height: 500px; 
    display: flex; justify-content: center; align-items: center;
}

.floating-img { position: absolute; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8)); }

/* Computador flotando suavemente */
.laptop-img {
    width: 100%; max-width: 550px; z-index: 1;
    animation: floatLaptop 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.2));
}

/* Teléfono flotando en sentido contrario */
.phone-img {
    width: 35%; max-width: 180px; z-index: 2;
    right: 0; bottom: 0;
    animation: floatPhone 5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.4));
}

@keyframes floatLaptop { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(-1deg); } }
@keyframes floatPhone { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-30px) rotate(-2deg); } }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 3.5rem; }
    .status-badge { margin: 0 auto 30px auto; }
    .hero-visuals { height: 400px; width: 100%; margin-top: 40px; }
    .laptop-img { max-width: 450px; }
}

@media (hover: none) and (pointer: coarse) {
    * { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none !important; }
    header { padding: 15px 5%; }
    nav { display: none; /* Aquí luego haremos un menú hamburguesa */ }
}

/* =========================================
   SECCIÓN NOSOTROS: NÚCLEO HOLOGRÁFICO (HUD)
========================================= */
.cyber-about {
    padding: 140px 5%;
    background: #020204;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}

/* Luces de neón difuminadas en el fondo */
.ambient-light {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.cyan-light { top: 10%; left: -10%; background: var(--primary); }
.purple-light { bottom: 10%; right: -10%; background: var(--secondary); }

.cyber-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Cabecera centrada de alto impacto */
.cyber-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 90px auto;
}

.cyber-header h2 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.cyber-lead {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.8;
    font-weight: 300;
}
.cyber-lead strong { color: #fff; font-weight: 600; }

/* Grid de 3 columnas: Misión | Reactor | Visión */
.cyber-core-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    perspective: 1200px;
}

/* --- TARJETAS HUD HOLOGRÁFICAS --- */
.hud-card {
    background: rgba(10, 10, 18, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 45px 40px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.hud-cyan:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.12);
}

.hud-purple:hover {
    border-color: rgba(112, 0, 255, 0.5);
    box-shadow: 0 20px 50px rgba(112, 0, 255, 0.15);
}

/* Reflejo de luz interna que sigue al mouse */
.hud-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), rgba(0, 229, 255, 0.15), transparent);
    pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.3s;
}
.hud-purple::before {
    background: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), rgba(112, 0, 255, 0.2), transparent);
}
.hud-card:hover::before { opacity: 1; }

/* Láser Escáner Animado */
.scanner-laser {
    position: absolute; top: -100%; left: 0; width: 100%; height: 60px;
    background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.15), var(--primary));
    border-bottom: 2px solid var(--primary);
    opacity: 0; pointer-events: none; z-index: 2;
}
.laser-purple {
    background: linear-gradient(180deg, transparent, rgba(112, 0, 255, 0.2), var(--secondary));
    border-bottom: 2px solid var(--secondary);
}
.hud-card:hover .scanner-laser {
    animation: scanCard 2.5s ease-in-out infinite;
}

@keyframes scanCard {
    0% { top: -20%; opacity: 0; }
    20% { opacity: 0.7; }
    80% { opacity: 0.7; }
    100% { top: 110%; opacity: 0; }
}

/* Esquinas Tecnológicas HUD */
.hud-corner {
    position: absolute; width: 14px; height: 14px;
    border-color: var(--primary); border-style: solid;
    opacity: 0.3; transition: all 0.4s ease; z-index: 3;
}
.hud-purple .hud-corner { border-color: var(--secondary); }

.top-left { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.top-right { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.bottom-left { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.bottom-right { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.hud-card:hover .hud-corner {
    width: 25px; height: 25px; opacity: 1;
}

/* Número gigante de fondo */
.bg-watermark {
    position: absolute; right: 20px; bottom: -15px;
    font-size: 8.5rem; font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1; pointer-events: none;
    transform: translateZ(20px);
    transition: color 0.4s ease;
}
.hud-cyan:hover .bg-watermark { color: rgba(0, 229, 255, 0.06); }
.hud-purple:hover .bg-watermark { color: rgba(112, 0, 255, 0.08); }

/* Contenido 3D Flotante */
.hud-content {
    transform: translateZ(50px);
    position: relative; z-index: 4;
}

.hud-top-bar {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 2px;
    color: var(--text-dim); margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.hud-status { display: flex; align-items: center; gap: 6px; color: #fff; }
.dot-cyan { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 8px var(--primary); }
.dot-purple { width: 6px; height: 6px; background: var(--secondary); border-radius: 50%; box-shadow: 0 0 8px var(--secondary); }

/* Caja de Icono */
.hud-icon-box {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    transition: all 0.3s ease;
}
.hud-icon-box svg { width: 30px; height: 30px; }

.icon-purple {
    background: rgba(112, 0, 255, 0.1);
    border-color: rgba(112, 0, 255, 0.4);
    color: #a64dff;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.2);
}

.hud-card:hover .hud-icon-box { transform: scale(1.1) translateZ(20px); }

.hud-content h3 { font-size: 2.2rem; font-weight: 900; margin-bottom: 15px; letter-spacing: -0.5px; }
.text-cyan { color: var(--primary); }
.text-purple { color: #a64dff; }

.hud-content p {
    color: var(--text-dim); font-size: 1rem; line-height: 1.7;
    font-weight: 300; margin-bottom: 35px;
}

/* Barra de Telemetría Inferior */
.telemetry-info {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px;
    margin-bottom: 8px; color: #ccc;
}
.telemetry-bar {
    width: 100%; height: 4px; background: rgba(255, 255, 255, 0.08);
    border-radius: 4px; overflow: hidden;
}
.telemetry-fill {
    height: 100%; width: 0%; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fill-cyan { background: var(--primary); box-shadow: 0 0 10px var(--primary); width: 85%; }
.fill-purple { background: #a64dff; box-shadow: 0 0 10px #a64dff; width: 92%; }
.hud-card:hover .telemetry-fill { width: 100%; }

/* --- REACTOR CENTRAL 3D (ESFERA DE ENERGÍA) --- */
.core-reactor-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.core-reactor {
    width: 180px; height: 180px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
}

.ring {
    position: absolute; border-radius: 50%;
    border: 1px solid transparent;
}

.ring-1 {
    width: 100%; height: 100%;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
    animation: spinReactor1 8s linear infinite;
}

.ring-2 {
    width: 78%; height: 78%;
    border-left: 2px solid #a64dff;
    border-right: 2px solid #a64dff;
    box-shadow: 0 0 25px rgba(112, 0, 255, 0.3);
    animation: spinReactor2 6s linear infinite;
}

.ring-3 {
    width: 56%; height: 56%;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    animation: spinReactor3 12s linear infinite;
}

.core-sphere {
    width: 55px; height: 55px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, #05050a 90%);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem; color: #fff; letter-spacing: 1px;
    box-shadow: 0 0 30px var(--primary);
    animation: pulseCore 2s ease-in-out infinite;
}

.core-caption {
    font-size: 0.7rem; letter-spacing: 3px; color: var(--text-dim); font-weight: 600;
}

/* =========================================
   SECCIÓN PORTAFOLIO: BENTO GRID FUTURISTA
========================================= */
.portfolio-section {
    padding: 100px 5%;
    background: #030305; /* Volvemos al negro base para dar respiro */
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Matriz CSS Grid */
.bento-portfolio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tarjeta Base Bento */
.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: none; /* Usa nuestro cursor láser */
}

/* Tamaños de las tarjetas */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }
.bento-square { grid-column: span 1; grid-row: span 1; }

/* Contenedor de la imagen y overlay */
.bento-img-wrap {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
}

.bento-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(80%) brightness(0.4);
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Gradiente que oscurece la parte de abajo para que el texto se lea */
.bento-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80%;
    background: linear-gradient(to top, rgba(3,3,5, 1) 0%, rgba(3,3,5, 0.8) 40%, transparent 100%);
    z-index: 1; transition: height 0.4s ease;
}

/* Contenido de texto (Oculto parcialmente hasta hacer hover) */
.bento-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px; z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bento-content h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.bento-large .bento-content h3 { font-size: 2.8rem; }

.bento-content p {
    color: var(--text-dim); font-size: 0.95rem; line-height: 1.6;
    margin-bottom: 20px; opacity: 0.7; transition: opacity 0.4s ease;
}
.bento-large .bento-content p { font-size: 1.1rem; max-width: 85%; }

/* Pilas de Tecnologías (Etiquetas) */
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tech-pill {
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    background: rgba(0, 229, 255, 0.05); color: var(--primary);
    border: 1px solid rgba(0, 229, 255, 0.3);
    backdrop-filter: blur(5px);
}
.tech-pill.border-purple {
    background: rgba(112, 0, 255, 0.08); color: #a64dff; border-color: rgba(112, 0, 255, 0.4);
}

/* Enlaces Cyber */
.cyber-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary); font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; text-decoration: none; letter-spacing: 1px;
    opacity: 0; transform: translateX(-15px); transition: all 0.4s ease;
}
.cyber-link span { transition: transform 0.3s ease; }
.cyber-link:hover span { transform: translateX(5px); }

/* =========================================
   EFECTOS HOVER (MAGIA)
========================================= */
.bento-item:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15);
    transform: translateY(-5px);
}

.bento-item.border-purple-glow:hover {
    border-color: rgba(112, 0, 255, 0.5);
    box-shadow: 0 15px 40px rgba(112, 0, 255, 0.2);
}

/* La imagen cobra vida y color */
.bento-item:hover .bento-img-wrap img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(0.6);
}

/* El contenido sube y aparece completo */
.bento-item:hover .bento-overlay { height: 100%; background: linear-gradient(to top, rgba(3,3,5, 1) 0%, rgba(3,3,5, 0.9) 60%, rgba(3,3,5, 0.4) 100%); }
.bento-item:hover .bento-content { transform: translateY(0); }
.bento-item:hover .bento-content p { opacity: 1; }
.bento-item:hover .cyber-link { opacity: 1; transform: translateX(0); }

/* --- RESPONSIVE PARA BENTO GRID --- */
@media (max-width: 1024px) {
    .bento-portfolio { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; }
    .bento-wide { grid-column: span 2; }
    .bento-square { grid-column: span 1; }
}

@media (max-width: 768px) {
    .bento-portfolio { grid-template-columns: 1fr; grid-auto-rows: minmax(320px, auto); }
    .bento-large, .bento-wide, .bento-square { grid-column: span 1; grid-row: auto; }
    .bento-content { transform: translateY(0); } /* En móvil siempre se ve la info */
    .bento-content p { opacity: 1; }
    .cyber-link { opacity: 1; transform: translateX(0); }
}

/* =========================================
   SECCIÓN CONTACTO: TERMINAL DE TRANSMISIÓN
========================================= */
.contact-section {
    padding: 120px 5%;
    background: #020204;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(112, 0, 255, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* El formulario toma un poco más de espacio */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Panel Izquierdo (Info y WhatsApp) --- */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.c-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.c-method i {
    font-size: 1.8rem;
    background: rgba(0, 229, 255, 0.05);
    width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.c-label { 
    display: block; font-size: 0.75rem; text-transform: uppercase; 
    color: var(--text-dim); letter-spacing: 1.5px; font-weight: 600; margin-bottom: 2px;
}
.c-data { display: block; font-size: 1rem; color: #fff; font-weight: 400; }

/* Botón WhatsApp Gigante Neón */
.cyber-btn-large {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 18px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 45px;
}
.cyber-btn-large:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    transform: translateY(-3px);
}
.cyber-btn-large i { font-size: 1.4rem; }

/* --- Panel Derecho (Formulario) --- */
.contact-form-panel {
    padding: 45px 50px;
}

.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.cyber-form-group { display: flex; flex-direction: column; gap: 10px; }

.cyber-form-group label {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-dim);
}

/* Inputs de Texto Modernos */
.cyber-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    resize: none;
}

/* Estado Focus (Iluminación Morada) */
.cyber-input:focus {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.25), inset 0 2px 5px rgba(0,0,0,0.5);
}

.cyber-input::placeholder { color: #555; font-weight: 300; }

/* Selector Oscuro */
.cyber-input option {
    background: #0a0a0f;
    color: #fff;
    padding: 10px;
}

/* Botón Transmitir (Submit) */
.cyber-submit-btn {
    background: var(--text);
    color: var(--bg-color);
    border: none;
    padding: 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: none; /* Para usar el ratón láser */
    transition: all 0.3s ease;
    display: flex; justify-content: center; align-items: center; gap: 12px;
    margin-top: 15px;
}

.cyber-submit-btn:hover {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.6);
    transform: translateY(-2px);
}

/* --- RESPONSIVE CONTACTO --- */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-form-panel { padding: 40px 30px; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form-panel { padding: 30px 20px; }
}

/* =========================================
   SECCIÓN FOOTER: TERMINAL BASE
========================================= */
.cyber-footer {
    background: #010101; /* El fondo más oscuro para cerrar la página */
    padding: 80px 5% 30px 5%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Brillo superior del footer */
.cyber-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), rgba(112, 0, 255, 0.3), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 60px auto;
}

/* Columna Marca */
.footer-logo {
    max-height: 50px;
    margin-bottom: 25px;
    object-fit: contain;
}

.brand-col p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 90%;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-3px);
}

/* Columnas Navegación y Data */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

/* Efecto Consola al pasar el ratón por los enlaces */
.footer-menu a::before {
    content: '>';
    color: var(--primary);
    font-weight: 900;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-right: 8px;
    font-size: 1.1rem;
}

.footer-menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Items Data */
.footer-data-item {
    margin-bottom: 25px;
}

.f-data-label {
    display: block;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.footer-data-item a, .footer-data-item p {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-data-item a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* Barra Inferior (Copyright) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom strong {
    color: #aaa;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    background: rgba(0, 255, 102, 0.05);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 102, 0.2);
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .brand-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@keyframes spinReactor1 {
    0% { transform: rotateX(60deg) rotateY(20deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateY(20deg) rotateZ(360deg); }
}
@keyframes spinReactor2 {
    0% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(0deg); }
    100% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(-360deg); }
}
@keyframes spinReactor3 {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}
@keyframes pulseCore {
    0%, 100% { transform: scale(0.95); box-shadow: 0 0 20px var(--primary); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px var(--primary), 0 0 60px var(--secondary); }
}

/* --- RESPONSIVE PARA ESTA SECCIÓN --- */
@media (max-width: 1150px) {
    .cyber-core-grid { grid-template-columns: 1fr; gap: 50px; }
    .core-reactor-wrapper { order: -1; margin-bottom: 10px; }
    .cyber-header h2 { font-size: 3rem; }
}

/* =========================================
   CORRECCIONES GLOBALES Y MENÚ MÓVIL
========================================= */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Botón Hamburguesa (oculto en escritorio) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 10px;
    cursor: pointer !important;
    z-index: 105;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   RESPONSIVE TABLET Y MÓVIL (<= 992px)
========================================= */
@media (max-width: 992px) {
    * { cursor: auto !important; }
    .cursor-dot, .cursor-outline, .hero-glow { display: none !important; }

    header {
        padding: 14px 5%;
    }

    .logo-img {
        max-height: 36px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Menú desplegable estilo Cyber */
    header nav {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        position: fixed;
        top: 66px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
        background: rgba(5, 5, 10, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(0, 229, 255, 0.25);
        padding: 20px 6% 30px 6%;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }

    header nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 12px 6px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Submenú en acordeón al tocar */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        border-left: 2px solid var(--primary);
        border-radius: 0 8px 8px 0;
        box-shadow: none;
        padding: 6px 0;
        margin: 4px 0 8px 8px;
    }

    .nav-item.open .submenu {
        display: block;
    }

    .submenu a {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .contact-btn {
        margin: 16px 0 0 0;
        text-align: center;
        border-bottom: 1px solid var(--primary);
    }

    /* Hero */
    .hero {
        padding: 110px 5% 60px 5%;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        word-break: break-word;
    }

    .text-outline {
        -webkit-text-stroke: 1.5px var(--primary);
    }

    .hero-visuals {
        height: 290px;
        margin-top: 25px;
    }

    .laptop-img {
        max-width: 310px;
    }

    .phone-img {
        width: 28%;
        max-width: 110px;
        right: 5%;
    }
}

/* =========================================
   RESPONSIVE CELULARES (<= 768px)
========================================= */
@media (max-width: 768px) {
    .cyber-about,
    .portfolio-section,
    .contact-section {
        padding: 70px 5%;
    }

    .cyber-header {
        margin-bottom: 40px !important;
    }

    .cyber-header h2 {
        font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    }

    .cyber-lead,
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
        letter-spacing: 1.2px;
        margin-bottom: 20px;
    }

    /* Tarjetas HUD (Nosotros y Contacto) */
    .hud-card,
    .contact-form-panel {
        padding: 28px 20px;
    }

    .hud-content {
        transform: none !important;
    }

    .hud-content h3 {
        font-size: 1.55rem;
    }

    .hud-top-bar {
        font-size: 0.68rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .bg-watermark {
        font-size: 5rem;
        bottom: 0;
        right: 12px;
    }

    .core-reactor {
        width: 135px;
        height: 135px;
    }

    /* Portafolio Bento */
    .bento-portfolio {
        gap: 18px;
        grid-auto-rows: minmax(290px, auto);
    }

    .bento-content {
        padding: 22px 18px;
    }

    .bento-large .bento-content h3,
    .bento-content h3 {
        font-size: 1.45rem;
    }

    .bento-large .bento-content p,
    .bento-content p {
        font-size: 0.88rem;
        max-width: 100%;
        margin-bottom: 14px;
    }

    /* Contacto */
    .c-method i {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .c-data {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .cyber-btn-large {
        margin-top: 28px;
        padding: 14px;
        font-size: 0.95rem;
    }

    /* Footer */
    .cyber-footer {
        padding: 55px 5% 25px 5%;
    }

    .footer-grid {
        margin-bottom: 35px;
    }

    .brand-col p {
        max-width: 100%;
    }
}

/* Banner de Cookies */
.rb-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 480px;
    z-index: 9990;
    background: rgba(10, 11, 20, 0.96);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.rb-cookie-text i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.rb-cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.rb-cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.rb-ck-btn {
    padding: 7px 14px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.rb-ck-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dim);
}

.rb-ck-ghost:hover {
    color: #fff;
    border-color: #fff;
}

.rb-ck-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #030305;
}

.rb-ck-primary:hover {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}

@media (max-width: 576px) {
    .rb-cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* =========================================
   WIDGET FLOTANTE CHATBOT IA (CYBER)
========================================= */
.rb-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9995;
    font-family: 'Poppins', sans-serif;
}

.rb-chat-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 50px;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, #0b0d18 0%, #141629 100%);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 229, 255, 0.3);
    cursor: pointer !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rb-chat-fab i {
    font-size: 1.3rem;
    color: var(--primary);
}

.rb-chat-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.5);
}

.rb-chat-fab-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 10px #00ff66;
}

.rb-chat-box {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 365px;
    max-width: calc(100vw - 24px);
    height: 510px;
    max-height: calc(100vh - 110px);
    background: rgba(9, 10, 18, 0.97);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.rb-chat-widget.is-open .rb-chat-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.rb-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(112, 0, 255, 0.16));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rb-chat-agent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rb-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.rb-chat-agent strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
}

.rb-chat-agent span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.rb-dot-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff66;
    display: inline-block;
}

.rb-chat-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer !important;
    padding: 4px 6px;
}

.rb-chat-close:hover {
    color: #ffffff;
}

.rb-chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rb-msg {
    max-width: 86%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 0.83rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.rb-msg-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.rb-msg-user {
    align-self: flex-end;
    background: var(--primary);
    color: #030305;
    font-weight: 600;
    border-bottom-right-radius: 4px;
}

.rb-msg-typing {
    font-style: italic;
    color: var(--primary);
    opacity: 0.85;
}

.rb-chat-quick {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rb-chat-quick button {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--primary);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.rb-chat-quick button:hover {
    background: var(--primary);
    color: #030305;
}

.rb-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.rb-chat-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 9px 14px;
    color: #ffffff;
    font-size: 0.83rem;
    outline: none;
    cursor: text !important;
}

.rb-chat-form input:focus {
    border-color: var(--primary);
}

.rb-chat-form button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #030305;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    flex-shrink: 0;
}

.rb-chat-form button:disabled {
    opacity: 0.5;
}

.rb-chat-legal {
    text-align: center;
    font-size: 0.66rem;
    color: var(--text-dim);
    padding: 5px 10px 8px 10px;
}

.rb-chat-legal a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .rb-chat-widget { right: 14px; bottom: 14px; }
    .rb-chat-fab-label { display: none; }
    .rb-chat-fab { padding: 14px; border-radius: 50%; }
}