/* ===== TITANIUM MATTE DARK & APPLE LIQUID GLASSMORPHISM STYLES ===== */
:root {
    --titanium-bg: #09090b;
    --titanium-border: rgba(255, 255, 255, 0.14);
    --titanium-glow: rgba(255, 255, 255, 0.08);
    --liquid-glow: rgba(120, 180, 255, 0.25);
}

html {
    /* Native scroll behavior for GSAP ScrollTrigger accuracy */
}

body {
    background-color: var(--titanium-bg) !important;
    color: #F5F5F7;
    font-family: 'Kanit', 'Inter', sans-serif;
    overflow-x: clip;
}

/* BOLD PROMINENT BLACK DROP-SHADOWS FOR PORTFOLIO CARDS */
[class*="max-w-5xl rounded-"],
.titanium-card,
.ios-glass-card,
.detail-card,
.carousel-viewport .card {
    box-shadow: 0 35px 85px rgba(0, 0, 0, 0.98), 0 15px 45px rgba(0, 0, 0, 0.95), 0 0 55px rgba(0, 0, 0, 0.9) !important;
}

/* SMART SKELETON & SEAMLESS IMAGE TRANSITIONS (ALWAYS LOADED FEEL) */
img {
    background-color: transparent !important;
    background: transparent !important;
}

.cylinder img {
    content-visibility: visible !important;
}

.img-skeleton {
    background-color: rgba(255, 255, 255, 0.04);
}

.img-loading-shimmer {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.03) 8%, rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.03) 33%);
    background-size: 200% 100%;
    animation: imageShimmer 2.2s infinite ease-in-out;
}

@keyframes imageShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== GLOBAL DEEP SPACE DARK UNIFIED THEME ===== */
html,
body {
    background-color: #050508 !important;
    background: #050508 !important;
    color: #F5F5F7;
    margin: 0;
    padding: 0;
}

/* ===== PARTICLE CANVAS AS LIVING BACKGROUND ===== */
/* The ambient particle canvas is the persistent living background across the entire web */
.ambient-particle-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* All sections are transparent containers floating above the particle background */
main,
section,
#your-element-selector,
#sobre-nosotros,
#servicios,
#proyectos,
#showroom,
#portfolio-section,
#contacto {
    background: transparent !important;
    background-color: transparent !important;
    position: relative;
    z-index: 10;
}

/* Section backgrounds transparent to reveal particle canvas */
.section-bg-layer,
.card-bg-layer,
[class*="section-bg"] {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Cards and UI containers have deep dark solid surface at z-index: 15, immediately blocking particles with 0ms lag */
.kuda-card,
.detail-card,
.service-card,
.rounded-\[32px\],
.rounded-\[28px\],
.rounded-\[24px\],
.rounded-\[22px\],
.ios-glass-card {
    background-color: #050508 !important;
    position: relative !important;
    z-index: 15 !important;
}

/* Interactive elements and text layers sit strictly on top of particles */
.section-content-layer,
.sticky {
    position: relative !important;
    z-index: 15 !important;
}

/* ===== GLOBAL UI PURITY & CLEAN STACKING ===== */
/* Typography, images and cards keep their pristine, state-of-the-art styling */
h1, h2, h3, h4, h5, h6,
p, span, a, label, li,
.hero-heading, .heading-xl, .heading-lg,
.text-line, .chip, .badge,
.apple-nav-item, .kuda-nav-dot {
    text-shadow: none !important;
}

img, svg, video {
    filter: none;
}

/* Text and interactive controls sit at the top of content */
h1, h2, h3, h4, p, span, a, button, input, textarea {
    position: relative;
    z-index: 20;
}

/* detail-overlay and format-selector-overlay: always position:fixed, never in document flow */
.detail-overlay,
.format-selector-overlay {
    position: fixed !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 100vw !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 100 !important;
}

/* Showroom: allow 3D cube and glow to freely overflow without breaking GSAP pin */
#showroom {
    overflow: visible !important;
    z-index: 35 !important;
}

#showroom canvas {
    overflow: visible !important;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Portfolio and Contact sections: transparent containers */
#portfolio-section {
    position: relative !important;
    z-index: 20 !important;
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
}

#contacto {
    position: relative !important;
    z-index: 30 !important;
    height: auto !important;
    min-height: unset !important;
}

#portfolio-section > .section-content-layer,
#contacto > .section-content-layer {
    height: auto !important;
    min-height: unset !important;
    position: relative !important;
    z-index: 30 !important;
}

/* Fixed elements */
#main-nav-header {
    position: fixed !important;
    z-index: 90 !important;
}

.header-logo-kuda {
    height: 28px !important;
    width: auto !important;
    max-height: 34px !important;
    display: block !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

@media (min-width: 640px) {
    .header-logo-kuda {
        height: 32px !important;
        max-height: 38px !important;
    }
}

#kuda-preloader {
    position: fixed !important;
    z-index: 9999 !important;
}

/* Line reveal wrappers for GSAP title animation */
.line-wrapper {
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
    z-index: 20 !important;
}

.line-inner {
    display: block !important;
    position: relative !important;
    z-index: 20 !important;
}

.text-line {
    display: inline-block !important;
    position: relative !important;
    color: #F5F5F7 !important;
    z-index: 20 !important;
    opacity: 1 !important;
    transform: none !important;
    content-visibility: visible !important;
}

/* Water drop ripple effect with organic fluid dynamics */
.water-drop-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(140, 200, 255, 0.35) 40%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    animation: liquidDropAnimation 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
    z-index: 99;
    mix-blend-mode: overlay;
    filter: blur(1px);
}

@keyframes liquidDropAnimation {
    0% {
        transform: scale(0);
        opacity: 0.95;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: scale(4.5);
        opacity: 0;
    }
}

/* ===== APPLE & LINEAR FLOATING CAPSULE HEADER SYSTEM ===== */
#main-nav-header {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: 99999 !important;
    width: calc(100vw - 32px) !important;
    max-width: 1040px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    background: rgba(10, 10, 14, 0.65) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
    padding: 0 14px 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
    pointer-events: auto !important;
}

#main-nav-header.is-scrolled {
    background: rgba(8, 8, 12, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75) !important;
}

#main-nav-header * {
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Desktop Horizontal Nav Row */
.nav-desktop-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.apple-nav-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

.apple-nav-item:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
}

.apple-nav-item:active {
    transform: translateY(0.5px) scale(0.98) !important;
}

.nav-mobile-toggle {
    display: none !important;
}

.nav-mobile-drawer {
    display: none;
}

/* Responsive Breakpoint: below 860px switch to Mobile Drawer with Apple HIG 44px+ touch targets */
@media (max-width: 860px) {
    #main-nav-header {
        width: calc(100vw - 20px) !important;
        max-width: 440px !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        padding: 0 8px 0 14px !important;
        top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: max(14px, env(safe-area-inset-left, 14px)) !important;
        padding-right: max(8px, env(safe-area-inset-right, 8px)) !important;
    }

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

    .nav-mobile-toggle {
        display: inline-flex !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 9999px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #FFFFFF !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .nav-mobile-toggle:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.18) !important;
    }

    .nav-mobile-drawer {
        display: flex !important;
    }
}

.header-contact-btn {
    background: #FFFFFF !important;
    color: #0A0A0E !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 8px 18px !important;
    border-radius: 9999px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.header-icon-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.header-icon-btn svg {
    position: relative !important;
    z-index: 2 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    fill: currentColor !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

.header-gmail-img {
    position: relative !important;
    z-index: 2 !important;
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

/* Difuminado suave ambiental detrás del icono */
.header-icon-btn.is-wa svg {
    color: #25D366 !important;
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.45)) !important;
}

.header-icon-btn.is-wa:hover svg {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 16px rgba(37, 211, 102, 0.75)) !important;
}

.header-icon-btn.is-mail img {
    filter: drop-shadow(0 0 10px rgba(234, 67, 53, 0.45)) drop-shadow(0 0 12px rgba(66, 133, 244, 0.35)) !important;
}

.header-icon-btn.is-mail:hover img {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 16px rgba(234, 67, 53, 0.7)) drop-shadow(0 0 18px rgba(66, 133, 244, 0.5)) !important;
}

.header-icon-btn:active {
    transform: scale(0.92) !important;
}

@media (hover: hover) and (pointer: fine) {
    .header-contact-btn:hover {
        background: #F0F4F8 !important;
        transform: translateY(-1px) scale(1.03) !important;
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
    }
}

.header-contact-btn:active {
    transform: scale(0.95) !important;
    background: #E2E8F0 !important;
}

@media (max-width: 860px) {
    .header-contact-btn {
        padding: 8px 14px !important;
        font-size: 11px !important;
        min-height: 38px !important;
    }
    .header-icon-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99990;
    opacity: 0;
    animation: mobileBackdropFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.mobile-menu-locked {
    overflow: hidden !important;
    touch-action: none !important;
}

.apple-mobile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(12, 12, 16, 0.98);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    padding: 10px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 99999;
    animation: mobileMenuFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.apple-mobile-dropdown a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 18px !important;
    min-height: 48px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .apple-mobile-dropdown a:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #FFFFFF !important;
    }
}

.apple-mobile-dropdown a:active {
    background: rgba(255, 255, 255, 0.20) !important;
    transform: scale(0.98) !important;
    color: #FFFFFF !important;
}

.apple-mobile-dropdown svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
}

@keyframes mobileMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes trampolineSpringIn {
    0% {
        transform: scaleX(0.82);
    }
    40% {
        transform: scaleX(1.06);
    }
    70% {
        transform: scaleX(0.98);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes trampolineSpringOut {
    0% {
        transform: scaleX(1.14);
    }
    40% {
        transform: scaleX(0.95);
    }
    70% {
        transform: scaleX(1.02);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Fluid Hover Pill Pill for Nav Links */
.apple-nav-item {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.apple-nav-item:hover {
    transform: translateY(-1px) scale(1.04);
}

.apple-nav-item:active {
    transform: translateY(0.5px) scale(0.96);
}

/* Titanium Brushed texture finish */
.titanium-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.6) 0%, rgba(15, 15, 18, 0.8) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1.5px rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.titanium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.titanium-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 255, 255, 0.05);
}

/* Apple iOS Glassmorphism System */
.ios-glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.ios-glass-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-glass-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.02);
}

.ios-glass-header {
    background: rgba(15, 15, 18, 0.65) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.hero-heading {
    background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== VALUE STACK SECTION ===== */
.kuda-hero-heading-light {
    background: linear-gradient(180deg, #111111 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kuda-btn-premium {
    background: linear-gradient(123deg, #18011F 7%, #B600A8 37%, #7621B0 72%, #BE4C00 100%);
    box-shadow: 0px 4px 15px rgba(181, 1, 167, 0.25), inset 4px 4px 12px #7721B1;
    outline: 2px solid white;
    outline-offset: -3px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kuda-btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0px 8px 25px rgba(181, 1, 167, 0.4), inset 4px 4px 12px #7721B1;
    filter: brightness(1.1);
}

.kuda-stack-block {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

.kuda-stack-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0C0C0C;
    transition: color 0.2s;
    text-decoration: none;
}

.kuda-stack-arrow-link:hover {
    color: #B600A8;
}

.kuda-stack-arrow-link .arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.kuda-stack-arrow-link:hover .arrow {
    transform: translateX(4px);
}

.kuda-stack-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.3s;
    cursor: pointer;
}

.kuda-stack-indicator-dot.active {
    background: #0C0C0C;
}

@keyframes kuda-float-slow {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1.5deg);
    }
}

@keyframes kuda-float-reverse {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(15px) rotate(-1.5deg);
    }
}

.kuda-float-1 {
    animation: kuda-float-slow 6s ease-in-out infinite;
}

.kuda-float-2 {
    animation: kuda-float-reverse 7s ease-in-out infinite;
}

.kuda-float-3 {
    animation: kuda-float-slow 8s ease-in-out infinite;
}

.kuda-float-4 {
    animation: kuda-float-reverse 9s ease-in-out infinite;
}

.kuda-slide-img-container {
    transition: opacity 0.4s ease;
    will-change: transform, opacity;
}

/* IMAGES DISPLAY 100% PURE WITHOUT SHADOWS */
img,
picture,
.kuda-slide-img-container img,
.neon-glow-reloj,
.neon-glow-escudo,
.neon-glow-dinero,
.neon-glow-manos {
    filter: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   MÁSCARAS Y ANIMACIÓN COMPLETA (ESTILO LANDO NORRIS / McLAREN)
   ========================================================================== */

/* Cada bloque de línea contenedor */
.line-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2px 0;
}

/* El bloque interno que contiene el texto y la máscara */
.line-inner {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* El Texto Real */
.text-line {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: revealTextUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* MÁSCARA NEÓN (El bloque de color que pasa volando en el video) usando gris */
.line-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #555555, #cccccc);
    transform: translateX(-101%);
    animation: sweepBlock 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   FOTOGRAMAS CLAVE (KEYFRAMES)
   ========================================================================== */

/* Movimiento del Texto: Latigazo hacia arriba con rotación controlada */
@keyframes revealTextUp {
    0% {
        opacity: 0;
        transform: translateY(100%) skewY(5deg);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0) skewY(0deg);
    }
}

/* Bloque de color escanea de izquierda a derecha y desaparece */
@keyframes sweepBlock {
    0% {
        transform: translateX(-101%);
    }
    40% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(101%);
    }
}

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

/* --- ECONOMÍA DE TIEMPOS (Delays instantáneos para WPO) --- */
.line-wrapper:nth-child(1) .text-line,
.line-wrapper:nth-child(1) .line-inner::after {
    animation-delay: 0.10s;
}

.line-wrapper:nth-child(2) .text-line,
.line-wrapper:nth-child(2) .line-inner::after {
    animation-delay: 0.20s;
}

.line-wrapper:nth-child(3) .text-line,
.line-wrapper:nth-child(3) .line-inner::after {
    animation-delay: 0.30s;
}

.line-wrapper:nth-child(4) .text-line,
.line-wrapper:nth-child(4) .line-inner::after {
    animation-delay: 0.40s;
}

.line-wrapper:nth-child(5) .text-line,
.line-wrapper:nth-child(5) .line-inner::after {
    animation-delay: 0.50s;
}

.line-wrapper:nth-child(6) .text-line,
.line-wrapper:nth-child(6) .line-inner::after {
    animation-delay: 0.60s;
}

/* --- USER DESIGN CAROUSEL STYLES --- */
:root {
  --bg-color: #0C0C0C;
  --card-height: 440px;
  --card-width: 540px;
  --side-card-width: 320px;
  --card-gap: 24px;
  
  /* Variables para la vista de detalles */
  --left-card-width: 580px;
  --right-card-width: 420px;
  --detail-gap: 32px;
}

/* --- CONTENEDOR INTERACTIVO DEL CARRUSEL --- */
.carousel-viewport {
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: pan-y; 
  -webkit-overflow-scrolling: touch;
  z-index: 3;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: var(--card-gap);
  padding: 10px var(--card-gap);
  will-change: transform;
}

/* --- ESTILOS BASE DE TARJETAS --- */
.card {
  height: var(--card-height);
  border-radius: 24px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0,0,0,.95), 0 10px 30px rgba(0,0,0,.9), 0 0 45px rgba(0,0,0,.85) !important;
  cursor: pointer;
}

/* Tarjeta Vertical Izquierda */
.card-left {
  width: var(--side-card-width);
  background: #0d0d0d;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1507238691740-187a5b1d37b8?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

/* Tarjeta Horizontal Central */
.card-center {
  width: var(--card-width);
  background-color: #3557ff;
  background-image: url('https://images.unsplash.com/photo-1561070791-26c113006238?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

/* Tarjeta Vertical Derecha */
.card-right {
  width: var(--side-card-width);
  background: #0b0b0c;
  background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

/* --- TARJETAS STARLINK & VIDEOS --- */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.card-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.card-starlink-h {
  background: #050507;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-starlink-h .card-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: #050507;
}

.card-starlink-h .card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-starlink-h::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,7,0.95) 0%, rgba(5,5,7,0.5) 45%, rgba(5,5,7,0.1) 100%);
  border-radius: inherit;
  z-index: 1;
}

.card-gradient-overlay-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(245,245,247,0.98) 0%, rgba(245,245,247,0.65) 45%, rgba(245,245,247,0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.card-gradient-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,7,20,0.95) 0%, rgba(2,7,20,0.4) 45%, rgba(2,7,20,0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.card-hero-img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.card-starlink-v {
  background: #050507;
  background-image: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.04) 0%, rgba(5, 5, 7, 0.98) 75%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-starlink-v::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,7,0.1) 0%, rgba(5,5,7,0.92) 100%);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.card-starlink-v .card-inner-v,
.card-starlink-v-alt .card-inner-v {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-starlink-v .card-logo,
.card-starlink-v-alt .card-logo {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
}

.card-starlink-v .card-desc,
.card-starlink-v-alt .card-desc {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.card-starlink-v .card-chips,
.card-starlink-v-alt .card-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.card-starlink-v .chip,
.card-starlink-v-alt .chip {
  font-size: 9px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
}

.card-starlink-v-alt {
  background: #050507;
  background-image: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.04) 0%, rgba(5, 5, 7, 0.98) 75%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-starlink-v-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,7,0.1) 0%, rgba(5,5,7,0.92) 100%);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

/* --- TARJETAS DENTORE --- */
.card-dentore-h {
  background: #0d1a17;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
}

.card-dentore-h::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,26,23,0.92) 0%,
    rgba(13,26,23,0.45) 45%,
    rgba(13,26,23,0.05) 100%
  );
  z-index: 1;
}

.card-dentore-h .card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-dentore-h .card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(210,241,236,0.6);
  color: #0E8C72;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.card-dentore-h .card-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0E8C72;
}

.card-dentore-h .card-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.card-dentore-h .card-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  max-width: 240px;
  line-height: 1.5;
}

.card-dentore-v {
  background: #071210;
  position: relative;
  overflow: hidden;
}

.card-dentore-v::before,
.card-dentore-v-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(10,74,66,0.2) 0%, rgba(10,10,10,0.88) 100%);
  z-index: 1;
}

.card-dentore-v .card-inner-v,
.card-dentore-v-alt .card-inner-v {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-dentore-v .card-logo,
.card-dentore-v-alt .card-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  line-height: 1;
}

.card-dentore-v .card-desc,
.card-dentore-v-alt .card-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 180px;
}

.card-dentore-v .card-chips,
.card-dentore-v-alt .card-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.card-dentore-v .chip,
.card-dentore-v-alt .chip {
  font-size: 9px;
  font-weight: 600;
  color: rgba(210,241,236,0.9);
  border: 1px solid rgba(210,241,236,0.3);
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  background: rgba(14,140,114,0.2);
}

/* --- TARJETAS ODYSSEY --- */
.card-odyssey-h {
  background: #0d0d12;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
}

.card-odyssey-h .card-video-bg,
.card-odyssey-store-h .card-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: #0d0d12;
}

.card-odyssey-h::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,18,0.95) 0%,
    rgba(13,13,18,0.45) 45%,
    rgba(13,13,18,0.05) 100%
  );
  z-index: 1;
}

.card-odyssey-h .card-inner,
.card-odyssey-store-h .card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-odyssey-h .card-badge,
.card-odyssey-store-h .card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.card-odyssey-h .card-badge .dot,
.card-odyssey-store-h .card-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0071e3;
}

.card-odyssey-h .card-title,
.card-odyssey-store-h .card-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.1;
}

.card-odyssey-h .card-sub,
.card-odyssey-store-h .card-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  max-width: 240px;
  line-height: 1.5;
}

.card-odyssey-store-h {
  background: #0d0d12;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
}

.card-odyssey-store-h::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,18,0.95) 0%,
    rgba(13,13,18,0.45) 45%,
    rgba(13,13,18,0.05) 100%
  );
  z-index: 1;
}

.card-odyssey-v {
  background: #0d0d12;
  position: relative;
  overflow: hidden;
}

.card-odyssey-v::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(20,20,28,0.2) 0%, rgba(13,13,18,0.92) 100%);
  z-index: 1;
}

.card-odyssey-v .card-inner-v {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-odyssey-v .card-logo {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  letter-spacing: -0.5px;
}

.card-odyssey-v .card-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 180px;
}

.card-odyssey-v .card-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.card-odyssey-v .chip {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.12);
}

/* --- CAPA INFERIOR DE BLUR PROGRESIVO --- */
.bottom-overlay-container {
  position: relative;
  width: 100%;
  height: 60px;
  margin-top: -30px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
}

.blur-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(12, 12, 12, 1) 15%, 
    rgba(12, 12, 12, 0.7) 55%, 
    rgba(12, 12, 12, 0) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(to top, black 25%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 25%, transparent 100%);
}

.swipe-indicator {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(215, 226, 234, 0.6);
}

.swipe-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.swipe-icon {
  width: 20px;
  height: 20px;
}

/* ================= PANTALLA COMPLETA DE DETALLES ================= */
.detail-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #0C0C0C;
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: max(60px, calc(env(safe-area-inset-top, 0px) + 50px));
  padding-bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 40px));
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, visibility 0.5s;
}

.detail-overlay.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Título en overlay de detalle */
.detail-overlay .header-container {
  text-align: center;
  margin: 0 auto 30px auto;
  padding: 0 16px;
  width: 100%;
}

.detail-overlay .main-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 6vw, 76px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  color: #FFFFFF;
  margin: 0;
}

.btn-close-detail {
  position: fixed;
  top: max(16px, calc(env(safe-area-inset-top, 0px) + 12px));
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px));
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  color: #ffffff;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 100000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-close-detail:hover {
  background: rgba(255,255,255,0.25);
}

.btn-close-detail:active {
  transform: scale(0.92);
}

.layout-grid {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--detail-gap);
  padding: 10px var(--detail-gap);
  max-width: calc(var(--left-card-width) + var(--right-card-width) + var(--detail-gap));
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  z-index: 3;
}

@media (max-width: 860px) {
  .layout-grid {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 0 4px !important;
    max-width: 100% !important;
  }
  .detail-card-left,
  .detail-card-right {
    width: 100% !important;
    min-height: unset !important;
    padding: 20px !important;
    border-radius: 20px !important;
  }
}

/* Estilos para el tema claro del panel de detalles (Dentore / Odyssey) */
.detail-overlay.light-theme {
  background-color: #F8FAF9 !important;
}
.detail-overlay.light-theme #detail-main-title {
  color: #0A0A0A !important;
}
.detail-overlay.light-theme .detail-sub-heading {
  color: rgba(10, 10, 10, 0.6) !important;
}
.detail-overlay.light-theme .text-block-desc {
  color: rgba(10, 10, 10, 0.8) !important;
}
.detail-overlay.light-theme .btn-close-detail {
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.12);
  color: #0A0A0A;
}
.detail-overlay.light-theme .btn-close-detail:hover {
  background: rgba(0,0,0,0.12);
}
.detail-overlay.light-theme .detail-card-right,
.detail-overlay.light-theme .detail-card-left {
  background: rgba(255, 255, 255, 0.95) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #0A0A0A !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08) !important;
}
.detail-overlay.light-theme .kemos-badge {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}
.detail-overlay.light-theme .kemos-badge:hover {
  background: #262626 !important;
}
.detail-overlay.light-theme .video-text {
  color: #0A0A0A;
  text-shadow: none;
}
.detail-overlay.light-theme .logos-tag {
  color: rgba(10,10,10,0.45) !important;
}
.detail-overlay.light-theme .logo-box {
  border-color: rgba(0,0,0,0.08) !important;
}
.detail-overlay.light-theme .detail-category-badge {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  color: #0E8C72;
}
.detail-overlay.light-theme .stat-box {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.07);
}
.detail-overlay.light-theme .stat-label {
  color: rgba(10,10,10,0.45);
}
.detail-overlay.light-theme .stat-value {
  color: #0A0A0A;
}
.detail-overlay.light-theme .detail-tech-chip {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  color: #0A0A0A;
}
.detail-overlay.light-theme .detail-format-hint {
  color: rgba(10,10,10,0.45);
}
.detail-overlay.light-theme .btn-entrar {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  border: 1px solid #0A0A0A !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}
.detail-overlay.light-theme .btn-entrar:hover {
  background: #262626 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3) !important;
}

.detail-category-badge {
  display: inline-block;
  font-family: 'Inter', monospace, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}

.detail-main-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2.5px;
  color: #FFFFFF;
  margin: 0;
  text-transform: uppercase;
}

.detail-sub-heading {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  margin-bottom: 0;
}

.detail-card {
  min-height: 480px;
  border-radius: 24px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.detail-card-right {
  width: var(--right-card-width);
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.12);
}

.detail-card-left {
  width: var(--left-card-width);
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.12);
}

.video-container-16-9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}

.video-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  z-index: 5;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.detail-left-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 16px;
}

.detail-format-hint {
  font-size: 11px;
  font-family: monospace;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-entrar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: fit-content !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  padding: 0 24px !important;
  border-radius: 9999px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  flex-shrink: 0 !important;
}

.btn-entrar:hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6) !important;
}

.btn-entrar:active {
  transform: scale(0.97) !important;
}

.btn-arrow {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s ease !important;
}

.btn-entrar:hover .btn-arrow {
  transform: translate(2px, -2px) !important;
}

.tech-stack-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.detail-tech-chip {
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-size: 8px;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}

.stat-value {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.text-block-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  font-weight: 400;
  margin: 10px 0 16px 0;
}

.kemos-footer {
  display: flex;
  justify-content: flex-end;
}

.kemos-badge {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.kemos-badge:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

/* ================= SECCIÓN SELECTOR DE FORMATO ================= */
.format-selector-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, visibility;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.format-selector-overlay.active {
  opacity: 1;
  visibility: visible;
}

.format-modal {
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 0 20px;
  transform: scale(0.92);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.format-selector-overlay.active .format-modal {
  transform: scale(1);
}

.format-modal-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 8px;
}

.format-modal-subtitle {
  font-size: 16px;
  color: rgba(215,226,234,0.55);
  margin-bottom: 40px;
}

.format-options-container {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.format-option-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 30px;
  width: 180px;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.format-option-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 20px 50px rgba(182, 0, 168, 0.2);
}

.format-option-card:active {
  transform: scale(0.97);
}

.screen-wireframe {
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  position: relative;
}

.screen-wireframe.horizontal {
  width: 80px;
  height: 45px;
}

.screen-wireframe.vertical {
  width: 42px;
  height: 75px;
  border-radius: 10px;
}

.screen-wireframe::before {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.08);
  inset: 4px;
  border-radius: 4px;
}

.format-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(215,226,234,0.9);
  letter-spacing: -0.2px;
}

.btn-close-format {
  margin-top: 40px;
  background: transparent;
  border: none;
  color: rgba(215,226,234,0.45);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-close-format:hover {
  color: rgba(215,226,234,0.8);
}

/* ================= RESPONSIVO PARA CELULARES Y TABLETS ================= */
@media (max-width: 1024px) {
  :root {
    --card-height: 360px;
    --card-width: 440px;
    --side-card-width: 260px;
    --card-gap: 18px;
  }

  .bottom-overlay-container {
    height: 160px;
    padding-bottom: 25px;
  }

  .swipe-text {
    font-size: 14px;
  }

  .detail-overlay {
    padding-top: 40px;
  }

  .btn-close-detail {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .layout-grid {
    flex-direction: column; 
    max-width: 100%;
    padding: 0 20px 40px 20px;
    gap: 20px;
  }

  .detail-card {
    width: 100% !important;
    min-height: auto;
  }

  .detail-card-left {
    gap: 24px;
    padding: 24px;
  }

  .detail-card-right {
    gap: 32px;
    padding: 24px;
  }

  .format-options-container {
    gap: 16px;
  }

  .format-option-card {
    padding: 20px;
    width: 140px;
  }
}

@media (max-width: 640px) {
  :root {
    --card-height: 310px;
    --card-width: min(74vw, 250px);
    --side-card-width: min(62vw, 215px);
    --card-gap: 12px;
  }

  .card-starlink-h,
  .card-odyssey-h,
  .card-dentore-h,
  .card-odyssey-store-h {
    padding: 18px 16px !important;
  }

  .card-inner-v,
  .card-starlink-v .card-inner-v,
  .card-starlink-v-alt .card-inner-v,
  .card-odyssey-v .card-inner-v,
  .card-dentore-v .card-inner-v,
  .card-dentore-v-alt .card-inner-v {
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    gap: 4px !important;
  }

  .card-starlink-v .card-logo,
  .card-starlink-v-alt .card-logo,
  .card-inner-v .card-logo {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-starlink-v .card-desc,
  .card-starlink-v-alt .card-desc,
  .card-inner-v .card-desc {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .card-starlink-v .card-chips,
  .card-starlink-v-alt .card-chips,
  .card-inner-v .card-chips {
    margin-top: 4px !important;
    gap: 4px !important;
  }

  .card-starlink-v .chip,
  .card-starlink-v-alt .chip,
  .card-inner-v .chip {
    font-size: 8.5px !important;
    padding: 2px 7px !important;
  }

  .carousel-viewport {
    padding-top: 15px;
    padding-bottom: 25px;
  }

  .bottom-overlay-container {
    height: 120px;
    padding-bottom: 15px;
  }

  .swipe-text {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .detail-overlay {
    padding: 30px 16px;
  }

  .detail-overlay .header-container {
    margin-bottom: 24px !important;
  }

  .detail-overlay #detail-main-title {
    font-size: clamp(28px, 8vw, 44px) !important;
    letter-spacing: -1.5px !important;
  }

  .layout-grid {
    padding: 0 0 30px 0;
    gap: 14px;
  }

  .detail-card-left,
  .detail-card-right {
    padding: 16px;
    gap: 16px;
    border-radius: 20px;
  }

  .format-modal {
    padding: 24px 16px;
    border-radius: 24px;
    max-width: 92vw;
  }

  .format-options-container {
    gap: 12px;
  }

  .format-option-card {
    padding: 16px 12px;
    width: 120px;
  }
}

/* =============================================================
   3D CYLINDER CAROUSEL SECTION (INTEGRADO PORTAFOLIO KUDA)
============================================================= */
.carousel-3d-wrapper {
  position: relative;
  height: 280vh;
  z-index: 10;
}

.carousel-3d-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  perspective: 1100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 7vh;
  pointer-events: none;
  contain: layout paint;
}

.cylinder {
  position: relative;
  width: 220px;
  height: 300px;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: auto;
  contain: layout;
  margin-top: -30px;
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cylinder .card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: #050508 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  contain: layout paint style;
}

.cylinder .card-glow {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  z-index: -1;
}

.cylinder .card-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.cylinder .card-img-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(140%) contrast(110%);
  transition: transform 0.6s ease;
}

.cylinder .card:hover .card-img-bg img {
  transform: scale(1.06);
}

.cylinder .card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.45) 0%, rgba(5, 5, 8, 0.82) 45%, rgba(5, 5, 8, 0.98) 100%);
  pointer-events: none;
}

.cylinder .card-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px;
}

.cylinder .card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cylinder .card-num-tag {
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.cylinder .card-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cylinder .card-center-metric {
  text-align: center;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cylinder .card-big-metric {
  font-family: inherit;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #FFFFFF;
}

.cylinder .card-metric-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.cylinder .card-metric-subtitle {
  font-size: 10px;
  font-weight: 300;
  color: rgba(215, 226, 234, 0.7);
  line-height: 1.35;
  letter-spacing: 0.2px;
  max-width: 90%;
}

.cylinder .card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cylinder .card-verified-badge {
  font-family: monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .carousel-3d-wrapper {
    height: 250vh;
  }

  .carousel-3d-sticky {
    perspective: 1000px;
    padding-bottom: 2vh;
  }

  .cylinder {
    width: 145px;
    height: 195px;
    margin-top: -15px;
  }

  .cylinder .card {
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9) !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout paint;
  }

  .cylinder .card-content-wrap {
    padding: 14px 12px;
  }

  .cylinder .card-big-metric {
    font-size: 30px;
    font-weight: 900;
  }

  .cylinder .card-metric-title {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
  }

  .cylinder .card-metric-subtitle {
    font-size: 9px;
    font-weight: 300;
    line-height: 1.3;
  }

  .cylinder .card-num-tag {
    font-size: 8px;
    padding: 2.5px 7px;
    letter-spacing: 0.5px;
  }

  .cylinder .card-status-dot {
    width: 6px;
    height: 6px;
  }

  .cylinder .card-verified-badge {
    font-size: 8px;
    padding: 3px 8px;
    letter-spacing: 0.5px;
  }
}


/* ==========================================================================
   FLOATING 3D METALLIC MONOLITH / CUBE SHOWCASE
   ========================================================================== */
.metallic-cube-stage {
  perspective: 2200px;
  perspective-origin: 50% 48%;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Dynamic Floor Ambient Occlusion & Volumetric Shadow */
.cube-floor-shadow {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%) rotateX(85deg);
  width: 75vw;
  max-width: 1100px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 5;
  will-change: transform, opacity;
  transition: transform 0.4s ease-out;
}

/* 3D Prism / Cube Container */
.metallic-cube-wrapper {
  position: relative;
  width: 94vw;
  max-width: 1360px;
  height: 86vh;
  max-height: 820px;
  min-height: 550px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s linear;
}

/* Common Base Styles for the 4 Metallic / Frosted Glass Faces */
.cube-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16, 18, 24, 0.75) 0%, rgba(8, 9, 14, 0.85) 50%, rgba(12, 14, 20, 0.78) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.95),
    0 12px 35px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.8);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
}

/* Metallic Edge Bevel & Titanium Border Refraction */
.cube-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.35) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 50;
}

/* 3D Specular Sheen & Light Streak */
.cube-specular-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 15%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.05) 65%,
    transparent 85%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  mix-blend-mode: overlay;
  will-change: opacity, transform;
}

/* Geometric Positioning for 3D Quad-Prism */
.cube-face-front {
  transform: rotateY(0deg) translateZ(calc(min(47vw, 680px)));
}

.cube-face-right {
  transform: rotateY(90deg) translateZ(calc(min(47vw, 680px)));
}

.cube-face-back {
  transform: rotateY(180deg) translateZ(calc(min(47vw, 680px)));
}

.cube-face-left {
  transform: rotateY(270deg) translateZ(calc(min(47vw, 680px)));
}

/* Dual-Zone Column Layout Inside Each Face */
.cube-column-left {
  width: 48%;
  height: 100%;
  padding: 2.75rem 3rem 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(18, 20, 28, 0.55) 0%, rgba(10, 11, 16, 0.7) 100%);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  box-shadow: inset -20px 0 35px -10px rgba(0, 0, 0, 0.6);
}

.cube-column-right {
  width: 52%;
  height: 100%;
  padding: 2.75rem 3rem 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(14, 16, 22, 0.6) 0%, rgba(8, 9, 13, 0.75) 100%);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  box-shadow: inset 20px 0 35px -10px rgba(0, 0, 0, 0.6);
}

/* Center Metallic Spine & Specular Reflection between columns */
.cube-column-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.2) 100%);
  box-shadow: -2px 0 8px rgba(0,0,0,0.8), 2px 0 8px rgba(0,0,0,0.8);
  z-index: 20;
}

/* Metallic HUD Face Switcher */
.cube-nav-hud {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 70;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.cube-nav-btn {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
}

.cube-nav-btn.active, .cube-nav-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

@media (max-width: 1023px) {
  .metallic-cube-wrapper {
    height: 88vh;
    max-height: 88vh;
    border-radius: 18px;
  }
  .cube-face {
    border-radius: 18px;
  }
  .cube-column-left {
    display: none;
  }
  .cube-column-right {
    width: 100%;
    padding: 1.5rem;
  }
  .cube-column-seam {
    display: none;
  }
}

@media (max-width: 768px) {
  .metallic-cube-wrapper {
    width: min(80vw, 320px) !important;
    height: min(80vw, 320px) !important;
    min-height: unset !important;
    max-height: unset !important;
  }
  .cube-face-front { transform: rotateY(0deg) translateZ(calc(min(80vw, 320px) / 2)) !important; }
  .cube-face-right { transform: rotateY(90deg) translateZ(calc(min(80vw, 320px) / 2)) !important; }
  .cube-face-back { transform: rotateY(180deg) translateZ(calc(min(80vw, 320px) / 2)) !important; }
  .cube-face-left { transform: rotateY(270deg) translateZ(calc(min(80vw, 320px) / 2)) !important; }
  .cube-column-right {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    padding: 1.25rem !important;
  }
}

/* ===== HIGH-PERFORMANCE SUBTLE KINETIC LIFT ANIMATION SYSTEM ===== */
.char-lift-wrapper {
  display: inline-block;
  contain: layout style;
  -webkit-font-smoothing: antialiased;
}

.char-lift-word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
  contain: layout style;
}

.char-lift-letter {
  display: inline-block;
  will-change: transform, opacity;
  transform: translate3d(0, 5px, 0);
  opacity: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms),
              opacity 0.28s ease-out var(--d, 0ms);
}

.char-lift-word-anim {
  display: inline-block;
  will-change: transform, opacity;
  transform: translate3d(0, 5px, 0);
  opacity: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms),
              opacity 0.28s ease-out var(--d, 0ms);
}

.char-lift-space {
  display: inline-block;
  width: 0.26em;
}

.char-lift-inview .char-lift-letter,
.char-lift-inview .char-lift-word-anim {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.char-lift-reset .char-lift-letter,
.char-lift-reset .char-lift-word-anim {
  transition: none !important;
  transform: translate3d(0, 5px, 0) !important;
  opacity: 0 !important;
}

/* ===== GSAP KINETIC CARD MOTION SYSTEM (POP & SNAP PHYSICS) ===== */
.project-card-container,
.project-card-id,
.project-card-title,
.project-card-specs,
.project-card-chip,
.project-card-panel,
.project-card-thumb,
.project-card-browser {
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ===== VALUE STACK 3D DEPTH & PERSPECTIVE TILT ENGINE ===== */
#sobre-nosotros {
  position: relative;
}

#sobre-nosotros .sticky {
  transform-origin: 50% 75%;
  box-shadow: 0 -25px 50px rgba(0, 0, 0, 0.95), 0 -4px 15px rgba(0, 0, 0, 0.80), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
}

.kuda-slide-img-container {
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

#sobre-nosotros .backdrop-blur-2xl {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ===== VOID DISSOLUTION SYSTEM (LETTER BY LETTER DISINTEGRATION) ===== */
.kuda-void-word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
  contain: layout style;
}

.kuda-void-letter {
  display: inline-block;
  contain: layout style;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* =============================================================
   MOBILE ULTRA-PERFORMANCE GLASS OVERRIDES (ZERO VISUAL LOSS)
   Sustituye la convolución gaussiana pesada por tinte especular
   enriquecido acelerado 100% por hardware
============================================================= */
@media (max-width: 768px) {
  #main-nav-header {
    background: rgba(10, 10, 14, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  }

  .titanium-card,
  .ios-glass-card {
    background: rgba(16, 17, 24, 0.82) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  }

  .cube-face {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  /* Optimizar las tarjetas del stack en móvil eliminando re-rasterizaciones por blur() */
  #sobre-nosotros .sticky {
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.85) !important;
    filter: none !important;
  }

  .cylinder .card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9) !important;
    contain: layout paint style;
  }

  .service-card {
    contain: layout style;
  }
}

/* =============================================================
   SEAMLESS VIDEO TRANSITION VEIL (ZERO BLACK / ZERO FREEZE)
============================================================= */
.video-veil-layer {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  will-change: opacity;
}

/* =============================================================
   PINNED VALUE STACK SECTION (TRUE OVERLAPPING CARDS)
============================================================= */
.value-stack-container {
  position: relative;
  width: 100%;
  height: 380vh;
}

@media (max-width: 768px) {
  .value-stack-container {
    height: 340vh;
  }
}

.value-stack-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-stack-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #050508 !important;
  will-change: transform, opacity;
  transform: translate3d(0, 100%, 0);
  isolation: isolate;
  contain: paint layout;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project-card-container {
  contain: layout;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* =============================================================
   PREMIUM ANIMATED SERVICES CARDS (MAGNETIC GLOW & REVEAL)
============================================================= */
.service-card-animated {
  position: relative;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), rgba(5, 5, 8, 0.95) 45%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, opacity;
  contain: layout style;
  transform: translateZ(0);
}

.service-card-animated:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.service-card-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.45), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card-animated:hover::before {
  opacity: 1;
}

.service-badge-pill {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-animated:hover .service-badge-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.service-num-highlight {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-animated:hover .service-num-highlight {
  color: #FFFFFF;
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* =============================================================
   METHODOLOGY / PROCESS STEPS
============================================================= */
.process-step-card {
  position: relative;
  background: rgba(12, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  contain: layout style;
}

.process-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(18, 18, 24, 0.85);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.process-step-number {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.process-step-card:hover .process-step-number {
  color: #FFFFFF;
}

/* =============================================================
   FAQ ACCORDION LUXURY STYLES
============================================================= */
.faq-accordion-item {
  background: rgba(10, 10, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 15, 20, 0.8);
}

.faq-accordion-item.is-open {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(16, 16, 22, 0.9);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.faq-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  flex-shrink: 0;
}

.faq-accordion-item.is-open .faq-toggle-icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.faq-content-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-accordion-item.is-open .faq-content-body {
  max-height: 300px;
  opacity: 1;
  padding: 0 24px 22px 24px;
}

/* =============================================================
   KUDA BESPOKE LEAD CAPTURE MODAL - EDITORIAL & TECH AESTHETIC
============================================================= */
/* =============================================================
   KUDA FULLSCREEN ONBOARDING - MINIMALISMO PURO EN BLANCO
============================================================= */
.kuda-fullscreen-onboarding {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #FFFFFF !important;
  color: #050508 !important;
  z-index: 9999999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  animation: fsFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes fsFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.995); }
  to { opacity: 1; transform: translateY(0px) scale(1); }
}

/* Header Superior Flotante */
.fs-onboarding-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  width: 100% !important;
  padding: 24px 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

@media (max-width: 640px) {
  .fs-onboarding-header {
    padding: 16px 20px !important;
  }
}

.fs-brand-logo {
  font-family: 'Kanit', sans-serif !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  color: #050508 !important;
}

.fs-header-sep {
  color: rgba(0, 0, 0, 0.2) !important;
  font-family: monospace !important;
}

.fs-step-indicator {
  font-family: monospace, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  color: #050508 !important;
}

.fs-btn-back {
  font-family: monospace, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: rgba(0, 0, 0, 0.5) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 8px 12px !important;
  transition: color 0.2s ease !important;
}

.fs-btn-back:hover {
  color: #050508 !important;
}

.fs-btn-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #050508 !important;
  color: #FFFFFF !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease !important;
}

.fs-btn-close:hover {
  background: #222228 !important;
  transform: scale(1.04) !important;
}

/* Barra de Progreso Superior */
.fs-progress-bar-track {
  width: 100% !important;
  height: 2px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  position: relative !important;
}

.fs-progress-bar-fill {
  height: 100% !important;
  background: #050508 !important;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Viewport Central Cinemático */
.fs-onboarding-center-viewport {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 24px 60px 24px !important;
  width: 100% !important;
}

.fs-step-stage {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease !important;
  opacity: 1 !important;
  transform: translateY(0px) !important;
  filter: blur(0px) !important;
}

.fs-step-stage.is-animating {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.98) !important;
  filter: blur(12px) !important;
}

/* Tipografía de Alto Impacto */
.fs-kicker-tag {
  display: inline-block !important;
  font-family: monospace, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 12px !important;
}

.fs-hero-headline {
  font-family: 'Kanit', sans-serif !important;
  font-size: clamp(34px, 5.2vw, 56px) !important;
  font-weight: 900 !important;
  line-height: 0.98 !important;
  letter-spacing: -1.8px !important;
  color: #050508 !important;
  margin: 0 !important;
}

.fs-sub-headline {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(14px, 1.6vw, 17px) !important;
  color: rgba(0, 0, 0, 0.55) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin-top: 12px !important;
  max-width: 600px !important;
}

/* Tarjetas de Disciplina (Paso 1) - Diseño Escultural Minimalista */
.fs-service-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 240px !important;
  padding: 32px 28px !important;
  border-radius: 24px !important;
  background: #F8F8FA !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #050508 !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fs-service-card:hover {
  background: #050508 !important;
  color: #FFFFFF !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25) !important;
}

.fs-service-card.is-selected {
  background: #050508 !important;
  color: #FFFFFF !important;
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.3) !important;
}

.fs-card-num {
  font-family: monospace, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  opacity: 0.35 !important;
  transition: opacity 0.2s ease !important;
}

.fs-service-card:hover .fs-card-num,
.fs-service-card.is-selected .fs-card-num {
  opacity: 0.8 !important;
}

.fs-card-arrow {
  font-size: 20px !important;
  line-height: 1 !important;
  opacity: 0.2 !important;
  transition: all 0.25s ease !important;
}

.fs-service-card:hover .fs-card-arrow,
.fs-service-card.is-selected .fs-card-arrow {
  opacity: 1 !important;
  transform: translateX(4px) !important;
}

.fs-card-tag {
  display: block !important;
  font-family: monospace, sans-serif !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  opacity: 0.45 !important;
  margin-bottom: 8px !important;
  transition: opacity 0.2s ease !important;
}

.fs-service-card:hover .fs-card-tag,
.fs-service-card.is-selected .fs-card-tag {
  opacity: 0.75 !important;
}

.fs-card-title {
  font-family: 'Kanit', sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.5px !important;
  margin: 0 !important;
}

.fs-card-desc {
  font-family: 'Inter', sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  opacity: 0.6 !important;
  margin-top: 10px !important;
  transition: opacity 0.2s ease !important;
}

.fs-service-card:hover .fs-card-desc,
.fs-service-card.is-selected .fs-card-desc {
  opacity: 0.85 !important;
}

/* Filas de Presupuesto (Paso 2) */
.fs-budget-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 20px 24px !important;
  border-radius: 18px !important;
  background: #F8F8FA !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #050508 !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fs-budget-row:hover {
  background: #ECECF0 !important;
  transform: translateX(4px) !important;
}

.fs-budget-row.is-selected {
  background: #050508 !important;
  color: #FFFFFF !important;
  border-color: #050508 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.fs-radio-disc {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
}

.fs-budget-row.is-selected .fs-radio-disc {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 10px #FFFFFF !important;
}

.fs-budget-label {
  display: block !important;
  font-family: 'Kanit', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
}

.fs-budget-desc {
  display: block !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  opacity: 0.55 !important;
  margin-top: 2px !important;
}

.fs-budget-row.is-selected .fs-budget-desc {
  opacity: 0.75 !important;
}

/* Campos de entrada ultra-minimalistas */
.fs-field-label {
  display: block !important;
  font-family: monospace, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #111215 !important;
  margin-bottom: 8px !important;
}

.fs-minimal-input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12) !important;
  padding: 14px 0 !important;
  font-family: 'Kanit', sans-serif !important;
  font-size: clamp(20px, 2.5vw, 28px) !important;
  font-weight: 700 !important;
  color: #050508 !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}

.fs-minimal-input:focus {
  border-bottom-color: #050508 !important;
}

.fs-minimal-input::placeholder {
  color: rgba(0, 0, 0, 0.28) !important;
  font-weight: 500 !important;
}

.fs-minimal-textarea {
  width: 100% !important;
  background: #F8F8FA !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #050508 !important;
  outline: none !important;
  resize: none !important;
  transition: all 0.2s ease !important;
}

.fs-minimal-textarea:focus {
  background: #FFFFFF !important;
  border-color: #050508 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

/* Botón de Acción Principal (Poderoso y Elegante) */
.fs-btn-action-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #050508 !important;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 18px 36px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.fs-btn-action-primary:hover {
  background: #202026 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25) !important;
}

.fs-btn-action-primary:active {
  transform: scale(0.98) !important;
}

.fs-btn-action-primary:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Tarjetas de Despacho (Pantalla Final) */
.fs-dispatch-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 22px !important;
  border-radius: 20px !important;
  background: #F8F8FA !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fs-dispatch-card:hover {
  background: #FFFFFF !important;
  border-color: #050508 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08) !important;
}

.fs-btn-copy {
  display: block !important;
  width: 100% !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 1px dashed rgba(0, 0, 0, 0.15) !important;
  color: rgba(0, 0, 0, 0.5) !important;
  font-family: monospace, sans-serif !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.fs-btn-copy:hover {
  border-color: #050508 !important;
  color: #050508 !important;
  background: #F8F8FA !important;
}

.fs-summary-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: #F4F4F6 !important;
  font-size: 11px !important;
  font-family: monospace, sans-serif !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

.modal-whatsapp-link svg {
  color: #FFFFFF !important;
}

/* =============================================================
   KUDA EDITORIAL FLOW - SISTEMA DE ANIMACIONES Y FÍSICA EASESPRING
   Inspirado en el flujo cinemático con física cúbica [0.16, 1, 0.3, 1]
============================================================= */

/* Fondo Atmosférico con Orbes Gaussianos */
.kuda-flow-backdrop {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: 0 !important;
  opacity: 0.16 !important;
}

.kuda-flow-orb-1 {
  position: absolute !important;
  top: -25% !important;
  right: -25% !important;
  width: 80% !important;
  height: 80% !important;
  border-radius: 50% !important;
  background: #fde8e9 !important;
  filter: blur(150px) !important;
}

.kuda-flow-orb-2 {
  position: absolute !important;
  bottom: 25% !important;
  left: 25% !important;
  width: 55% !important;
  height: 55% !important;
  border-radius: 50% !important;
  background: #f0f0f5 !important;
  filter: blur(120px) !important;
}

/* Stepper Paginador Dinámico (Dots Pill) */
.kuda-dots-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

.kuda-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.kuda-dot.is-active {
  width: 28px !important;
  background: #e61d2b !important;
}

/* Hero Carousel Scroller (Ventana vertical de titular con efecto de carrete) */
.kuda-hero-window {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 780px !important;
  transition: height 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 1.1s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, height !important;
}

.kuda-hero-scroller {
  display: flex !important;
  flex-direction: column !important;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform !important;
}

.kuda-hero-item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.kuda-hero-item.is-active {
  opacity: 1 !important;
  filter: blur(0px) !important;
  transform: scale(1) translateY(0) !important;
}

.kuda-hero-item.is-inactive {
  opacity: 0 !important;
  filter: blur(8px) !important;
  transform: scale(0.98) translateY(-8px) !important;
  pointer-events: none !important;
}

.kuda-hero-headline-dynamic {
  font-family: 'Kanit', sans-serif !important;
  font-style: italic !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: -2px !important;
  line-height: 0.95 !important;
  margin: 0 !important;
}

.kuda-hero-sub {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  color: #666666 !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  margin-top: 10px !important;
  max-width: 580px !important;
}

/* Superficie Dinámica Acelerada por GPU */
.kuda-surface-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 760px !important;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), height 1.1s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, height !important;
}

/* Tarjetas Reactivas con Efecto Cortina Roja y Prensa Táctil */
.kuda-field-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #f7f7f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 16px 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.kuda-field-card:hover {
  border-color: rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

.kuda-field-card:active {
  transform: scale(0.98) !important;
}

.kuda-field-card.is-selected {
  background: #111215 !important;
  color: #FFFFFF !important;
  border-color: #111215 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Efecto Cortina Roja para estados de alerta/ajuste */
.kuda-curtain-red {
  position: absolute !important;
  inset: 0 !important;
  background: #e61d2b !important;
  transform-origin: left center !important;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1 !important;
}

/* Icono Alerta Giratorio */
.kuda-alert-icon {
  position: relative !important;
  z-index: 2 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

/* Botón de Acción Editorial con cambio de color reactivo */
.kuda-flow-btn-primary {
  width: 100% !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 22px 32px !important;
  border-radius: 50px !important;
  font-family: 'Kanit', sans-serif !important;
  font-size: 13.5px !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  letter-spacing: 2.5px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease, box-shadow 0.4s ease, opacity 0.3s ease !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.kuda-flow-btn-primary:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2) !important;
}

.kuda-flow-btn-primary:active {
  transform: scale(0.98) !important;
}

.kuda-flow-btn-primary:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  transform: none !important;
}


/* Pantalla de confirmación y selección de destino */
.modal-success-card {
  text-align: left !important;
}

.modal-success-option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-success-option:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateX(2px) !important;
}

.modal-option-badge {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  font-family: monospace !important;
}

.modal-option-badge.is-gmail {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.modal-option-badge.is-mail {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
}

.modal-action-pill {
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: monospace !important;
  font-size: 11px !important;
  transition: all 0.2s ease !important;
}

.modal-success-option:hover .modal-action-pill {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
}

/* =============================================================
   WHATSAPP DIRECT PILL BUTTON & ICON CONSTRAINTS
============================================================= */
.btn-whatsapp-direct {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border-radius: 9999px !important;
  background: rgba(37, 211, 102, 0.14) !important;
  border: 1px solid rgba(37, 211, 102, 0.42) !important;
  color: #25D366 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 14px 28px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.16) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.btn-whatsapp-direct svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
}

.btn-whatsapp-direct:hover {
  background: #25D366 !important;
  color: #050508 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.35) !important;
}

.btn-whatsapp-direct:active {
  transform: scale(0.96) !important;
}

/* =============================================================
   BACK TO TOP FLOATING BUTTON
============================================================= */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 20, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* =============================================================
   PROJECT FILTER PILLS
============================================================= */
.project-filter-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s ease-out;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.7);
  transform: translateZ(0);
}

.project-filter-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.project-filter-pill.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #050508;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

/* =============================================================
   ZERO-LAG HARDWARE ACCELERATION FOR PROYECTOS SECTION
============================================================= */
#proyectos {
  contain: layout style;
}

.project-card-wrapper {
  contain: layout style paint;
}

.project-card-container {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.project-card-browser video {
  transform: translateZ(0) scale(1.02);
  transform-origin: center bottom;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-starlink-h .card-video-bg {
  transform: translateZ(0) scale(1.02);
  transform-origin: center bottom;
}

/* =============================================================
   ULTRAWIDE & ZOOM-OUT RESILIENT RESPONSIVE SCALING
   Keeps content centered, beautifully proportioned, and seamlessly integrated
   at any zoom level (100%, 75%, 50%, 33%) and aspect ratio (16:9, 21:9, 32:9).
============================================================= */
@media (min-width: 1440px) {
  #root {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }

  .ambient-particle-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  .kuda-vignette-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }

  #main-nav-header {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    width: min(calc(100% - 3rem), 1160px) !important;
    max-width: 1160px !important;
  }

  /* Center all primary section containers with generous bounds */
  #your-element-selector > div,
  #sobre-nosotros .value-stack-slide > div,
  #servicios > div,
  #proyectos > div,
  #contacto > div {
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Hero headline font scaling clamped gracefully for high-res / low-zoom viewports */
  #your-element-selector h1 {
    font-size: clamp(2.5rem, 3.8vw, 4.4rem) !important;
  }

  /* Modal de detalle perfectamente proporcionado y centrado en Ultrawide */
  .detail-overlay {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .detail-overlay .header-container {
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .layout-grid {
    max-width: 1060px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
  }
}

@media (min-width: 2560px) {
  #your-element-selector > div,
  #sobre-nosotros .value-stack-slide > div,
  #servicios > div,
  #proyectos > div,
  #contacto > div {
    max-width: 1520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #your-element-selector h1 {
    font-size: clamp(3rem, 3.6vw, 4.8rem) !important;
  }
/* Tarjetas de Despacho Oficial en Formulario (Gmail & WhatsApp) */
.fs-dispatch-card {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 18px 22px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05) !important;
  text-decoration: none !important;
  color: #111215 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.fs-dispatch-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}

.fs-dispatch-card.is-wa:hover {
  border-color: #25D366 !important;
}

.fs-dispatch-card.is-gmail:hover {
  border-color: #EA4335 !important;
}

.fs-dispatch-icon-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  border-radius: 16px !important;
  flex-shrink: 0 !important;
}

.fs-dispatch-icon-wrap.is-wa {
  background: rgba(37, 211, 102, 0.14) !important;
  color: #25D366 !important;
}

.fs-dispatch-icon-wrap.is-wa svg {
  width: 32px !important;
  height: 32px !important;
  fill: #25D366 !important;
  display: block !important;
}

.fs-dispatch-icon-wrap.is-gmail {
  background: rgba(234, 67, 53, 0.1) !important;
}

.fs-dispatch-icon-wrap.is-gmail img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  display: block !important;
}

.fs-btn-copy {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 13px 20px !important;
  border-radius: 12px !important;
  background: #f4f5f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: rgba(0, 0, 0, 0.75) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.fs-btn-copy:hover {
  background: #eaeaef !important;
  color: #111215 !important;
}
