/* ================= CONFIGURACIÓN GLOBAL ================= */

/* Definimos "variables" de CSS. Aquí guardamos el color verde exacto del diseño */
:root {
    --color-cohete-verde: #00d4a3;
    /* He sacado este color aproximado de la imagen */
}

/* Le decimos a toda la página que use la fuente Poppins */
body {
    font-family: 'Poppins', sans-serif;
}

/* ================= CLASES PERSONALIZADAS ================= */

/* Crearemos nuestras propias clases para usar ese verde */

/* Para textos verdes (como el título principal) */
.text-cohete {
    color: var(--color-cohete-verde) !important;
}

/* Para botones verdes (como el del menú) */
.btn-cohete {
    background-color: var(--color-cohete-verde);
    color: #000;
    /* Texto negro para contraste */
    font-weight: 600;
    border: none;
    padding: 10px 25px;
    /* Un poco más gorditos */
    border-radius: 50px;
    /* Bordes completamente redondos como en la imagen */
    transition: all 0.3s ease;
}

.btn-cohete:hover {
    background-color: #00b086;
    /* Un poquito más oscuro al pasar el mouse */
    color: #000;
    transform: translateY(-2px);
    /* Pequeño efecto de elevación */
}

/* ================= HERO SECTION CUSTOM ================= */

/* Hacemos que el Hero ocupe un buen espacio en la pantalla */
.min-vh-75 {
    min-height: 75vh;
}

/* Efecto de Brillo Neón para el texto verde */
.titulo-brillo {
    text-shadow: 0 0 25px rgba(0, 212, 163, 0.4);
}

/* ================= NUEVO HERO REDESIGN (THE DATA CORE) ================= */

/* Reducción de Padding global del hero para matar el hueco negro del header */
.hero-data-core {
    padding-top: 10px !important;
    padding-bottom: 2rem !important;
    background-color: #030303;
    /* Fondo negro hiper profundo */
}

/* Partículas 3D con mayor integración de profundidad */
.data-core-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Rejilla Cibernética 3D (Background) */
.cyber-grid {
    position: absolute;
    bottom: -30%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 163, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 163, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(75deg);
    animation: gridMove 15s linear infinite;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    /* Difuminar los bordes hacia negro */
    mask-image: radial-gradient(ellipse at center 20%, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center 20%, black 0%, transparent 60%);
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(75deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(75deg) translateY(50px);
    }
}

/* Elementos del HUD (Heads Up Display) Laterales */
.hud-panel {
    width: 280px;
}

.hud-widget {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.glow-border {
    border-left: 2px solid var(--color-cohete-verde);
    box-shadow: -15px 0 25px -15px rgba(0, 212, 163, 0.6);
}

.hud-panel-right .glow-border {
    border-left: none;
    border-right: 2px solid var(--color-cohete-verde);
    box-shadow: 15px 0 25px -15px rgba(0, 212, 163, 0.6);
}

.hud-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-family: monospace;
    opacity: 0.8;
}

/* Barras de progreso / gráficas HUD */
.hud-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.hud-progress {
    height: 100%;
    background: var(--color-cohete-verde);
    box-shadow: 0 0 10px var(--color-cohete-verde);
}

.hud-graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 4px;
    height: 30px;
}

.hud-bar-v {
    width: 8px;
    background: var(--color-cohete-verde);
    opacity: 0.7;
    transition: height 0.5s;
}

.hud-bar-v:hover {
    opacity: 1;
    box-shadow: 0 0 8px var(--color-cohete-verde);
}

/* Insignia Central Tech */
.hud-badge {
    border: 1px dashed rgba(0, 212, 163, 0.5);
    background: rgba(0, 212, 163, 0.05);
}

.cyber-font {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.blink-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Botones CYBERPUNK CSS */
.cyber-btn {
    position: relative;
    padding: 15px 35px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    clip-path: polygon(15px 0%, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0% 15px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    /* IMPORTANTE para que pueda clickearse pese al HUD lateral */
}

.primary-cyber {
    background: var(--color-cohete-verde);
    color: #000 !important;
    border: none;
}

.primary-cyber:hover {
    background: #0fffca;
    /* Aún más brillante */
    box-shadow: 0 0 40px rgba(0, 212, 163, 0.8) !important;
    transform: scale(1.02);
}

.secondary-cyber {
    background: transparent;
    color: var(--color-cohete-verde) !important;
    border: 2px solid var(--color-cohete-verde);
}

.secondary-cyber:hover {
    background: rgba(0, 212, 163, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 163, 0.3) inset;
}

/* Efecto de ruido/glitch sobre el botón principal (simulado estático) */
.btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ================= SECCIÓN SOLUCIONES ================= */

/* Estilo base de la tarjeta de servicio */
.solucion-card {
    background-color: transparent;
    /* Fondo transparente por defecto */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borde blanco muuuuy sutil */
    transition: all 0.3s ease;
    cursor: default;
}

/* El efecto "Glow" al pasar el mouse (Hover) */
.solucion-card:hover {
    background-color: rgba(255, 255, 255, 0.02);
    /* Se ilumina apenitas el fondo */
    border-color: rgba(0, 212, 163, 0.3);
    /* El borde se pinta con tu color verde Cohete */
    transform: translateY(-5px);
    /* Se levanta un poco */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Crea una sombra oscura abajo */
}

/* ================= SECCIÓN GALERÍA ================= */

/* Hacemos que las fotos tengan el mismo efecto interactivo premium */
.sombra-galeria {
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borde sutil */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.sombra-galeria:hover {
    transform: translateY(-5px) scale(1.02);
    /* Se levanta y hace un mini zoom */
    box-shadow: 0 15px 30px rgba(0, 212, 163, 0.15);
    /* Sombra verde */
    z-index: 2;
    /* Para que la foto pase por delante de las otras al hacer zoom */
}

/* ================= SECCIÓN BENTO BOX (Diferenciadores) ================= */

.bento-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0a0a0a;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* Forzamos el color verde y el texto negro para las 3 tarjetas */
.bg-cohete-solid {
    background-color: var(--color-cohete-verde) !important;
    border: none;
    color: #000 !important;
    /* Texto negro */
}

/* Aseguramos que los títulos y textos de las tarjetas verdes también sean negros */
.bg-cohete-solid h3,
.bg-cohete-solid p,
.bg-cohete-solid i {
    color: #000 !important;
}

.bg-cohete-solid:hover {
    box-shadow: 0 15px 40px rgba(0, 212, 163, 0.3);
}

/* ================= FOOTER ================= */

/* Transición suave para los enlaces de texto */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-cohete-verde) !important;
}

/* Estilo y hover para los iconos de redes sociales */
.social-icon {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--color-cohete-verde);
    border-color: var(--color-cohete-verde) !important;
    color: #000 !important;
    transform: translateY(-3px);
}

/* Botón transparente del footer */
.footer-btn {
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background-color: var(--color-cohete-verde);
    border-color: var(--color-cohete-verde);
    color: #000 !important;
}

/* ================= HUB DE SERVICIOS (servicios.html) ================= */

/* Estilo de la tarjeta oscura basada en tu foto */
.card-servicio {
    background-color: transparent;
    /* Fondo transparente o muy oscuro */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Borde sutil casi invisible */
    transition: all 0.4s ease;
}

/* Efecto al pasar el mouse */
.card-servicio:hover {
    background-color: rgba(255, 255, 255, 0.03);
    /* Se ilumina apenitas el fondo */
    border-color: rgba(0, 212, 163, 0.4);
    /* El borde se pinta verde Cohete */
    transform: translateY(-8px);
    /* Se eleva */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    /* Sombra elegante */
}

/* Para que la flechita se mueva a la derecha al hacer hover */
.card-servicio:hover .bi-arrow-right {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.card-servicio .bi-arrow-right {
    transition: transform 0.3s ease;
}

/* ================= ACORDEÓN FAQ (ads.html) ================= */
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 212, 163, 0.1);
    /* Fondo verde suavecito al abrir */
    color: var(--color-cohete-verde);
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
    /* Pone la flechita blanca */
}

.accordion-button:not(.collapsed)::after {
    filter: invert(65%) sepia(51%) saturate(5203%) hue-rotate(133deg) brightness(98%) contrast(104%);
    /* Pinta la flecha de verde al abrir */
}

/* ================= FORMULARIO DE CONTACTO ================= */
.form-cohete {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

/* Color al hacer clic (Focus) en un campo de texto */
.form-cohete:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 163, 0.25);
    border-color: var(--color-cohete-verde);
    background-color: transparent !important;
    color: white !important;
}

/* Ajuste para que las opciones del select se vean bien */
.form-select.form-cohete {
    background-color: transparent;
}

/* ================= LÍNEA DE TIEMPO (nosotros.html) ================= */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* La línea vertical del centro */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(0, 212, 163, 0.2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

/* Contenedor de cada hito */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* Los círculos verdes sobre la línea */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-cohete-verde);
    border: 4px solid #000;
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

/* La tarjeta con el texto */
.timeline-content {
    padding: 30px;
    background-color: #0a0a0a;
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(0, 212, 163, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Diseño Responsivo (Celulares) */
@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 10px;
    }
}

/* ================= BOTÓN FLOTANTE WHATSAPP ================= */
.btn-whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    /* Verde oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* Asegura que siempre esté por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp-flotante:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    /* Efecto de crecimiento al pasar el mouse */
    box-shadow: 0px 6px 15px rgba(37, 211, 102, 0.4);
}

/* ================= METODOLOGÍA FUTURISTA (TABS) ================= */
.seo-tabs-container {
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 500px;
    /* Altura mínima para asegurar impacto */
}

.seo-tabs-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.methodology-tab {
    flex: 1;
    /* Cada pestaña ocupa una parte igual de la altura total */
    padding: 20px 30px;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #888;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.methodology-tab:last-child {
    border-bottom: none;
}

.methodology-tab i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.methodology-tab.active {
    background: rgba(0, 212, 163, 0.05);
    border-left-color: var(--color-cohete-verde);
    color: white;
}

.methodology-tab.active i {
    color: var(--color-cohete-verde);
    transform: scale(1.1);
}

.methodology-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.02);
    color: #ccc;
}

.methodology-content {
    display: none;
    padding: 60px;
    height: 100%;
    animation: slideInRight 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.methodology-content.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centrar contenido verticalmente */
}



.methodology-content h3 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.methodology-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}


.methodology-content.active {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= COMPACT SEO PREVIEW ================= */
.seo-console {
    background: #0a0a0a;
    border: 1px solid rgba(0, 212, 163, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.seo-console-inputs {
    flex: 1 1 350px;
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.seo-console-preview {
    flex: 2 1 450px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121212;
}

@media (max-width: 991px) {
    .seo-console-inputs {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}


[data-bs-theme="light"] .google-preview-container {
    background-color: #ffffff;
    border-color: #dee2e6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.google-result {
    font-family: Arial, sans-serif;
    /* Google uses Roboto or Arial */
}

.google-site-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.google-favicon {
    width: 26px;
    height: 26px;
    background-color: #303134;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cohete-verde);
    font-size: 0.8rem;
}

[data-bs-theme="light"] .google-favicon {
    background-color: #f1f3f4;
}

.google-url-wrap {
    display: flex;
    flex-direction: column;
}

.google-site-name {
    color: #e8eaed;
    font-size: 14px;
    line-height: 20px;
}

[data-bs-theme="light"] .google-site-name {
    color: #202124;
}

.google-url {
    color: #bdc1c6;
    font-size: 12px;
    line-height: 18px;
}

[data-bs-theme="light"] .google-url {
    color: #4d5156;
}

.google-title {
    color: #8ab4f8;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    margin-bottom: 4px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.google-title:hover {
    text-decoration: underline;
}

[data-bs-theme="light"] .google-title {
    color: #1a0dab;
}

.google-description {
    color: #bdc1c6;
    font-size: 14px;
    line-height: 22px;
}

[data-bs-theme="light"] .google-description {
    color: #4d5156;
}

.google-input-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 163, 0.2);
    margin-bottom: 40px;
}

[data-bs-theme="light"] .google-input-group {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* ================= CALCULADORA SEO RENTABILIDAD ================= */
.seo-roi-card {
    background: #0a0a0a;
    border: 1px solid rgba(0, 212, 163, 0.2);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .seo-roi-card {
    background: #ffffff;
    border-color: #dee2e6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.seo-result-display {
    background: rgba(0, 212, 163, 0.03);
    border: 1px dashed rgba(0, 212, 163, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.seo-ganancia-texto {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-cohete-verde);
    text-shadow: 0 0 30px rgba(0, 212, 163, 0.3);
    line-height: 1.1;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .seo-ganancia-texto {
        font-size: 2.2rem;
    }
}

.seo-slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-slider-value {
    color: var(--color-cohete-verde);
    font-weight: 700;
}

header {
    position: relative;
    z-index: 10000 !important;
    /* Por encima de todo */
}

.navbar {
    z-index: 10001 !important;
}

/* ================= MEGA MENU ================= */
@media (min-width: 992px) {
    .nav-item.dropdown.has-megamenu {
        position: static;
    }

    .megamenu {
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        padding: 60px 0;
        margin-top: 0;
        border: none;
        border-top: 1px solid rgba(0, 212, 163, 0.3);
        border-bottom: 3px solid var(--color-cohete-verde);
        border-radius: 0;
        background-color: #000000 !important;
        /* Negro absoluto y sólido */
        box-shadow: 0 50px 100px rgba(0, 0, 0, 1);
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease-out;
        display: block;
        z-index: 10002 !important;
    }


    [data-bs-theme="light"] .megamenu {
        background-color: #ffffff !important;
        /* Sólido en modo claro */
        border-top: 1px solid #dee2e6;
        border-bottom: 3px solid var(--color-cohete-verde);
        box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    }

    .megamenu-item {
        padding: 25px;
        border-radius: 15px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 20px;
        color: #ffffff !important;
        /* Blanco puro para máximo contraste */
        background: rgba(255, 255, 255, 0.03);
        /* Fondo muy leve para definir el área */
        margin-bottom: 10px;
    }

    [data-bs-theme="light"] .megamenu-item {
        color: #000000 !important;
        background: rgba(0, 0, 0, 0.02);
    }

    .megamenu-item:hover {
        background: rgba(0, 212, 163, 0.15);
        transform: scale(1.03);
        box-shadow: 0 10px 30px rgba(0, 212, 163, 0.1);
    }

    .megamenu-item i {
        font-size: 1.8rem;
        color: var(--color-cohete-verde);
        filter: drop-shadow(0 0 5px rgba(0, 212, 163, 0.5));
    }


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

    [data-bs-theme="light"] .megamenu-item {
        color: #212529;
    }


    .megamenu-item i {
        font-size: 1.5rem;
        color: var(--color-cohete-verde);
    }

    .megamenu-promo {
        background: linear-gradient(135deg, rgba(0, 212, 163, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%),
            url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=600&q=80');
        background-size: cover;
        background-position: center;
        border-radius: 15px;
        padding: 30px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        border: 1px solid rgba(0, 212, 163, 0.2);
    }

    [data-bs-theme="light"] .megamenu-promo {
        background: linear-gradient(135deg, rgba(0, 212, 163, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
        border-color: #dee2e6;
    }
}

/* Ajustes móviles para el Mega Menú */
@media (max-width: 991px) {
    .megamenu {
        padding: 15px;
        background: #111 !important;
    }

    .megamenu-promo {
        margin-top: 20px;
    }
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-after {
    width: 50%;
    z-index: 2;
    border-right: 3px solid var(--color-cohete-verde);
}

.ba-before {
    z-index: 1;
    filter: grayscale(1) brightness(0.6);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--color-cohete-verde);
    z-index: 3;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.ba-handle::after {
    content: '\F12D';
    /* bi-arrow-left-right */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: var(--color-cohete-verde);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 212, 163, 0.6);
}

.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    z-index: 4;
    pointer-events: none;
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

[data-bs-theme="light"] .ba-slider {
    border-color: #dee2e6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.roi-card {
    background-color: #0a0a0a;
    border: 1px solid rgba(0, 212, 163, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

[data-bs-theme="light"] .roi-card {
    background-color: #ffffff;
    border-color: #dee2e6;
}

.roi-result-card {
    background: linear-gradient(145deg, rgba(0, 212, 163, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(0, 212, 163, 0.3);
}

[data-bs-theme="light"] .roi-result-card {
    background: linear-gradient(145deg, rgba(0, 212, 163, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: #dee2e6;
}

.form-range::-webkit-slider-thumb {
    background: var(--color-cohete-verde);
}

.form-range::-moz-range-thumb {
    background: var(--color-cohete-verde);
}

.form-range::-ms-thumb {
    background: var(--color-cohete-verde);
}

.roi-value {
    color: var(--color-cohete-verde);
    font-weight: 700;
}

#theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-cohete-verde);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

#theme-toggle:hover {
    background-color: var(--color-cohete-verde);
    color: #000;
    border-color: var(--color-cohete-verde);
}

/* ================= AJUSTES MODO CLARO ================= */
[data-bs-theme="light"] {
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
}

[data-bs-theme="light"] body.bg-black,
[data-bs-theme="light"] .bg-black,
[data-bs-theme="light"] .bg-dark:not(.bg-opacity-25) {
    background-color: #ffffff !important;
}

[data-bs-theme="light"] header .navbar.bg-black {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .text-white,
[data-bs-theme="light"] .navbar-brand,
[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
    color: #212529 !important;
}

[data-bs-theme="light"] .text-secondary {
    color: #6c757d !important;
}

[data-bs-theme="light"] .hero-section {
    background-color: #f8f9fa;
}

/* Overriding inline backgrounds and hardcoded dark sections */
[data-bs-theme="light"] section[style*="background"],
[data-bs-theme="light"] div[style*="background"] {
    background: #ffffff !important;
}

[data-bs-theme="light"] .bg-dark.bg-opacity-25 {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .bento-card,
[data-bs-theme="light"] .timeline-content,
[data-bs-theme="light"] .card-servicio,
[data-bs-theme="light"] .solucion-card,
[data-bs-theme="light"] .grid-item {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
}

[data-bs-theme="light"] footer,
[data-bs-theme="light"] footer.bg-black {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
}

[data-bs-theme="light"] .border-dark,
[data-bs-theme="light"] .border-secondary {
    border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .form-cohete {
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .form-cohete::placeholder {
    color: #6c757d !important;
}

[data-bs-theme="light"] .form-cohete:focus {
    border-color: var(--color-cohete-verde) !important;
    background-color: #ffffff !important;
    color: #212529 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 163, 0.15);
}

/* Override text-white on inputs specifically for light mode */
[data-bs-theme="light"] input.text-white,
[data-bs-theme="light"] textarea.text-white,
[data-bs-theme="light"] select.text-white {
    color: #212529 !important;
}

[data-bs-theme="light"] .btn-outline-light {
    border-color: #212529;
    color: #212529;
}

[data-bs-theme="light"] .btn-outline-light:hover {
    background-color: #212529;
    color: #ffffff;
}

[data-bs-theme="light"] .nav-link {
    color: #495057 !important;
}


[data-bs-theme="light"] .nav-link.active {
    color: var(--color-cohete-verde) !important;
}

[data-bs-theme="light"] #theme-toggle {
    border-color: #dee2e6;
    color: #212529;
}

/* ================= TESTIMONIOS PREMIUM ================= */
.testimonials-section {
    background: radial-gradient(circle at top right, rgba(0, 212, 163, 0.03) 0%, #000 50%);
    overflow: hidden;
}

.testimonial-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 20px;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.35rem;
    font-style: italic;
    color: white;
    margin-bottom: 25px;
    line-height: 1.5;
}

[data-bs-theme="light"] .testimonial-quote {
    color: #212529;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-cohete-verde);
    object-fit: cover;
}

/* ================= EXIT INTENT MODAL = :Lead Magnet ================= */
.modal-content.lead-magnet {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 163, 0.3);
    border-radius: 30px;
}

.lead-magnet-icon {
    font-size: 4rem;
    color: var(--color-cohete-verde);
    text-shadow: 0 0 20px rgba(0, 212, 163, 0.4);
}

/* Magnetic Button Transition */
.btn-cohete,
#theme-toggle {
    transition: transform 0.1s ease-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-stack-section {
    padding: 60px 0;
    overflow: hidden;
    background: #000;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    gap: 80px;
    padding-left: 40px;
    padding-right: 40px;
    min-width: 100%;
    animation: scroll-marquee 40s linear infinite;
}

@keyframes scroll-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.tech-logo {
    height: 35px;
    width: auto;
    filter: grayscale(100%) brightness(0.8) opacity(0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    object-fit: contain;
}


.tech-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

[data-bs-theme="light"] .tech-stack-section {
    background: #f8f9fa;
}

[data-bs-theme="light"] .tech-logo {
    filter: grayscale(100%) opacity(0.6);
}

[data-bs-theme="light"] .tech-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Parche Estabilidad Botones */
.btn-cohete{transition:transform .3s ease,box-shadow .3s ease;backface-visibility:hidden;transform:translateZ(0);will-change:transform}
.btn-cohete:hover{transform:translateY(-2px)!important}

/* --- FIX: SCROLL HORIZONTAL MOLESTO EN MÓVILES --- */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* --- FIX: BOTÓN DE MENÚ (HAMBURGUESA) INVISIBLE EN MODO CLARO --- */
[data-bs-theme="light"] .navbar-toggler-icon {
    /* Convierte el icono blanco en oscuro para que contraste con el fondo claro */
    filter: invert(1) grayscale(100%) brightness(0%);
}

[data-bs-theme="light"] .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Corrección de fondo de Widgets y Testimonios para Modo Claro */
[data-bs-theme="light"] .hud-widget {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
[data-bs-theme="light"] .hud-widget .text-white {
    color: var(--bs-dark) !important;
}
[data-bs-theme="light"] .testimonials-section {
    background: radial-gradient(circle at top right, rgba(0, 212, 163, 0.05) 0%, #f8f9fa 80%);
}
[data-bs-theme="light"] .testimonials-section .text-white {
    color: var(--bs-dark) !important;
}
