/* -------------------------------------------------------------
 * LANDING PAGE - INNOVA MARKETING DIGITAL (CINEMATIC 3D STYLE)
 * Inspired by GRAIR / Undream Studio
 * ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,450;0,600;1,300;1,450&family=Inter:wght@300;400;500;700&family=Manrope:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0a0512;
    --text-light: #f1ecf7;
    --text-muted: rgba(241, 236, 247, 0.45);
    --primary-color: #cfc9ff;
    --secondary-color: #8c7eff;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Manrope', sans-serif;
    --font-mono: 'Inter', sans-serif;
    --landing-rail-max: 680px;
    --landing-content-max: min(1180px, 100%);
    --landing-gutter-x: clamp(1.5rem, 6vw, 5.5rem);
    --landing-section-pad-y: clamp(5rem, 10vh, 7rem);
    --portfolio-stage-width: 100%;
    --portfolio-stage-max: 100%;
    --services-carousel-max: 720px;
    --services-carousel-width: min(720px, 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow: hidden; /* Disable standard scrollbar for discrete 3D slide navigation */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    display: none; /* Hide scrollbar completely */
}

/* WebGL Canvas */
.webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

body {
    cursor: none;
}

#star-cursor {
        position: fixed;
        left: 0;
        top: 0;
        width: 22px;
        height: 22px;
        pointer-events: none;
        z-index: 2147483647;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 180ms ease;
        mix-blend-mode: screen;
    }

    #star-cursor .core {
        position: absolute;
        inset: 0;
        border-radius: 9999px;
        background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 12%, rgba(255,255,255,0.65) 26%, rgba(140,126,255,0.7) 48%, rgba(140,126,255,0) 74%);
        filter: blur(1px);
        box-shadow: 0 0 12px rgba(140, 126, 255, 0.95), 0 0 28px rgba(255, 255, 255, 0.45);
    }

    #star-cursor .tail {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 115px;
        height: 1px;
        transform-origin: left center;
        transform: rotate(0deg) translateY(-50%);
        background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.2) 45%, rgba(140,126,255,0) 100%);
        filter: blur(0.3px);
        opacity: 0.8;
        border-radius: 9999px;
        box-shadow: 0 0 8px rgba(140, 126, 255, 0.2);
    }

    .star-trail {
        position: fixed;
        width: 8px;
        height: 8px;
        pointer-events: none;
        z-index: 2147483646;
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
        mix-blend-mode: screen;
        animation: starTrail 420ms linear forwards;
    }

    .star-trail::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 9999px;
        background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 35%, rgba(140,126,255,0.12) 70%, rgba(140,126,255,0) 100%);
        filter: blur(0.6px);
        box-shadow: 0 0 7px rgba(255,255,255,0.3);
    }

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
}

@keyframes starTrail {
    0% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(0.9);
    }
    70% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.45);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.15);
    }
}

/* Radial Vignette Effect */
#css-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(10, 5, 18, 0.95) 100%);
}

/* Cinematic Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0714;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.loader-brand {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-light);
    opacity: 0;
    animation: fadeIn 2s forwards 0.5s;
}

.loader-brand span {
    font-style: italic;
    color: var(--primary-color);
}

.loader-progress-wrap {
    width: 150px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s ease;
}

.loader-action-wrap {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.loader-action-wrap.ready {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#enter-btn {
    background: transparent;
    border: 1px solid rgba(207, 201, 255, 0.3);
    color: var(--primary-color);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    outline: none;
}

#enter-btn:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
}

.loader-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Carrusel infinito de logos (pantalla de entrada) */
.loader-logos {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(1.25rem, 4vh, 2.75rem);
    width: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1.6s forwards 1s;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.loader-logos-fade {
    display: none;
}

.loader-logos-track {
    display: flex;
    width: max-content;
    animation: loaderLogosMarquee var(--loader-logos-speed, 40s) linear infinite;
    will-change: transform;
}

.loader-logos-group {
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    padding-right: clamp(2.5rem, 6vw, 5rem);
}

.loader-logo-item {
    flex: 0 0 auto;
    height: clamp(28px, 4.5vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-item img {
    display: block;
    height: 100%;
    width: auto;
    max-width: clamp(88px, 14vw, 160px);
    object-fit: contain;
    opacity: 0.38;
    filter: grayscale(1) brightness(1.35);
    transition: opacity 0.35s ease;
}

@keyframes loaderLogosMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 700px) {
    .loader-logos {
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }

    .loader-logo-item {
        height: 24px;
    }

    .loader-logos-group {
        gap: 2rem;
        padding-right: 2rem;
    }
}

/* Immersive Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2.2rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    pointer-events: auto;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-light);
    text-decoration: none;
    flex-shrink: 0;
}

.logo span {
    font-style: italic;
    color: var(--primary-color);
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.75rem);
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 2.5vw, 3.25rem);
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a:not(.landing-cta-btn) {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.2rem 0;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.35s ease, text-shadow 0.35s ease, opacity 0.35s ease;
}

.nav-links a:not(.landing-cta-btn):hover {
    color: var(--text-light);
}

.nav-links a.nav-link-active:not(.nav-link-electric) {
    color: var(--text-light);
    text-shadow: 0 0 12px rgba(207, 201, 255, 0.38);
}

.nav-links a.nav-link-active:not(.nav-link-electric)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.1rem;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.75);
}

.nav-links a:not(.nav-link-active):not(.nav-link-electric) {
    opacity: 0.72;
}

.nav-links a:not(.nav-link-active):not(.nav-link-electric):hover {
    opacity: 1;
}

/* Landing CTA ? botones el?ctricos alineados al sistema Innova */
.landing-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.72rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
    pointer-events: auto;
}

.landing-cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -2;
    filter: blur(6px);
    opacity: 0.72;
    animation: benefitsElectricShift 2.4s linear infinite;
}

.landing-cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 48%, transparent 100%);
    transform: translateX(-120%);
    animation: benefitsElectricSweep 2.8s ease-in-out infinite;
    pointer-events: none;
}

.landing-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.08);
}

.landing-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Ver Servicios ? el?ctrico cyan / violeta */
.landing-cta-btn--primary {
    border-color: rgba(0, 240, 255, 0.78);
    background: linear-gradient(120deg, #00f0ff 0%, #8c7eff 42%, #c026ff 78%, #00f0ff 100%);
    background-size: 220% 220%;
    box-shadow:
        0 0 18px rgba(0, 240, 255, 0.42),
        0 0 34px rgba(140, 126, 255, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    animation:
        benefitsElectricPulse 1.6s ease-in-out infinite,
        benefitsElectricShift 3.2s linear infinite;
}

.landing-cta-btn--primary::before {
    background: linear-gradient(120deg, rgba(0, 240, 255, 0.9), rgba(192, 38, 255, 0.85), rgba(0, 240, 255, 0.9));
    background-size: 220% 220%;
}

.landing-cta-btn--primary:hover {
    box-shadow:
        0 0 26px rgba(0, 240, 255, 0.68),
        0 0 46px rgba(192, 38, 255, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.landing-cta-btn--hero {
    padding: 0.85rem 2rem;
    font-size: 0.74rem;
    letter-spacing: 0.15em;
}

.hero-cta-wrap {
    padding-top: 0.35rem;
}

/* Acceso CRM ? contorno el?ctrico indigo / pink sin relleno */
.landing-cta-btn--crm {
    padding: 0.55rem 1.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    color: #ebe8ff !important;
    border: 1px solid rgba(99, 102, 241, 0.72);
    background: transparent;
    overflow: visible;
    box-shadow:
        0 0 10px rgba(99, 102, 241, 0.28),
        inset 0 0 12px rgba(99, 102, 241, 0.04);
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.38);
    animation: landingCrmPulse 1.85s ease-in-out infinite;
}

.landing-cta-btn--crm::before {
    inset: -1px;
    filter: none;
    opacity: 0.85;
    padding: 1px;
    background: linear-gradient(
        125deg,
        rgba(99, 102, 241, 0.95) 0%,
        rgba(139, 92, 246, 0.88) 42%,
        rgba(236, 72, 153, 0.92) 78%,
        rgba(99, 102, 241, 0.95) 100%
    );
    background-size: 240% 240%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.landing-cta-btn--crm::after {
    display: none;
}

.landing-cta-btn--crm:hover {
    background: transparent;
    color: #ffffff !important;
    box-shadow:
        0 0 14px rgba(99, 102, 241, 0.45),
        0 0 22px rgba(236, 72, 153, 0.22),
        inset 0 0 14px rgba(236, 72, 153, 0.05);
}

@keyframes landingCrmPulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(99, 102, 241, 0.28),
            inset 0 0 12px rgba(99, 102, 241, 0.04);
        border-color: rgba(99, 102, 241, 0.68);
    }
    50% {
        box-shadow:
            0 0 18px rgba(99, 102, 241, 0.52),
            0 0 26px rgba(236, 72, 153, 0.28),
            inset 0 0 14px rgba(236, 72, 153, 0.06);
        border-color: rgba(236, 72, 153, 0.85);
    }
}

.btn-nav-crm.landing-cta-btn {
    flex-shrink: 0;
}

/* Audio en navbar ? alineado con el men?, m?s transparente */
.navbar-audio-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.022);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    outline: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        visibility 0.55s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

body.site-entered .navbar-audio-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-audio-btn:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
}

.navbar-audio-btn:active {
    transform: scale(0.96);
}

body.site-entered .navbar-audio-btn:active {
    transform: scale(0.96);
}

/* Audio Visualizer Button */
.audio-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

/* WhatsApp electric FAB ? inferior derecha */
.landing-wa-electric {
    position: fixed;
    right: calc(1.15rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    pointer-events: none;
}

body.site-entered .landing-wa-electric {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.landing-wa-electric-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        rgba(37, 255, 154, 0.05),
        rgba(37, 255, 154, 0.95),
        rgba(56, 248, 255, 0.85),
        rgba(37, 211, 102, 0.2),
        rgba(37, 255, 154, 0.95)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: landingWaElectricSpin 3.2s linear infinite;
    filter: drop-shadow(0 0 6px rgba(37, 255, 154, 0.55));
}

.landing-wa-electric-glow {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 255, 154, 0.28) 0%, transparent 72%);
    animation: landingWaElectricPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

.landing-wa-electric-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7dffc4;
    box-shadow: 0 0 8px #37ff9a, 0 0 14px rgba(56, 248, 255, 0.8);
    opacity: 0;
    animation: landingWaElectricSpark 2.8s ease-in-out infinite;
}

.landing-wa-electric-spark-1 {
    top: 6px;
    right: 10px;
    animation-delay: 0.4s;
}

.landing-wa-electric-spark-2 {
    bottom: 8px;
    left: 9px;
    animation-delay: 1.3s;
}

.landing-wa-electric-core {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(8, 18, 14, 0.42);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(37, 255, 154, 0.22);
    color: rgba(125, 255, 196, 0.95);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(37, 255, 154, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.landing-wa-electric-core svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(37, 255, 154, 0.45));
}

.landing-wa-electric:hover .landing-wa-electric-core {
    transform: scale(1.06);
    border-color: rgba(56, 248, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(37, 255, 154, 0.35),
        0 0 42px rgba(56, 248, 255, 0.18);
}

.landing-wa-electric:active .landing-wa-electric-core {
    transform: scale(0.94);
}

@keyframes landingWaElectricSpin {
    to { transform: rotate(360deg); }
}

@keyframes landingWaElectricPulse {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes landingWaElectricSpark {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    45%, 55% { opacity: 1; transform: scale(1); }
}

.landing-audio-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    overflow: visible;
}

.landing-audio-btn.audio-toggle {
    border: none;
    box-shadow: none;
}

.landing-audio-btn #audio-wave {
    display: block;
    width: 30px;
    height: 17px;
}

.navbar-audio-btn.is-playing,
.landing-audio-btn.is-playing {
    border-color: rgba(140, 126, 255, 0.32);
    background: rgba(140, 126, 255, 0.07);
    box-shadow:
        0 0 12px rgba(140, 126, 255, 0.16),
        0 2px 10px rgba(0, 0, 0, 0.1);
}

body.service-modal-open .navbar-audio-btn,
body.service-modal-open .landing-wa-electric {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#audio-wave {
    width: 32px;
    height: 18px;
}

/* Content Container & Scroll Sections (Fixed Stacked 3D Slides) */
.immersive-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 10;
    pointer-events: none;
}

.cinematic-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding:
        var(--landing-section-pad-y)
        var(--landing-gutter-x)
        clamp(3rem, 8vh, 5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 50px, -100px) rotateX(15deg);
    transition: all 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Riel de contenido unificado ? misma columna en todas las secciones */
.cinematic-section > .section-content,
.cinematic-section > .about-section-layout,
.cinematic-section > .benefits-section-layout,
.cinematic-section > .portfolio-section-layout,
.cinematic-section > .sistemas-section-layout,
.cinematic-section > .filmstrip-section-layout,
.cinematic-section > .contact-clean-layout {
    margin-block: auto;
    margin-inline: 0;
    flex: 0 0 auto;
    align-self: flex-start;
    width: 100%;
    max-width: var(--landing-rail-max);
    min-width: 0;
    text-align: left;
}

.cinematic-section > .section-content .section-tag,
.cinematic-section > .about-section-layout .section-tag,
.cinematic-section > .benefits-section-layout .section-tag,
.cinematic-section > .portfolio-section-layout .section-tag,
.cinematic-section > .sistemas-section-layout .section-tag,
.cinematic-section > .filmstrip-section-layout .section-tag,
.cinematic-section > .contact-clean-layout .section-tag {
    text-align: left;
}

/* Filmstrip: ancho completo de viewport */
.cinematic-section > .filmstrip-section-layout {
    max-width: 100%;
    width: 100%;
    height: 100%;
}

.cinematic-section.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) rotateX(0deg);
}

.section-content {
    max-width: var(--landing-rail-max);
    pointer-events: auto;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 4.2vw, 4.2rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.section-title span.italic {
    font-style: italic;
    font-weight: 300;
    color: var(--primary-color);
}

.section-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1.75rem;
    max-width: 52ch;
}

/* Services Filter - Segmented Rail */
.services-filter-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.services-filter-fade,
.services-filter-scroll-hint {
    display: none;
}

.services-filter-rail {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 1.6rem 0 1.2rem;
    padding: 5px;
    max-width: 100%;
    width: fit-content;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.services-filter-rail::-webkit-scrollbar {
    display: none;
}

.filter-rail-indicator {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(140, 126, 255, 0.14), rgba(207, 201, 255, 0.05));
    border: 1px solid rgba(140, 126, 255, 0.22);
    box-shadow: 0 0 12px rgba(140, 126, 255, 0.12);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}

.filter-chip {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    min-width: 72px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.25s ease;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.filter-chip:hover {
    color: var(--text-light);
    transform: translateY(-1px);
}

.filter-chip.active {
    color: var(--text-light);
}

.filter-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.filter-chip-icon svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.filter-chip.active .filter-chip-icon svg {
    opacity: 1;
    color: var(--primary-color);
}

.filter-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--chip-color, var(--secondary-color));
    box-shadow: 0 0 10px var(--chip-color, rgba(140, 126, 255, 0.6));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-chip.active .filter-chip-dot {
    transform: scale(1.2);
    box-shadow: 0 0 14px var(--chip-color, rgba(140, 126, 255, 0.8));
}

.filter-chip-label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.filter-chip.active .filter-chip-label {
    color: var(--primary-color);
}

/* Services Section */
.service-section-content {
    max-width: var(--landing-rail-max);
    width: 100%;
    margin-inline: 0;
}

.service-section-content .section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin-bottom: 1rem;
}

/* Services Carousel */
.services-carousel-wrapper {
    position: relative;
    width: var(--services-carousel-width);
    max-width: var(--services-carousel-max);
    margin-top: 0.75rem;
    overflow: visible;
    padding: 0.5rem 0;
}

.services-carousel-viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 6%,
        #000 16%,
        #000 88%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 6%,
        #000 16%,
        #000 88%,
        transparent 100%
    );
}

.services-carousel-viewport.is-dragging {
    cursor: grabbing;
}

.services-carousel-viewport.is-dragging .service-product-card {
    pointer-events: none;
}

.services-carousel-track {
    display: flex;
    gap: var(--carousel-gap, 8px);
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Autoplay ahora es JS; se mantienen clases por compatibilidad */
.services-carousel-track.is-animating {
    animation: none;
}

.services-carousel-track.is-paused {
    animation-play-state: paused;
}

@keyframes servicesCarouselScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--carousel-loop-width, 50%)));
    }
}

.services-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 10, 24, 0.78);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.services-carousel-nav svg {
    width: 16px;
    height: 16px;
}

.services-carousel-nav:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(165, 180, 252, 0.55);
}

.services-carousel-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.services-carousel-nav--prev {
    left: -6px;
}

.services-carousel-nav--next {
    right: -6px;
}

.services-carousel-wrapper.is-frozen .services-carousel-nav {
    opacity: 0.45;
    pointer-events: none;
}

.carousel-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
}

.carousel-fade-left {
    left: 0;
    width: 56px;
    background: linear-gradient(
        90deg,
        rgba(10, 5, 18, 0.98) 0%,
        rgba(10, 5, 18, 0.72) 35%,
        rgba(10, 5, 18, 0.2) 70%,
        transparent 100%
    );
}

.carousel-fade-right {
    right: 0;
    width: 36px;
    background: linear-gradient(270deg, rgba(10, 5, 18, 0.65), transparent);
}

/* Service Product Card - Facebook Feed Style (compact & narrow) */
.service-product-card {
    flex: 0 0 var(--card-width, 158px);
    width: var(--card-width, 158px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: auto;
}

.service-product-card.is-hidden {
    display: none !important;
}

.service-product-card:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(140, 126, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(140, 126, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

/* Tarjetas en promoci?n */
.service-product-card--promo {
    position: relative;
    border-color: rgba(251, 146, 60, 0.65);
    background: linear-gradient(155deg, rgba(251, 146, 60, 0.16) 0%, rgba(236, 72, 153, 0.08) 42%, rgba(12, 8, 24, 0.92) 100%);
    box-shadow:
        0 0 0 1px rgba(251, 146, 60, 0.28),
        0 10px 28px rgba(251, 146, 60, 0.18),
        0 0 24px rgba(236, 72, 153, 0.12);
    animation: promoCardGlow 2.8s ease-in-out infinite;
}

.service-product-card--promo:hover {
    border-color: rgba(251, 191, 36, 0.85);
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.45),
        0 14px 32px rgba(251, 146, 60, 0.28),
        0 0 32px rgba(236, 72, 153, 0.18);
    transform: translateY(-3px) scale(1.03);
}

.service-promo-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.service-promo-ribbon span {
    display: inline-block;
    padding: 2px 10px 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
    background-size: 200% 100%;
    animation: promoRibbonShine 2.5s linear infinite;
    color: #1a0a00;
    font-family: var(--font-mono);
    font-size: 0.46rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.45);
}

.service-promo-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #1a0a00;
    font-family: var(--font-mono);
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.55);
    animation: promoBadgePulse 1.8s ease-in-out infinite;
}

.service-product-price--promo {
    flex-wrap: wrap;
    gap: 3px 5px;
}

.price-amount--original {
    font-size: 0.58rem !important;
    font-weight: 600 !important;
    color: rgba(148, 163, 184, 0.85) !important;
    text-decoration: line-through;
    text-decoration-color: rgba(251, 146, 60, 0.75);
}

.price-amount--promo {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #fdba74 !important;
    text-shadow: 0 0 12px rgba(251, 146, 60, 0.35);
}

.service-detail-btn--promo {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.28), rgba(251, 191, 36, 0.22));
    border-color: rgba(251, 146, 60, 0.55);
    color: #fde68a;
}

.service-detail-btn--promo:hover {
    background: linear-gradient(90deg, #f97316, #fbbf24);
    border-color: #fbbf24;
    color: #1a0a00;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
}

.filter-chip--promo .filter-chip-icon svg {
    color: #fdba74;
    filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.5));
}

.filter-chip--promo.active {
    border-color: rgba(251, 146, 60, 0.55);
    background: rgba(251, 146, 60, 0.12);
}

.service-modal-price-box--promo {
    border: 1px solid rgba(251, 146, 60, 0.35);
    background: linear-gradient(145deg, rgba(251, 146, 60, 0.12), rgba(12, 8, 24, 0.5));
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.service-modal-price-box--promo .service-modal-price {
    color: #fdba74;
    text-shadow: 0 0 14px rgba(251, 146, 60, 0.25);
}

.service-modal-coupon-savings:not([hidden]) {
    color: #fdba74;
    font-weight: 600;
}

@keyframes promoCardGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.28), 0 10px 28px rgba(251, 146, 60, 0.16), 0 0 20px rgba(236, 72, 153, 0.1); }
    50% { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.45), 0 12px 32px rgba(251, 146, 60, 0.28), 0 0 28px rgba(236, 72, 153, 0.16); }
}

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

@keyframes promoBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* Service Product Image */
.service-product-image {
    position: relative;
    width: 100%;
    height: 86px;
    overflow: hidden;
    background: rgba(140, 126, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
    display: block;
}

.service-product-card:hover .service-product-image img {
    transform: scale(1.05);
}

.service-product-image-placeholder {
    position: relative;
    width: 100%;
    height: 86px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--placeholder-color, #8c7eff) 30%, transparent), rgba(10, 5, 18, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.placeholder-letter {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--placeholder-color, var(--primary-color));
    opacity: 0.85;
    text-shadow: 0 0 12px color-mix(in srgb, var(--placeholder-color, #8c7eff) 50%, transparent);
}

/* Service Product Content */
.service-product-content {
    padding: 6px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.service-card-header {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.service-category-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: white;
    font-weight: 600;
    width: fit-content;
    line-height: 1.3;
}

.service-product-title {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-product-desc {
    color: var(--text-muted);
    font-size: 0.58rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: auto;
    padding-top: 3px;
}

.service-product-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
}

.price-amount {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: var(--text-muted);
}

.service-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 6px;
    background: rgba(140, 126, 255, 0.15);
    border: 1px solid rgba(140, 126, 255, 0.3);
    border-radius: 5px;
    color: var(--primary-color);
    font-family: var(--font-sans);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    width: 100%;
}

.service-detail-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(140, 126, 255, 0.35);
}

.service-detail-btn svg {
    width: 10px;
    height: 10px;
}

.services-mobile-scroll-hint {
    display: none;
}

@keyframes servicesFilterHintPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.9; }
}

@keyframes servicesFilterHintArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Animaciones para Filtrado */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Escritorio: contenedor centrado con m?rgenes laterales proporcionales */
@media (min-width: 969px) {
    :root {
        --landing-rail-max: var(--landing-content-max);
        --landing-gutter-x: clamp(2rem, 5vw, 5.5rem);
        --landing-side-inset: max(
            var(--landing-gutter-x),
            calc((100vw - min(1180px, 100vw)) / 2)
        );
    }

    .navbar {
        padding:
            2.2rem
            max(var(--landing-side-inset), env(safe-area-inset-right, 0px))
            2.2rem
            max(var(--landing-side-inset), env(safe-area-inset-left, 0px));
    }

    .navbar-end {
        gap: clamp(1rem, 2vw, 2.25rem);
    }

    .nav-links {
        gap: clamp(1.15rem, 1.8vw, 2.75rem);
    }

    .scroll-indicator-wrap {
        right: max(var(--landing-side-inset), env(safe-area-inset-right, 0px));
    }

    .cinematic-section,
    .cinematic-footer-section {
        padding:
            var(--landing-section-pad-y)
            var(--landing-side-inset)
            clamp(3rem, 8vh, 5rem);
        align-items: center;
        justify-content: center;
    }

    .cinematic-section > .section-content,
    .cinematic-section > .about-section-layout,
    .cinematic-section > .benefits-section-layout,
    .cinematic-section > .portfolio-section-layout,
    .cinematic-section > .sistemas-section-layout,
    .cinematic-section > .filmstrip-section-layout,
    .cinematic-section > .contact-clean-layout {
        width: 100%;
        max-width: var(--landing-content-max);
        min-width: 0;
        margin-block: auto;
        margin-inline: auto;
        align-self: center;
    }

    .cinematic-section > .filmstrip-section-layout {
        max-width: 100%;
        height: 100%;
        margin-inline: 0;
        align-self: stretch;
    }

    .section-desc,
    .about-desc,
    .benefits-desc {
        max-width: min(68ch, 100%);
    }

    .service-section-content {
        max-width: 100%;
        width: 100%;
    }

    .services-filter-rail {
        width: fit-content;
        max-width: 100%;
    }

    .services-carousel-wrapper {
        width: var(--services-carousel-width);
        max-width: var(--services-carousel-max);
    }

    .services-carousel-viewport {
        mask-image: linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.35) 5%,
            #000 14%,
            #000 86%,
            rgba(0, 0, 0, 0.35) 95%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.35) 5%,
            #000 14%,
            #000 86%,
            rgba(0, 0, 0, 0.35) 95%,
            transparent 100%
        );
    }

    .carousel-fade-left,
    .carousel-fade-right {
        width: 64px;
    }

    #nosotros .about-hero-row {
        grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
        gap: clamp(1.5rem, 4vw, 3.5rem);
        max-width: 100%;
    }

    #nosotros .about-testimonials-zone,
    #beneficios .benefits-grid {
        max-width: 100%;
        min-width: 0;
    }

    #nosotros .testimonials-marquee-wrap {
        max-width: 100%;
        overflow: hidden;
    }

    .portfolio-section {
        padding:
            var(--landing-section-pad-y)
            var(--landing-side-inset)
            clamp(2rem, 6vh, 4rem);
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        align-items: center;
        justify-content: center;
    }

    .portfolio-section-layout {
        max-width: var(--landing-content-max);
        width: 100%;
        margin-inline: auto;
        gap: 0.45rem;
    }

    .portfolio-header {
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
        padding: 0;
    }

    .portfolio-header .section-tag {
        display: inline-block;
    }

    .portfolio-desc {
        max-width: min(62ch, 100%);
        margin-inline: auto;
        text-align: center;
    }

    .portfolio-coverflow-stage {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        height: clamp(300px, calc(100vh - 17rem), 500px);
        perspective: 1500px;
        perspective-origin: 50% 18%;
        margin-top: 0.2rem;
    }

    .portfolio-ui-stack {
        width: min(100%, 520px);
        margin-top: 0.2rem;
        margin-inline: auto;
        gap: 0.25rem;
    }

    .portfolio-active-meta {
        margin-inline: auto;
        justify-content: center;
    }

    .benefits-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .benefit-card {
        grid-column: span 2;
    }

    .benefit-card:nth-child(4),
    .benefit-card:nth-child(5) {
        grid-column: span 3;
    }

    .contact-clean-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: clamp(2.5rem, 5vw, 5rem);
        align-items: start;
    }

    .contact-clean-layout {
        max-width: var(--landing-content-max);
        width: 100%;
        margin-inline: auto;
    }
}

/* Responsive - Tablets & Mobile (servicios) */
@media (max-width: 968px) {
    #servicios.cinematic-section {
        padding:
            calc(5rem + env(safe-area-inset-top, 0px))
            5%
            calc(6.5rem + var(--mobile-dock-clearance, 72px));
        padding-right: 5%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .service-section-content {
        max-width: 100%;
        width: 100%;
    }

    .service-section-content .section-title {
        font-size: clamp(1.85rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .services-filter-shell {
        margin: 1.25rem 0 0.35rem;
    }

    .services-filter-shell .services-filter-rail {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 14px;
        padding: 4px;
        scroll-snap-type: x proximity;
    }

    .services-filter-fade {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 36px;
        pointer-events: none;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .services-filter-fade--left {
        left: 0;
        border-radius: 14px 0 0 14px;
        background: linear-gradient(to right, var(--bg-dark) 20%, transparent);
    }

    .services-filter-fade--right {
        right: 0;
        border-radius: 0 14px 14px 0;
        background: linear-gradient(to left, var(--bg-dark) 20%, transparent);
    }

    .services-filter-shell.can-scroll-left .services-filter-fade--left,
    .services-filter-shell.can-scroll-right .services-filter-fade--right {
        opacity: 1;
    }

    .services-filter-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        margin: 0.45rem 0 0.65rem;
        font-size: 0.58rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.38);
        animation: servicesFilterHintPulse 2.4s ease-in-out infinite;
    }

    .services-filter-shell:not(.is-scrollable) .services-filter-scroll-hint,
    .services-filter-shell.has-scrolled .services-filter-scroll-hint {
        display: none;
    }

    .services-filter-scroll-hint svg {
        width: 14px;
        height: 14px;
        opacity: 0.55;
        animation: servicesFilterHintArrow 2.4s ease-in-out infinite;
    }

    .filter-chip {
        min-width: 68px;
        min-height: 44px;
        padding: 8px 12px;
    }

    .filter-chip-label {
        font-size: 0.56rem;
    }

    .services-carousel-wrapper {
        width: 100%;
        max-width: 100%;
        margin-top: 0.75rem;
        padding: 0.25rem 0 0.5rem;
    }

    .services-carousel-nav {
        width: 32px;
        height: 32px;
    }

    .services-carousel-nav--prev {
        left: 2px;
    }

    .services-carousel-nav--next {
        right: 2px;
    }

    .services-carousel-wrapper.is-mobile-scroll .services-carousel-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 8%,
            #000 18%,
            #000 100%
        );
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 8%,
            #000 18%,
            #000 100%
        );
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .services-carousel-wrapper.is-mobile-scroll .services-carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .services-carousel-wrapper.is-mobile-scroll .services-carousel-track {
        animation: none !important;
        transform: none !important;
        padding-right: 5%;
    }

    .services-carousel-wrapper.is-mobile-scroll .service-product-card {
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .services-carousel-wrapper.is-mobile-scroll .carousel-fade-left {
        display: block;
        width: 48px;
    }

    .services-carousel-wrapper.is-mobile-scroll .carousel-fade-right {
        display: none;
    }

    .service-product-card {
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    }

    .service-product-image,
    .service-product-image-placeholder {
        height: 120px;
    }

    .placeholder-letter {
        font-size: 2rem;
    }

    .service-product-content {
        padding: 10px 12px 12px;
        gap: 6px;
    }

    .service-category-badge {
        font-size: 0.52rem;
        padding: 2px 7px;
        border-radius: 4px;
    }

    .service-product-title {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }

    .service-product-desc {
        font-size: 0.68rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .service-card-footer {
        gap: 8px;
        padding-top: 6px;
    }

    .price-amount {
        font-size: 0.95rem;
    }

    .price-period {
        font-size: 0.58rem;
    }

    .service-detail-btn {
        padding: 8px 10px;
        font-size: 0.68rem;
        border-radius: 8px;
        min-height: 44px;
    }

    .service-detail-btn svg {
        width: 13px;
        height: 13px;
    }

    .services-mobile-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        margin-top: 0.5rem;
        font-size: 0.58rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.32);
    }

    .services-mobile-scroll-hint svg {
        width: 14px;
        height: 14px;
        opacity: 0.5;
    }
}

/* Responsive - Tablets (legacy narrow tweaks) */
@media (max-width: 768px) {
    .filter-chip {
        min-width: 64px;
        min-height: 44px;
        padding: 7px 11px;
    }
}

/* Responsive - Mobile small */
@media (max-width: 480px) {
    #servicios.cinematic-section {
        padding-left: 4%;
        padding-right: 4%;
        padding-bottom: calc(6.5rem + var(--mobile-dock-clearance, 72px));
    }

    .service-section-content .section-title {
        font-size: 1.75rem;
    }

    .services-filter-shell {
        margin: 1rem 0 0.25rem;
    }

    .services-filter-shell .services-filter-rail {
        gap: 2px;
    }

    .filter-chip {
        min-width: 56px;
        min-height: 44px;
        padding: 7px 9px;
        gap: 3px;
    }

    .filter-chip-label {
        font-size: 0.55rem;
    }

    .filter-chip-icon {
        width: 20px;
        height: 20px;
    }

    .filter-chip-icon svg {
        width: 14px;
        height: 14px;
    }

    .service-product-image,
    .service-product-image-placeholder {
        height: 108px;
    }

    .service-product-title {
        font-size: 0.78rem;
    }

    .service-product-desc {
        font-size: 0.64rem;
    }

    .price-amount {
        font-size: 0.88rem;
    }
}


/* Contact ? estilo limpio */
.cinematic-footer-section {
    padding:
        var(--landing-section-pad-y)
        var(--landing-gutter-x)
        clamp(3rem, 8vh, 5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.contact-clean-layout {
    width: 100%;
    max-width: var(--landing-rail-max);
    min-width: 0;
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: min(70vh, 640px);
    pointer-events: auto;
    text-align: left;
}

.contact-clean-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.contact-clean-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    color: var(--text-light);
}

.contact-clean-title .italic {
    font-style: italic;
    color: var(--primary-color);
}

.contact-clean-lead {
    max-width: 480px;
    margin: 0;
    opacity: 0.78;
    line-height: 1.75;
}

.contact-clean-legal-name {
    margin: 0 0 1.75rem;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.contact-info-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.contact-info-item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.contact-info-item:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-info-item dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    padding-top: 0.15rem;
}

.contact-info-item dd {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.6;
}

.contact-clean-link {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-clean-link:hover {
    color: var(--primary-color);
}

.contact-clean-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    margin-top: 2rem;
}

.contact-clean-whatsapp {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(207, 201, 255, 0.35);
    padding-bottom: 2px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-clean-whatsapp:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-clean-actions-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

.contact-clean-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.contact-clean-social a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.25s ease;
}

.contact-clean-social a:hover {
    color: var(--text-light);
}

.contact-clean-footer {
    margin-top: clamp(2.5rem, 5vh, 4rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.contact-clean-footer p {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: flex-start;
    width: 100%;
    pointer-events: auto;
}

.footer-cta h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.footer-cta h2 span {
    font-style: italic;
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    display: inline-block;
    transition: color 0.4s ease;
}

.contact-item:hover {
    color: var(--secondary-color);
}

/* Sidebar Scroll Progress Track */
.scroll-indicator-wrap {
    position: fixed;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.scroll-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: var(--primary-color);
    transform: scale(1.6);
    box-shadow: 0 0 10px rgba(207, 201, 255, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 968px) {
    .section-title {
        font-size: 2.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-clean-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info-item {
        grid-template-columns: 5.5rem 1fr;
        gap: 0.75rem;
    }

    .nav-links {
        display: none;
    }

    .navbar-end .btn-nav-crm {
        display: none;
    }

    .navbar-end {
        margin-left: auto;
        gap: 0;
    }

    .navbar-audio-btn {
        width: 40px;
        height: 40px;
    }

    /* Encabezado móvil: solo visible en Inicio */
    body:not(.is-home-section) .navbar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
    }

    .navbar {
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    }
}

/* ?? Mobile Dock Navigation (Neo Glass) ?? */
.mobile-dock-wrap {
    display: none;
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    z-index: 1000;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.mobile-dock-wrap > * {
    pointer-events: auto;
}

.mobile-bottom-nav {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 64px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(8, 10, 22, 0.72);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.55) 0%,
        rgba(236, 72, 153, 0.35) 40%,
        rgba(56, 189, 248, 0.25) 70%,
        rgba(99, 102, 241, 0.4) 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;
    animation: mobileDockBorderPulse 4s ease-in-out infinite;
}

@keyframes mobileDockBorderPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

.mobile-nav-indicator {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    width: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.32), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(129, 140, 248, 0.28);
    box-shadow:
        0 0 24px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.34, 1.25, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.1, 0.64, 1);
    pointer-events: none;
    z-index: 0;
    will-change: transform, width;
}

.mobile-nav-scroll {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 100%;
    padding: 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    flex: 1 0 auto;
    min-width: 58px;
    max-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    scroll-snap-align: center;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-nav-item:active {
    transform: scale(0.94);
}

.mobile-nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.35s ease, box-shadow 0.35s ease;
}

.mobile-nav-item svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.5;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.mobile-nav-label {
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-item.active {
    color: #f8fafc;
}

.mobile-nav-item.active .mobile-nav-icon-wrap {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.45), rgba(139, 92, 246, 0.3));
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px) scale(1.05);
}

.mobile-nav-item.active svg {
    filter: drop-shadow(0 0 6px rgba(165, 180, 252, 0.7));
}

.mobile-nav-item.active .mobile-nav-label {
    opacity: 1;
    font-weight: 700;
    transform: scale(1.02);
}

/* Bot?n CRM / Portal flotante ? contorno sin relleno */
.mobile-nav-portal-fab {
    position: relative;
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #ebe8ff;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.65);
    box-shadow:
        0 0 12px rgba(99, 102, 241, 0.32),
        inset 0 0 10px rgba(99, 102, 241, 0.04);
    overflow: visible;
    animation: landingCrmPulse 1.85s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-portal-fab::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.95) 0%,
        rgba(139, 92, 246, 0.88) 45%,
        rgba(236, 72, 153, 0.92) 100%
    );
    background-size: 220% 220%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: benefitsElectricShift 3.2s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.mobile-nav-portal-fab:active {
    transform: scale(0.93);
}

.mobile-nav-portal-glow {
    display: none;
}

.mobile-nav-portal-ring {
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    border: 1px solid rgba(236, 72, 153, 0.35);
    animation: mobilePortalRing 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes mobilePortalRing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.18); opacity: 0; }
}

.mobile-nav-portal-fab svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.45));
}

.mobile-nav-portal-text {
    position: relative;
    z-index: 1;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

/* Show only on Mobile Screens */
@media (max-width: 968px) {
    .mobile-dock-wrap {
        display: flex;
    }
    .scroll-indicator-wrap {
        display: none;
    }
}

/* ??????????????????????????????????????????????????????????????
   SERVICE DETAIL MODAL - 3D Cinematic
   ?????????????????????????????????????????????????????????????? */
body.service-modal-open {
    overflow: hidden;
}

body.service-modal-open .immersive-container,
body.service-modal-open .navbar,
body.service-modal-open .mobile-dock-wrap,
body.service-modal-open .scroll-indicator-wrap {
    pointer-events: none;
}

body.service-modal-open .service-modal {
    pointer-events: auto;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.service-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.service-modal.is-closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 5, 18, 0.55), rgba(10, 5, 18, 0.92));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-modal.is-open .service-modal-backdrop {
    opacity: 1;
}

.service-modal.is-closing .service-modal-backdrop {
    opacity: 0;
}

.service-modal-stage {
    position: relative;
    width: 100%;
    max-width: 820px;
    perspective: 1400px;
    transform-style: preserve-3d;
}

.service-modal-panel {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(12, 8, 24, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(140, 126, 255, 0.12);
    max-height: min(92vh, 100dvh);
    height: min(92vh, 100dvh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: perspective(1400px) rotateX(14deg) translateY(50px) scale(0.9);
    opacity: 0;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.service-modal-panel::-webkit-scrollbar {
    display: none;
}

.service-modal.is-open .service-modal-panel {
    transform: perspective(1400px) rotateX(0deg) translateY(0) scale(1);
    opacity: 1;
}

.service-modal.is-closing .service-modal-panel {
    transform: perspective(1400px) rotateX(-10deg) translateY(30px) scale(0.94);
    opacity: 0;
}

.service-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.service-modal-close:hover {
    color: var(--text-light);
    border-color: rgba(140, 126, 255, 0.4);
    background: rgba(140, 126, 255, 0.12);
}

.service-modal-close svg {
    width: 16px;
    height: 16px;
}

.service-modal-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
}

.service-modal-media {
    position: relative;
    height: 100%;
    min-height: 0;
    background: rgba(140, 126, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    flex-shrink: 0;
}

.service-modal-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.service-modal-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, color-mix(in srgb, var(--placeholder-color, #8c7eff) 28%, transparent), rgba(10, 5, 18, 0.85));
}

.service-modal-placeholder span {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--placeholder-color, var(--primary-color));
    opacity: 0.85;
}

.service-modal-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    font-weight: 700;
}

.service-modal-body {
    padding: 1.6rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 126, 255, 0.35) transparent;
}

.service-modal-body::-webkit-scrollbar {
    display: block;
    width: 6px;
}

.service-modal-body::-webkit-scrollbar-thumb {
    background: rgba(140, 126, 255, 0.35);
    border-radius: 999px;
}

.service-modal-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 0.15rem;
    flex: 1 0 auto;
}

.service-modal-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 0.85rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(12, 8, 24, 0.92), rgba(12, 8, 24, 0.98));
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.service-modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-light);
}

.service-modal-desc-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.service-modal-desc-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
}

.service-modal-desc-box {
    min-height: 80px;
    max-height: none;
    overflow: visible;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(140, 126, 255, 0.06);
    border: 1px solid rgba(140, 126, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 126, 255, 0.45) transparent;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.75;
}

.service-modal-desc-box::-webkit-scrollbar {
    width: 5px;
}

.service-modal-desc-box::-webkit-scrollbar-thumb {
    background: rgba(140, 126, 255, 0.35);
    border-radius: 999px;
}

.service-modal-desc-box p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(241, 236, 247, 0.92);
    margin-bottom: 0.65rem;
}

.service-modal-desc-box p:last-child {
    margin-bottom: 0;
}

.service-modal-desc-list {
    margin: 0.35rem 0 0.65rem 1rem;
    padding: 0;
    list-style: none;
}

.service-modal-desc-list li {
    position: relative;
    padding-left: 0.85rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(241, 236, 247, 0.9);
}

.service-modal-desc-list li::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-size: 0.55rem;
}

.service-modal-desc-empty {
    font-size: 0.82rem;
    line-height: 1.65;
    color: rgba(241, 236, 247, 0.65);
    font-style: italic;
}

.service-modal-desc-empty strong {
    color: var(--primary-color);
    font-style: normal;
}

.service-modal-price-box {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(140, 126, 255, 0.08);
    border: 1px solid rgba(140, 126, 255, 0.18);
}

.service-modal-price-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.service-modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.service-modal-price {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--primary-color);
}

.service-modal-period {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.service-modal-price-original {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.service-modal-coupon-savings {
    margin: 0.35rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: #34d399;
    letter-spacing: 0.04em;
}

.service-modal-coupon {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(236, 72, 153, 0.06);
    border: 1px dashed rgba(236, 72, 153, 0.25);
    flex-shrink: 0;
}

.service-modal-coupon-title {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.service-modal-coupon-row {
    display: flex;
    gap: 0.45rem;
}

.service-modal-coupon-input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
}

.service-modal-coupon-input:focus {
    border-color: rgba(140, 126, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(140, 126, 255, 0.15);
}

.service-modal-coupon-btn {
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(140, 126, 255, 0.45);
    background: rgba(140, 126, 255, 0.18);
    color: #c4b5fd;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.service-modal-coupon-btn:hover:not(:disabled) {
    background: rgba(140, 126, 255, 0.3);
    transform: translateY(-1px);
}

.service-modal-coupon-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.service-modal-coupon-message {
    margin: 0.45rem 0 0;
    font-size: 0.62rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.service-modal-coupon-message.is-success { color: #34d399; }
.service-modal-coupon-message.is-error { color: #f87171; }
.service-modal-coupon-message.is-info { color: #93c5fd; }

.service-modal-coupon-used {
    margin: 0.45rem 0 0;
    font-size: 0.62rem;
    color: #fbbf24;
    line-height: 1.4;
}

.service-modal-payments {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex-shrink: 0;
}

.service-modal-payments-title {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 700;
}

.service-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 0.35rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.payment-method-btn:hover {
    color: var(--text-light);
    border-color: rgba(140, 126, 255, 0.3);
}

.payment-method-btn.active {
    color: var(--text-light);
    border-color: rgba(140, 126, 255, 0.45);
    background: rgba(140, 126, 255, 0.14);
    box-shadow: 0 0 14px rgba(140, 126, 255, 0.15);
}

.payment-method-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.payment-panel {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: paymentPanelIn 0.35s ease;
}

@keyframes paymentPanelIn {
    from { opacity: 0; transform: translateY(8px) rotateX(8deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.payment-panel-title {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.payment-panel-text {
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.payment-bank-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
}

.payment-bank-row:last-child {
    border-bottom: none;
}

.payment-bank-row span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.payment-bank-row strong {
    color: var(--text-light);
    text-align: left;
}

.payment-bank-row strong.mono {
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.payment-qr-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.payment-qr-box {
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
}

.payment-qr-box img {
    width: 100px;
    height: 100px;
    display: block;
}

.payment-bank-rows.compact .payment-bank-row {
    padding: 0.35rem 0;
    font-size: 0.65rem;
}

.payment-panel-note {
    font-size: 0.62rem;
    color: rgba(245, 158, 11, 0.85);
    line-height: 1.45;
}

.service-modal-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.service-modal-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.service-modal-buy-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .service-modal {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .service-modal-panel {
        max-height: min(88vh, 100dvh);
        height: min(88vh, 100dvh);
    }

    .service-modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .service-modal-media {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        height: 140px;
        min-height: 140px;
        max-height: 140px;
    }

    .service-modal-image,
    .service-modal-placeholder {
        height: 140px;
        min-height: 140px;
        max-height: 140px;
    }

    .service-modal-body {
        padding: 1.2rem 1rem 0.85rem;
        height: auto;
    }

    .service-modal-desc-box {
        min-height: 70px;
        max-height: none;
        overflow: visible;
    }

    .service-modal-title {
        font-size: 1.45rem;
    }

    .payment-qr-wrap {
        flex-direction: column;
        align-items: center;
    }

    .payment-qr-box img {
        width: 88px;
        height: 88px;
    }

    .service-modal-footer {
        padding-top: 0.7rem;
        padding-bottom: 0.15rem;
    }

    .service-modal-buy-btn {
        padding: 0.75rem 1rem;
        font-size: 0.72rem;
    }
}

/* ?? Sobre Nosotros: layout, stats y testimonios ?? */
.about-section {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.about-section-layout {
    width: 100%;
    max-width: var(--landing-rail-max);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 3vh, 2.25rem);
    pointer-events: auto;
    text-align: left;
    overflow-x: hidden;
}

.about-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: stretch;
    width: 100%;
}

.about-intro-block {
    max-width: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.35rem 0.15rem;
}

.about-intro-block .section-tag {
    margin-bottom: 0.65rem;
}

.about-title {
    font-size: clamp(2.1rem, 3.6vw, 3.15rem);
    margin: 0 0 1rem;
    line-height: 1.08;
    max-width: 18ch;
    text-shadow: 0 10px 36px rgba(10, 5, 18, 0.4);
}

.about-desc {
    margin: 0;
    font-size: clamp(0.88rem, 1.15vw, 0.98rem);
    line-height: 1.75;
    max-width: 46ch;
    color: rgba(241, 236, 247, 0.72);
    font-weight: 300;
}

.about-stats-panel {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 1.1rem 0.85rem;
    width: 100%;
    align-self: center;
}

.about-stat-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-stat-3d {
    perspective: 720px;
    perspective-origin: center center;
}

.about-stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.08rem;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.about-stat-item.is-spinning .about-stat-value {
    animation: aboutStatFlip3d 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes aboutStatFlip3d {
    0% {
        transform: rotateY(-720deg) scale(0.35);
        opacity: 0;
    }
    55% {
        opacity: 1;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.about-stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 4px 24px rgba(140, 126, 255, 0.35);
}

.about-stat-suffix {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    color: var(--secondary-color);
    text-shadow: 0 2px 16px rgba(236, 72, 153, 0.25);
}

.about-stat-label {
    margin: 0.45rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(207, 201, 255, 0.62);
    line-height: 1.35;
    max-width: 9rem;
}

.about-stat-divider {
    width: 1px;
    align-self: stretch;
    margin: 0.55rem 0;
    background: linear-gradient(180deg, transparent, rgba(207, 201, 255, 0.28), transparent);
    flex-shrink: 0;
}

.about-testimonials-zone {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.about-testimonials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.about-testimonials-copy {
    flex: 1 1 auto;
    min-width: min(100%, 18rem);
    padding: 0.25rem 0.1rem;
}

.about-testimonials-copy .section-tag {
    margin-bottom: 0.55rem;
}

.about-testimonials-title {
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 300;
    margin: 0;
    line-height: 1.15;
    max-width: 18ch;
    text-shadow: 0 8px 28px rgba(10, 5, 18, 0.35);
}

.testimonial-open-btn {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(207, 201, 255, 0.22);
    background: rgba(140, 126, 255, 0.14);
    color: #cfc9ff;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.testimonial-open-btn:hover {
    background: rgba(140, 126, 255, 0.28);
    border-color: rgba(207, 201, 255, 0.35);
    transform: translateY(-1px);
}

.testimonials-marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.2rem 0;
    border-radius: 12px;
}

.testimonials-marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-marquee-fade-left {
    left: 0;
    background: linear-gradient(90deg, rgba(4, 7, 18, 0.7), transparent);
}

.testimonials-marquee-fade-right {
    right: 0;
    background: linear-gradient(270deg, rgba(4, 7, 18, 0.7), transparent);
}

.testimonials-marquee-track {
    display: flex;
    gap: 0.55rem;
    width: max-content;
    padding: 0.15rem 0.25rem;
}

.testimonials-marquee-track.is-animating {
    animation: testimonialMarquee var(--marquee-duration, 35s) linear infinite;
}

.testimonials-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes testimonialMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex: 0 0 178px;
    width: 178px;
    padding: 0.6rem 0.7rem 0.5rem;
    border-radius: 11px;
    background: transparent;
    border: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition:
        background 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        transform 0.45s ease;
    cursor: default;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(140, 126, 255, 0.14);
    transform: translateY(-3px) scale(1.02);
    z-index: 3;
}

.testimonial-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    opacity: 0.12;
    transition: opacity 0.45s ease;
}

.testimonial-card:hover .testimonial-stars {
    opacity: 1;
}

.testimonial-star {
    width: 9px;
    height: 9px;
    fill: #fbbf24;
    filter: none;
    transition: filter 0.45s ease;
}

.testimonial-card:hover .testimonial-star {
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.55));
}

.testimonial-text {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.5;
    color: rgba(248, 250, 252, 0.07);
    font-weight: 300;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.45s ease;
}

.testimonial-card:hover .testimonial-text {
    color: rgba(248, 250, 252, 0.96);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid transparent;
    opacity: 0.1;
    transition: opacity 0.45s ease, border-color 0.45s ease;
}

.testimonial-card:hover .testimonial-author {
    opacity: 1;
    border-top-color: rgba(255, 255, 255, 0.12);
}

.testimonial-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    background: rgba(140, 126, 255, 0.12);
    flex-shrink: 0;
    transition: transform 0.45s ease, box-shadow 0.45s ease, color 0.45s ease, background 0.45s ease;
}

.testimonial-card:hover .testimonial-avatar {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(140, 126, 255, 0.35);
}

.testimonial-name {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.45s ease;
}

.testimonial-card:hover .testimonial-name {
    color: rgba(248, 250, 252, 0.9);
}

.testimonials-empty-banner {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.72rem;
}

/* Modal peque?o testimonio */
.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.testimonial-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.testimonial-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 18, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.testimonial-modal-panel {
    position: relative;
    width: 100%;
    max-width: 340px;
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 16px;
    background: rgba(12, 18, 38, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-modal.is-open .testimonial-modal-panel {
    transform: translateY(0) scale(1);
}

.testimonial-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.testimonial-modal-close svg {
    width: 14px;
    height: 14px;
}

.testimonial-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.testimonial-form-title {
    margin: 0 1.5rem 0.2rem 0;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: #f8fafc;
}

.testimonial-form-subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #f8fafc;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    outline: none;
    resize: vertical;
}

.testimonial-form input:focus,
.testimonial-form textarea:focus {
    border-color: rgba(140, 126, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(140, 126, 255, 0.12);
}

.testimonial-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.testimonial-submit-btn {
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(140, 126, 255, 0.45);
    background: rgba(140, 126, 255, 0.2);
    color: #e0e7ff;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.testimonial-submit-btn:hover:not(:disabled) {
    background: rgba(140, 126, 255, 0.35);
}

.testimonial-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.testimonial-form-message {
    margin: 0;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

.testimonial-form-message.is-success { color: #34d399; }
.testimonial-form-message.is-error { color: #f87171; }
.testimonial-form-message.is-info { color: #93c5fd; }

/* ?? Promo cup?n landing ?? */
.landing-promo-teaser {
    position: fixed;
    left: calc(1rem + env(safe-area-inset-left, 0px));
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 10040;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(280px, calc(100vw - 2rem));
    padding: 0.65rem 0.85rem 0.65rem 0.7rem;
    border: 1px solid rgba(140, 126, 255, 0.28);
    border-radius: 16px;
    background: rgba(10, 8, 20, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    color: var(--text-light);
    cursor: pointer;
    text-align: left;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 24px rgba(140, 126, 255, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s, border-color 0.25s ease, box-shadow 0.25s ease;
    pointer-events: none;
    overflow: hidden;
}

body.site-entered .landing-promo-teaser {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.landing-promo-teaser-glow {
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 120deg, transparent, rgba(140, 126, 255, 0.2), transparent, rgba(56, 248, 255, 0.15), transparent);
    animation: landingPromoGlowSpin 6s linear infinite;
    pointer-events: none;
}

.landing-promo-teaser-ring {
    display: none;
}

.landing-promo-teaser-core {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.landing-promo-teaser-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(140, 126, 255, 0.45));
}

.landing-promo-teaser-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.landing-promo-teaser-line {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.82);
}

.landing-promo-teaser-highlight {
    color: #cfc9ff;
    font-weight: 600;
}

.landing-promo-teaser-cta {
    margin-top: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(140, 126, 255, 0.95);
}

.landing-promo-teaser:hover {
    border-color: rgba(140, 126, 255, 0.5);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(140, 126, 255, 0.2);
    transform: translateY(-2px);
}

body.service-modal-open .landing-promo-teaser,
body.promo-modal-open .landing-promo-teaser {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes landingPromoGlowSpin {
    to { transform: rotate(360deg); }
}

.promo-coupon-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.promo-coupon-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.promo-coupon-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 4, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.promo-coupon-modal-panel {
    position: relative;
    width: min(420px, 100%);
    max-height: min(90vh, 640px);
    overflow-y: auto;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(140, 126, 255, 0.25);
    background: linear-gradient(160deg, rgba(18, 12, 32, 0.95), rgba(10, 8, 18, 0.92));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(140, 126, 255, 0.12);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-coupon-modal.is-open .promo-coupon-modal-panel {
    transform: translateY(0) scale(1);
}

.promo-coupon-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-coupon-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

.promo-coupon-modal-close svg {
    width: 16px;
    height: 16px;
}

.promo-coupon-modal-badge {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.promo-coupon-modal-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 400;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 0.45rem;
}

.promo-coupon-modal-subtitle {
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.promo-coupon-modal-subtitle strong {
    color: #a5b4fc;
}

.promo-coupon-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.promo-coupon-form input {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-coupon-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.promo-coupon-form input:focus {
    border-color: rgba(140, 126, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(140, 126, 255, 0.12);
}

.promo-coupon-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.promo-coupon-submit-btn {
    width: 100%;
    padding: 0.78rem 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-coupon-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.promo-coupon-submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.promo-coupon-form-message {
    font-size: 0.72rem;
    text-align: center;
    min-height: 1rem;
}

.promo-coupon-form-message.is-success { color: #34d399; }
.promo-coupon-form-message.is-error { color: #f87171; }
.promo-coupon-form-message.is-info { color: #93c5fd; }

.promo-coupon-success {
    text-align: center;
}

.promo-coupon-success-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.promo-coupon-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(140, 126, 255, 0.4);
    background: rgba(140, 126, 255, 0.08);
    margin-bottom: 0.75rem;
}

.promo-coupon-code-display {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e9d5ff;
}

.promo-coupon-copy-btn {
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-size: 0.68rem;
    cursor: pointer;
}

.promo-coupon-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.promo-coupon-success-note {
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.promo-coupon-close-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--text-light);
    font-size: 0.78rem;
    cursor: pointer;
}

.promo-coupon-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ?? Portafolio Cover Flow 3D ?? */
.portfolio-section {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: clamp(4.75rem, 9vh, 6.25rem);
    padding-bottom: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.portfolio-section-layout {
    width: 100%;
    max-width: var(--landing-rail-max);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    pointer-events: auto;
    text-align: left;
}

.portfolio-header .section-tag {
    margin-bottom: 0.4rem;
}

.portfolio-header .section-desc,
.portfolio-desc {
    margin-bottom: 0;
    line-height: 1.45;
}

/* Escritorio: detalles visuales del portafolio */
@media (min-width: 969px) {
    .portfolio-title {
        margin-top: 0;
        margin-bottom: 0.25rem;
        font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    }

    .portfolio-header .section-tag {
        margin-bottom: 0.35rem;
    }

    .portfolio-desc {
        font-size: clamp(0.8rem, 0.95vw, 0.88rem);
        line-height: 1.4;
    }

    .portfolio-coverflow-stage--wide .portfolio-coverflow-floor {
        width: min(100%, 960px);
        height: 170px;
        bottom: 6%;
    }

    .portfolio-coverflow-stage--landscape .coverflow-card-face img,
    .portfolio-coverflow-stage--landscape .coverflow-card-face .portfolio-slide-placeholder {
        aspect-ratio: 16 / 10;
        min-height: 0;
        object-position: top center;
    }

    .portfolio-coverflow-stage--landscape .portfolio-slide-placeholder {
        min-height: 200px;
    }

    .portfolio-slide {
        width: clamp(260px, 32vw, 460px);
    }

    .portfolio-active-title {
        font-size: 0.76rem;
        max-width: 120px;
    }

    .portfolio-active-link {
        font-size: 0.46rem;
        padding: 0.25rem 0.5rem;
    }

    .portfolio-active-link-url {
        max-width: 100px;
        font-size: 0.44rem;
    }

    .portfolio-nav {
        width: 44px;
        height: 44px;
    }

    .portfolio-nav svg {
        width: 22px;
        height: 22px;
    }

    .portfolio-nav--prev {
        left: 3.5%;
    }

    .portfolio-nav--next {
        right: 3.5%;
    }

    .portfolio-ui-row {
        bottom: 1.5%;
    }

    .coverflow-card-spine {
        width: 14px;
        right: -14px;
    }
}

.portfolio-header {
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.portfolio-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    margin-bottom: 0.35rem;
    line-height: 1.1;
    padding-top: 0;
}

.portfolio-desc {
    max-width: 540px;
    opacity: 0.82;
}

/* Escenario Cover Flow */
.portfolio-coverflow-stage {
    position: relative;
    width: var(--portfolio-stage-width);
    max-width: min(var(--portfolio-stage-max), 100%);
    height: clamp(280px, calc(100vh - 18rem), 500px);
    perspective: 1100px;
    perspective-origin: 50% 16%;
    margin-top: 0.15rem;
    overflow: hidden;
}

.portfolio-coverflow-stage--compact {
    height: clamp(280px, 44vh, 380px);
    perspective-origin: 50% 18%;
}

.portfolio-coverflow-stage--no-reflect .coverflow-card-face {
    -webkit-box-reflect: none;
}

.portfolio-coverflow-floor {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%) rotateX(72deg);
    width: min(720px, 92vw);
    height: 140px;
    background: radial-gradient(ellipse at center, rgba(160, 170, 190, 0.22) 0%, rgba(80, 90, 110, 0.08) 45%, transparent 72%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.portfolio-coverflow-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 42%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.portfolio-3d-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 2;
}

/* Slide base ? tarjeta vertical (transform v?a JS continuo) */
.portfolio-slide {
    position: absolute;
    left: 50%;
    top: 20%;
    width: clamp(140px, 18vw, 210px);
    margin: 0;
    transform-style: preserve-3d;
    transform: translate(-50%, 0) translateZ(-420px) scale(0.18);
    opacity: 0;
    transition: none;
    pointer-events: none;
    will-change: transform, opacity, filter;
    z-index: 1;
    backface-visibility: hidden;
}

.portfolio-slide.is-center .coverflow-card-face {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 28px 70px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(99, 102, 241, 0.12);
}

.coverflow-item {
    transform-style: preserve-3d;
}

.coverflow-card {
    position: relative;
    transform-style: preserve-3d;
}

/* Lomo / grosor 3D del marco */
.coverflow-card-spine {
    position: absolute;
    top: 4px;
    right: -10px;
    width: 10px;
    height: calc(100% - 8px);
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
    transform: rotateY(90deg);
    transform-origin: left center;
    border-radius: 0 2px 2px 0;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.coverflow-card-face {
    position: relative;
    background: #0c0c0c;
    border: 3px solid #111;
    outline: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 18px 50px rgba(0, 0, 0, 0.65),
        0 4px 12px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transform-style: preserve-3d;
    -webkit-box-reflect: below 6px linear-gradient(transparent 55%, rgba(180, 190, 210, 0.18) 100%);
}

.portfolio-slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.portfolio-slide.is-center .portfolio-slide-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.portfolio-slide-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.85rem 0.75rem 0.75rem;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 6, 18, 0.55) 18%, rgba(8, 6, 18, 0.94) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-slide-overlay-badge {
    display: inline-block;
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #00f0ff;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

.portfolio-slide-overlay-title {
    font-family: var(--font-serif);
    font-size: clamp(0.85rem, 2.2vw, 1.15rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.portfolio-slide-overlay-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.15rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.45);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18) 0%, rgba(140, 126, 255, 0.22) 50%, rgba(192, 38, 255, 0.16) 100%);
    box-shadow:
        0 0 18px rgba(0, 240, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-slide-overlay-link:hover {
    transform: translateY(-1px);
    border-color: rgba(192, 38, 255, 0.65);
    box-shadow:
        0 0 24px rgba(0, 240, 255, 0.28),
        0 0 36px rgba(140, 126, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.portfolio-slide-overlay-link-main {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
}

.portfolio-slide-overlay-link-text {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
}

.portfolio-slide-overlay-link-main svg {
    flex-shrink: 0;
    color: #00f0ff;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.portfolio-slide-overlay-link-url {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(207, 201, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.coverflow-card-face img,
.coverflow-card-face .portfolio-slide-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: top center;
    vertical-align: top;
}

.portfolio-slide-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 280px;
}

.portfolio-ph-num {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1;
}

.portfolio-ph-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 0 0.5rem;
}

.portfolio-slide-caption {
    display: none;
}

.portfolio-slide-caption-url {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    color: rgba(165, 180, 252, 0.85);
    margin-top: 0.15rem;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-slide.is-center .portfolio-slide-caption {
    opacity: 1;
}

.portfolio-slide-caption a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.25s ease;
}

.portfolio-slide-caption a:hover {
    color: #a5b4fc;
}

/* Navegaci?n lateral */
.portfolio-nav {
    position: absolute;
    top: 30%;
    transform: translateY(0);
    z-index: 20;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 14, 33, 0.55);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    padding: 0;
}

.portfolio-nav svg {
    width: 18px;
    height: 18px;
}

.portfolio-nav:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(129, 140, 248, 0.45);
    color: #fff;
}

.portfolio-nav--prev { left: 2%; }
.portfolio-nav--next { right: 2%; }

.portfolio-ui-stack {
    position: relative;
    z-index: 5;
    width: min(100%, 420px);
    margin: 0.15rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
}

.portfolio-active-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem 0.65rem;
    text-align: left;
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 10, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.portfolio-active-badge {
    display: none;
}

.portfolio-active-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #f1ecf7;
    line-height: 1.2;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-active-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(99, 102, 241, 0.15);
    color: #e0e7ff;
    font-family: var(--font-mono);
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    max-width: min(220px, 52vw);
}

.portfolio-active-link.is-hidden {
    display: none;
}

.portfolio-active-link:hover {
    color: #fff;
    transform: none;
    border-color: rgba(0, 240, 255, 0.55);
    background: rgba(99, 102, 241, 0.28);
    box-shadow: none;
}

.portfolio-active-link-label {
    flex-shrink: 0;
}

.portfolio-active-link-url {
    font-size: 0.46rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(199, 210, 254, 0.88);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.portfolio-active-link svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.portfolio-ui-row {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
}

.portfolio-progress-dots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 280px;
}

.portfolio-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.portfolio-dot.is-active {
    background: #a5b4fc;
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(165, 180, 252, 0.55);
}

.portfolio-counter {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    min-width: 3rem;
}

/* ?? Beneficios al contratar ?? */
.benefits-section {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.benefits-section-layout {
    width: 100%;
    max-width: var(--landing-rail-max);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.5rem);
    pointer-events: auto;
    text-align: left;
    overflow-x: hidden;
}

.benefits-header {
    max-width: 100%;
}

.benefits-title {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    margin-bottom: 0.75rem;
    line-height: 1.08;
}

.benefits-desc {
    margin-bottom: 0;
    font-size: clamp(0.82rem, 1.1vw, 0.92rem);
    max-width: 52ch;
}

#nosotros.about-section,
#beneficios.benefits-section {
    align-items: flex-start;
}

#nosotros .about-section-layout,
#beneficios .benefits-section-layout {
    width: 100%;
    max-width: var(--landing-rail-max);
    min-width: 0;
    margin-inline: 0;
    flex: 0 0 auto;
    align-self: flex-start;
    box-sizing: border-box;
    overflow-x: hidden;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
}

.benefit-card {
    grid-column: span 2;
    position: relative;
    padding: 1rem 0.95rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.benefit-card:nth-child(4),
.benefit-card:nth-child(5) {
    grid-column: span 3;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(140, 126, 255, 0.08), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(140, 126, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 36px rgba(140, 126, 255, 0.12);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 126, 255, 0.12);
    border: 1px solid rgba(140, 126, 255, 0.22);
    flex-shrink: 0;
}

.benefit-card[data-benefit="analytics"] .benefit-icon-wrap {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.22);
}

.benefit-card[data-benefit="coupon"] .benefit-icon-wrap {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.22);
}

.benefit-card[data-benefit="mass"] .benefit-icon-wrap {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
}

.benefit-card[data-benefit="automation"] .benefit-icon-wrap {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
}

.benefit-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.benefit-card[data-benefit="analytics"] .benefit-icon {
    color: #60a5fa;
}

.benefit-card[data-benefit="coupon"] .benefit-icon {
    color: #f472b6;
}

.benefit-card[data-benefit="mass"] .benefit-icon {
    color: #34d399;
}

.benefit-card[data-benefit="automation"] .benefit-icon {
    color: #fbbf24;
}

.benefit-card-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: #f8fafc;
    line-height: 1.25;
    position: relative;
}

.benefit-card-desc {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.62);
    font-weight: 300;
    flex: 1;
    position: relative;
}

.benefit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    position: relative;
}

.benefit-tag {
    font-family: var(--font-mono);
    font-size: 0.48rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    color: rgba(196, 181, 253, 0.85);
    background: rgba(140, 126, 255, 0.1);
    border: 1px solid rgba(140, 126, 255, 0.18);
}

.benefit-card[data-benefit="analytics"] .benefit-tag {
    color: rgba(147, 197, 253, 0.9);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.18);
}

.benefit-card[data-benefit="coupon"] .benefit-tag {
    color: rgba(251, 182, 206, 0.9);
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.18);
}

.benefit-card[data-benefit="mass"] .benefit-tag {
    color: rgba(110, 231, 183, 0.9);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.18);
}

.benefit-card[data-benefit="automation"] .benefit-tag {
    color: rgba(253, 224, 138, 0.9);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.18);
}

.benefits-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem 1.25rem;
    padding-top: 0.25rem;
}

.benefits-cta-note {
    margin: 0;
    font-size: 0.65rem;
    color: var(--text-muted);
    max-width: 36ch;
    line-height: 1.45;
    text-align: left;
}

@keyframes benefitsElectricPulse {
    0%, 100% {
        box-shadow:
            0 0 14px rgba(0, 240, 255, 0.4),
            0 0 28px rgba(140, 126, 255, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        border-color: rgba(0, 240, 255, 0.65);
    }
    50% {
        box-shadow:
            0 0 28px rgba(0, 240, 255, 0.85),
            0 0 52px rgba(192, 38, 255, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.45);
        border-color: rgba(192, 38, 255, 0.9);
    }
}

@keyframes navElectricPulse {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(0, 240, 255, 0.3),
            0 2px 5px rgba(140, 126, 255, 0.12);
        border-color: rgba(0, 240, 255, 0.65);
    }
    50% {
        box-shadow:
            0 0 12px rgba(0, 240, 255, 0.5),
            0 2px 7px rgba(192, 38, 255, 0.18);
        border-color: rgba(192, 38, 255, 0.85);
    }
}

@keyframes benefitsElectricShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes benefitsElectricSweep {
    0%, 18% { transform: translateX(-120%); opacity: 0; }
    35% { opacity: 1; }
    55%, 100% { transform: translateX(120%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-cta-btn,
    .landing-cta-btn::before,
    .landing-cta-btn::after,
    .nav-link-electric,
    .nav-link-electric::before,
    .mobile-nav-portal-fab,
    .mobile-nav-portal-fab::before,
    .navbar-audio-btn,
    .mobile-nav-item.nav-menu-electric .mobile-nav-icon-wrap,
    .mobile-nav-item.nav-menu-electric .mobile-nav-label,
    .scroll-dot-electric {
        animation: none;
    }

    .landing-cta-btn::after {
        display: none;
    }
}

/* Men? Beneficios ? contorno el?ctrico sin relleno */
.nav-links a.nav-link-electric {
    color: #dffbff !important;
    min-height: 36px;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.72);
    background: transparent;
    box-shadow:
        0 0 10px rgba(0, 240, 255, 0.28),
        inset 0 0 12px rgba(0, 240, 255, 0.04);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
    animation: navElectricPulse 1.6s ease-in-out infinite;
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: visible;
}

.nav-links a.nav-link-electric::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        120deg,
        rgba(0, 240, 255, 0.95) 0%,
        rgba(140, 126, 255, 0.85) 45%,
        rgba(192, 38, 255, 0.9) 78%,
        rgba(0, 240, 255, 0.95) 100%
    );
    background-size: 220% 220%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: benefitsElectricShift 3.2s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.85;
}

.nav-links a.nav-link-electric.nav-link-active {
    color: #ffffff !important;
    border-color: rgba(0, 240, 255, 0.92);
    box-shadow:
        0 0 16px rgba(0, 240, 255, 0.48),
        0 0 24px rgba(192, 38, 255, 0.22),
        inset 0 0 14px rgba(0, 240, 255, 0.06);
    opacity: 1;
}

.nav-links a.nav-link-electric:not(.nav-link-active) {
    opacity: 0.9;
}

.nav-links a.nav-link-electric:hover {
    color: #ffffff !important;
    background: transparent;
    filter: brightness(1.08);
    box-shadow:
        0 0 14px rgba(0, 240, 255, 0.45),
        0 0 22px rgba(192, 38, 255, 0.18),
        inset 0 0 14px rgba(0, 240, 255, 0.05);
}

.mobile-nav-item.nav-menu-electric {
    color: #dffbff;
}

.mobile-nav-item.nav-menu-electric .mobile-nav-icon-wrap {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.62);
    box-shadow:
        0 0 12px rgba(0, 240, 255, 0.32),
        inset 0 0 10px rgba(0, 240, 255, 0.04);
    animation: navElectricPulse 1.6s ease-in-out infinite;
}

.mobile-nav-item.nav-menu-electric .mobile-nav-label {
    opacity: 1;
    font-weight: 700;
    color: #7df9ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    animation: navElectricLabelPulse 1.6s ease-in-out infinite;
}

.mobile-nav-item.nav-menu-electric svg {
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.8));
}

.mobile-nav-item.nav-menu-electric.active .mobile-nav-icon-wrap {
    background: transparent;
    border-color: rgba(192, 38, 255, 0.82);
    box-shadow:
        0 0 16px rgba(0, 240, 255, 0.42),
        0 0 22px rgba(192, 38, 255, 0.24),
        inset 0 0 12px rgba(192, 38, 255, 0.06);
}

.scroll-dot.scroll-dot-electric {
    background: rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
    animation: benefitsElectricPulse 1.6s ease-in-out infinite;
}

.scroll-dot.scroll-dot-electric.active {
    background: #00f0ff;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.85), 0 0 22px rgba(192, 38, 255, 0.35);
}

@keyframes navElectricLabelPulse {
    0%, 100% { opacity: 0.82; }
    50% { opacity: 1; }
}

@media (max-width: 968px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .benefit-card,
    .benefit-card:nth-child(4),
    .benefit-card:nth-child(5) {
        grid-column: span 1;
        max-width: none;
        width: 100%;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    .about-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .about-hero-row {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .about-stats-panel {
        max-width: 100%;
    }

    .about-title {
        font-size: clamp(1.85rem, 7vw, 2.15rem);
        max-width: none;
    }

    .about-desc {
        max-width: none;
    }

    .about-testimonials-title {
        max-width: none;
        font-size: clamp(1.4rem, 5.5vw, 1.75rem);
    }

    .testimonial-card {
        flex: 0 0 158px;
        width: 158px;
    }

    .benefits-section {
        padding-top: 0;
        padding-bottom: 0;
    }

    .benefits-title {
        font-size: 1.85rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .benefit-card,
    .benefit-card:nth-child(4),
    .benefit-card:nth-child(5) {
        grid-column: span 1;
        max-width: none;
        width: 100%;
    }

    .benefit-card {
        padding: 0.85rem 0.9rem;
    }

    .benefits-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .benefits-cta-btn,
    .benefits-cta-row .landing-cta-btn {
        width: 100%;
        text-align: center;
    }

    .benefits-cta-note {
        max-width: none;
        text-align: left;
    }

    .about-testimonials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .testimonial-open-btn {
        width: 100%;
        text-align: center;
    }
}

/* ?? Landing responsive: visibilidad y scroll en m?vil/tablet ?? */
@media (max-width: 968px) {
    :root {
        --mobile-dock-clearance: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .cinematic-section {
        padding:
            calc(4.75rem + env(safe-area-inset-top, 0px))
            6%
            calc(6.25rem + var(--mobile-dock-clearance));
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .cinematic-section.active {
        pointer-events: auto;
    }

    .section-content,
    .about-section-layout,
    .benefits-section-layout,
    .portfolio-section-layout,
    .sistemas-section-layout,
    .contact-clean-layout {
        width: 100%;
        max-width: var(--landing-rail-max);
        min-width: 0;
        flex: 0 0 auto;
        align-self: flex-start;
        box-sizing: border-box;
        margin-block: 0;
    }

    #inicio .section-content {
        max-width: var(--landing-rail-max);
        padding-right: 3.75rem;
    }

    #inicio .section-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .about-section,
    .benefits-section,
    .portfolio-section {
        align-items: flex-start;
        padding-top: 0;
    }

    .about-section-layout,
    .benefits-section-layout,
    .portfolio-section-layout {
        padding-bottom: 0.5rem;
    }

    .portfolio-header {
        max-width: none;
    }

    .portfolio-desc {
        max-width: none;
    }

    .portfolio-coverflow-stage {
        width: var(--portfolio-stage-width);
        max-width: 100%;
        height: clamp(200px, calc(100dvh - 22rem), 340px);
        margin-top: 0.1rem;
    }

    .portfolio-coverflow-stage--landscape .coverflow-card-face img,
    .portfolio-coverflow-stage--landscape .coverflow-card-face .portfolio-slide-placeholder {
        aspect-ratio: 16 / 12;
    }

    .portfolio-slide-overlay-inner {
        padding: 0.75rem 0.65rem 0.65rem;
        gap: 0.4rem;
    }

    .portfolio-slide-overlay-badge {
        font-size: 0.48rem;
    }

    .portfolio-slide-overlay-title {
        font-size: clamp(0.82rem, 3.5vw, 1.05rem);
    }

    .portfolio-slide-overlay-link {
        padding: 0.5rem 0.6rem;
    }

    .portfolio-slide-overlay-link-text {
        font-size: 0.55rem;
    }

    .portfolio-slide-overlay-link-url {
        font-size: 0.52rem;
    }

    .portfolio-coverflow-floor {
        width: 100%;
        height: 90px;
        bottom: 10%;
    }

    .portfolio-coverflow-stage--compact .portfolio-coverflow-floor {
        height: 70px;
    }

    .portfolio-nav {
        width: 44px;
        height: 44px;
        top: 28%;
    }

    .portfolio-nav--prev { left: 1%; }
    .portfolio-nav--next { right: 1%; }

    .portfolio-ui-stack {
        width: 100%;
        padding: 0;
        gap: 0.35rem;
        margin-left: 0;
        margin-right: auto;
    }

    .portfolio-active-meta {
        padding: 0.3rem 0.55rem;
    }

    .portfolio-active-title {
        font-size: 0.85rem;
        max-width: 140px;
    }

    .portfolio-active-link {
        font-size: 0.62rem;
        max-width: min(220px, 52vw);
    }

    .portfolio-active-link-url {
        max-width: 120px;
        font-size: 0.58rem;
    }

    .portfolio-ui-row {
        bottom: 2%;
    }

    .portfolio-slide-caption {
        bottom: -1.75rem;
        font-size: 0.65rem;
        max-width: 160px;
    }

    .coverflow-card-spine {
        width: 7px;
        right: -7px;
    }

    .portfolio-slide-placeholder {
        min-height: 200px;
    }

    .benefits-header {
        max-width: none;
    }

    .benefits-desc {
        max-width: none;
    }

    .contact-clean-layout {
        min-height: 0;
        justify-content: center;
        gap: 1.5rem;
    }

    .cinematic-footer-section {
        padding:
            calc(4.75rem + env(safe-area-inset-top, 0px))
            6%
            calc(6.25rem + var(--mobile-dock-clearance));
        align-items: flex-start;
        min-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-cta h2 {
        font-size: clamp(1.85rem, 6vw, 2.6rem);
    }

    .navbar {
        padding: 1rem 4%;
    }

    .landing-wa-electric {
        top: calc(4.5rem + env(safe-area-inset-top, 0px));
        bottom: auto;
        right: calc(0.75rem + env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
        transform: translateY(-8px) scale(0.92);
        transition: top 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body:not(.is-home-section) .landing-wa-electric {
        top: calc(1rem + env(safe-area-inset-top, 0px));
    }

    body.site-entered .landing-wa-electric {
        transform: translateY(0) scale(1);
    }

    .landing-wa-electric-core {
        width: 38px;
        height: 38px;
    }

    .landing-wa-electric-core svg {
        width: 20px;
        height: 20px;
    }

    .landing-promo-teaser {
        left: auto;
        bottom: auto;
        right: calc(0.75rem + env(safe-area-inset-right, 0px));
        top: calc(4.5rem + 44px + 0.5rem + env(safe-area-inset-top, 0px));
        width: 44px;
        height: 44px;
        max-width: none;
        padding: 0;
        gap: 0;
        border: none;
        border-radius: 50%;
        background: transparent;
        box-shadow: none;
        justify-content: center;
        align-items: center;
        overflow: visible;
        transform: translateY(-8px) scale(0.92);
    }

    body.site-entered .landing-promo-teaser {
        transform: translateY(0) scale(1);
    }

    .landing-promo-teaser-ring {
        display: block;
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        padding: 2px;
        background: conic-gradient(
            from 0deg,
            rgba(140, 126, 255, 0.08),
            rgba(167, 139, 250, 0.95),
            rgba(236, 72, 153, 0.75),
            rgba(140, 126, 255, 0.15),
            rgba(167, 139, 250, 0.95)
        );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: landingPromoRingSpin 3.4s linear infinite;
        filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
        pointer-events: none;
    }

    .landing-promo-teaser-glow {
        inset: 4px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 72%);
        animation: landingPromoFabPulse 2.4s ease-in-out infinite;
    }

    .landing-promo-teaser-core {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
        background: rgba(12, 8, 22, 0.42);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        border: 1px solid rgba(140, 126, 255, 0.22);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.04) inset,
            0 8px 22px rgba(0, 0, 0, 0.32),
            0 0 16px rgba(140, 126, 255, 0.14);
    }

    .landing-promo-teaser-text {
        display: none;
    }

    .landing-promo-teaser-icon {
        font-size: 1.15rem;
    }

    .landing-promo-teaser:hover {
        transform: translateY(0) scale(1);
        box-shadow: none;
    }

    .landing-promo-teaser:hover .landing-promo-teaser-core {
        transform: scale(1.06);
        border-color: rgba(167, 139, 250, 0.45);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.06) inset,
            0 10px 26px rgba(0, 0, 0, 0.38),
            0 0 26px rgba(167, 139, 250, 0.32);
    }

    .landing-promo-teaser:active .landing-promo-teaser-core {
        transform: scale(0.94);
    }

    @keyframes landingPromoRingSpin {
        to { transform: rotate(360deg); }
    }

    @keyframes landingPromoFabPulse {
        0%, 100% { opacity: 0.45; transform: scale(0.92); }
        50% { opacity: 1; transform: scale(1.08); }
    }

    .logo {
        font-size: 1.15rem;
        letter-spacing: 0.1em;
    }

    /* Testimonios: en t?ctil no hay hover ? m?s visibles por defecto */
    .testimonial-card {
        opacity: 0.88;
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .testimonial-text {
        color: rgba(248, 250, 252, 0.78);
    }

    .testimonial-stars {
        opacity: 0.85;
    }

    .testimonial-author {
        opacity: 0.75;
    }

    .testimonial-name {
        color: rgba(148, 163, 184, 0.65);
    }

    .testimonial-avatar {
        color: rgba(255, 255, 255, 0.65);
        background: rgba(140, 126, 255, 0.22);
    }

    .testimonial-modal-close {
        width: 44px;
        height: 44px;
        top: 0.5rem;
        right: 0.5rem;
    }

    .contact-clean-whatsapp {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0.35rem 0;
    }
}

@media (max-width: 480px) {
    .cinematic-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .navbar {
        padding: 0.75rem 4%;
    }

    #inicio .section-title {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
        margin-bottom: 1.25rem;
    }

    #inicio .section-desc {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    #inicio .section-content {
        padding-right: 3.25rem;
    }

    .benefits-title,
    .about-title {
        font-size: 1.65rem;
    }

    .benefits-desc,
    .about-desc {
        font-size: 0.8rem;
        line-height: 1.65;
    }

    .benefit-card-title {
        font-size: 0.95rem;
    }

    .benefit-card-desc {
        font-size: 0.72rem;
    }

    .benefit-tag {
        font-size: 0.52rem;
    }

    .benefit-icon-wrap {
        width: 32px;
        height: 32px;
    }

    .benefit-icon {
        width: 16px;
        height: 16px;
    }

    .about-stats-panel {
        flex-direction: row;
        justify-content: space-around;
        padding: 0.35rem 0;
    }

    .about-stat-number {
        font-size: 1.75rem;
    }

    .portfolio-title {
        font-size: 1.65rem;
        margin-bottom: 0.2rem;
    }

    .portfolio-desc {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .portfolio-coverflow-stage {
        height: clamp(180px, calc(100dvh - 24rem), 280px);
    }

    .portfolio-coverflow-floor {
        height: 55px;
        bottom: 12%;
    }

    .portfolio-slide-overlay-title {
        font-size: clamp(0.78rem, 3.8vw, 0.95rem);
    }

    .portfolio-slide-overlay-link-text {
        font-size: 0.52rem;
    }

    .portfolio-nav {
        width: 44px;
        height: 44px;
        opacity: 0.9;
        top: 30%;
    }

    .portfolio-nav svg {
        width: 15px;
        height: 15px;
    }

    .portfolio-progress-dots {
        max-width: 200px;
        gap: 4px;
    }

    .portfolio-dot {
        width: 5px;
        height: 5px;
    }

    .portfolio-counter {
        font-size: 0.58rem;
    }

    .portfolio-slide-caption {
        bottom: -1.5rem;
        max-width: 130px;
        font-size: 0.6rem;
    }

    .coverflow-card-face {
        border-width: 2px;
    }

    .portfolio-ph-num {
        font-size: 1.75rem;
    }

    .about-stat-suffix {
        font-size: 1.1rem;
    }

    .about-stat-divider {
        width: 1px;
        height: 36px;
        margin: 0;
    }

    .testimonials-marquee-wrap {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .testimonial-card {
        flex: 0 0 min(72vw, 240px);
        width: min(72vw, 240px);
        opacity: 0.92;
    }

    .contact-info-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .contact-info-item dt {
        font-size: 0.62rem;
    }

    .mobile-dock-wrap {
        left: 6px;
        right: 6px;
        gap: 6px;
    }

    .mobile-bottom-nav {
        height: 54px;
    }

    .mobile-nav-item {
        min-width: 46px;
        max-width: 56px;
        font-size: 0.42rem;
        gap: 2px;
    }

    .mobile-nav-icon-wrap {
        width: 28px;
        height: 28px;
    }

    .mobile-nav-item svg {
        width: 16px;
        height: 16px;
    }

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

    .mobile-nav-item.active .mobile-nav-label {
        display: block;
        font-size: 0.4rem;
    }

    .mobile-nav-portal-fab {
        width: 52px;
        height: 52px;
    }

    .mobile-nav-portal-text {
        font-size: 0.42rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .testimonial-card {
        opacity: 0.9;
    }

    .testimonial-text {
        color: rgba(248, 250, 252, 0.82);
    }

    .testimonial-card:active {
        opacity: 1;
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .testimonial-card:active .testimonial-text {
        color: rgba(248, 250, 252, 0.92);
    }

    .testimonial-card:active .testimonial-stars,
    .testimonial-card:active .testimonial-author {
        opacity: 1;
    }

    .benefit-card:active {
        transform: translateY(-2px);
        border-color: rgba(140, 126, 255, 0.28);
    }
}

/* Tablet: prioridad final sobre reglas m?vil gen?ricas */
@media (min-width: 600px) and (max-width: 968px) {
    :root {
        --mobile-dock-clearance: calc(82px + env(safe-area-inset-bottom, 0px));
    }

    .navbar {
        padding: 1.15rem 5%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .mobile-dock-wrap {
        left: 16px;
        right: 16px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    .mobile-bottom-nav {
        height: 70px;
        border-radius: 24px;
    }

    .mobile-nav-scroll {
        padding: 0 8px;
        gap: 4px;
    }

    .mobile-nav-item {
        min-width: 68px;
        max-width: 88px;
        font-size: 0.56rem;
        padding: 8px 6px;
        gap: 4px;
    }

    .mobile-nav-icon-wrap {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .mobile-nav-label {
        display: block;
        font-size: 0.48rem;
        opacity: 0.82;
    }

    .mobile-nav-item.active .mobile-nav-label {
        font-size: 0.5rem;
        opacity: 1;
    }

    .mobile-nav-portal-fab {
        width: 70px;
        height: 70px;
        border-radius: 22px;
    }

    .mobile-nav-portal-fab svg {
        width: 22px;
        height: 22px;
    }

    .mobile-nav-portal-text {
        display: block;
        font-size: 0.48rem;
    }
}

/* -------------------------------------------------------------
 * SISTEMAS A MEDIDA — entre Proyectos y Cinta (sin menú)
 * ------------------------------------------------------------- */

.sistemas-section {
    align-items: center;
    justify-content: center;
}

.sistemas-section-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    width: 100%;
    pointer-events: auto;
}

.sistemas-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sistemas-title {
    margin-top: 0.65rem;
    margin-bottom: 1rem;
    max-width: 16ch;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    line-height: 1.08;
}

.sistemas-desc {
    margin-bottom: 0;
    max-width: 42ch;
    color: rgba(241, 236, 247, 0.72);
}

.sistemas-actions {
    margin-top: 1.75rem;
}

.sistemas-cta {
    display: inline-flex;
}

.sistemas-visual {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

.sistemas-figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(207, 201, 255, 0.14);
    background: rgba(10, 5, 18, 0.35);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(140, 126, 255, 0.06);
}

.sistemas-figure--video {
    position: relative;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    /* Degradado suave en los 4 bordes */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image:
        linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.sistemas-video {
    display: block;
    width: 100%;
    height: clamp(360px, 68vh, 760px);
    object-fit: cover;
    object-position: center;
    opacity: 0.65;
    filter: saturate(1.08) contrast(1.03);
    mix-blend-mode: screen;
}

.sistemas-video-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 75% 70% at 50% 50%, transparent 35%, rgba(10, 5, 18, 0.45) 78%, rgba(10, 5, 18, 0.85) 100%),
        linear-gradient(to right, rgba(10, 5, 18, 0.7) 0%, transparent 18%, transparent 82%, rgba(10, 5, 18, 0.7) 100%),
        linear-gradient(to bottom, rgba(10, 5, 18, 0.65) 0%, transparent 20%, transparent 80%, rgba(10, 5, 18, 0.7) 100%),
        linear-gradient(145deg, rgba(140, 126, 255, 0.1) 0%, transparent 40%);
}

.sistemas-image {
    display: block;
    width: 100%;
    height: clamp(240px, 40vh, 480px);
    object-fit: cover;
    object-position: center;
}

.sistemas-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(200px, 36vh, 420px);
    border-radius: 20px;
    border: 1px dashed rgba(207, 201, 255, 0.28);
    background:
        linear-gradient(145deg, rgba(28, 20, 48, 0.55), rgba(10, 5, 18, 0.35)),
        radial-gradient(circle at 70% 30%, rgba(140, 126, 255, 0.18), transparent 55%);
    padding: 1.25rem;
    text-align: center;
}

.sistemas-placeholder-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(207, 201, 255, 0.55);
    max-width: 28ch;
    line-height: 1.5;
}

@media (max-width: 980px) {
    #sistemas.sistemas-section,
    .sistemas-section {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .sistemas-section-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-block: 0;
        align-self: flex-start;
        width: 100%;
        max-width: var(--landing-rail-max);
    }

    .sistemas-copy {
        order: 0;
        padding-top: 0.15rem;
    }

    .sistemas-tag.section-tag,
    .sistemas-copy .section-tag {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 2;
        margin-bottom: 0.55rem;
        font-size: 0.7rem;
        letter-spacing: 0.22em;
        color: var(--secondary-color);
    }

    .sistemas-title {
        max-width: none;
        margin-top: 0.35rem;
        font-size: clamp(1.85rem, 7vw, 2.45rem);
    }

    .sistemas-desc {
        max-width: none;
    }

    .sistemas-visual {
        max-width: none;
        width: 100%;
        order: 1;
    }

    .sistemas-figure,
    .sistemas-figure--video {
        transform: none;
        border-radius: 0;
    }

    .sistemas-video {
        height: clamp(200px, 42vw, 320px);
        mix-blend-mode: normal;
    }

    .sistemas-image {
        height: clamp(180px, 40vw, 280px);
    }

    .sistemas-actions {
        margin-top: 1.15rem;
    }
}

/* -------------------------------------------------------------
 * CINTA CINEMATOGR?FICA ? media pantalla, alto completo, bucle lento
 * ------------------------------------------------------------- */

#cinta.filmstrip-section,
.filmstrip-section.cinematic-section {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.filmstrip-section-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 100%;
    pointer-events: auto;
}

.filmstrip-copy {
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    height: 100%;
    padding:
        clamp(4.5rem, 10vh, 7rem)
        clamp(1.5rem, 5vw, 4.5rem)
        clamp(3rem, 8vh, 5rem)
        var(--landing-gutter-x);
    box-sizing: border-box;
    position: relative;
}

.filmstrip-title {
    margin-top: 0.85rem;
    max-width: 16ch;
    text-shadow: 0 10px 40px rgba(10, 5, 18, 0.45);
}

.filmstrip-desc {
    margin-top: 1.15rem;
    max-width: 38ch;
    color: rgba(241, 236, 247, 0.72);
}

.filmstrip-meta {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    opacity: 0.9;
}

.filmstrip-meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 12px rgba(140, 126, 255, 0.9);
    animation: filmstrip-pulse 2.2s ease-in-out infinite;
}

@keyframes filmstrip-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.filmstrip-stage {
    position: relative;
    height: 100%;
    min-height: 100%;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    isolation: isolate;
    overflow: hidden;
    perspective: 1600px;
    perspective-origin: 35% 50%;
    transform-style: preserve-3d;
}

.filmstrip-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 55% 50%, rgba(140, 126, 255, 0.38) 0%, rgba(10, 5, 18, 0) 68%),
        radial-gradient(circle at 78% 22%, rgba(207, 201, 255, 0.16), transparent 42%),
        linear-gradient(90deg, rgba(10, 5, 18, 0.55) 0%, transparent 28%);
    z-index: 0;
    pointer-events: none;
}

.filmstrip-glow::after {
    content: '';
    position: absolute;
    inset: 12% 8% 18% 18%;
    border-radius: 40% 60% 50% 50%;
    background: radial-gradient(circle, rgba(140, 126, 255, 0.22), transparent 70%);
    filter: blur(40px);
    animation: filmstrip-glow-drift 12s ease-in-out infinite alternate;
}

@keyframes filmstrip-glow-drift {
    from { transform: translate3d(-2%, 2%, 0) scale(0.96); opacity: 0.7; }
    to { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 1; }
}

.filmstrip-reel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: clamp(16px, 2.2vw, 28px) 1fr clamp(16px, 2.2vw, 28px);
    width: 100%;
    height: 100%;
    --film-rx: 4deg;
    --film-ry: -18deg;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.1) 0%, transparent 30%),
        linear-gradient(180deg, rgba(28, 20, 48, 0.52) 0%, rgba(18, 12, 34, 0.38) 45%, rgba(10, 5, 18, 0.45) 100%);
    border: none;
    border-left: 1px solid rgba(207, 201, 255, 0.22);
    border-radius: 0;
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 18px 0 40px rgba(255, 255, 255, 0.04),
        -28px 18px 70px rgba(0, 0, 0, 0.35),
        -8px 0 40px rgba(140, 126, 255, 0.14);
    overflow: hidden;
    transform-style: preserve-3d;
    transform: rotateY(var(--film-ry)) rotateX(var(--film-rx)) translateZ(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.filmstrip-section.active .filmstrip-reel {
    transform: rotateY(var(--film-ry)) rotateX(var(--film-rx)) translateZ(20px);
}

.filmstrip-reel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.02) 18%, transparent 38%),
        linear-gradient(to right, rgba(10,5,18,0.35), transparent 22%);
    mix-blend-mode: soft-light;
}

.filmstrip-reel::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -8%;
    height: 28%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), transparent 70%);
    filter: blur(18px);
    transform: translateZ(-32px) rotateX(68deg);
}

.filmstrip-sprocket {
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0 12px,
            rgba(207, 201, 255, 0.1) 12px 17px,
            transparent 17px 34px
        );
    border-inline: 1px solid rgba(207, 201, 255, 0.06);
    position: relative;
    opacity: 0.72;
}

.filmstrip-sprocket::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0 10px,
            rgba(10, 5, 18, 0.55) 10px 22px,
            transparent 22px 34px
        );
    -webkit-mask-image: radial-gradient(circle at 50% 17px, #000 0 4px, transparent 4.5px);
    -webkit-mask-size: 100% 34px;
    -webkit-mask-repeat: repeat-y;
    mask-image: radial-gradient(circle at 50% 17px, #000 0 4px, transparent 4.5px);
    mask-size: 100% 34px;
    mask-repeat: repeat-y;
    opacity: 0.95;
}

.filmstrip-viewport {
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: grab;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
    transform-style: preserve-3d;
    /* Degradado moderno arriba/abajo */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 6%,
        #000 16%,
        #000 84%,
        rgba(0, 0, 0, 0.35) 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 6%,
        #000 16%,
        #000 84%,
        rgba(0, 0, 0, 0.35) 94%,
        transparent 100%
    );
}

.filmstrip-track {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.6vh, 1.35rem);
    padding: clamp(0.9rem, 1.8vh, 1.4rem) clamp(0.75rem, 1.4vw, 1.35rem);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transform-style: preserve-3d;
}

.filmstrip-viewport.is-dragging {
    cursor: grabbing;
}

.filmstrip-viewport.is-dragging .filmstrip-track {
    transition: none;
}

.filmstrip-frame {
    margin: 0;
    flex: 0 0 auto;
    transform-style: preserve-3d;
    transform: translateZ(0) rotateY(5deg);
    transition: filter 0.35s ease;
    filter: brightness(0.94) saturate(0.96);
    backface-visibility: hidden;
}

.filmstrip-frame:nth-child(odd) {
    transform: translateZ(14px) rotateY(3deg) rotateX(-1deg);
}

.filmstrip-frame:nth-child(even) {
    transform: translateZ(6px) rotateY(7deg) rotateX(0.8deg);
}

/* Hover suave: sin pop 3D para evitar recortes */
.filmstrip-section.active .filmstrip-frame:hover {
    filter: brightness(1.06) saturate(1.05);
}

.filmstrip-section.active .filmstrip-frame:hover .filmstrip-frame-inner {
    border-color: rgba(207, 201, 255, 0.42);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 2px 0 rgba(255, 255, 255, 0.12) inset,
        0 0 0 1px rgba(140, 126, 255, 0.28),
        0 0 28px rgba(140, 126, 255, 0.18);
}

.filmstrip-frame-inner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(207, 201, 255, 0.28);
    background: rgba(8, 5, 15, 0.32);
    aspect-ratio: 16 / 10;
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 2px 0 rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(140, 126, 255, 0.12);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.filmstrip-frame-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        transparent 40%,
        transparent 68%,
        rgba(140, 126, 255, 0.18) 100%
    );
    mix-blend-mode: soft-light;
    opacity: 0.95;
}

.filmstrip-frame-inner::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(8, 5, 15, 0.42), transparent);
}

.filmstrip-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.04);
    opacity: 1;
}

.filmstrip-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0.82;
}

.filmstrip-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%),
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 45%);
    mix-blend-mode: screen;
    animation: filmstrip-shimmer 4.5s ease-in-out infinite;
}

.filmstrip-placeholder-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-style: italic;
    letter-spacing: 0.08em;
    color: rgba(241, 236, 247, 0.92);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@keyframes filmstrip-shimmer {
    0%, 100% { opacity: 0.35; transform: translateX(-8%); }
    50% { opacity: 0.7; transform: translateX(8%); }
}

.filmstrip-caption {
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    z-index: 3;
    padding: 0.55rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    background: rgba(10, 5, 18, 0.38);
    border: 1px solid rgba(207, 201, 255, 0.16);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
}

.filmstrip-caption-index {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--secondary-color);
}

.filmstrip-caption-title {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Velos de degradado f?sicos arriba/abajo (adem?s del mask) */
.filmstrip-edge {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: clamp(88px, 16vh, 150px);
    transform: none;
    z-index: 4;
    pointer-events: none;
    opacity: 1;
}

.filmstrip-edge--top {
    top: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 5, 18, 0.72) 0%,
        rgba(10, 5, 18, 0.35) 42%,
        rgba(10, 5, 18, 0) 100%
    );
}

.filmstrip-edge--bottom {
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(10, 5, 18, 0.72) 0%,
        rgba(10, 5, 18, 0.35) 42%,
        rgba(10, 5, 18, 0) 100%
    );
}

/* Responsive */
@media (max-width: 980px) {
    #cinta.filmstrip-section,
    .filmstrip-section.cinematic-section {
        padding: 0;
        overflow-y: auto;
    }

    .filmstrip-section-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(58vh, 1fr);
        min-height: 100%;
        height: auto;
    }

    .filmstrip-copy {
        height: auto;
        max-width: 100%;
        text-align: left;
        padding:
            clamp(4.25rem, 9vh, 5.5rem)
            var(--landing-gutter-x)
            1.25rem;
        justify-content: flex-end;
    }

    .filmstrip-title {
        max-width: 100%;
    }

    .filmstrip-desc {
        max-width: 100%;
    }

    .filmstrip-stage {
        height: min(62vh, 640px);
        min-height: 360px;
        width: 100%;
    }

    .filmstrip-reel {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(207, 201, 255, 0.14);
        border-radius: 22px 22px 0 0;
        box-shadow:
            0 -18px 40px rgba(0, 0, 0, 0.28),
            0 0 50px rgba(140, 126, 255, 0.1);
        --film-rx: 5deg;
        --film-ry: 0deg;
        transform: rotateY(var(--film-ry)) rotateX(var(--film-rx)) translateZ(0);
        transform-origin: center top;
    }

    .filmstrip-section.active .filmstrip-reel {
        transform: rotateY(var(--film-ry)) rotateX(var(--film-rx)) translateZ(10px);
    }

    .filmstrip-frame:nth-child(odd) {
        transform: translateZ(8px) rotateY(2deg);
    }

    .filmstrip-frame:nth-child(even) {
        transform: translateZ(4px) rotateY(4deg);
    }

    .filmstrip-section.active .filmstrip-frame:hover {
        filter: brightness(1.04) saturate(1.03);
    }

    .filmstrip-frame-inner {
        aspect-ratio: 16 / 11;
        border-radius: 12px;
    }

    .filmstrip-track {
        gap: 0.9rem;
    }

    .filmstrip-edge {
        height: clamp(64px, 12vh, 110px);
    }
}

@media (max-width: 640px) {
    .filmstrip-section-layout {
        grid-template-rows: auto minmax(52vh, 1fr);
    }

    .filmstrip-stage {
        height: min(56vh, 520px);
        min-height: 320px;
    }

    .filmstrip-sprocket {
        width: 14px;
    }

    .filmstrip-reel {
        grid-template-columns: 14px 1fr 14px;
    }

    .filmstrip-track {
        padding: 0.75rem 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .filmstrip-viewport {
        cursor: default;
    }

    .filmstrip-stage {
        perspective: none;
    }

    .filmstrip-reel,
    .filmstrip-section.active .filmstrip-reel,
    .filmstrip-frame,
    .filmstrip-frame:nth-child(odd),
    .filmstrip-frame:nth-child(even) {
        transform: none !important;
    }
}
