/* CSS Variables & Design System */
:root {
    /* Brand Colors (from Logo) */
    --color-primary-blue: #1E4BB0;
    --color-secondary-blue: #3B82F6;
    --color-dark-blue: #1E3A8A;
    --color-action-orange: #EA580C;
    --color-light-orange: #FDBA74;

    /* Backgrounds & Surfaces */
    --color-bg-main: #020617; /* Deep Navy / Black */
    --color-surface-glass: rgba(255, 255, 255, 0.03);
    --color-border-glass: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --color-text-main: #FFFFFF;
    --color-text-muted: #94A3B8; /* Slate 400 */

    /* Typography */
    --font-family-base: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
}

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

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-family-base);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Always behind everything */
    pointer-events: none; /* Let clicks pass through to UI */
}

/* Mesh Gradients */
.mesh-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}
.mesh-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary-blue);
    top: -200px;
    left: -200px;
}
.mesh-2 {
    width: 500px;
    height: 500px;
    background: var(--color-action-orange);
    bottom: -100px;
    right: -100px;
    opacity: 0.2;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--color-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-glass);
    border-radius: 16px;
}

/* App Container */
#app {
    position: relative;
    z-index: 1; /* Above the canvas */
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Text Gradients Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--color-light-orange) 0%, var(--color-action-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    padding: 20px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid var(--color-border-glass);
    padding: 15px 0;
}
.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px;
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--color-light-orange);
}
.nav-links a svg {
    transition: transform 0.3s ease;
}
.nav-links a:hover svg {
    transform: translateY(3px);
}

/* Menu Toggle (Hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1200;
    padding: 10px; /* Área de toque más grande */
}
.menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}
.mobile-menu.active {
    transform: translateX(0);
    pointer-events: auto;
}
.mobile-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.mobile-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }


/* Botones (Magic Border Effect) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary {
    color: white;
    border: none;
    background: transparent;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, var(--color-action-orange), var(--color-primary-blue), var(--color-action-orange), var(--color-primary-blue), var(--color-action-orange));
    animation: rotate-border 3s linear infinite;
    z-index: -2;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #020617; /* Slate dark base */
    border-radius: 6px;
    z-index: -1;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 75, 176, 0.4);
}

.btn-primary:hover::after {
    background: rgba(2, 6, 23, 0.8);
}

.btn-secondary {
    color: white;
    border: none;
    background: transparent;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.7), transparent, rgba(255,255,255,0.7), transparent);
    animation: rotate-border 4s linear infinite reverse;
    z-index: -2;
}

.btn-secondary::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--color-surface-glass);
    border-radius: 7px;
    z-index: -1;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px; /* Restaurado el espacio original */
    padding-bottom: 60px;
    position: relative;
    z-index: 10;
}

.hero-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    padding: 0 20px;
}

.carousel-text-wrapper {
    position: relative;
    height: 400px; /* Reducido de 450px para evitar desborde vertical */
    display: flex;
    align-items: center;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) translateX(-40px) scale(0.95);
    opacity: 0;
    filter: blur(15px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    text-align: left;
}

.carousel-slide.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(0) scale(1);
    pointer-events: auto;
}

.carousel-slide.exit {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(-50%) translateX(40px) scale(1.05);
}

.carousel-image-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(15px);
    transform: translateX(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.carousel-image.exit {
    opacity: 0;
    filter: blur(15px);
    transform: translateX(-40px) scale(1.05);
}

.diffuse-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
}

.carousel-controls {
    position: absolute;
    bottom: -60px; /* Subido un poco para dar más aire */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-action-orange);
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.6);
    transform: scale(1.2);
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Regla especial para pantallas bajitas (Laptops) sin importar el ancho */
@media (max-height: 800px) {
    .hero {
        padding-top: 100px;
        align-items: center;
    }
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 12px;
    }
    .carousel-text-wrapper {
        height: 380px;
    }
    .carousel-image-wrapper {
        height: 400px;
    }
}
.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-light-orange);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}
.hero-body {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 750px;
    margin: 0 0 40px 0;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Responsiveness for Hero Carousel */
@media (max-width: 1200px) {
    .hero {
        padding-top: 120px;
        align-items: center;
    }
    .hero-title {
        font-size: 2.6rem; /* Un poco más pequeño aún */
        margin-bottom: 12px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .hero-body {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .carousel-text-wrapper {
        height: 400px;
        margin-top: 20px; /* Empujar los textos un poco más abajo */
    }
    .carousel-image-wrapper {
        height: 400px;
    }
    .hero-carousel {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    .hero-body {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .carousel-text-wrapper {
        height: 360px;
    }
    .carousel-image-wrapper {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .nav-links, .hide-mobile {
        display: none !important;
    }
    .menu-toggle {
        display: flex;
    }
    .hero {
        padding-top: 80px;
        padding-bottom: 80px; /* Más espacio al final */
        align-items: flex-start;
        height: auto; /* Permitir que crezca más allá de 100vh si es necesario */
        min-height: 100vh;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    .hero-carousel {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 20px;
    }
    .carousel-slide {
        text-align: center;
    }
    .hero-body {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 30px;
        padding: 0 10px; /* Espacio para que el botón de WhatsApp no tape el texto */
    }
    .hero-actions {
        justify-content: center;
        padding-bottom: 60px; /* Más espacio para los puntos del carrusel */
    }
    .carousel-text-wrapper {
        height: auto;
        min-height: 480px; /* Aumentado significativamente para evitar solapamiento */
    }
    .carousel-image-wrapper {
        height: 380px;
        order: -1; /* Imagen arriba */
        margin-bottom: -20px;
    }
}

/* Clients Marquee */
.clients-marquee {
    padding: 20px 0 60px 0;
    text-align: center;
}
.marquee-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(2, 6, 23, 1), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(2, 6, 23, 1), transparent);
}
.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 25s linear infinite;
    gap: 50px;
    padding-left: 25px; /* Half of gap */
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 25px)); }
}
.client-logo-box {
    width: 180px;
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.client-logo-box img {
    max-width: 80%;
    max-height: 70%;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}
.client-logo-box:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
    border-color: rgba(255, 255, 255, 0.2);
}
.client-logo-box:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Section Utilities */
section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}
.section-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: var(--color-light-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}
.section-body {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin-bottom: 50px;
}

/* Vision Section */
.vision {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}
.metric-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}
.metric-card h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.metric-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}
.service-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, background 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.service-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Methodology Section */
.methodology {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.method-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    width: 100%;
}
.method-step {
    padding: 30px 20px;
    text-align: left;
    position: relative;
}
.step-number {
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.5;
    margin-bottom: 15px;
    line-height: 1;
}
.method-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.method-step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ROI Calculator Section */
.roi-calculator {
    display: flex;
    justify-content: center;
}
.roi-container {
    width: 100%;
    max-width: 900px;
    padding: 60px;
    text-align: center;
}
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}
.control-group {
    margin-bottom: 30px;
}
.control-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.control-group span {
    color: var(--color-light-orange);
    font-weight: 800;
}
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-action-orange);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
    transition: transform 0.2s;
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.calculator-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.result-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border-glass);
    text-align: center;
}
.result-box p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.result-box h3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}
.secondary-result h4 {
    font-size: 2rem;
    color: var(--color-text-main);
}

/* Contact Section */
.contact {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}
.contact-container {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px;
    align-items: center;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.6) 100%), url('img/contactanosia.jpg') center/cover no-repeat;
    box-shadow: 0 0 40px rgba(234, 88, 12, 0.2);
    border-radius: 20px;
}
.contact-content {
    text-align: left;
}
.contact-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.contact-content .section-body {
    margin-bottom: 0;
    font-size: 1.1rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFFFFF;
}
.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-action-orange);
    background: rgba(255, 255, 255, 0.12);
}
.w-100 {
    width: 100%;
}

/* Footer */
.footer {
    padding: 60px 20px 20px 20px;
    border-top: 1px solid var(--color-border-glass);
    margin-top: 50px;
    position: relative;
    z-index: 10;
}
.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.footer-brand {
    max-width: 400px;
}
.footer-logo {
    height: 30px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--color-action-orange);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .header-container {
        padding: 0 15px;
    }
    .logo img {
        height: 25px;
    }
    .header .btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-body {
        font-size: 1.05rem;
    }
    .nav-links, .hide-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .menu-toggle {
        display: flex !important;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .metrics-grid, .services-grid, .method-steps, .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .roi-video-content {
        width: 95%;
        height: auto;
        min-height: 350px;
    }
    .video-screen {
        padding: 70px 20px 30px 20px;
    }
    .typewriter-text {
        font-size: 0.85rem;
    }
    .contact {
        padding: 40px 15px;
    }
    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        /* Change gradient direction to bottom for stacked view */
        background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.6) 100%), url('img/contactanosia.jpg') center/cover no-repeat;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-brand {
        margin: 0 auto;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Galaxy Preloader & Animations
   ========================================================================== */

#galaxy-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000; /* Fondo negro inicial */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#galaxy-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    height: 40px;
}

#preloader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.preloader-logo-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.85);
}

.preloader-logo-wrapper.snap-in {
    /* Animación de entrada inicial: aparece de golpe / efecto magnético */
    animation: logoSnapIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.preloader-slogan {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #FFFFFF;
    margin-top: 12px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes logoSnapIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Clases de aparición escalonada (Staggered Fade-in-up) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos para escalonamiento */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ==========================================================================
   Cursor Glow Effect (Bola de Fuego)
   ========================================================================== */
#cursor-glow {
    position: fixed;
    top: -150px; /* Offset to center */
    left: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.5) 0%, rgba(30, 75, 176, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5; /* Detrás del texto pero sobre el fondo */
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(0, 0);
    will-change: transform;
}

#cursor-glow.active {
    opacity: 1;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

/* ROI Video Modal */
.modal-hidden {
    display: none;
    opacity: 0;
}
#roi-video-modal.active {
    display: flex;
    opacity: 1;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s forwards;
}
.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(15px);
}
.roi-video-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    border: 1px solid var(--color-action-orange);
    box-shadow: 0 0 50px rgba(234, 88, 12, 0.2);
    overflow: hidden;
}
.video-close {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.3s;
    z-index: 10;
}
.video-close:hover { color: white; }

.modal-header-branding {
    position: absolute;
    top: 25px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}
.modal-logo {
    height: 12px;
    opacity: 0.9;
}
.modal-slogan {
    color: var(--color-action-orange);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 15px;
}

.video-screen {
    text-align: center;
    padding: 80px 40px 40px 40px;
    width: 100%;
}
.typewriter-text {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    min-height: 120px;
    color: white;
}

/* Global Mobile Visibility Fix */
@media (max-width: 768px) {
    .nav-links, .hide-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .menu-toggle {
        display: flex !important;
    }
}

/* Audio Waves Animation */
.audio-waves {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
    margin-top: 40px;
    opacity: 0;
    transition: opacity 0.5s;
}
.audio-waves.playing {
    opacity: 1;
}
.wave {
    width: 8px;
    background: var(--color-action-orange);
    border-radius: 4px;
    animation: waveAnim 1s ease-in-out infinite alternate;
}
.wave:nth-child(1) { animation-delay: 0.0s; height: 20%; }
.wave:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.wave:nth-child(3) { animation-delay: 0.4s; height: 100%; }
.wave:nth-child(4) { animation-delay: 0.2s; height: 70%; }
.wave:nth-child(5) { animation-delay: 0.0s; height: 30%; }

@keyframes waveAnim {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background-color: white;
    color: #128c7e;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}

/* Premium Dropdown for navigation submenu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown .dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-dropdown.active .dropdown-trigger {
    color: var(--color-light-orange);
}
.nav-dropdown .dropdown-trigger svg {
    transition: transform 0.3s ease;
}
.nav-dropdown.active .dropdown-trigger svg {
    transform: rotate(180deg);
}
.nav-dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
    visibility: hidden;
    min-width: 200px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
    background: rgba(11, 14, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.03);
}
.nav-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown .dropdown-content a {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: none;
    letter-spacing: 0.05em;
    color: var(--color-text-main) !important;
}
.nav-dropdown .dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-light-orange) !important;
}
.badge-cyan {
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid rgba(0, 242, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Shadcn-style Radix Menubar Radio Item */
.dropdown-radio-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dropdown-radio-item {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 32px !important; /* Spacing for left dot indicator */
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.05em;
    background: transparent;
}

.dropdown-radio-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.radio-indicator {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
}

.radio-bullet {
    width: 6px;
    height: 6px;
    background-color: #00f2ff; /* Brand cyan / azul celeste */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
}

