/* ==========================================================================
   Paint Tech Inc — "acabado de laca"
   ========================================================================== */

:root {
  /* Color */
  --bg: #0B0B0D;
  --surface-1: #141418;
  --surface-2: #1C1C22;
  --line: rgba(201, 204, 211, .14);
  --accent: #E3122B;
  --accent-hi: #FF4D3D;
  --accent-deep: #B80D22;
  --silver: #C9CCD3;
  --text: #F4F4F5;
  --muted: #9A9AA3;
  --light: #F2F2F0;
  --light-text: #141418;
  --light-muted: #55555E;
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);

  /* Tipografía */
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 150px);
  --header-h: 76px;
  --radius: 6px;
  --radius-lg: 14px;

  /* Movimiento */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .3s;
  --t-med: .5s;
  --t-slow: .7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; background: var(--text); color: var(--bg); font-weight: 700; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600;
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-hi);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad-accent); }

.title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(1.75rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: .02em; text-transform: uppercase;
  margin-top: 18px; text-wrap: balance;
}
.title em, .hero__title em {
  font-style: normal;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.125rem); max-width: 58ch; margin-top: 20px; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: .8125rem;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; text-align: center;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
/* Reflejo de luz sobre la pintura */
.btn::after {
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform var(--t-slow) var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(340%) skewX(-18deg); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-accent); background-color: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(227, 18, 43, .8); }
.btn--primary { background-image: linear-gradient(135deg, var(--accent) 0%, #EA2A33 100%); }
.btn--ghost { border-color: rgba(201, 204, 211, .4); color: var(--text); }
.btn--ghost:hover { border-color: var(--silver); }
.btn--ghost::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); }
.btn--dark { background: var(--surface-1); color: var(--text); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .75rem; }

/* ---------- Preloader (solo CSS: nunca bloquea) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--bg);
  animation: pre-out .4s var(--ease) .75s forwards;
}
.preloader__inner { display: grid; gap: 16px; justify-items: center; }
.preloader__line { width: 100%; height: 3px; background: var(--grad-accent); transform-origin: left; transform: scaleX(0); animation: pre-line .7s var(--ease-expo) forwards; }
@keyframes pre-line { to { transform: scaleX(1); } }
@keyframes pre-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 1.125rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: .4em;
}
.wordmark span { color: var(--accent-hi); }
.wordmark--lg { font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(11, 11, 13, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  transition: opacity var(--t-med) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-scrolled::before { opacity: 1; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__link {
  position: relative; display: inline-block; padding: 10px 0;
  font-size: .875rem; font-weight: 600; color: var(--text); opacity: .86;
  transition: opacity var(--t-fast) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { opacity: 1; }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: var(--radius); }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .header__cta { display: none; }
  .js .burger { display: block; }
  .js .nav {
    position: fixed; inset: 0; z-index: -2; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: rgba(11, 11, 13, .97);
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .js .nav__link {
    font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
    font-size: clamp(1.5rem, 7vw, 2.25rem); letter-spacing: .04em; padding: 8px 0; opacity: 1;
  }
  .js .nav__extra { display: block; margin-top: 32px; }
  /* Sin JS: menú siempre visible debajo del logo */
  html:not(.js) .header { position: absolute; height: auto; padding-block: 14px; }
  html:not(.js) .header__inner { flex-wrap: wrap; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 4px 16px; }
}
.nav__extra { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: -8% 0 -8% 0; z-index: -2; }
.hero__media picture, .why__media picture, .work__link picture { width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, .92) 0%, rgba(11, 11, 13, .62) 45%, rgba(11, 11, 13, .18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 13, 0) 38%),
    linear-gradient(180deg, rgba(11, 11, 13, .6) 0%, rgba(11, 11, 13, 0) 22%);
}
.hero__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(96px, 14vh, 150px); }
.hero__title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.1rem, 7.4vw, 6.25rem); line-height: .98; letter-spacing: .01em;
  margin-top: 22px; max-width: 13ch;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; }
.hero__sub { margin-top: 26px; max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #D6D6DB; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--silver);
}
.scroll-cue__line { width: 1px; height: 44px; background: rgba(201, 204, 211, .3); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--accent-hi); transform: translateY(-100%); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 600px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .hero__content { padding-bottom: 56px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--surface-1); overflow: hidden; padding-block: 20px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
.marquee__group li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(.95rem, 1.8vw, 1.35rem); letter-spacing: .1em; color: var(--silver);
}
.marquee__group li::after { content: "✦"; color: var(--accent-hi); margin-inline: clamp(20px, 3vw, 44px); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios ---------- */
.services__grid { display: grid; gap: 18px; grid-template-columns: 1fr; perspective: 1200px; }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; padding: clamp(26px, 3vw, 38px);
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface-1) 70%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .13), transparent 55%);
  transition: opacity var(--t-med) var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease);
}
.card:hover { border-color: rgba(201, 204, 211, .32); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: .8125rem; letter-spacing: .1em; color: var(--muted); }
.card__icon { width: 52px; height: 52px; color: var(--silver); margin-bottom: 26px; }
.card__icon .hl { stroke: var(--accent-hi); }
.card__title { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.125rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.card__text { margin-top: 12px; color: var(--muted); font-size: .9688rem; }

/* ---------- Por qué elegirnos ---------- */
.why { background: var(--surface-1); border-block: 1px solid var(--line); }
.why__grid { display: grid; gap: clamp(36px, 6vw, 90px); align-items: center; }
@media (min-width: 900px) { .why__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.why__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 720px; background: var(--surface-2); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.why__list { margin-top: 34px; display: grid; gap: 0; }
.why__list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list svg { width: 36px; height: 36px; color: var(--accent-hi); margin-top: 2px; }
.why__list h3 { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.0625rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; }
.why__list p { color: var(--muted); font-size: .9688rem; margin-top: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 5vw, 64px); margin-top: 38px; }
.stat__num {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; line-height: 1;
  font-size: clamp(2.6rem, 6vw, 4.5rem); font-variant-numeric: tabular-nums;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: 8px; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); font-weight: 600; }

/* ---------- Trabajos ---------- */
.works { padding-block: var(--section) 0; overflow: hidden; }
.works__pin { display: flex; flex-direction: column; justify-content: center; }
.works__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.works__hint { color: var(--muted); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.works__hint svg { width: 28px; height: 12px; }
.works__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.works__viewport::-webkit-scrollbar { display: none; }
.works__track { display: flex; gap: clamp(14px, 2vw, 26px); width: max-content; padding-inline: var(--gutter); }
.work { flex: none; width: min(82vw, 68vh, 640px); scroll-snap-align: center; }
.work__link { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); aspect-ratio: 4 / 3; cursor: zoom-in; }
.work__link img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.work__link:hover img, .work__link:focus-visible img { transform: scale(1.05); }
.work__link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 11, 13, .82) 0%, rgba(11, 11, 13, 0) 42%);
}
.work__cap {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
}
.work__cap small { font-size: .75rem; color: var(--silver); font-weight: 600; }
@media (min-width: 1024px) {
  .js.has-gsap .works__pin { min-height: 100vh; padding-block: calc(var(--header-h) + 12px) 24px; }
  .js.has-gsap .works__viewport { overflow: hidden; scroll-snap-type: none; }
  .js.has-gsap .work { width: min(44vw, 72vh, 700px); }
}

/* Antes / Después */
.compare { padding-block: clamp(64px, 9vw, 120px) var(--section); }
.compare__grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .compare__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.compare__tabs { display: none; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.js .compare__tabs { display: flex; }
.compare__tab {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8438rem; font-weight: 600; color: var(--muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.compare__tab:hover { color: var(--text); border-color: rgba(201, 204, 211, .4); }
.compare__tab[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.compare__stage { display: grid; gap: 28px; }
.ba__frame { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.ba__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.ba__before { order: -1; }
.ba__tag {
  position: absolute; top: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px;
  background: rgba(11, 11, 13, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; pointer-events: none;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; background: var(--accent); }
.ba__handle, .ba__range { display: none; }
.ba figcaption { margin-top: 14px; color: var(--muted); font-size: .9063rem; }
.ba figcaption strong { color: var(--text); font-weight: 700; }
/* Con JS: slider arrastrable, un par a la vez */
.js .ba[hidden] { display: none; }
.js .ba__frame { --pos: 50%; display: block; aspect-ratio: 4 / 3; touch-action: pan-y; }
.js .ba__frame picture, .js .ba__before { position: absolute; inset: 0; }
.js .ba__before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.js .ba__handle {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px;
  background: #fff; pointer-events: none;
}
.js .ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.js .ba__range {
  display: block; position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.js .ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100vh; }
.js .ba__range::-moz-range-thumb { width: 46px; height: 100vh; border: 0; }
.js .ba__frame:has(.ba__range:focus-visible) { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(11, 11, 13, .96); color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(11, 11, 13, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in var(--t-fast) var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); }
.lightbox__count { font-size: .8125rem; letter-spacing: .16em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox__stage { --pad: clamp(8px, 6vw, 90px); position: relative; min-height: 0; }
.lightbox__stage picture { display: contents; }
.lightbox__img { position: absolute; top: 0; left: var(--pad); width: calc(100% - var(--pad) * 2); height: 100%; object-fit: contain; transition: opacity var(--t-fast) var(--ease); }
.lightbox__img.is-loading { opacity: 0; }
.lightbox__caption { padding: 16px var(--gutter) 22px; text-align: center; font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(201, 204, 211, .35); background: rgba(20, 20, 24, .7); color: var(--text);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.lightbox__nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }

/* ---------- Testimonios (sección clara) ---------- */
.reviews { background: var(--light); color: var(--light-text); overflow: hidden; }
.reviews .eyebrow { color: var(--accent-deep); }
.reviews .title em { background: none; color: var(--accent-deep); -webkit-text-fill-color: currentColor; }
.reviews .lead { color: var(--light-muted); }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.reviews__controls { display: flex; gap: 10px; }
.reviews .icon-btn { background: transparent; border-color: rgba(20, 20, 24, .3); color: var(--light-text); }
.reviews .icon-btn:hover { background: var(--light-text); border-color: var(--light-text); color: #fff; }
.reviews :focus-visible { outline-color: var(--accent-deep); }
.reviews__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: none; width: min(86vw, 440px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 3vw, 34px); background: #fff; border: 1px solid rgba(20, 20, 24, .08); border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -30px rgba(20, 20, 24, .35);
}
.review__mark { width: 34px; height: 26px; color: var(--accent); }
.review__stars { display: flex; gap: 3px; color: var(--accent); }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { font-size: .9844rem; line-height: 1.7; color: #2A2A31; }
.review blockquote p + p { margin-top: .8em; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(20, 20, 24, .1); }
.review__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--light-text); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .875rem; }
.review cite { font-style: normal; font-weight: 700; }
.reviews__foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- CTA final ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(90px, 14vw, 190px); isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 50% 110%, rgba(227, 18, 43, .55) 0%, rgba(227, 18, 43, 0) 70%),
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .05) 45%, transparent 60%),
    var(--bg);
}
.cta__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 6vw, 5rem); line-height: 1; letter-spacing: .01em; max-width: 16ch; margin-inline: auto; text-wrap: balance; }
.cta .lead { margin-inline: auto; }
.cta .btn { margin-top: 38px; }

/* ---------- Contacto ---------- */
.contact { background: var(--surface-1); border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; } }
.contact__list { margin-top: 34px; display: grid; }
.contact__list li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list svg { width: 22px; height: 22px; color: var(--accent-hi); margin-top: 3px; }
.contact__label { display: block; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact__value { font-size: 1.0313rem; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact__value { font-size: .9375rem; } }
a.contact__value { text-decoration: underline; text-decoration-color: rgba(201, 204, 211, .35); text-underline-offset: 4px; transition: text-decoration-color var(--t-fast) var(--ease); }
a.contact__value:hover { text-decoration-color: var(--accent-hi); }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.map { position: relative; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { padding-block: 56px 28px; border-top: 1px solid var(--line); font-size: .9375rem; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.footer h2 { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.footer li a, .footer address a { display: inline-block; padding: 5px 0; color: var(--text); opacity: .86; transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.footer li a:hover, .footer address a:hover { opacity: 1; color: var(--accent-hi); }
.footer address { display: grid; gap: 2px; justify-items: start; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .8125rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #128C4B; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
  transition: transform var(--t-fast) var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1;
  animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Cursor personalizado (solo desktop con puntero fino) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 140; width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1px solid rgba(244, 244, 245, .6); border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: difference;
  }
  .has-cursor .cursor__dot { position: absolute; inset: 0; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--t-fast) var(--ease); }
  .has-cursor .cursor.is-active .cursor__dot { transform: scale(.45); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .wa-float::before, .scroll-cue__line::after { display: none; }
  .hero__media { inset: 0; }
  .card { transform: none !important; }
}
