/* =========================================
   MOBILE & RESPONSIVE REFINEMENTS
   (Max-Width: 768px for Strict Mobile)
   ========================================= */

@media screen and (max-width: 1024px) {


    html {
        /* Aumentamos el freno a 90px para salvar el menú y dejar aire */
        scroll-padding-top: 30px !important;
        scroll-behavior: smooth;
    }

    /* --- RESET & BASICS --- */
    body {
        /* FIX VITAL: Usar clip en vez de hidden para que funcione el scroll-padding */
        overflow-x: clip !important;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only,
    .desktop-only-grid {
        display: none !important;
    }

    /* --- NAVBAR & HEADER --- */
    .navbar {
        padding: 15px 0 !important;
        /* Slimmer by default on mobile */
        background: rgba(5, 5, 5, 0.85);
        /* Slightly visible always on mobile for contrast */
        backdrop-filter: blur(10px);
    }

    .navbar.scrolled {
        padding: 10px 0 !important;
        background: rgba(5, 5, 5, 0.98);
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }

    .nav-container {
        padding: 0 20px;
        /* Standard mobile padding */
        width: 100%;
        max-width: 100%;
    }

    /* LOG_IDENTITY REFINEMENT */
    .brand-wrapper {
        min-height: 40px;
        /* Compact height */
        transform: scale(0.9);
        /* Slightly smaller logo overall */
        transform-origin: left center;
    }

    /* --- MOBILE MENU OVERLAY (The "Fine" Look) --- */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        /* Dynamic viewport height */
        background: radial-gradient(circle at center right, #111, #050505);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        /* Left aligned for luxury look */
        padding: 60px 40px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        counter-reset: menu-counter;
        /* For numbered links */
    }

    /* Decorative side glow */
    .mobile-overlay::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(to bottom, transparent, var(--gold), transparent);
        opacity: 0.3;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Subtle background watermark */
    .mobile-overlay::after {
        content: 'QA';
        position: absolute;
        bottom: -20px;
        right: -20px;
        font-size: 15rem;
        font-family: var(--font-head);
        font-weight: 900;
        color: rgba(212, 175, 55, 0.03);
        z-index: -1;
        user-select: none;
        pointer-events: none;
    }

    .mobile-link {
        font-family: var(--font-head);
        font-size: 1.8rem;
        font-weight: 700;
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 4px;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 20px;
        opacity: 0;
        transform: translateX(30px);
        /* Slide in from right effect */
        transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        position: relative;
    }

    /* Numbering system */
    .mobile-link::before {
        counter-increment: menu-counter;
        content: "0" counter(menu-counter);
        font-size: 0.7rem;
        color: var(--gold);
        letter-spacing: 1px;
        border: 1px solid rgba(212, 175, 55, 0.3);
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 400;
    }

    .mobile-link:hover,
    .mobile-link:active {
        color: var(--gold);
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }

    .mobile-overlay.active .mobile-link {
        opacity: 1;
        transform: translateX(0);
        /* Corrected from translateY */
    }

    /* Snappy staggered animations */
    .mobile-overlay.active .mobile-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-overlay.active .mobile-link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .mobile-overlay.active .mobile-link:nth-child(3) {
        transition-delay: 0.2s;
    }

    .mobile-overlay.active .mobile-link:nth-child(4) {
        transition-delay: 0.25s;
    }

    .mobile-overlay.active .mobile-link:nth-child(5) {
        transition-delay: 0.3s;
    }

    .mobile-overlay.active .mobile-link:nth-child(6) {
        transition-delay: 0.35s;
    }

    .mobile-overlay.active .mobile-link:nth-child(7) {
        transition-delay: 0.4s;
    }

    .mobile-overlay.active .mobile-link:nth-child(8) {
        transition-delay: 0.45s;
    }

    /* Menu Footer */
    .menu-footer {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.8s ease-out 0.5s;
    }

    /* WHATSAPP TAG ALIGNMENT (Centered below button) */
    .cta-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .whatsapp-tag {
        margin-top: 15px !important;
        text-align: center !important;
        width: 100% !important;
        justify-content: center !important;
        /* font-size and color removed to match PC style */
        display: flex !important;
    }

    .mobile-overlay.active .menu-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-contact-btn {
        display: inline-block;
        color: var(--gold);
        font-family: var(--font-head);
        font-size: 0.8rem;
        letter-spacing: 2px;
        text-decoration: none;
        border: 1px solid var(--gold);
        padding: 10px 20px;
        text-transform: uppercase;
        border-radius: 4px;
    }

    /* Staggered Animation for Links (8 items) */
    .mobile-overlay.active .mobile-link:nth-child(1) {
        transition-delay: 0.05s;
    }

    .mobile-overlay.active .mobile-link:nth-child(2) {
        transition-delay: 0.10s;
    }

    .mobile-overlay.active .mobile-link:nth-child(3) {
        transition-delay: 0.15s;
    }

    .mobile-overlay.active .mobile-link:nth-child(4) {
        transition-delay: 0.20s;
    }

    .mobile-overlay.active .mobile-link:nth-child(5) {
        transition-delay: 0.25s;
    }

    .mobile-overlay.active .mobile-link:nth-child(6) {
        transition-delay: 0.30s;
    }

    .mobile-overlay.active .mobile-link:nth-child(7) {
        transition-delay: 0.35s;
    }

    .mobile-overlay.active .mobile-link:nth-child(8) {
        transition-delay: 0.40s;
    }

    /* --- HAMBURGER MENU (Real Burger Aesthetic) --- */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 35px;
        height: 35px;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        padding: 5px;
        z-index: 3100 !important;
        transition: transform 0.3s ease;
    }

    .hamburger-lines {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 24px;
    }

    .hamburger-lines span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--gold);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-radius: 4px;
        transform-origin: center;
    }

    /* Staggered widths for the "Real Burger" look */
    .hamburger-lines span:nth-child(1) {
        width: 80%;
        margin: 0 auto;
    }

    .hamburger-lines span:nth-child(2) {
        width: 100%;
        background-color: #f1c40f;
        /* Brighter gold for the middle */
    }

    .hamburger-lines span:nth-child(3) {
        width: 80%;
        margin: 0 auto;
    }

    /* Animation to X */
    .hamburger-menu.active .hamburger-lines span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        width: 100%;
    }

    .hamburger-menu.active .hamburger-lines span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger-menu.active .hamburger-lines span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        width: 100%;
    }

    /* --- HERO SECTION REFINEMENTS --- */
    .hero {
        padding: 100px 0 60px;
        /* Reduced top padding */
        min-height: auto;
        /* Allow content to dictate height */
        display: block;
        /* Stack content */
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        /* Stack vertically */
        gap: 40px;
        padding: 0 20px;
    }

    .hero-main-title {
        font-size: 13vw;
        /* Responsive massive text */
        margin-top: 0;
        margin-bottom: -15px;
        /* Tighten up */
        text-align: left !important;
        /* Left Align */
        line-height: 0.9;
    }

    .hero-secondary-title {
        font-size: 8vw;
        margin-top: 0;
        text-align: left !important;
        /* Left Align */
        margin-bottom: 20px;
        line-height: 1.1;
    }

    .hero-tagline {
        font-family: var(--font-head);
        font-weight: 600 !important;
        font-size: 0.75rem !important;
        color: #666 !important;
        /* Exact Match Whatsapp Tag */
        letter-spacing: 4px;
        text-transform: uppercase !important;
        gap: 8px;
        /* Ensure uppercase */
        justify-content: flex-start !important;
        display: flex !important;
        /* Behave like tag text */
    }

    .hero-text-content {
        align-items: flex-start !important;
        /* Left Align */
        text-align: left !important;
        /* Left Align */
    }

    .hero-sub {
        font-size: 1rem;
        text-align: left !important;
        /* Left Align */
        margin-bottom: 30px;
        padding: 0 10px 0 0;
        /* Remove left padding */
    }

    /* WHATSAPP TAG ALIGNMENT (Centered below button) -> NOW LEFT */
    .cta-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        /* Left Align */
        width: 100% !important;
    }

    /* UNIVERSAL GOLD-CTA MOBILE UNIFICATION */
    .gold-cta {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 !important;
        /* Left Align */
        padding: 18px 20px !important;
        height: auto !important;
    }

    .gold-cta .btn-content {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .whatsapp-tag {
        margin-top: 15px !important;
        text-align: left !important;
        /* Left Align */
        width: 100% !important;
        justify-content: flex-start !important;
        /* Left Align */
        display: flex !important;
    }

    .hero-hint {
        text-align: left !important;
        margin: 15px 0 40px 0 !important;
    }

    /* HERO VISUAL (The Phone) */
    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 60px;
        /* Further increased spacing */
        order: 1;
        /* Keep Text First */
    }

    .floating-wrapper {
        margin-left: 0;
        /* Reset desktop negative margin */
        margin-top: 0;
        justify-content: center;
        animation: none;
        /* Disable heavy float to save battery/performance or keep it subtle? Let's keep it but subtle */
    }

    /* RESET Phone Frame for Mobile */
    /* RESET Phone Frame for Mobile */
    .phone-frame {
        width: 70vw;
        max-width: 280px;
        /* Remove forced 0deg to allow animation */
        /* transform: rotate(-5deg); Inherits from desktop or set explicitly if needed */
        margin: 0 auto;
        opacity: 0.8;
        /* Start slightly faded? Optional */
        transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
    }

    .phone-frame.scroll-straight {
        transform: rotate(0deg) !important;
        opacity: 1;
    }

    /* --- SECTIONS SPACING --- */
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: 20px;
        padding: 0 20px;
    }

    .split-section {
        grid-template-columns: 1fr;
        /* Stack split section */
        min-height: auto;
    }

    .split-visual {
        height: 300px;
        /* Fixed height for image */
    }

    .split-content {
        padding: 40px 20px;
        text-align: left !important;
        /* Force Left Align */
    }

    /* UNIFY TECH CONTAINER PADDING */
    .tech-container {
        padding: 0 20px !important;
        text-align: left !important;
    }

    .tech-content {
        text-align: left !important;
    }

    /* --- PREMIUM TECH HEADER BLOCK --- */
    .tech-header-block {
        border-left: 3px solid var(--gold) !important;
        padding-left: 20px !important;
        margin-bottom: 25px !important;
        text-align: left !important;
        display: block !important;
    }

    .tech-header-block .tech-label {
        display: block;
        font-size: 0.85rem !important;
        letter-spacing: 3px !important;
        margin-bottom: 10px !important;
        opacity: 0.9;
    }

    .tech-header-block .tech-title {
        font-family: 'Syne', sans-serif !important;
        font-size: 1.8rem !important;
        /* Reduced to prevent overflow */
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
        text-align: left !important;
        hyphens: none !important;
        /* Prevent word splitting */
        overflow-wrap: normal !important;
    }

    .tech-header-block .tech-subtitle {
        font-family: 'Syne', sans-serif !important;
        font-size: 1.2rem !important;
        color: #ddd !important;
        /* Silver/White */
        font-weight: 400 !important;
        line-height: 1.4 !important;
        text-align: left !important;
        margin-bottom: 0 !important;
        opacity: 0.8;
    }

    /* Adjust Tech Copy to match alignment */
    .tech-copy {
        text-align: left !important;
        padding-left: 23px;
    }

    /* MERGED TECH SECTION MOBILE */
    .merged-tech {
        padding: 60px 0 !important;
    }

    .center-block {
        margin-bottom: 30px !important;
        align-items: flex-start !important;
        /* Force Left Align in mobile */
        text-align: left !important;
        /* Force Left Align in mobile */
        display: flex !important;
        flex-direction: column !important;
    }

    .center-block .tech-title {
        text-align: left !important;
        /* Left Align */
    }

    .tech-grid-unified {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px !important;
    }

    .tech-unified-card {
        padding: 30px 20px;
        text-align: left !important;
    }

    /* TYPOGRAPHY OPTIMIZATION (SEO AGENT) */
    .tech-title,
    .section-title,
    .challenge-main-title {
        font-size: 1.8rem !important;
        /* Reduced from ~2.5rem */
        line-height: 1.1 !important;
        /* Tighten line height */
        margin-bottom: 20px !important;
    }

    /* Specific Override for Challenge Title to reduce spacing */
    .challenge-main-title {
        margin-bottom: 10px !important;
        margin-top: 10px !important;
    }

    .tech-subtitle {
        font-size: 1rem !important;
    }

    /* REDUCE COMPRESSION VISUAL SIZE (Mobile) */
    .compression-section .tech-visual {
        width: 100% !important;
        max-width: none !important;
        margin: 30px auto 0 !important;
        padding: 0 10px !important;
        /* Standard side breathing */
    }

    .retina-image-container {
        max-width: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        /* Square for impact */
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
    }

    .retina-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .split-content h2 {
        font-size: 2.5rem;
    }

    .outline-text {
        font-size: 2rem;
    }

    /* FEATURE ROWS */
    .feature-row {
        flex-direction: column;
    }

    /* COMPARISON TABLE */
    .comparison-table {
        overflow-x: auto;
        /* Allow scroll if needed, though we will stack */
        display: block;
    }

    .comp-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Label + Our Value (Hide Old in simple view?) OR 3 cols tight? */
        /* Let's Try a card approach for comparison on mobile or simplified table */
        grid-template-columns: 1fr 1fr 1fr;
        /* Keep 3 but tight */
        gap: 10px;
        font-size: 0.7rem;
    }

    .comp-col br {
        display: none;
    }

    /* PRICING */
    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .credit-card {
        width: 100%;
        max-width: 340px;
    }

    /* MARQUEE */
    .marquee-track span {
        font-size: 0.7rem;
        /* Smaller text */
    }

    /* --- CHALLENGE SECTION (3 Secs) --- */
    .challenge-section {
        padding: 30px 0;
        /* Reduced from 60px */
        height: auto;
        min-height: auto;
    }

    .challenge-main-title {
        font-size: 2.2rem !important;
        /* Match tech-title */
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
        padding: 0 5px;
        /* Minimal padding */
    }

    .challenge-header {
        padding-top: 0 !important; /* <--- FIX: Matamos los 60px extra que heredaba del PC */
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }

    .challenge-dual-container {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .challenge-side {
        width: 100%;
        min-height: auto;
        /* Changed from 400px to auto */
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 40px 20px;
        /* Force Visibility & Centering */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .side-content {
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* FORCE VISIBILITY OF INNER ITEMS */
    .past-list li,
    .side-content {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .past-side {
        order: 2;
        /* Ensure it appears AFTER future sides */
        border-top: none !important;
        /* Visual separation for the last item */
        position: relative;
        background: var(--bg-dark) !important;
        /* Matches Hero Background */
        overflow: hidden;
    }

    /* RUGGED PAPER TEXTURE OVERLAY */
    .past-side::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Subtle Noise - Reusing the SVG from main styles */
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        opacity: 0.15 !important;
        /* Very subtle texture */
        pointer-events: none;
        z-index: 0;
        mix-blend-mode: overlay;
    }

    /* Ensure content sits above texture */
    .past-side .side-content {
        position: relative;
        z-index: 2;
        filter: grayscale(0.6);
        /* Desaturate to look "old" */
        opacity: 0.7 !important;
        /* Muted appearance */
        margin-top: -20px !important;
        /* Pull up to balance margins */
    }

    .future-side {
        order: 1;
        border-bottom: none;
    }

    .past-side {
        order: 2;
        /* Ensure it appears AFTER future sides */
        border-top: 1px solid #333;
        /* Visual separation for the last item */
    }

    .dual-timer {
        font-size: 3rem;
    }

    .panic-text {
        font-size: 1.5rem;
    }

    /* --- CINEMATIC SECTION --- */
    .cinematic-section {
        padding: 60px 0;
    }

    .tech-section.menu-engineering {
        overflow: visible !important;
    }

    .feature-item {
        margin-bottom: 60px;
        text-align: center;
        padding: 0 10px;
    }

    .feature-item:last-child {
        margin-bottom: 0;
    }

    .big-num-outline {
        font-size: 4rem;
        margin-bottom: 10px;
        opacity: 0.3;
    }

    .feature-item h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .feature-item p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* --- FOOTER --- */
    footer {
        text-align: center;
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    /* --- ONBOARDING MODAL MOBILE --- */
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 20px;
    }

    #restaurantNameInput {
        font-size: 1.2rem;
    }

    /* --- MARQUEE MOBILE OPTIMIZATION --- */
    .marquee-clean {
        padding: 10px 0;
    }

    .marquee-track {
        animation-duration: 20s;
    }

    /* HEARTBEAT ANIMATION */
    @keyframes gold-pulse-mobile {
        0% {
            transform: scale(1);
            text-shadow: 0 0 0 rgba(212, 175, 55, 0);
        }

        50% {
            transform: scale(1.1);
            text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
        }

        100% {
            transform: scale(1);
            text-shadow: 0 0 0 rgba(212, 175, 55, 0);
        }
    }

    .animate-pulse {
        animation: gold-pulse-mobile 1s ease-in-out;
    }

    /* --- UNIFIED CARD HEADER (Mobile Redesign) --- */
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        /* Align bottom so timer sits on baseline */
        width: 100%;
        max-width: 300px;
        /* Match video width approx */
        margin: 0 auto 15px;
        /* Gap before video */
        padding: 0 5px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        /* Gold underline */
        padding-bottom: 8px;
    }

    /* =========================================
   INGENIERÍA DE MENÚS - FIX TOTAL MÓVIL
   Sustituir el bloque .menu-engineering completo
   ========================================= */

    .tech-section.menu-engineering {
        height: 200vh !important;
        /* Balanced track for delayed brake (V15) */
        display: block !important;
        position: relative !important;
        overflow: visible !important;
        /* CRITICAL for sticky */
        padding: 0 !important;
        margin-bottom: 0 !important;
        margin-top: 50px !important;
        min-height: auto !important;
    }


    /* Apretamos el texto y los 3 botones hacia arriba */
    .menu-engineering .impact-text {
        margin-top: 10px !important;
        /* Antes tenía 40px */
        margin-bottom: 15px !important;
    }

    .menu-engineering .engineering-steps-list {
        margin-top: 0 !important;
        gap: 0 !important;
        /* El espacio entre pasos ahora es cero */
    }

    /* Glow Reduction (Mobile) */
    .menu-engineering .tech-glow {
        opacity: 0.3 !important;
        transform: translate(-50%, -50%) scale(0.7) !important;
    }

    .menu-engineering .tech-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        /* Negative top hides header block upwards */
        top: -240px !important;
        /* Total height must include the hidden part + viewport */
        height: calc(100vh + 240px) !important;
        padding-top: 20px !important;
        width: 100% !important;
        max-width: none !important;
        z-index: 10;
        margin: 0 !important;
    }

    /* ALINEACIÓN IZQUIERDA PURA (Ajuste de Rentabilidad Inteligente) */
    .menu-engineering .tech-content {
        padding: 0 20px !important;
        /* 20px es el margen estándar de tu web */
        margin: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }

    .menu-engineering .tech-header-block {
        border-left: 3px solid var(--gold) !important;
        padding-left: 20px !important;
        /* Espacio interno desde la barra dorada */
        margin-left: 0 !important;
        margin-bottom: 20px !important;
    }

    .menu-engineering .tech-label {
        text-align: left !important;
        display: block !important;
    }

    .menu-engineering .tech-title {
        text-align: left !important;
        font-size: 1.8rem !important;
        /* Reduced to prevent overflow */
        hyphens: none !important;
        /* Prevent word splitting */
        overflow-wrap: normal !important;
    }

    /* CONTENEDOR VISUAL */
    .menu-engineering .tech-visual {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-grow: 0 !important;
        /* Pull visual closer to text content */
        margin-top: -50px !important;
        padding: 0 10px !important;
    }

    .engineering-scene-wrapper {
        position: relative;
        width: 100% !important;
        max-width: 450px;
        height: auto !important;
        /* Dynamic height based on images (V16) */
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Floor Glow Effect (Reduced for Elegance) */
    .engineering-scene-wrapper::after {
        content: '';
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 20px;
        background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
        filter: blur(8px);
        z-index: 1;
        pointer-events: none;
    }

    .menu-engineering .scene-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1) !important;
        z-index: 10;
        opacity: 0;
        transform: none !important;
    }

    .menu-engineering .floating-top {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1) !important;
        z-index: 50;
        opacity: 0;
    }

    .menu-engineering .layer-1 {
        position: relative !important;
        /* Define parent height */
        opacity: 1;
        z-index: 10;
        width: 100% !important;
        height: auto !important;
    }

    .menu-engineering .layer-2 {
        z-index: 5;
    }

    .menu-engineering .layer-3 {
        z-index: 15;
    }

    .menu-engineering .floating-top {
        z-index: 50;
    }

    /* Fases disparadas por el JS */
    .menu-engineering.phase-lift .layer-1 {
        opacity: 0;
    }

    .menu-engineering.phase-lift .layer-2 {
        opacity: 1;
    }

    .menu-engineering.phase-lift .floating-top {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
        /* Maintain absolute center sync */
        filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4)) drop-shadow(0 15px 30px rgba(212, 175, 55, 0.6));
    }

    .menu-engineering.phase-move .layer-2 {
        opacity: 1;
    }

    .menu-engineering.phase-move .floating-top {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) translateX(-25%);
        /* Combined translation sync */
        filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4)) drop-shadow(0 15px 40px rgba(212, 175, 55, 0.8));
    }

    .menu-engineering.phase-final .floating-top {
        opacity: 0;
        transition: none !important;
    }

    .menu-engineering.phase-final .layer-1,
    .menu-engineering.phase-final .layer-2 {
        opacity: 0;
    }

    .menu-engineering.phase-final .layer-3 {
        opacity: 1;
        z-index: 60;
    }

    #steps {
        margin-top: 0px !important;
        position: relative;
        background: #050505 !important;
    }

    /* Premium Section Divider */
    #steps::before {
        content: '';
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background: radial-gradient(circle, var(--gold) 0%, transparent 80%);
        opacity: 0.3;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    }

    /* FINAL CTA CENTERING (ROBUST FIX) */
    .final-cta {
        padding: 80px 20px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        background: transparent !important;
    }

    .final-cta .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Override global hero-main-title left align */
    .final-cta .hero-main-title {
        text-align: center !important;
        margin: 0 auto 30px !important;
        width: 100% !important;
        display: block !important;
    }

    /* Override global gold-cta margin: 0 */
    .final-cta .gold-cta {
        margin: 0 auto !important;
        display: flex !important;
    }


    /* UNIFICACIÓN DE MÁRGENES PARA EL MENÚ MÓVIL */
    .challenge-section,
    .merged-tech,
    .steps-section,
    .cinematic-section,
    .comparison-section,
    .pricing-section,
    .testimonials-section,
    .faq-section {
        padding-top: 60px !important;
    }

}

/* END MOBILE QUERY */

/* Override side-label for this context */
.mobile-card-header .side-label {
    font-size: 0.7rem !important;
    margin-bottom: 2px !important;
    opacity: 0.7 !important;
    letter-spacing: 2px !important;
}

.scenario-title {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1) !important;
}

/* Customize Dual Timer for Header */
.mobile-card-header .dual-timer {
    font-size: 1.8rem !important;
    /* Compact but visible */
    margin: 0 !important;
    height: auto !important;
    line-height: 1 !important;
    color: var(--gold) !important;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5) !important;
    min-width: unset !important;
    /* Remove fixed width constraint */
}

/* --- MONOCHROME LUXURY (Past) --- */
.mobile-card-header.past-header {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3) !important;
    /* Technical Dashed Line */
    margin-top: 50px;
    opacity: 1 !important;
    /* Full Visibility */
    filter: none !important;
    /* Crisp */
    position: relative;
}

.past-header .scenario-title {
    color: #e0e0e0 !important;
    /* Bright Silver */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
    letter-spacing: 1px !important;
}

.past-header .side-label {
    color: #aaa !important;
    /* Technical Gray */
    opacity: 1 !important;
}

.past-header .dual-timer {
    color: #fff !important;
    /* Pure White */
    opacity: 0.8 !important;
    /* Better visibility */
    font-family: 'Courier New', monospace !important;
    /* Raw Data look */
    text-shadow: none !important;
}

/* Past List Styling for Mobile */
.past-list {
    margin-top: 25px !important;
    padding-left: 10px !important;
    opacity: 1 !important;
    filter: none !important;
}

.past-list li {
    color: #ccc !important;
    /* Readable Silver */
    font-size: 1rem !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    text-shadow: none !important;
}

.tech-section {
    min-height: 50vh !important;
    padding: 50px 0 !important;
    /* Tighter padding for mobile sections (V11) */
    display: flex;
    align-items: center;
}

.past-list li::before {
    content: '✕';
    /* Elegant Cross */
    color: #ff4444;
    /* Vivid Red for Contrast */
    font-weight: 300;
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Remove the old gold underline/dash for list items if present */
.past-list li::after {
    display: none !important;
}

/* PREMIUM BORDER HEARTBEAT (Phone Container) */
@keyframes gold-shadow-premium {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }

    50% {
        box-shadow: 0 0 25px 10px rgba(212, 175, 55, 0.6);
        /* Rich, wide glow */
    }

    100% {
        box-shadow: 0 0 40px 20px rgba(212, 175, 55, 0);
    }
}

.animate-border-pulse {
    animation: gold-shadow-premium 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Elegant easing */
    z-index: 100;
    position: relative;
    border-color: #333;
    /* Keep border subtle/dark */
}

/* FIX VISIBILITY OF PULSE */
.video-placeholder-wrapper {
    width: 100%;
    max-width: 280px;
    /* Slightly wider than 250px but controlled */
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    padding-top: 4px !important;
    padding-bottom: 0 !important;
    margin: 0 auto;
    border: 8px solid #4a4a4a;
    /* Dark Silver Frame */
    border-radius: 30px;
}

.video-container {
    overflow: hidden !important;
    /* Clip content inside border */
    background: #000;
    border-radius: 22px;
    /* Inner radius matching border */
    height: auto !important;
    position: relative;
}

.video-container video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* REMOVE SPEAKER NOTCH */
.video-placeholder-wrapper::before {
    display: none !important;
    content: none !important;
}

.video-container img {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: contain;
    opacity: 0 !important;
    /* Born Black - FORCE */
    transition: opacity 0.5s ease;
    /* Slower fade */
}

.video-container img.img-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =========================================
   NEW SECTIONS MOBILE REFINEMENTS
   (Re-incorporated for current index.html)
   ========================================= */

@media screen and (max-width: 768px) {

    /* TRUSTED BY STRIP */
    .trusted-by-strip .container {
        flex-direction: column;
        gap: 15px !important;
        text-align: center;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    /* TESTIMONIALS SECTION */
    .testimonials-section {
        padding: 60px 0 !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 20px !important;
    }

    .testimonial-card {
        padding: 30px 20px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(212, 175, 55, 0.1) !important;
    }

    /* FAQ SECTION */
    .faq-section {
        padding: 60px 0 !important;
    }

    .faq-accordion {
        padding: 0 20px !important;
    }

    .faq-item {
        padding: 25px 0 !important;
    }

    .faq-question h3 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        padding-right: 20px !important;
    }

    .faq-answer p {
        font-size: 0.95rem !important;
    }
}

/* =========================================
   PREMIUM MOBILE COMPARISON (MIDNIGHT WOW)
   ========================================= */
@media (max-width: 768px) {
    .comparison-section {
        padding: 50px 0 !important;
        overflow: hidden;
    }

    .comparison-table {
        display: flex;
        flex-direction: column;
        gap: 25px;
        /* Space between cards */
        background: transparent !important;
        border: none !important;
        padding: 10px !important;
    }

    /* Hide Standard Header */
    .comp-row.header {
        display: none !important;
    }

    /* Transform Rows into Premium Glass Cards */
    .comp-row {
        display: flex;
        flex-direction: column;
        background: rgba(20, 20, 20, 0.6) !important;
        /* Glass Base */
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 20px !important;
        padding: 0 !important;
        overflow: hidden;
        position: relative;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        margin-bottom: 0 !important;
        /* Reset */
        grid-template-columns: 1fr !important;
        /* Override grid */
        animation: cardEntrance 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    .comp-row:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
        /* Gold glow hint */
        border-color: rgba(212, 175, 55, 0.3) !important;
    }

    /* ANIMATION STAGGER */
    .comp-row:nth-child(2) {
        animation-delay: 0.1s;
    }

    .comp-row:nth-child(3) {
        animation-delay: 0.2s;
    }

    .comp-row:nth-child(4) {
        animation-delay: 0.3s;
    }

    .comp-row:nth-child(5) {
        animation-delay: 0.4s;
    }

    @keyframes cardEntrance {
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* FEATURE TITLE (Top part of card) */
    .comp-col:first-child {
        width: 100%;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
        padding: 15px 25px;
        font-family: 'Syne', sans-serif;
        font-size: 0.85rem !important;
        color: #fff !important;
        letter-spacing: 2px;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 0 !important;
        display: flex;
        align-items: center;
    }

    /* SPLIT CONTENT (Past vs Future) */
    .comp-col:nth-child(2),
    .comp-col:nth-child(3) {
        padding: 20px 25px;
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 1rem !important;
        line-height: 1.4;
        text-align: left !important;
    }

    /* PAST (The Bad) */
    .comp-col:nth-child(2) {
        color: #888 !important;
        /* Muted */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.2);
    }

    .comp-col:nth-child(2)::before {
        content: '✕';
        /* Cross */
        font-weight: 900;
        color: #ff4444;
        font-size: 1.2rem;
        min-width: 25px;
        text-align: center;
    }

    /* FUTURE (The Good - Midnight Luxury) */
    .comp-col:nth-child(3) {
        color: #fff !important;
        background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    }

    .comp-col:nth-child(3) strong {
        color: var(--gold);
        font-weight: 700;
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }

    .comp-col:nth-child(3)::before {
        content: '✓';
        /* Check */
        font-weight: 900;
        color: var(--gold);
        font-size: 1.2rem;
        min-width: 25px;
        text-align: center;
        text-shadow: 0 0 10px var(--gold);
    }
}

/* =========================================
   FIX FOR EXPERIENCE SECTION MOBILE VISIBILITY
   ========================================= */
@media (max-width: 992px) {
    #experience .feature-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    #experience .feature-item {
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        padding-left: 0 !important;
        /* Reset any desktop shifting */
        padding-right: 0 !important;
        text-align: center !important;
    }

    /* Ensure specific second item is seen */
    #experience .feature-item.right {
        display: block !important;
        float: none !important;
        margin-top: 0 !important;
    }

    #experience .big-num-outline {
        margin: 0 auto 20px !important;
        /* Center numbers */
    }
}

/* =========================================
   TABLET ONLY (769px - 1024px)
   Solo tocar este apartado para tablets
   ========================================= */

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-links {
        display: none !important;
    }

    .hamburger-menu {
        display: flex !important;
    }

    /* Ajustes específicos para tablet (opcional) */
    .navbar {
        padding: 20px 0 !important;
    }


    .final-cta {
        padding: 80px 0 !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .final-cta .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Esto centra el H2 y el Botón */
        justify-content: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .final-cta h2 {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        width: 100% !important;
    }





}