﻿/* 
 * SWYTEK GLOBAL STYLESHEET - ENTERPRISE EDITION
 * Theme: Cyberpunk Corporate (Deep Dark, Neon Cyan & Purple)
 * Author: Swytek Architecture
 */

/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
:root {
    /* --- COLOR PALETTE --- */
    --bg-deep: #050507; /* Fondo principal (Casi negro) */
    --bg-surface: #0e0e12; /* Fondo de tarjetas */
    --bg-card-glow: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(189, 0, 255, 0.05) 100%);
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #d1d5db; /* Gris claro para lectura fácil */
    --text-muted: #9ca3af; /* Gris más oscuro para detalles */
    /* Accents (Cyberpunk Vibes) */
    --accent-cyan: #00f2ff;
    --accent-purple: #bd00ff; /* Morado vibrante */
    --accent-gradient: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    /* --- GLASSMORPHISM --- */
    --glass-bg: rgba(20, 20, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.15);
    --blur-val: 16px;
    /* --- LAYOUT & SIZING --- */
    --container-width: 1240px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    /* --- TYPOGRAPHY --- */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-highlight {
    color: var(--accent-cyan);
}

.text-center {
    text-align: center;
}

/* =========================================
   2. BUTTONS (UI COMPONENTS)
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px; /* Más grandes */
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.3); /* Glow suave inicial */
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 40px rgba(0, 242, 255, 0.6); /* Glow intenso cyan */
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: 0.3s;
}

    .btn-secondary:hover {
        background: rgba(0, 242, 255, 0.1);
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    }

/* =========================================
   3. HEADER & MEGA MENU
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(var(--blur-val));
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* =========================================
   LOGO STYLES (SVG Update)
   ========================================= */

/* Contenedor del link (quita estilos de texto antiguos) */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

    .logo-link:hover {
        opacity: 0.8; /* Efecto sutil al pasar el mouse */
    }

/* Logo del Header */
.logo-img {
    height: 90px; /* Altura estándar para navbar de 80px */
    width: auto; /* Mantiene la proporción */
    display: block;
}

/* Logo del Footer */
.footer-logo-img {
    height: 80px; /* Un poco más grande en el footer */
    width: auto;
    display: block;
    margin-bottom: 20px;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 80px; /* Ligeramente más pequeño en móvil */
    }
}


/* Desktop Navigation */
#desktopNav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 25px 0; /* Aumenta zona de click/hover */
    position: relative;
    display: flex;
    align-items: center;
}

    .nav-link:hover {
        color: #fff;
    }

/* --- MEGA MENU DROPDOWN --- */
.nav-item.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Justo debajo del header */
    left: -150px; /* Centrado relativo */
    width: 600px; /* Ancho generoso */
    background: #0e0e12;
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--accent-purple); /* Detalle superior */
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columnas */
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

    .dropdown-item:hover {
        background: rgba(255,255,255,0.04);
    }

        .dropdown-item:hover .dropdown-icon {
            color: #fff;
            background: var(--accent-purple);
        }

.dropdown-icon {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.dropdown-text h5 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
}

.dropdown-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Language Selector (Simple) */
.language-selector {
    position: relative;
    cursor: pointer;
}

.current-lang {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .current-lang i {
        color: var(--accent-cyan);
    }

.lang-dropdown {
    position: absolute;
    top: 150%;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: none;
    flex-direction: column;
    min-width: 100px;
}

    .lang-dropdown.active {
        display: flex;
    }

.lang-btn {
    background: none;
    border: none;
    color: #aaa;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

    .lang-btn:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

/* =========================================
   4. MOBILE MENU
   ========================================= */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: auto;
    background: var(--bg-deep);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--accent-cyan);
    transform: translateY(-150%);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 990;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

    .mobile-menu.active {
        transform: translateY(0);
    }

    .mobile-menu a {
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 15px;
        color: #fff;
    }

/* =========================================
   5. HERO SECTION
   ========================================= */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 950px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(189, 0, 255, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

#hero h1 {
    font-size: clamp(3rem, 6vw, 5rem); /* Responsive typography */
    margin-bottom: 25px;
    line-height: 1.1;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   6. TRUST & MARQUEE SECTIONS
   ========================================= */
.trust-section {
    padding: 50px 0;
    background: #08080a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.trust-logo {
    color: #fff;
    opacity: 0.6;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

    .trust-logo:hover {
        opacity: 1;
        color: var(--accent-cyan);
        text-shadow: 0 0 15px var(--accent-cyan);
    }

/* Tech Marquee (Infinite Scroll) */
.tech-marquee {
    background: rgba(255,255,255,0.01);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 35px 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 50px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.7;
    transition: 0.3s;
}

    .tech-item:hover {
        opacity: 1;
        color: var(--accent-purple);
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   7. SERVICES / GLASS CARDS
   ========================================= */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

    .section-header h2 {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    .section-header p {
        font-size: 1.1rem;
        color: var(--text-secondary);
    }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--bg-card-glow);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .glass-card:hover {
        transform: translateY(-10px);
        border-color: var(--accent-cyan);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }

    .glass-card i {
        font-size: 2.5rem;
        color: #fff;
        margin-bottom: 25px;
        display: block;
        transition: 0.3s;
    }

    .glass-card:hover i {
        text-shadow: 0 0 20px var(--accent-cyan);
    }

    .glass-card h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .glass-card p {
        font-size: 1.05rem;
        color: var(--text-secondary);
        line-height: 1.6;
    }

    /* Highlight Variation */
    .glass-card.highlight {
        border-color: rgba(189, 0, 255, 0.4);
    }

        .glass-card.highlight:hover {
            border-color: var(--accent-purple);
            box-shadow: 0 0 30px rgba(189,0,255,0.2);
        }

/* =========================================
   8. BLOG SECTION
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

    .blog-card:hover {
        transform: translateY(-10px);
        border-color: var(--accent-purple);
        box-shadow: 0 10px 30px rgba(189, 0, 255, 0.15);
    }

.blog-img-wrapper {
    height: 220px;
    background: #1a1a20;
    position: relative;
    overflow: hidden;
}

    .blog-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s;
    }

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-link {
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

    .blog-link:hover {
        color: var(--accent-purple);
    }

/* =========================================
   9. FAQ & FEATURES
   ========================================= */
/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: 0.3s;
}

    .feature-item:hover {
        border-color: var(--accent-purple);
        box-shadow: inset 0 0 20px rgba(189,0,255,0.1);
    }

.feature-num {
    color: var(--accent-cyan);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

/* Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
    padding: 25px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 25px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--accent-cyan);
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #020202;
    padding: 100px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

 

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        transition: 0.3s;
    }

        .social-links a:hover {
            background: var(--accent-cyan);
            color: #000;
            box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
        }

.footer-links h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

    .footer-links a:hover {
        color: var(--accent-cyan);
        padding-left: 5px;
    }

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

/* =========================================
   11. MODALS & POPUPS
   ========================================= */
.language-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    .language-modal.active {
        opacity: 1;
        pointer-events: all;
    }

.modal-glass-content {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.language-modal.active .modal-glass-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    margin-top: 20px;
}

    .modal-actions .btn-primary, .modal-actions .btn-secondary {
        width: 100%;
    }

.modal-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

    .modal-check input {
        accent-color: var(--accent-cyan);
    }

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .dropdown-menu {
        display: none;
    }
    /* Ocultar MegaMenu Desktop */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    #desktopNav, .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 2.8rem;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }
}



/* --- GLOBAL REACH SECTION --- */
.global-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 50%, rgba(0, 242, 255, 0.03), transparent 60%);
}

.global-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.global-content {
    z-index: 10;
    position: relative;
}

.global-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.g-stat h4 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.g-stat span {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Contenedor del Globo 3D */
#globe-container {
    width: 100%;
    height: 500px;
    cursor: grab; /* Manita para indicar que se puede mover */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #globe-container:active {
        cursor: grabbing;
    }

@media (max-width: 900px) {
    .global-grid {
        grid-template-columns: 1fr;
    }

    #globe-container {
        height: 400px;
        order: -1;
    }
    /* El globo va arriba en móvil */
}


/* --- CUSTOM WEB DEV SECTION --- */
.custom-dev-section {
    padding: 120px 0;
    position: relative;
    background: radial-gradient(circle at 20% 50%, rgba(189, 0, 255, 0.05), transparent 70%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.dev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* El Canvas 3D */
#tech-core-container {
    width: 100%;
    height: 500px;
    position: relative;
    cursor: grab;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borde sutil para enmarcar la "obra de arte" */
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
}

    #tech-core-container:active {
        cursor: grabbing;
    }

/* Lista de comparación */
.comparison-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comp-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    transition: 0.3s;
}

    .comp-item:hover {
        background: rgba(255,255,255,0.05);
        transform: translateX(10px);
    }

.comp-icon {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-top: 3px;
    filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.comp-text h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.comp-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
    .dev-grid {
        grid-template-columns: 1fr;
    }

    #tech-core-container {
        height: 400px;
        margin-bottom: 40px;
    }
}


/* =========================================
   MODERN MOBILE MENU (Cyberpunk Overlay)
   ========================================= */

/* El botón Hamburguesa (Animado) */
.mobile-toggle {
    display: none; /* Desktop hidden */
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10001; /* Encima del overlay */
}

.hamburger-line {
    display: block;
    width: 30px;
    height: 2px;
    background: #fff;
    margin: 6px auto;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Estado Activo (X) */
.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--accent-cyan);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--accent-cyan);
}

/* El Contenedor Full Screen */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Forzamos el ancho de la ventana */
    height: 100vh; /* Forzamos el alto de la ventana */
    /* FONDO MUCHO MÁS OSCURO Y SÓLIDO */
    background-color: #050507; /* Fallback color sólido */
    background: rgba(5, 5, 7, 0.98); /* 98% de opacidad (Casi negro total) */
    backdrop-filter: blur(15px);
    z-index: 99999; /* Por encima de TODO */

    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar verticalmente */
    padding: 80px 40px 40px 40px; /* Padding top extra para no chocar con la X */
    /* Estado inicial: Oculto a la derecha */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    /* Aseguramos que el contenido no se desborde */
    overflow-y: auto;
}

    .mobile-menu-overlay.active {
        transform: translateX(0); /* Entra a pantalla */
    }

/* Enlaces de Navegación */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.m-link {
    font-family: var(--font-display);
    font-size: 2.5rem; /* Tipografía Gigante */
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

    .m-link:hover, .m-link.active {
        color: #fff;
        padding-left: 15px; /* Desplazamiento */
        border-color: var(--accent-cyan);
    }

.m-arrow {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.3s;
}

.m-link:hover .m-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer del Menú Móvil */
.mobile-menu-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

    .mobile-socials a {
        font-size: 1.5rem;
        color: var(--text-secondary);
    }

        .mobile-socials a:hover {
            color: var(--accent-cyan);
            transform: scale(1.1);
        }

.mobile-toggle {
    z-index: 100000; /* Mayor que el overlay */
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    /* Mostrar solo en móvil */
}


/* --- SUB-MENÚ MÓVIL --- */
.m-link.has-submenu {
    cursor: pointer; /* Indicar que es clickeable */
}

/* Contenedor oculto por defecto */
.m-submenu-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: 20px; /* Sangría */
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Línea guía visual */
    margin-left: 10px;
}

    /* Clase para abrirlo */
    .m-submenu-container.open {
        max-height: 400px; /* Altura suficiente para el contenido */
        margin-bottom: 20px;
    }

/* Estilo de los sub-enlaces */
.m-sublink {
    display: block;
    font-size: 1.2rem; /* Más pequeño que el título principal */
    color: var(--text-secondary);
    padding: 12px 0;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .m-sublink i {
        color: var(--accent-cyan);
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }

    .m-sublink:hover {
        color: #fff;
        transform: translateX(10px);
    }

/* Rotación de la flecha al abrir */
.m-link.active .m-arrow i {
    transform: rotate(180deg);
    color: var(--accent-cyan);
    transition: 0.3s;
}



/* --- WEB MASTERY SECTION --- */
.web-mastery-section {
    padding: 120px 0;
    position: relative;
    /* Fondo oscuro con un degradado sutil */
    background: linear-gradient(to right, #050507, #0a0a0e);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.wm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 3D a la izquierda, Texto a la derecha */
    gap: 60px;
    align-items: center;
}

/* Contenedor 3D */
#web-matrix-container {
    width: 100%;
    height: 550px;
    position: relative;
    cursor: pointer;
    /* Efecto de marco tecnológico */
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.03), transparent 60%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Lista de características */
.wm-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.wm-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
}

    .wm-feat:hover {
        background: rgba(0, 242, 255, 0.05);
        border-color: rgba(0, 242, 255, 0.2);
        transform: translateY(-3px);
    }

    .wm-feat i {
        color: var(--accent-cyan);
        font-size: 1.2rem;
    }

    .wm-feat span {
        font-weight: 600;
        font-size: 0.9rem;
        color: #fff;
    }

@media (max-width: 900px) {
    .wm-grid {
        grid-template-columns: 1fr;
    }

    #web-matrix-container {
        height: 400px;
        order: -1;
    }
    /* 3D arriba en móvil */
    .wm-features {
        grid-template-columns: 1fr;
    }
}



/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

.contact-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05), transparent 70%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Info izquierda, Formulario derecha (más ancho) */
    gap: 60px;
    margin-bottom: 100px;
    align-items: start;
}

/* --- COLUMNA IZQUIERDA: INFO --- */
.contact-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Canvas para la animación 3D pequeña */
#network-canvas-container {
    width: 100%;
    height: 200px;
    margin-bottom: 30px;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.3);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.c-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.c-text h5 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.c-text p, .c-text a {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

    .c-text a:hover {
        color: var(--accent-cyan);
    }

/* --- COLUMNA DERECHA: FORMULARIO --- */
.contact-form-wrapper {
    background: var(--bg-card-glow);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

    .form-input:focus, .form-textarea:focus {
        outline: none;
        border-color: var(--accent-purple);
        box-shadow: 0 0 15px rgba(189, 0, 255, 0.1);
        background: rgba(189, 0, 255, 0.02);
    }

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Mapa */
.map-container {
    width: 100%;
    height: 400px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    filter: grayscale(100%) invert(90%); /* Mapa oscuro estético */
    transition: 0.5s;
}

    .map-container:hover {
        filter: grayscale(0%) invert(0%);
    }

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}


/* =========================================
   CYBERPUNK WHATSAPP BUBBLE
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9000; /* Debajo del menú móvil (99999) pero encima del contenido */
    display: flex;
    flex-direction: row-reverse; /* Para que el texto salga a la izquierda */
    align-items: center;
    gap: 15px;
}

/* El Botón Circular */
.wa-button {
    width: 65px;
    height: 65px;
    background: rgba(5, 5, 7, 0.6); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-cyan); /* Borde Cyan */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); /* Glow inicial */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-decoration: none;
}

    /* Icono interno */
    .wa-button i {
        transition: 0.3s;
        text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    }

    /* Efecto Hover */
    .wa-button:hover {
        background: var(--accent-cyan); /* Se llena de Cyan al hover */
        box-shadow: 0 0 40px rgba(0, 242, 255, 0.8);
        transform: scale(1.1);
        border-color: #fff;
    }

        .wa-button:hover i {
            color: #000; /* Icono negro para contraste */
        }

/* Anillo Pulsante (Onda de radar) */
.wa-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: wa-pulse-anim 2s infinite;
    pointer-events: none;
}

@keyframes wa-pulse-anim {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
        border-width: 0px;
    }
}

/* Etiqueta de Texto (Tooltip Tecnológico) */
.wa-tooltip {
    background: rgba(14, 14, 18, 0.9);
    border: 1px solid var(--glass-border);
    border-left: 2px solid var(--accent-purple); /* Detalle morado */
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 5px #00ff00;
}

/* Mobile Ajustes */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .wa-button {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .wa-tooltip {
        display: none;
    }
    /* Ocultar texto en móvil para no estorbar */
}