/* =========================================================
   Pacheco Publicidad — estilos
   ========================================================= */
:root {
  --bg: #0b0b0f;
  --bg-2: #111118;
  --bg-3: #171720;
  --line: rgba(255,255,255,.08);
  --text: #f4f4f7;
  --muted: #a4a4b3;
  --red: #e3202f;
  --red-2: #ff5a63;
  --blue: #37a6ff;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --radius: 20px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active, .service:active, .work:active, .contact__item:active, .wa-float:active { transform: scale(.97) !important; transition-duration: .1s; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.grad {
  background: linear-gradient(90deg, var(--red) 0%, var(--red-2) 45%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
::selection { background: var(--red); color: #fff; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader { animation: preHide .6s var(--ease) 3.2s forwards; }
@keyframes preHide { to { opacity: 0; visibility: hidden; } }
.preloader__logo { text-align: center; }
.preloader__img {
  width: clamp(180px, 30vw, 300px); margin-inline: auto;
  filter: drop-shadow(0 20px 40px rgba(227,32,47,.45));
  animation: preWord 1.2s var(--ease) both;
}
.preloader__bar {
  display: block; height: 3px; width: 0; margin: 12px auto 0;
  background: linear-gradient(90deg, var(--red), var(--blue));
  animation: preBar 1.1s .2s var(--ease) forwards;
}
@keyframes preWord { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes preBar { to { width: 100%; } }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px; border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(227,32,47,.12), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity .3s; opacity: 0;
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--wa { background: var(--wa); color: #06210f; box-shadow: 0 10px 30px -10px rgba(37,211,102,.6); }
.btn--wa::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--wa:hover::after { transform: translateX(120%); }
.btn--wa:hover { background: var(--wa-dark); transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(37,211,102,.7); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost svg { fill: none; stroke: currentColor; stroke-width: 2; }
.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); transform: translateY(-3px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); animation: safeShow .01s 4s forwards; }
.reveal.is-in { animation: reveal .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.reveal.is-done { animation: none; opacity: 1; transform: none; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.card3d { animation: safeOpacity .01s 4s forwards; }
@keyframes safeOpacity { to { opacity: 1; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: padding .4s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { padding: 10px 0; background: rgba(11,11,15,.75); backdrop-filter: blur(16px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; }
.logo__img { height: 66px; width: auto; transition: transform .5s var(--ease), height .4s var(--ease); filter: drop-shadow(0 6px 14px rgba(227,32,47,.35)); }
.logo:hover .logo__img { transform: scale(1.05); }
.header.is-scrolled .logo__img { height: 52px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .06em; color: var(--red); }
.logo__sub { font-family: var(--font-head); font-weight: 600; font-size: 9px; letter-spacing: .38em; color: var(--text); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: 14.5px; font-weight: 500; color: var(--muted); position: relative; transition: color .3s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue)); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.04); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 140px 0 80px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .8; }
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(120px); z-index: -2; opacity: .55; }
.hero__glow--red { width: 560px; height: 560px; background: var(--red); top: -120px; left: -160px; animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--blue { width: 480px; height: 480px; background: var(--blue); bottom: -160px; right: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(80px, 60px) scale(1.15); } }

.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 13px; font-weight: 500; color: var(--muted);
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.hero__title { font-size: clamp(44px, 7vw, 88px); font-weight: 800; margin-bottom: 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .word { display: inline-block; transform: translateY(110%); opacity: 0; animation: safeShow .01s 3.4s forwards; }
@keyframes safeShow { to { opacity: 1; transform: none; } }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; }
.stat__num, .stat__plus { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; display: inline; }
.stat__plus { color: var(--red); }
.stat__label { flex-basis: 100%; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Hero visual: tarjeta 3D */
.hero__visual { display: flex; justify-content: center; perspective: 1200px; }
.card3d { position: relative; width: min(440px, 100%); transform-style: preserve-3d; transition: transform .2s ease-out; }
.card3d__inner {
  border-radius: 28px; padding: 34px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1b1b25, #0f0f15);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
}
.card3d__inner::before {
  content: ""; position: absolute; inset: -40%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(227,32,47,.25) 75%, rgba(55,166,255,.25) 90%, transparent 100%);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.card3d__badge {
  position: relative; z-index: 1; display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(55,166,255,.15); color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 26px;
}
.card3d__sign {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden;
  padding: 36px 20px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(227,32,47,.22), transparent 70%), #08080c;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 0 60px -10px rgba(227,32,47,.45), inset 0 0 40px rgba(0,0,0,.6);
}
.card3d__logoWrap { position: relative; z-index: 2; display: block; width: 100%; max-width: 300px; animation: floatY 4s ease-in-out infinite; }
.card3d__logo {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 18px rgba(227,32,47,.75)) drop-shadow(0 0 40px rgba(227,32,47,.35));
  animation: neon 3.2s ease-in-out infinite;
}
/* Barrido de luz con la silueta del logo como máscara */
.card3d__sweep {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  background-size: 260% 100%; background-position: 120% 0;
  animation: sweep 4.2s cubic-bezier(.4,0,.2,1) 1.2s infinite;
}
@keyframes sweep { 0% { background-position: 120% 0; } 45%, 100% { background-position: -120% 0; } }
/* Halos detrás del logo */
.halo { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.halo--ring { width: 118%; aspect-ratio: 1; max-width: 460px; border: 1px dashed rgba(255,255,255,.14); animation: orbit 26s linear infinite; }
.halo--ring::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.halo--glow {
  width: 96%; aspect-ratio: 1; max-width: 380px; opacity: .85;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(227,32,47,.55) 78%, rgba(55,166,255,.5) 92%, transparent 100%);
  filter: blur(22px); animation: spin 7s linear infinite;
}
.halo--burst { width: 40%; aspect-ratio: 1; opacity: 0; background: radial-gradient(circle, rgba(255,255,255,.7), rgba(227,32,47,.45) 40%, transparent 70%); }
.is-burst .halo--burst { animation: burst .7s var(--ease) forwards; }
@keyframes burst { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); } }
.is-burst .card3d__logo { animation: neon 3.2s ease-in-out infinite, punch .5s var(--ease); }
@keyframes punch { 0% { scale: 1; } 30% { scale: 1.08; } 100% { scale: 1; } }
@keyframes neon { 0%,100% { opacity: 1; } 48% { opacity: 1; } 50% { opacity: .78; } 52% { opacity: 1; } 80% { opacity: .92; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.card3d__chips { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.card3d__chips span { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.float {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  background: rgba(17,17,24,.85); border: 1px solid var(--line); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  transform: translateZ(60px);
}
.float svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float--1 { top: -5%; left: -8%; animation: floatY 5s ease-in-out infinite; }
.float--2 { bottom: 16%; right: -8%; animation: floatY 6s 1s ease-in-out infinite; }
.float--3 { bottom: -8%; left: 4%; animation: floatY 5.5s .5s ease-in-out infinite; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.25); border-radius: 14px;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--red); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.marquee__track { display: flex; gap: 32px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-head); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); white-space: nowrap; }
.marquee__track i { color: var(--red); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 60px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 16px; padding-left: 26px; position: relative;
}
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; background: var(--red); }
.section__title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin-bottom: 18px; }
.section__lead { color: var(--muted); font-size: 17px; }

/* ---------- Servicios ---------- */
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--line); overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(227,32,47,.16), transparent 45%);
}
.service:hover { transform: translateY(-8px); border-color: rgba(227,32,47,.4); box-shadow: 0 30px 60px -30px rgba(227,32,47,.4); }
.service:hover::before { opacity: 1; }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(227,32,47,.2), rgba(55,166,255,.15)); border: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); }
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 19px; margin-bottom: 10px; position: relative; }
.service p { font-size: 14px; color: var(--muted); margin-bottom: 20px; position: relative; }
.service__link { font-size: 14px; font-weight: 600; color: var(--wa); display: inline-flex; gap: 6px; align-items: center; position: relative; }
.service__link span { transition: transform .3s var(--ease); }
.service__link:hover span { transform: translateX(5px); }

/* ---------- Proceso ---------- */
.process { background: var(--bg-2); }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process__line { position: absolute; top: 34px; left: 6%; right: 6%; height: 2px; background: var(--line); z-index: 0; }
.process__line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--blue)); }
.step { position: relative; z-index: 1; }
.step__num {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--red);
  margin-bottom: 22px; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.step:hover .step__num { border-color: var(--red); box-shadow: 0 0 30px -6px var(--red); transform: scale(1.08); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Trabajos (galería de fotos) ---------- */
.works__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.work { grid-column: span 2; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); display: block; cursor: pointer; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.work:nth-child(n+4) { grid-column: span 3; }
.work:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); border-color: rgba(255,255,255,.18); }
.work__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #1a1a22; }
.work:nth-child(n+4) .work__media { aspect-ratio: 16 / 10; }
.work__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.work:hover .work__media img { transform: scale(1.06); }
.work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,11,15,.55)); pointer-events: none; }
.work__info { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.work__info strong { font-family: var(--font-head); font-size: 16px; }
.work__info span { font-size: 13px; color: var(--muted); }
.work__zoom {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(11,11,15,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease);
}
.work__zoom svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.work:hover .work__zoom { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(6,6,10,.92); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .35s var(--ease); }
.lightbox[hidden] { display: none; }
body.lb-open .work__zoom, body.lb-open .wa-float, body.lb-open .cursor-glow { visibility: hidden; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); transform: scale(.94); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.lightbox.is-open .lightbox__img { transform: none; opacity: 1; }
.lightbox__caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; flex-wrap: wrap; }
.lightbox__caption strong { display: block; font-family: var(--font-head); font-size: 17px; }
.lightbox__caption span { font-size: 13.5px; color: var(--muted); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .3s; }
.lightbox__close:hover { background: rgba(255,255,255,.14); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.lightbox__nav:hover { background: rgba(255,255,255,.14); }
.lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }

/* ---------- Por qué ---------- */
.why { background: var(--bg-2); overflow: hidden; }
.why__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.why__list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 22px; }
.why__list li { display: flex; gap: 16px; align-items: flex-start; }
.check { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(37,211,102,.15); color: var(--wa); font-weight: 700; }
.why__list strong { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }
.why__list p { font-size: 14.5px; color: var(--muted); }
.orbit { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; }
.orbit__center {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 130px; height: 130px; border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle, #1c1c26, #0b0b0f);
  border: 1px solid var(--line); box-shadow: 0 0 80px -10px rgba(227,32,47,.5);
}
.orbit__center img { width: 96px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.6)); }
.orbit__ring { position: absolute; inset: 50% auto auto 50%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.15); transform: translate(-50%, -50%); }
.orbit__ring--1 { width: 60%; height: 60%; animation: orbit 14s linear infinite; }
.orbit__ring--2 { width: 80%; height: 80%; animation: orbit 20s linear infinite reverse; }
.orbit__ring--3 { width: 100%; height: 100%; animation: orbit 28s linear infinite; }
.orbit__item {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 8px 14px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-size: 12px; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); white-space: nowrap;
}
.orbit__ring--1 .orbit__item { color: var(--red-2); animation: counter 14s linear infinite; }
.orbit__ring--2 .orbit__item { color: var(--blue); animation: counter 20s linear infinite reverse; }
.orbit__ring--3 .orbit__item { color: var(--wa); animation: counter 28s linear infinite; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes counter { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 110px; }
.cta__box {
  position: relative; overflow: hidden; text-align: center; padding: 70px 30px; border-radius: 32px;
  background: linear-gradient(160deg, #1a1a24, #0f0f15); border: 1px solid var(--line);
}
.cta__glow {
  position: absolute; inset: -50%; z-index: 0;
  background: conic-gradient(from 90deg, transparent 0 55%, rgba(37,211,102,.25) 70%, rgba(55,166,255,.2) 85%, transparent 100%);
  animation: spin 12s linear infinite;
}
.cta__box::before { content: ""; position: absolute; inset: 1px; border-radius: 31px; background: linear-gradient(160deg, #16161f, #0d0d12); z-index: 0; }
.cta__box > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 17px; margin-bottom: 32px; }

/* ---------- Contacto ---------- */
.contact { background: var(--bg-2); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact__items { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.contact__item {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px;
  background: var(--bg-3); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s;
}
a.contact__item:hover { transform: translateX(6px); border-color: rgba(255,255,255,.2); }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(55,166,255,.12); }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__icon--wa { background: rgba(37,211,102,.15); }
.contact__icon--wa svg { fill: var(--wa); stroke: none; }
.contact__item strong { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 2px; }
.contact__item span { font-size: 14px; color: var(--muted); }
.contact__map { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); height: 480px; }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 90px; background: var(--bg); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__logo { width: 150px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 360px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color .3s; }
.footer__links a:hover { color: var(--text); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); transition: transform .3s var(--ease), background .3s; }
.footer__social a:hover { transform: translateY(-3px); background: rgba(255,255,255,.08); }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--wa); color: #06210f; font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 40px -10px rgba(37,211,102,.7);
  transform: translateY(120px); transition: transform .6s var(--ease), background .3s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; position: relative; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--wa); animation: waPulse 2s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process__line { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__visual { margin-top: 30px; }
  .why__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Navegación */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 100px 28px 28px; background: rgba(11,11,15,.96); backdrop-filter: blur(20px); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 20px; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .nav .btn { margin-top: 20px; }
  .burger { display: flex; }
  .header { padding: 12px 0; }
  .header.is-scrolled { padding: 8px 0; }
  .logo__img, .header.is-scrolled .logo__img { height: 52px; }
  .cursor-glow, .scroll-hint, .hero__grid { display: none; }

  /* HERO: el logo es el protagonista */
  .hero { padding: 92px 0 48px; min-height: auto; }
  .hero__inner { display: flex; flex-direction: column; gap: 0; text-align: center; }
  .hero__visual { order: -1; margin: 0 0 8px; perspective: none; }
  .card3d { width: 100%; }
  .card3d__inner { background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
  .card3d__inner::before, .card3d__badge, .card3d__chips, .float { display: none; }
  .card3d__sign { background: none; border: 0; box-shadow: none; padding: 30px 0 34px; overflow: visible; }
  .card3d__logoWrap { max-width: min(76vw, 340px); }
  .card3d__logo { filter: drop-shadow(0 0 22px rgba(227,32,47,.8)) drop-shadow(0 0 60px rgba(227,32,47,.4)); }
  .halo--ring { max-width: 340px; width: 122%; }
  .halo--glow { max-width: 300px; width: 92%; }
  .hero__glow--red { width: 380px; height: 380px; top: -60px; left: 50%; margin-left: -190px; opacity: .5; }
  .hero__glow--blue { width: 320px; height: 320px; bottom: 0; right: -140px; opacity: .4; }
  .hero__canvas { opacity: .5; }
  .hero__tag { margin-bottom: 18px; font-size: 12px; }
  .hero__title { font-size: clamp(40px, 12vw, 56px); margin-bottom: 18px; }
  .hero__lead { font-size: 16px; margin-bottom: 26px; padding-inline: 4px; }
  .hero__cta { flex-direction: column; gap: 10px; margin-bottom: 36px; }
  .hero__cta .btn { width: 100%; justify-content: center; min-height: 54px; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; padding: 18px 8px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
  .stat { justify-content: center; }
  .stat__num, .stat__plus { font-size: 24px; }
  .stat__label { font-size: 11.5px; line-height: 1.3; margin-top: 4px; }

  /* Secciones */
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .section__title { font-size: clamp(30px, 8.5vw, 40px); }
  .section__lead { font-size: 15.5px; }
  .marquee { padding: 14px 0; }
  .marquee__track span { font-size: 15px; }

  /* Servicios: tarjetas compactas en fila */
  .services__grid { grid-template-columns: 1fr; gap: 12px; }
  .service { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; padding: 20px 18px; }
  .service__icon { width: 52px; height: 52px; margin: 0; grid-row: 1 / span 3; border-radius: 14px; }
  .service h3 { font-size: 17px; margin-bottom: 6px; }
  .service p { font-size: 14px; margin-bottom: 12px; }
  .service__link { min-height: 32px; }

  /* Proceso: número a la izquierda */
  .process__steps { grid-template-columns: 1fr; row-gap: 22px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; }
  .step__num { width: 56px; height: 56px; font-size: 16px; margin: 0; grid-row: 1 / span 2; }
  .step h3 { font-size: 18px; margin-bottom: 4px; }
  .step p { font-size: 14px; }

  /* Trabajos */
  .section__head--row .btn { width: 100%; justify-content: center; }
  .works__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work, .work:nth-child(n+4) { grid-column: span 1; }
  .work:first-child { grid-column: span 2; }
  .work__media, .work:nth-child(n+4) .work__media { aspect-ratio: 1; }
  .work:first-child .work__media { aspect-ratio: 16 / 11; }
  .work__info { padding: 12px 14px; }
  .work__info strong { font-size: 14px; }
  .work__info span { font-size: 12px; }
  .work__zoom { opacity: 1; transform: none; width: 34px; height: 34px; top: 10px; right: 10px; }
  .lightbox { padding: 12px; }
  .lightbox__img { max-height: calc(100svh - 190px); border-radius: 12px; }
  .lightbox__nav { width: 44px; height: 44px; top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }
  .lightbox__caption { flex-direction: column; align-items: flex-start; padding-bottom: 60px; }
  .lightbox__caption .btn { width: 100%; justify-content: center; }

  /* Por qué / CTA / contacto */
  .why__inner { gap: 36px; }
  .why__visual { order: -1; }
  .orbit { width: min(300px, 80vw); }
  .orbit__center { width: 110px; height: 110px; }
  .orbit__center img { width: 80px; }
  .why__list { gap: 16px; }
  .cta { padding: 20px 0 72px; }
  .cta__box { padding: 46px 22px; border-radius: 24px; }
  .cta__box::before { border-radius: 23px; }
  .cta .btn { width: 100%; justify-content: center; }
  .contact__map { height: 320px; }
  .footer { padding: 40px 0 96px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .wa-float__label { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 30px; height: 30px; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 38px; }
  .stat__num, .stat__plus { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero__title .word { opacity: 1; transform: none; }
}
