/* ==========================================================================
   CSS Variables - Cyberpunk & AI Theme Configuration
   ========================================================================== */
   :root {
    /* 
      Paleta de colores Cyberpunk / IA
    */
    --primary-color: #0b0c10; /* Fondo muy oscuro */
    --secondary-color: #1f2833; /* Gris azulado oscuro */
    
    /* Acentos Neon */
    --accent-blue: #00f0ff; /* Azul Neon Cyberpunk */
    --accent-purple: #b026ff; /* Violeta Neon */
    --accent-color: var(--accent-blue); /* Variable principal para fácil uso */
    
    --text-main: #c5c6c7;
    --text-light: #ffffff;
    --text-muted: #8892b0;
    
    --bg-darker: #050608;
    --bg-panel: rgba(31, 40, 51, 0.6);

    /* Tipografías modernas */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Efectos Glowing premium */
    --glow-blue: 0 0 15px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 15px rgba(176, 38, 255, 0.5), 0 0 30px rgba(176, 38, 255, 0.3);
    
    /* Glassmorphism */
    --glass-bg: rgba(11, 12, 16, 0.85);
    --glass-border: rgba(0, 240, 255, 0.2);
    
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --nav-height: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-accent {
    color: var(--accent-blue);
}

.text-glow {
    text-shadow: var(--glow-blue);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Typography & Titles
   ========================================================================== */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.title-underline {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
    box-shadow: var(--glow-blue);
}

.title-underline.center {
    margin: 0 auto;
}

.subtitle {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.1), rgba(176, 38, 255, 0.1));
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-primary.btn-glow:hover {
    background: var(--accent-blue);
    color: var(--primary-color);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--accent-blue);
    font-size: 1.6rem;
    text-shadow: var(--glow-blue);
}

.logo-accent {
    font-weight: 400;
    color: var(--accent-purple);
    text-shadow: var(--glow-purple);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 12, 16, 0.4) 0%, rgba(11, 12, 16, 0.9) 100%);
}

/* Animación de esfera de energía */
.glow-sphere {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(50px);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.2) translate(-50px, 50px); opacity: 1; }
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 650px;
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Empresa Section
   ========================================================================== */
.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cyber-heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-purple);
}

.empresa-text p {
    margin-bottom: 20px;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-light);
}

.features-list i {
    font-size: 1.2rem;
    text-shadow: var(--glow-blue);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
}

.cyber-border {
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 10px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.cyber-border img {
    border-radius: 2px;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.cyber-border:hover img {
    transform: scale(1.02);
    opacity: 1;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-darker);
    border: 1px solid var(--accent-purple);
    padding: 20px 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--glow-purple);
    z-index: 10;
}

.icon-pulse i {
    font-size: 2.5rem;
    color: var(--accent-purple);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); text-shadow: var(--glow-purple); }
    100% { transform: translateY(0px); }
}

.experience-badge .text {
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Servicios Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.cyber-card {
    background: var(--bg-panel);
    padding: 40px 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent);
    transition: var(--transition);
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.1);
}

.cyber-card:hover::before {
    left: 100%;
    transition: 0.8s;
}

.cyber-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.cyber-card .icon-box i {
    font-size: 28px;
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
}

.cyber-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.cyber-card p {
    color: var(--text-main);
}

/* ==========================================================================
   Contacto Section
   ========================================================================== */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.cyber-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contacto-info {
    border-left: 2px solid var(--accent-purple);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(176, 38, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-purple);
    flex-shrink: 0;
    border: 1px solid rgba(176, 38, 255, 0.3);
}

.info-text h4 {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-text p, .info-text a {
    color: var(--text-main);
}

.info-text a:hover {
    color: var(--accent-purple);
    text-shadow: var(--glow-purple);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-3px);
}

/* Formularios */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: var(--text-light);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.footer-slogan {
    margin-top: 10px;
    color: var(--accent-purple);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */
.float-wpp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.float-wpp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   Animations (Intersection Observer Classes)
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .empresa-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .experience-badge { right: 20px; bottom: -20px; }
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-darker);
        backdrop-filter: blur(20px);
        transition: var(--transition);
        padding: 40px 20px;
        border-top: 1px solid rgba(0, 240, 255, 0.2);
    }

    .main-nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-link::after { display: none; }

    .header { background: var(--bg-darker); border-bottom: 1px solid rgba(255,255,255,0.05); }

    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}
