:root {
    --accent: #77E7FF;
    --dark: #050505;
    --ink: #E7E7EA;
}
html { background: #050505; }
body {
    background-color: #050505;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}
@media (min-width: 1024px) { body { cursor: none; } }

::selection { background: var(--accent); color: #000; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #1F1F22; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== LOADER ===== */
#loader {
    position: fixed; inset: 0; z-index: 200;
    background: #050505;
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 2rem;
    transition: clip-path 1.1s cubic-bezier(0.77,0,0.175,1);
    clip-path: inset(0 0 0 0);
    font-family: 'JetBrains Mono', monospace;
}
#loader.loader-done { clip-path: inset(0 0 100% 0); }
body:not(.loaded) { overflow: hidden; }
.loader-num {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(8rem, 28vw, 24rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--accent);
}
.loader-label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #666; }

/* ===== CURSOR ===== */
@media (min-width: 1024px) {
    #cursor {
        position: fixed; top: 0; left: 0;
        width: 10px; height: 10px;
        background: var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: width 0.35s cubic-bezier(.2,.8,.2,1), height 0.35s cubic-bezier(.2,.8,.2,1), background 0.3s;
        mix-blend-mode: difference;
        will-change: transform;
    }
    #cursor.cursor-expand { width: 90px; height: 90px; mix-blend-mode: difference; }
    #cursor.cursor-has-label { background: var(--accent); mix-blend-mode: normal; }
    #cursor-label {
        position: absolute; inset: 0;
        display: flex; align-items: center; justify-content: center;
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
        color: #000; opacity: 0;
        transition: opacity 0.3s;
        white-space: nowrap;
    }
    #cursor.cursor-has-label #cursor-label { opacity: 1; }
}

/* ===== NOISE ===== */
.noise {
    position: fixed; inset: 0; pointer-events: none; z-index: 50;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 100%;
    background: var(--accent); z-index: 60;
    transform-origin: 0 0; transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* ===== NAV ===== */
#main-nav {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
                background 0.4s ease,
                backdrop-filter 0.4s ease,
                padding-top 0.3s ease,
                padding-bottom 0.3s ease;
}
#main-nav.nav-hide { transform: translateY(-110%); }
#main-nav.nav-scrolled {
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    mix-blend-mode: normal;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
/* Logo siempre blanco — funciona con mix-blend-difference y sin él */
#main-nav img {
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}
#main-nav img:hover { opacity: 0.75; }

/* ===== TIPOGRAFÍA ===== */
.display { font-family: 'Syne', sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.mono { font-family: 'JetBrains Mono', monospace; }
.big-text {
    font-size: clamp(3.2rem, 13vw, 10.5rem);
    line-height: 0.86;
    letter-spacing: -0.04em;
}
.mega-text {
    font-size: clamp(5rem, 22vw, 18rem);
    line-height: 0.82;
    letter-spacing: -0.06em;
    display: block;
    margin-bottom: -0.1em; /* recorta el descender invisible que genera espacio */
}

/* ===== HERO LINES ===== */
.hero-line { overflow: hidden; display: block; }
.hero-line span {
    display: block; transform: translateY(110%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
body.loaded .hero-line span { transform: translateY(0); }
body.loaded .hero-line:nth-child(1) span { transition-delay: 0.05s; }
body.loaded .hero-line:nth-child(2) span { transition-delay: 0.15s; }
body.loaded .hero-line:nth-child(3) span { transition-delay: 0.25s; }

/* ===== REVEAL ===== */
.reveal-up { opacity: 0; transform: translateY(48px); transition: opacity 1s cubic-bezier(0.19,1,0.22,1), transform 1.1s cubic-bezier(0.19,1,0.22,1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity 1.2s ease; }
.reveal-fade.active { opacity: 1; }
.reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s cubic-bezier(0.77,0,0.175,1); }
.reveal-clip.active { clip-path: inset(0 0 0 0); }

/* ===== WORD REVEAL ===== */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.w-inner { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.19,1,0.22,1); }
.w-inner.w-in { transform: translateY(0); }

/* ===== SCRAMBLE ===== */
.scramble-c { color: var(--accent); opacity: 0.85; }

/* ===== IMAGE TRAIL ===== */
#image-trail { position: relative; overflow: hidden; }
.trail-item {
    position: absolute;
    width: 200px; height: 270px;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0; pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.19,1,0.22,1);
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #111114 0%, #1F1F22 100%);
    border: 1px solid rgba(119,231,255,0.15);
}
.trail-item.trail-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== MAGNETIC ===== */
[data-magnetic] { transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1); display: inline-flex; }
.magnet-wrap { display: inline-block; }

/* ===== PROJECT CARDS (case studies) ===== */
.case-study { position: relative; }
.case-sticky { position: sticky; top: 12vh; height: 76vh; }
.case-visual {
    position: relative; width: 100%; height: 100%;
    border-radius: 14px; overflow: hidden;
    background: #0B0B0C;
    border: 1px solid #1F1F22;
}
.case-layer {
    position: absolute; inset: 0;
    opacity: 0; transform: scale(1.04);
    transition: opacity 0.9s ease, transform 1.4s cubic-bezier(0.19,1,0.22,1);
}
.case-layer.active { opacity: 1; transform: scale(1); }
.case-slide { min-height: 90vh; display: flex; align-items: center; }
.case-dot {
    width: 26px; height: 2px; background: #2A2A2E; transition: background 0.4s, width 0.4s;
}
.case-dot.active { background: var(--accent); width: 44px; }

/* On mobile: stack image above text, no sticky scroll-telling, tighter spacing */
@media (max-width: 767px) {
    .case-sticky { position: static; height: auto; margin-bottom: 1.5rem; }
    .case-visual { aspect-ratio: 4 / 5; height: auto; }
    .case-slide { min-height: 0; }
    .case-slide + .case-slide { margin-top: 1.75rem; }
}

/* Placeholder when image missing */
.img-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-wrap.img-missing img { display: none; }
.img-wrap .ph-fallback { display: none; }
.img-wrap.img-missing .ph-fallback { display: flex; }
.ph-fallback {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(119,231,255,0.04) 18px 19px),
        linear-gradient(135deg, #0B0B0C 0%, #14141A 100%);
    align-items: flex-end; justify-content: space-between; padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #555;
    letter-spacing: 0.2em; text-transform: uppercase;
}
.ph-fallback::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 70%; max-width: 320px; aspect-ratio: 16/9;
    border: 1px dashed #2A2A2E;
}

/* ===== HOVER LINK ===== */
.link-line { position: relative; display: inline-block; }
.link-line::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.77,0,0.175,1);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===== SERVICES CARDS ===== */
.svc-card {
    position: relative; overflow: hidden;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.svc-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(119,231,255,0.08), transparent 40%);
    opacity: 0; transition: opacity 0.4s;
    pointer-events: none;
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover { border-color: rgba(119,231,255,0.4); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid #1F1F22; }
.faq-q {
    width: 100%; text-align: left; padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    font-family: 'Syne', sans-serif; font-weight: 600; font-size: clamp(1.1rem,2.2vw,1.6rem);
    color: #fff;
}
.faq-q .ico {
    width: 36px; height: 36px; border: 1px solid #2A2A2E; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background 0.4s, color 0.4s, transform 0.4s, border-color 0.4s;
}
.faq-item.open .faq-q .ico { background: var(--accent); color: #000; border-color: var(--accent); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.77,0,0.175,1); }
.faq-a-inner { padding-bottom: 1.5rem; color: #9CA3AF; max-width: 60ch; line-height: 1.6; }

/* ===== MARQUEE ===== */
.marquee-track { display: flex; width: max-content; }
.marquee-track > * { flex-shrink: 0; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* ===== TESTIMONIAL CARDS ===== */
.quote-mark {
    font-family: 'Syne', sans-serif;
    font-size: 8rem; line-height: 0.6;
    color: var(--accent); opacity: 0.4;
}

/* ===== BLOG CARDS ===== */
.blog-card { transition: transform 0.6s cubic-bezier(0.19,1,0.22,1); }
.blog-card:hover { transform: translateY(-6px); }
.blog-thumb { transition: transform 1.2s cubic-bezier(0.19,1,0.22,1); }
.blog-card:hover .blog-thumb { transform: scale(1.04); }

/* ===== WHATSAPP FLOAT ===== */
#wa-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 70;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.5);
    transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
#wa-float::before {
    content: ''; position: absolute; inset: -6px;
    border-radius: 50%; border: 2px solid #25D366;
    opacity: 0.6; animation: wa-ring 2.4s ease-out infinite;
}
@keyframes wa-ring {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ===== BADGES & PILLS ===== */
.pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.9rem; border: 1px solid #2A2A2E;
    border-radius: 999px; font-family: 'JetBrains Mono', monospace;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
    color: #9CA3AF;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ===== GRADIENT TEXT ===== */
.text-gradient {
    background: linear-gradient(180deg, #fff 0%, #fff 40%, #555 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== CASE THUMBNAILS GRADIENTS ===== */
.ph-anuket { background: linear-gradient(135deg, #1E2A5E 0%, #0A1330 60%, #050822 100%); }
.ph-ortega { background: linear-gradient(135deg, #2A1F1A 0%, #3B2A20 50%, #1A1310 100%); }
.ph-taxi   { background: linear-gradient(135deg, #6B5A1A 0%, #3D3210 60%, #1F1A08 100%); }
.ph-cinbio { background: linear-gradient(135deg, #0F3B3A 0%, #0A2A33 60%, #050F1A 100%); }

/* Hide elements not yet loaded */
body:not(.loaded) .hero-content { visibility: hidden; }

/* ============== CINEMATIC SLIDER ============== */
.reel {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: #050505;
    isolation: isolate;
}
/* Video hero background */
.reel-video-bg {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
}
.reel-video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.reel-video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5,5,5,0.35) 0%,
        rgba(5,5,5,0.55) 50%,
        rgba(5,5,5,0.85) 100%
    );
}
/* Slides sobre el video: fondo degradado con opacidad reducida */
.reel-bg::after {
    background: linear-gradient(
        to right,
        rgba(5,5,5,0.7) 0%,
        rgba(5,5,5,0.3) 60%,
        transparent 100%
    ) !important;
}
.reel-track {
    position: absolute; inset: 0;
}
.reel-slide {
    position: absolute; inset: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s cubic-bezier(0.77,0,0.175,1);
    will-change: clip-path;
}
.reel-slide.is-prev { clip-path: inset(0 0 100% 0); }
.reel-slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.reel-slide.is-next { clip-path: inset(100% 0 0 0); z-index: 1; }

.reel-bg {
    position: absolute; inset: 0;
    transform: scale(1);
    transition: transform 7s ease-out;
    will-change: transform;
    /* Transparente para dejar ver el video de fondo */
    background: transparent;
}
.reel-slide.is-active .reel-bg { transform: scale(1); }
/* Sin overlay propio — el video ya tiene overlay */
.reel-bg::after { display: none; }
.reel-bg .img-wrap { width: 100%; height: 100%; background: transparent !important; }
.reel-bg img { width: 100%; height: 100%; object-fit: cover; }

.reel-meta {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 5rem 1.25rem 6rem;
    z-index: 3;
}
@media (min-width: 768px) {
    .reel-meta { padding: 6rem 3rem 4rem; }
}

.reel-num {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: clamp(8rem, 26vw, 22rem);
    line-height: 0.78;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.18);
    position: absolute;
    top: clamp(6rem, 12vw, 10rem);
    right: -0.5rem;
    pointer-events: none;
    mix-blend-mode: difference;
}

.reel-title {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: clamp(3rem, 11vw, 9rem);
    line-height: 0.86;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
}
.reel-title .reel-mask { display: block; overflow: hidden; }
.reel-title .reel-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 1.1s cubic-bezier(0.19,1,0.22,1) 0.3s;
}
.reel-slide.is-active .reel-title .reel-inner { transform: translateY(0); }

.reel-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s cubic-bezier(0.19,1,0.22,1) 0.7s;
}
.reel-slide.is-active .reel-tags { opacity: 1; transform: translateY(0); }
.reel-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px; color: #fff;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.2);
}
.reel-tag.tag-accent { background: var(--accent); color: #000; border-color: var(--accent); }

.reel-desc {
    margin-top: 1.5rem;
    max-width: 32rem;
    color: rgba(231,231,234,0.85);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.8s, transform 0.8s cubic-bezier(0.19,1,0.22,1) 0.8s;
}
.reel-slide.is-active .reel-desc { opacity: 1; transform: translateY(0); }

.reel-stats {
    margin-top: 2rem;
    display: flex; gap: 2.5rem;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s ease 0.95s, transform 0.8s cubic-bezier(0.19,1,0.22,1) 0.95s;
}
.reel-slide.is-active .reel-stats { opacity: 1; transform: translateY(0); }
.reel-stat-v {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--accent); line-height: 1;
}
.reel-stat-l {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.25em;
    color: rgba(255,255,255,0.55); margin-top: 0.4rem;
}

/* Controls */
.reel-ui {
    position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 4;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
    color: rgba(255,255,255,0.7);
    pointer-events: none;
}
@media (min-width: 768px) {
    .reel-ui { padding: 1.5rem 3rem; }
}
.reel-ui > * { pointer-events: auto; }

.reel-counter { display: flex; align-items: baseline; gap: 0.6rem; color: #fff; }
.reel-counter .reel-curr {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 1.2rem; color: var(--accent);
    letter-spacing: 0;
}
.reel-counter .reel-total {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.reel-arrows { display: flex; gap: 0.5rem; }
.reel-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s;
}
.reel-btn:hover {
    background: var(--accent); color: #000; border-color: var(--accent);
}

.reel-thumbs {
    position: absolute; right: 1.25rem; bottom: 5.5rem;
    display: none;
    flex-direction: column; gap: 0.6rem;
    z-index: 4;
}
@media (min-width: 1024px) {
    .reel-thumbs { display: flex; right: 3rem; bottom: 6rem; }
}
.reel-thumb {
    width: 76px; height: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden; position: relative;
    opacity: 0.5; transition: opacity 0.4s, border-color 0.4s, transform 0.4s;
    cursor: pointer;
}
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-thumb .img-wrap { width: 100%; height: 100%; }
.reel-thumb.is-active {
    opacity: 1; border-color: var(--accent);
    transform: translateX(-8px);
}
.reel-thumb-label {
    position: absolute; bottom: 2px; left: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 8px;
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    letter-spacing: 0.15em;
}

/* Autoplay progress (top of reel) */
.reel-progress {
    position: absolute; left: 0; top: 0; right: 0; height: 2px;
    background: rgba(255,255,255,0.08);
    z-index: 5;
}
.reel-progress-bar {
    height: 100%;
    background: var(--accent);
    transform-origin: 0 0;
    transform: scaleX(0);
}
.reel-progress-bar.is-running {
    transition: transform linear;
}

/* Cursor area hints */
.reel-cursor-zones {
    position: absolute; inset: 0; z-index: 3;
    display: flex;
}
.reel-cursor-zones > div { flex: 1; }
@media (min-width: 1024px) {
    body.has-custom-cursor .reel { cursor: none; }
}

/* Section tag inside reel */
.reel-section-tag {
    position: absolute; top: 5.5rem; left: 1.25rem;
    z-index: 4;
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.3em; color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) {
    .reel-section-tag { top: 6rem; left: 3rem; }
}
.reel-section-tag::before {
    content: ''; width: 24px; height: 1px; background: var(--accent);
}
.reel-section-tag .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Visit link */
.reel-visit {
    position: absolute; bottom: 5.5rem; left: 1.25rem;
    z-index: 4;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s ease 1.1s, transform 0.8s cubic-bezier(0.19,1,0.22,1) 1.1s;
}
@media (min-width: 768px) {
    .reel-visit { bottom: 5.5rem; left: 3rem; }
}
.reel-slide.is-active .reel-visit { opacity: 1; transform: translateY(0); }
.reel-visit a {
    display: inline-flex; align-items: center; gap: 0.75rem;
    color: #fff; font-family: 'JetBrains Mono', monospace;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
    padding: 0.85rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.reel-visit a:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* Different gradient placeholders for reel slides */
.ph-reel-anuket { background: radial-gradient(ellipse at 30% 30%, #2a4a8c 0%, #0f1f4a 45%, #050822 100%); }
.ph-reel-ortega { background: radial-gradient(ellipse at 70% 20%, #6b4a30 0%, #3a2818 50%, #14100a 100%); }
.ph-reel-taxi   { background: radial-gradient(ellipse at 50% 80%, #c9a534 0%, #6b5215 50%, #1a1305 100%); }
.ph-reel-cinbio { background: radial-gradient(ellipse at 20% 60%, #1a7a78 0%, #0c3a3d 50%, #051419 100%); }

/* Reel placeholder cleanup — no dashed center box */
.reel-bg .ph-fallback::before,
.reel-thumb .ph-fallback::before { display: none; }
.reel-bg .ph-fallback {
    font-size: clamp(11px, 1.4vw, 14px);
    padding: 2rem 1.5rem;
}
.reel-thumb .ph-fallback { padding: 0; }

/* Grain on top of reel slides */
.reel-grain::after {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.08; mix-blend-mode: overlay; pointer-events: none;
}

/* Section heading underline */
.section-tag {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.3em; color: #6B7280;
    margin-bottom: 1.5rem;
}
.section-tag::before {
    content: ''; width: 28px; height: 1px; background: var(--accent);
}

/* Process steps */
.step-num {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: clamp(4rem, 9vw, 8rem);
    color: transparent;
    -webkit-text-stroke: 1px #2A2A2E;
    line-height: 0.85;
    transition: -webkit-text-stroke-color 0.5s, color 0.5s;
}
.process-step:hover .step-num,
.process-step.in-view .step-num {
    color: var(--accent);
    -webkit-text-stroke-color: var(--accent);
}

/* ===== FORM VALIDATION ===== */
.field-error {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #f87171;
    margin-top: 0.4rem;
}
input.border-red-400,
textarea.border-red-400 {
    border-color: #f87171 !important;
}

/* ===== DETAIL HERO — título fluido para que nombres largos no se recorten en móvil ===== */
.detail-hero-content h1 {
    overflow-wrap: break-word;
}
@media (max-width: 640px) {
    .detail-hero-content h1 {
        font-size: clamp(1.85rem, 9.5vw, 3rem);
    }
}
