/* =========================================================
   Lozada — Cinematográfico
   Dark immersive · glassmorphism · green glow
   ========================================================= */

:root {
  /* brand */
  --green: #02A566;
  --green-bright: #07C57C;
  --green-deep: #017A4B;
  --green-tint: #E7F6EF;
  /* dark theme */
  --bg: #0A0C0E;
  --bg-2: #12161A;
  --fog: #0E1A14;
  --panel: rgba(18, 22, 26, 0.72);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-line: rgba(255, 255, 255, 0.10);
  --glass-line-2: rgba(7, 197, 124, 0.28);
  /* text */
  --white: #F4F7F6;
  --muted: #9AA4AC;
  --muted-2: #6B7480;
  /* fx */
  --glow: 0 0 0 1px rgba(7,197,124,.25), 0 0 30px rgba(7,197,124,.28);
  --shadow: 0 24px 60px rgba(0,0,0,.5);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-d: "Sora", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ambient green wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(7,197,124,.10), transparent 60%),
    radial-gradient(50vw 50vw at -10% 110%, rgba(2,165,102,.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

::selection { background: var(--green); color: #021; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- glassmorphism base ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
.eyebrow {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-bright);
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--green-bright), transparent);
}
.section-head { margin-bottom: clamp(28px, 5vw, 56px); max-width: 760px; }
.section-head h2 { margin-top: 14px; }
.lead { color: var(--muted); font-size: 1.06rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-d); font-weight: 600; font-size: .95rem;
  padding: .82rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, border-color .25s;
  will-change: transform;
}
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #021712;
  box-shadow: 0 10px 30px rgba(7,197,124,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(7,197,124,.5); }
.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-line);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--glass-line-2); transform: translateY(-2px); box-shadow: var(--glow); }

/* ---------- back-to-versions pill ---------- */
.version-pill {
  position: fixed; top: 16px; left: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border-radius: 999px;
  font-family: var(--font-d); font-weight: 600; font-size: .8rem;
  background: rgba(10,12,14,.6);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px);
  color: var(--white);
  transition: border-color .25s, transform .25s, background .25s;
}
.version-pill:hover { border-color: var(--glass-line-2); transform: translateY(-1px); background: rgba(7,197,124,.12); }
.version-pill svg { transition: transform .25s var(--ease); }
.version-pill:hover svg { transform: translateX(-3px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: transform .4s var(--ease), background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,12,14,.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--glass-line);
}
.site-header.hide { transform: translateY(-100%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding-left: clamp(120px, 14vw, 180px);
}
.brand-logo { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav > a:not(.btn) {
  font-family: var(--font-d); font-weight: 500; font-size: .92rem; color: var(--muted);
  position: relative; transition: color .25s;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--green-bright); transition: width .3s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--white); }
.nav > a:not(.btn):hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,14,.55) 0%, rgba(10,12,14,.30) 35%, rgba(10,12,14,.82) 100%),
    linear-gradient(90deg, rgba(10,12,14,.9) 0%, rgba(10,12,14,.25) 55%, transparent 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero-content { max-width: 880px; }
.hero-eyebrow {
  font-family: var(--font-d); font-weight: 600; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--green-bright);
  margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(2.8rem, 8.5vw, 6.4rem);
  line-height: .98; letter-spacing: -.03em; margin-bottom: 1.4rem;
}
.clip-line { display: block; overflow: hidden; }
.clip-inner { display: block; will-change: transform; }
.clip-inner.accent {
  background: linear-gradient(100deg, var(--green-bright), #aef7d6 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: #d6dee0; max-width: 620px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.3rem; }
.hero-trust {
  font-family: var(--font-d); font-weight: 500; font-size: .86rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: .4rem;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--glass-line); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px; z-index: 2;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--green-bright); border-radius: 4px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee-band {
  border-top: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line);
  background: rgba(14,26,20,.5);
  padding: 22px 0;
  overflow: hidden;
}
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 1.4rem; white-space: nowrap;
  animation: marquee 38s linear infinite; flex-shrink: 0; padding-right: 1.4rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-chip { font-family: var(--font-d); font-weight: 600; font-size: clamp(1rem, 2vw, 1.5rem); color: var(--muted); transition: color .3s; }
.m-chip:hover { color: var(--green-bright); }
.m-dot { color: var(--green-deep); font-size: 1.2rem; }

/* ---------- generic section spacing ---------- */
section { position: relative; z-index: 1; }
.about, .stats, .services, .process, .ba-section, .action, .portfolio { padding: clamp(64px, 9vw, 130px) 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4/5; }
.about-media::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--glass-line); pointer-events: none;
}
.about-media-glow {
  position: absolute; inset: -30% -10% auto auto; width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(7,197,124,.4), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.about-copy h2 { margin: 14px 0 18px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.pillar { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.pillar:hover { transform: translateY(-3px); border-color: var(--glass-line-2); box-shadow: var(--glow); }
.pillar-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--green-bright);
  background: rgba(7,197,124,.12); border: 1px solid rgba(7,197,124,.28);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1rem; margin-bottom: 4px; }
.pillar p { font-size: .88rem; color: var(--muted); line-height: 1.45; }

/* ---------- stats ---------- */
.stats { background: linear-gradient(180deg, transparent, rgba(14,26,20,.6), transparent); padding-top: clamp(40px,6vw,80px); padding-bottom: clamp(40px,6vw,80px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { text-align: center; padding: 28px 14px; border-radius: var(--radius); border: 1px solid var(--glass-line); background: var(--glass); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, transparent, var(--green-bright), transparent); opacity: .6; }
.stat-num { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; background: linear-gradient(180deg, #fff, #9fe9c8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { display: block; margin-top: 10px; font-size: .86rem; color: var(--muted); }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 30px 26px; border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.service::after { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); background: radial-gradient(120% 90% at 50% 0%, rgba(7,197,124,.12), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.service:hover { transform: translateY(-5px); border-color: var(--glass-line-2); box-shadow: var(--shadow), var(--glow); }
.service:hover::after { opacity: 1; }
.service-no { font-family: var(--font-d); font-weight: 800; font-size: .95rem; color: var(--green-bright); letter-spacing: .08em; }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; margin: 16px 0 18px; color: var(--green-bright); background: rgba(7,197,124,.1); border: 1px solid rgba(7,197,124,.26); }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.28rem; margin-bottom: 12px; line-height: 1.2; }
.service > p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .76rem; font-weight: 500; padding: .35rem .7rem; border-radius: 999px; color: #c6ece0; background: rgba(7,197,124,.08); border: 1px solid rgba(7,197,124,.2); }

/* ---------- process strip ---------- */
.process-strip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.process-step { padding: 24px 20px; border-radius: var(--radius); border: 1px solid var(--glass-line); background: var(--glass); position: relative; transition: transform .3s var(--ease), border-color .3s; }
.process-step:hover { transform: translateY(-4px); border-color: var(--glass-line-2); }
.process-step .step-no { font-family: var(--font-d); font-weight: 800; font-size: 1.6rem; color: rgba(7,197,124,.55); }
.process-step h4 { font-size: 1.05rem; margin: 8px 0 4px; }
.process-step p { font-size: .85rem; color: var(--muted); }

/* ---------- before / after ---------- */
.ba {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; user-select: none; border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-before-wrap .ba-before-img { width: 100vw; max-width: var(--container); height: 100%; object-fit: cover; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; cursor: ew-resize; z-index: 3;
}
.ba-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--green-bright); box-shadow: 0 0 16px rgba(7,197,124,.7); }
.ba-grip {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,12,14,.7); border: 2px solid var(--green-bright);
  display: grid; place-items: center; color: var(--green-bright); backdrop-filter: blur(6px);
}
.ba-tag {
  position: absolute; top: 14px; z-index: 2; font-family: var(--font-d); font-weight: 600; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(10,12,14,.6); border: 1px solid var(--glass-line); backdrop-filter: blur(6px);
}
.ba-tag-l { left: 14px; }
.ba-tag-r { right: 14px; color: var(--green-bright); }

/* ---------- action band ---------- */
.action-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; padding: 0 clamp(18px, 4vw, 40px); }
.action-tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--glass-line); }
.action-tile img { width: 100%; height: 116%; object-fit: cover; will-change: transform; } /* taller for translate parallax, never scaled */
.action-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,12,14,.5)); }

/* ---------- portfolio ---------- */
.portfolio-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; max-width: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: var(--font-d); font-weight: 500; font-size: .85rem;
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--muted);
  transition: color .25s, border-color .25s, background .25s, transform .2s;
}
.filter:hover { color: var(--white); border-color: var(--glass-line-2); }
.filter.is-active { color: #021712; background: linear-gradient(135deg, var(--green-bright), var(--green)); border-color: transparent; }

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 14px;
}
.tile {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  border: 1px solid var(--glass-line); background: var(--bg-2);
  transition: border-color .35s, box-shadow .35s, opacity .45s var(--ease), transform .45s var(--ease);
}
.tile.span-2-col { grid-column: span 2; }
.tile.span-2-row { grid-row: span 2; }
.tile.is-hidden { display: none; }
.tile.is-dimmed { opacity: .12; pointer-events: none; filter: grayscale(.6); }
.tile-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-media img, .tile-media video { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { border-color: var(--glass-line-2); box-shadow: var(--shadow), var(--glow); }
.tile-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,12,14,0) 40%, rgba(10,12,14,.55) 70%, rgba(10,12,14,.92));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  opacity: .55; transition: opacity .35s; /* caption visible-ish, reveals fully on hover (no scale) */
}
.tile:hover .tile-overlay, .tile:focus-within .tile-overlay { opacity: 1; }
.tile-cat { font-family: var(--font-d); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-bright); transform: translateY(8px); opacity: 0; transition: transform .35s var(--ease) .03s, opacity .35s; }
.tile-title { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; line-height: 1.2; margin-top: 4px; transform: translateY(10px); opacity: 0; transition: transform .35s var(--ease) .06s, opacity .35s .04s; }
.tile:hover .tile-cat, .tile:focus-within .tile-cat,
.tile:hover .tile-title, .tile:focus-within .tile-title { transform: translateY(0); opacity: 1; }
.tile-badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; }
.tile-badge {
  font-family: var(--font-d); font-weight: 600; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px; background: rgba(10,12,14,.6); border: 1px solid var(--glass-line); backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: .3rem;
}
.tile-badge.video { color: var(--green-bright); border-color: rgba(7,197,124,.4); }
.tile-badge .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); animation: pulse 1.6s infinite; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.cta-band-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(7,197,124,.18), transparent 60%),
    linear-gradient(180deg, rgba(14,26,20,.5), transparent);
}
.cta-inner { text-align: center; max-width: 740px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 14px; }
.cta-inner p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--glass-line); background: var(--bg-2); padding: clamp(48px, 7vw, 80px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.footer-tag { font-family: var(--font-d); font-weight: 600; font-size: .74rem; letter-spacing: .1em; color: var(--green-bright); }
.footer-col h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #9aa7b1; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a, .footer-col address { color: var(--muted); font-size: .92rem; font-style: normal; line-height: 1.7; transition: color .25s; }
.footer-col a:hover { color: var(--green-bright); }
.footer-maplink { display: inline-block; margin-top: 10px; color: var(--green-bright); font-weight: 600; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--glass-line); color: #9aa7b1; font-size: .82rem; }
.footer-7tv { color: #5fd6a3; }

/* ---------- WhatsApp float (bottom-left) ---------- */
.wa-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37,211,102,.6); animation: pulseRing 2.4s ease-out infinite; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 40px rgba(37,211,102,.6); }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(4,6,7,.82); backdrop-filter: blur(8px); }
.lightbox-panel {
  position: relative; z-index: 1; width: min(980px, 100%); max-height: 90vh; overflow: auto;
  border-radius: var(--radius); display: grid; grid-template-columns: 1.25fr 1fr;
  box-shadow: var(--shadow); animation: lbIn .4s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.lightbox-media { background: #000; min-height: 320px; display: grid; place-items: center; }
.lightbox-media video, .lightbox-media img { width: 100%; height: 100%; object-fit: cover; max-height: 90vh; }
.lightbox-body { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.lightbox-cat { font-family: var(--font-d); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-bright); }
.lightbox-body h3 { font-size: 1.7rem; line-height: 1.1; }
.lightbox-client { color: var(--muted); font-size: .92rem; margin-top: -4px; }
.lightbox-case { font-size: .92rem; color: #cdd5d8; line-height: 1.6; }
.lightbox-case p { margin-bottom: 10px; }
.lightbox-case strong { color: var(--green-bright); font-family: var(--font-d); }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(10,12,14,.6); border: 1px solid var(--glass-line); color: var(--white);
  display: grid; place-items: center; backdrop-filter: blur(6px); transition: border-color .25s, transform .25s;
}
.lightbox-close:hover { border-color: var(--green-bright); transform: rotate(90deg); }
.lightbox-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- chatbot ---------- */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 120; }
.chat-fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(7,197,124,.5);
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  box-shadow: 0 14px 34px rgba(7,197,124,.4);
  display: grid; place-items: center; transition: transform .3s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-fab-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(7,197,124,.6); animation: pulseRing 2.6s ease-out infinite; }
.chat-fab-iso { width: 34px; height: 34px; object-fit: contain; transition: opacity .25s, transform .25s; }
.chat-fab-close { position: absolute; color: #021712; opacity: 0; transform: scale(.6) rotate(-30deg); transition: opacity .25s, transform .25s; }
.chat.open .chat-fab-iso { opacity: 0; transform: scale(.6); }
.chat.open .chat-fab-close { opacity: 1; transform: scale(1) rotate(0); }
.chat.open .chat-fab-ring { display: none; }

.chat-panel {
  position: absolute; right: 0; bottom: 78px;
  width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 130px));
  border-radius: 20px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none;
  transform-origin: bottom right; transition: transform .35s var(--ease), opacity .3s;
  background: linear-gradient(165deg, rgba(18,22,26,.92), rgba(14,26,20,.88));
}
.chat.open .chat-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--glass-line); background: linear-gradient(180deg, rgba(7,197,124,.1), transparent); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--green-deep)); flex-shrink: 0; }
.chat-avatar img { width: 26px; height: 26px; object-fit: contain; }
.chat-id strong { font-family: var(--font-d); font-size: .98rem; display: block; }
.chat-status { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.chat-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); }
.chat-min { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; transition: color .25s, background .25s; }
.chat-min:hover { color: var(--white); background: var(--glass); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--green-deep) transparent; }
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 4px; }

.msg { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; word-wrap: break-word; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg.bot { align-self: flex-start; background: var(--glass); border: 1px solid var(--glass-line); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #f3fff9; border-bottom-right-radius: 4px; }
.msg a { color: var(--green-bright); text-decoration: underline; word-break: break-all; }
.msg.user a { color: #d7ffe9; }
.msg ul { list-style: disc; padding-left: 1.1rem; margin: 6px 0; }
.msg li { margin-bottom: 3px; }
.msg.typing { display: flex; gap: 5px; align-items: center; padding: 14px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); opacity: .5; animation: typing 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; }
.chat-chip { font-family: var(--font-b); font-size: .78rem; padding: .42rem .8rem; border-radius: 999px; cursor: pointer; background: rgba(7,197,124,.1); border: 1px solid rgba(7,197,124,.28); color: #c6ece0; transition: background .25s, transform .2s; }
.chat-chip:hover { background: rgba(7,197,124,.22); transform: translateY(-1px); }

.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--glass-line); background: rgba(10,12,14,.4); }
.chat-input input { flex: 1; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 999px; padding: .7rem 1rem; color: var(--white); font-family: var(--font-b); font-size: .9rem; }
.chat-input input::placeholder { color: var(--muted-2); }
.chat-input input:focus { outline: none; border-color: var(--green-bright); }
.chat-send { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--green-bright), var(--green)); color: #021712; display: grid; place-items: center; transition: transform .25s; }
.chat-send:hover { transform: scale(1.08); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- reveals (JS-driven; static fallback below) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* page-load gate to avoid FOUC on hero clip lines */
body.is-loading .clip-inner { transform: translateY(105%); }

/* =========================================================
   Cinematic preloader
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: radial-gradient(60vw 60vw at 50% 40%, rgba(7,197,124,.10), transparent 60%), var(--bg);
  transition: opacity .55s var(--ease);
}
.preloader.hide { opacity: 0; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.preloader-iso {
  width: 76px; height: 76px; object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(7,197,124,.55));
  animation: preIso 1.6s var(--ease) infinite alternate;
}
@keyframes preIso { from { opacity: .65; transform: translateY(0); } to { opacity: 1; transform: translateY(-4px); } }
.preloader-line {
  font-family: var(--font-d); font-weight: 600; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--muted) 0%, var(--white) 45%, var(--green-bright) 55%, var(--muted) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: preShimmer 2s linear infinite;
}
@keyframes preShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* =========================================================
   Scroll progress bar
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 190;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  box-shadow: 0 0 10px rgba(7,197,124,.6);
  pointer-events: none;
  will-change: width;
}

/* =========================================================
   Hero sound toggle
   ========================================================= */
.hero-sound {
  position: absolute; right: clamp(18px, 4vw, 40px); bottom: clamp(96px, 14vh, 150px); z-index: 4;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-d); font-weight: 600; font-size: .78rem;
  color: var(--white);
  background: rgba(10,12,14,.55); border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.hero-sound:hover { border-color: var(--glass-line-2); background: rgba(7,197,124,.14); transform: translateY(-1px); }
.hero-sound svg { color: var(--green-bright); }
.hero-sound .icon-sound { display: none; }
.hero-sound[aria-pressed="true"] .icon-muted { display: none; }
.hero-sound[aria-pressed="true"] .icon-sound { display: block; }
.hero-sound-label { letter-spacing: .06em; }

/* =========================================================
   Nav scroll-spy active state
   ========================================================= */
.nav > a:not(.btn).is-active { color: var(--white); }
.nav > a:not(.btn).is-active::after { width: 100%; }

/* =========================================================
   Configurador de proyecto
   ========================================================= */
.configurator { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.configurator::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 80% 0%, rgba(7,197,124,.10), transparent 60%);
  pointer-events: none;
}
.config-head { max-width: 760px; }
.config-head .lead { margin-top: 14px; }
.config-panel {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 40px);
  padding: clamp(22px, 3vw, 38px); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.config-fields { display: flex; flex-direction: column; gap: 22px; }
.config-group { display: flex; flex-direction: column; gap: 12px; }
.config-label {
  font-family: var(--font-d); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.config-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.config-chip {
  font-family: var(--font-d); font-weight: 500; font-size: .86rem;
  padding: .56rem 1.05rem; border-radius: 999px; cursor: pointer;
  color: #c6ece0; background: rgba(7,197,124,.06);
  border: 1px solid var(--glass-line);
  transition: color .22s, border-color .22s, background .22s, box-shadow .28s, transform .18s var(--ease);
}
.config-chip:hover { border-color: var(--glass-line-2); color: var(--white); transform: translateY(-1px); }
.config-chip[aria-pressed="true"] {
  color: #021712; background: linear-gradient(135deg, var(--green-bright), var(--green));
  border-color: transparent; box-shadow: var(--glow);
}

/* preview side */
.config-preview {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: var(--radius-sm);
  background: rgba(10,12,14,.5); border: 1px solid var(--glass-line);
}
.config-preview-head {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-d); font-weight: 600; font-size: .82rem; color: var(--white);
}
.config-preview-iso {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #021712;
  background: linear-gradient(135deg, #25D366, #128C7E);
}
.config-preview-msg {
  flex: 1; min-height: 150px; margin: 0;
  font-family: var(--font-b); font-size: .9rem; line-height: 1.6; color: #d6dee0;
  white-space: pre-wrap; word-break: break-word;
  padding: 14px; border-radius: 12px;
  background: rgba(7,197,124,.05); border: 1px dashed rgba(7,197,124,.22);
}
.config-cta { width: 100%; }
.config-cta.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; filter: grayscale(.3); }
.config-hint { font-size: .8rem; color: var(--muted-2); text-align: center; }
.config-hint.ready { color: var(--green-bright); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .header-inner { padding-left: 66px; }
  .version-pill span { display: none; }
  .version-pill { padding: .5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-strip { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-panel { grid-template-columns: 1fr; }
  .lightbox-media { min-height: 240px; }
  .config-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 22px; padding: 80px 32px;
    background: rgba(10,12,14,.96); backdrop-filter: blur(20px); border-left: 1px solid var(--glass-line);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 85;
  }
  .nav.open { transform: translateX(0); }
  .nav > a:not(.btn) { font-size: 1.2rem; }
  .nav .btn { width: 100%; }
  .hamburger { display: flex; z-index: 86; }
  .version-pill span { display: none; }
  .version-pill { padding: .55rem; }
  .header-inner { padding-left: 56px; }
  .action-band { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
  .ba { aspect-ratio: 4/3; }
  .hero-sound-label { display: none; }
  .hero-sound { padding: .55rem; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile.span-2-col { grid-column: span 1; }
  .tile.span-2-row { grid-row: span 1; }
  .hero { padding-top: 100px; }
  .chat-panel { right: -6px; bottom: 76px; height: min(70vh, calc(100vh - 110px)); }
}

/* =========================================================
   Reduced motion — static fallback (kills Lenis/ScrollTrigger via JS too)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .clip-inner { transform: none !important; }
  body.is-loading .clip-inner { transform: none !important; }
  .marquee-track { animation: none !important; }
  .hero-video { /* keep poster look acceptable; video still allowed but no motion-dependent fx */ }
  .scroll-cue span { animation: none !important; }
  .wa-float::before, .chat-fab-ring { animation: none !important; display: none; }
  .action-tile img { height: 100%; transform: none !important; }
  .preloader-iso, .preloader-line { animation: none !important; }
  .preloader-line { -webkit-text-fill-color: var(--muted); color: var(--muted); }
}
