/* ========== Base ========== */
:root {
  --ink: #1b2530;
  --ink-2: #2a3642;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --line: #e2e6ea;
  --muted: #687482;
  --accent: #d1262b;
  --wa: #1fae5b;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ico-wa { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(28px, 3.4vw, 44px); }
.display { font-size: clamp(42px, 8vw, 112px); font-weight: 800; letter-spacing: -0.03em; line-height: .98; }
.script { font-family: 'Caveat', cursive; font-size: clamp(28px, 3vw, 40px); color: var(--accent); line-height: 1; }
.script--lg { font-size: clamp(36px, 4.5vw, 60px); }

/* ========== Marcadores de imagen ========== */
.ph {
  position: relative;
  width: 100%; height: 100%;
  background-color: #e9edf0;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(27,37,48,.035) 14px 15px);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(27,37,48,.45);
  padding: 8px 14px; border: 1px dashed rgba(27,37,48,.25); border-radius: 999px;
  white-space: nowrap;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2.8s var(--ease) infinite;
}
.ph--dark { background-color: #2c3843; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.03) 14px 15px); }
.ph--dark::after { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.25); }
.ph--dark::before { background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%); }
.ph.has-img::before, .ph.has-img::after { display: none; }
.hero .ph::after { left: auto; right: 10%; top: 32%; transform: none; }
[data-reveal="img"], .service__media { position: relative; }
.ph[data-parallax-inner] { position: absolute; left: 0; right: 0; top: -40px; bottom: -40px; width: auto; height: auto; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ========== Cortina (carga + transición) ========== */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  transform: translateY(0);
  pointer-events: none;
}
.curtain.is-out { transform: translateY(-100%); transition: transform .9s var(--ease-io); }
.curtain.is-in { transform: translateY(0); transition: transform .7s var(--ease-io); }
.curtain.is-reset { transform: translateY(100%); transition: none; }
.curtain__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.curtain__logo { width: 64px; height: 56px; stroke-width: 3; }
.curtain__logo path { stroke-dasharray: 160; stroke-dashoffset: 160; }
.curtain.is-loading .curtain__logo path { animation: draw 1.1s var(--ease) forwards; }
.curtain.is-loading .curtain__logo path:nth-child(2) { animation-delay: .15s; }
.curtain.is-loading .curtain__logo path:nth-child(3) { animation-delay: .3s; }
.curtain__label {
  font-size: clamp(28px, 5vw, 56px); font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  overflow: hidden; display: block;
}
.curtain__label span { display: inline-block; transform: translateY(110%); }
.curtain.is-loading .curtain__label span,
.curtain.is-in .curtain__label span { animation: rise .8s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: translateY(0); } }

/* ========== Barra de progreso y cursor ========== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent); opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background .3s;
  mix-blend-mode: multiply;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(209,38,43,.14); }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); mix-blend-mode: normal; }
.cursor.is-view::after { content: "Ver"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ========== Cabecera ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease), background .4s, box-shadow .4s, color .4s;
  color: #fff;
}
.header.is-solid { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
body:not(.on-home) .header { color: var(--ink); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__icon { width: 40px; height: 35px; stroke-width: 4; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 24px; font-weight: 800; letter-spacing: .04em; }
.brand__text small { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }

.nav { position: relative; display: flex; gap: 34px; margin: 0 auto; }
.nav a { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; opacity: .75; transition: opacity .3s; }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav__bar { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--accent); transition: transform .6s var(--ease), width .6s var(--ease); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px 9px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; line-height: 1.1;
}
.pill small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.pill svg { width: 26px; height: 26px; }
.pill--dark { background: var(--ink); color: #fff; }
.header:not(.is-solid) .pill--dark { background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); }
body:not(.on-home) .header:not(.is-solid) .pill--dark { background: var(--ink); border-color: transparent; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; position: relative; margin-left: auto; z-index: 70; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger { color: #fff; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 0 28px;
  clip-path: circle(0% at calc(100% - 38px) 42px);
  transition: clip-path .8s var(--ease-io);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 38px) 42px); }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-size: clamp(34px, 10vw, 52px); font-weight: 700; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease); }
.menu nav a em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: .1em; }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(1) { transition-delay: .25s; } .menu-open .menu nav a:nth-child(2) { transition-delay: .31s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: .37s; } .menu-open .menu nav a:nth-child(4) { transition-delay: .43s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: .49s; }
.menu__foot { position: absolute; bottom: 32px; left: 28px; font-size: 13px; opacity: .6; }

/* ========== Páginas ========== */
.page { display: none; }
.page.is-current { display: block; }

/* ========== Reveal al hacer scroll ========== */
[data-reveal] { transition: opacity 1s var(--ease), transform 1.1s var(--ease), clip-path 1.3s var(--ease-io); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
[data-reveal="up"] { opacity: 0; transform: translateY(36px); }
[data-reveal="fade"] { opacity: 0; }
[data-reveal="img"] { clip-path: inset(100% 0 0 0); }
[data-reveal="img"] > .ph { transform: scale(1.25); transition: transform 1.6s var(--ease); }
[data-reveal="draw"] { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
[data-reveal="img"].is-in > .ph { transform: scale(1); }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 70ms); }
[data-split].is-in .w > span { transform: none; }

/* ========== Hero ========== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; display: flex; align-items: center; }
.hero { background: var(--ink); }
.hero__media { position: absolute; top: -8%; bottom: -8%; left: 44%; right: 0; transform: scale(1.15); transition: transform 2.6s var(--ease); }
.hero .ph { background-position: 60% 45%; }
.page.is-shown .hero__media { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 44%, rgba(27,37,48,.6) 52%, rgba(27,37,48,0) 68%), linear-gradient(0deg, rgba(17,24,31,.6) 0%, rgba(17,24,31,0) 38%); }
.hero__content { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 18px; }
.hero__title { font-size: clamp(46px, 8vw, 104px); font-weight: 800; line-height: .95; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.hero__title .line + .line > span { transition-delay: .12s; }
.hero__title .line--light { font-weight: 300; font-size: .52em; letter-spacing: .02em; text-transform: uppercase; margin-top: .18em; }
.page.is-shown .hero__title .line > span { transform: none; }
.hero__lead { font-weight: 600; font-size: clamp(16px, 1.5vw, 20px); margin-top: 26px; }
.hero__text { max-width: 470px; margin-top: 12px; color: rgba(255,255,255,.78); font-size: 15px; }
.perks { display: flex; gap: 0; margin: 32px 0 36px; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; padding: 0 24px; border-left: 1px solid rgba(255,255,255,.25); }
.perks li:first-child { padding-left: 0; border-left: 0; }
.perks svg { width: 30px; height: 30px; flex: none; }
.hero__script {
  position: absolute; z-index: 2; right: calc(var(--gutter) + 2vw); bottom: 18%;
  font-family: 'Caveat', cursive; font-size: clamp(34px, 4.2vw, 64px); line-height: .95; transform: rotate(-8deg);
  clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-io) .9s;
}
.page.is-shown .hero__script { clip-path: inset(0 0 0 0); }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: scrollLine 2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ========== Botones ========== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s;
}
.btn svg { width: 20px; height: 20px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa::before { background: var(--ink); }
.btn--lg { padding: 20px 34px; font-size: 17px; }
.btn--lg svg { width: 24px; height: 24px; }

.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; position: relative; padding-bottom: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .6s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ========== Servicios (tira de iconos) ========== */
.services-strip { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.services-strip__head .muted { margin-top: 12px; font-size: 14px; }
.services-strip__list { display: grid; grid-template-columns: repeat(7, 1fr); }
.svc {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 14px 8px; border-left: 1px solid var(--line); font-size: 13px; line-height: 1.3; font-weight: 500;
  transition: color .3s;
}
.svc svg { width: 38px; height: 38px; stroke-width: 1.3; transition: transform .6s var(--ease); }
.svc svg * { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 200ms); }
.svc.is-in svg * { stroke-dashoffset: 0; }
.svc:hover { color: var(--accent); }
.svc:hover svg { transform: translateY(-6px); }

/* ========== Marquee ========== */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--mist); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { font-size: clamp(36px, 6vw, 84px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; padding-right: .6em; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.marquee__track span:nth-child(even) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee__track i { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; padding-right: .6em; font-size: clamp(36px, 6vw, 84px); font-weight: 800; }

/* ========== Secciones ========== */
.section { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(40px, 6vw, 80px); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section__head .muted { margin-top: 12px; font-size: 15px; max-width: 520px; }

/* Trabajos */
.works { display: grid; gap: 16px; }
.works--home { grid-template-columns: repeat(3, 1fr); }
.works--all { grid-template-columns: repeat(12, 1fr); padding-bottom: 120px; gap: 18px; }
.work { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--mist); cursor: pointer; }
.work__img { width: 100%; height: 100%; overflow: hidden; background: var(--mist); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); opacity: 0; transition: transform 1.4s var(--ease), opacity .8s; }
.work__img img.is-loaded { opacity: 1; transform: scale(1); }
.work:hover .work__img img.is-loaded { transform: scale(1.06); }
.works--home .work { aspect-ratio: 4 / 5; }
.work__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(transparent, rgba(17,24,31,.75));
}
.work__cap em { font-style: normal; font-size: 11px; opacity: .7; letter-spacing: .1em; }
.work__cap b { font-weight: 600; display: inline-block; transform: translateY(0); transition: transform .5s var(--ease); }
.work::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 12px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.work:hover::after { transform: scaleX(1); }
.work:hover .work__cap b { transform: translateY(-4px); }

/* Mosaico de la pestaña Trabajos (columnas tipo masonry, respeta la forma de cada foto) */
.works--all { display: block; columns: 3; column-gap: 18px; }
.works--all .work { break-inside: avoid; margin-bottom: 18px; height: auto; }
.works--all .work__img img { height: auto; aspect-ratio: 3 / 4; }
.works--all .work__img img.is-loaded { aspect-ratio: auto; }
.works--all .work[hidden] { display: none; }
.works.is-filtering .work { opacity: 0; transform: translateY(24px) scale(.98); transition-delay: 0ms; transition-duration: .35s; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink);
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s;
}
.chip sup { font-size: 10px; margin-left: 4px; opacity: .55; }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { color: #fff; border-color: var(--ink); }
.chip.is-active::before { transform: none; }

/* Vídeos de obra */
.videos { background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 140px) 0; }
.videos .muted { color: rgba(255,255,255,.65); }
.eyebrow--light { color: rgba(255,255,255,.6); margin-bottom: 14px; }
.videos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vcard { position: relative; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: #000; color: #fff; }
.vcard video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; opacity: .85; }
.vcard:hover video { transform: scale(1.05); opacity: 1; }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; transition: transform .5s var(--ease), background .4s; }
.vcard__play svg { width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 3px; }
.vcard:hover .vcard__play { transform: scale(1.15); background: var(--accent); }
.vcard__num { position: absolute; left: 16px; bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; }

/* Calidad */
.quality { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); }
.quality__media { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 4px; }
.quality__body .muted { margin: 18px 0 26px; max-width: 460px; }
.checks { display: grid; gap: 14px; margin-bottom: 34px; }
.checks li { display: flex; gap: 14px; align-items: center; font-weight: 500; }
.checks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: clamp(90px, 12vw, 160px) 0; text-align: center; overflow: hidden; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(34px, 5.5vw, 76px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 22px; max-width: 900px; }
.cta__meta { color: rgba(255,255,255,.7); margin-bottom: 38px; }
.cta__meta strong { color: #fff; }

/* ========== Cabecera de pestañas ========== */
.page-hero { padding-top: calc(var(--header-h) + clamp(60px, 9vw, 130px)); padding-bottom: clamp(50px, 6vw, 90px); }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero__lead { max-width: 560px; margin-top: 28px; font-size: 17px; }

/* Lista de servicios */
.service-list { padding-bottom: 120px; }
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line);
}
.service:nth-child(even) .service__media { order: 2; }
.service__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.service__num { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .15em; }
.service__body h2 { font-size: clamp(30px, 4vw, 54px); margin: 14px 0 18px; }
.service__body p { max-width: 440px; }
.service__body svg { width: 46px; height: 46px; stroke-width: 1.2; margin-bottom: 18px; color: var(--ink); }

/* Sobre mí */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.about__body .muted { margin: 18px 0 28px; font-size: 17px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: clamp(80px, 10vw, 140px); }
.values article { padding: 8px 32px 8px 32px; border-left: 1px solid var(--line); }
.values article:first-child { border-left: 0; padding-left: 0; }
.values svg { width: 40px; height: 40px; stroke-width: 1.3; margin-bottom: 22px; }
.values h3 { font-size: 20px; margin-bottom: 10px; }
.process { padding-top: clamp(80px, 10vw, 140px); padding-bottom: 140px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; counter-reset: s; }
.steps li { padding: 28px 24px 32px; background: var(--mist); border-radius: 4px; position: relative; overflow: hidden; transition: background .5s, color .5s; }
.steps li em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.steps h3 { font-size: 22px; margin: 34px 0 10px; }
.steps li:hover { background: var(--ink); color: #fff; }
.steps li:hover .muted { color: rgba(255,255,255,.7); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: calc(var(--header-h) + clamp(50px, 7vw, 100px)); padding-bottom: 120px; min-height: 100vh; }
.contact .script { margin: 18px 0 8px; }
.contact__list { display: grid; gap: 0; margin: 44px 0 40px; border-top: 1px solid var(--line); }
.contact__list li { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; }
.contact__list small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.contact__list svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--accent); }
.contact__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }

/* ========== Pie ========== */
.footer { background: var(--ink); color: #fff; padding: 56px 0 28px; }
.footer__top { display: flex; align-items: center; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__nav { display: flex; gap: 28px; margin-left: auto; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.footer__nav a { opacity: .75; transition: opacity .3s; }
.footer__nav a:hover { opacity: 1; }
.footer__phone { font-weight: 700; font-size: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 12px; opacity: .6; flex-wrap: wrap; }
.page[data-page="inicio"].is-current ~ .footer { margin-top: 0; }

/* ========== Botón flotante ========== */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(31,174,91,.35);
  transform: scale(0); transition: transform .6s var(--ease);
}
.fab.is-on { transform: scale(1); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ========== Visor ========== */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(17,24,31,.94);
  display: flex; align-items: center; justify-content: center; gap: 20px; padding: 40px 16px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; width: min(1100px, 100%); color: #fff; transform: scale(.92) translateY(20px); transition: transform .7s var(--ease); }
.lightbox.is-open .lightbox__fig { transform: none; }
.lightbox__img { height: 78vh; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox__img img, .lightbox__img video { max-width: 100%; max-height: 100%; border-radius: 4px; animation: lbIn .7s var(--ease); background: #000; }
.lightbox figcaption { width: 100%; }
@keyframes lbIn { from { opacity: 0; transform: scale(1.04); } }
.lightbox figcaption { margin-top: 16px; display: flex; justify-content: space-between; font-weight: 600; }
.lightbox figcaption em { font-style: normal; opacity: .6; font-weight: 500; }
.lightbox button { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; cursor: pointer; flex: none; transition: background .3s, color .3s; font-family: inherit; }
.lightbox button:hover { background: #fff; color: var(--ink); }
.lightbox__close { position: absolute; top: 20px; right: 20px; font-size: 28px !important; }

/* Reseñas y redes */
.reviews { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(80px, 10vw, 140px); }
.reviews .muted { max-width: 520px; margin: 16px 0 32px; }
.stars { display: flex; gap: 6px; margin-bottom: 22px; color: #f4b400; }
.stars svg { width: 30px; height: 30px; fill: currentColor; stroke: currentColor; transform: scale(0) rotate(-40deg); transition: transform .8s var(--ease); }
.stars.is-in svg { transform: none; }
.stars svg:nth-child(2) { transition-delay: .08s; } .stars svg:nth-child(3) { transition-delay: .16s; }
.stars svg:nth-child(4) { transition-delay: .24s; } .stars svg:nth-child(5) { transition-delay: .32s; }
.reviews__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before { background: var(--accent); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); margin-left: 10px; }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: #fff; }
.btn--line svg { color: #f4b400; fill: currentColor; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: background .3s, color .3s; }
.footer__social a:hover { background: #fff; color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .services-strip { grid-template-columns: 1fr; gap: 28px; }
  .services-strip__list { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .svc:nth-child(4n+1) { border-left: 0; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav, .header .pill { display: none; }
  .hero__media { left: 0; }
  .hero .ph { background-position: 62% 40%; }
  .hero__shade { background: linear-gradient(90deg, rgba(17,24,31,.85) 0%, rgba(17,24,31,.55) 60%, rgba(17,24,31,.3) 100%), linear-gradient(0deg, rgba(17,24,31,.6), rgba(17,24,31,0) 40%); }
  .burger { display: block; }
  .quality, .about, .contact, .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
  .contact__media { order: -1; aspect-ratio: 16 / 10; }
  .contact { min-height: 0; }
  .values { grid-template-columns: 1fr; gap: 36px; }
  .values article { padding: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .works--home { grid-template-columns: 1fr 1fr; }
  .works--all { columns: 2; column-gap: 12px; }
  .works--all .work { margin-bottom: 12px; }
  .videos__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { flex-wrap: wrap; }
  .footer__nav { margin-left: 0; order: 3; width: 100%; flex-wrap: wrap; gap: 18px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 15px; }
  .brand__icon { width: 34px; height: 30px; }
  .brand__text strong { font-size: 21px; }
  .brand__text small { font-size: 8.5px; }

  /* Portada: foto arriba a la vista y texto debajo sobre fondo oscuro */
  .hero { display: block; height: auto; min-height: 0; }
  .hero__media { position: relative; top: auto; bottom: auto; left: auto; right: auto; height: 62svh; min-height: 360px; translate: none !important; }
  .hero .ph { background-position: 58% 38%; }
  .hero__shade { bottom: auto; height: 62svh; min-height: 360px;
    background: linear-gradient(180deg, rgba(17,24,31,.55) 0%, rgba(17,24,31,0) 22%, rgba(17,24,31,0) 62%, var(--ink) 100%); }
  .hero__content { padding-top: 0; margin-top: -64px; padding-bottom: 44px; }
  .hero .eyebrow { display: none; }
  .hero__title { font-size: clamp(46px, 14vw, 60px); }
  .hero__title .line--light { font-size: .4em; }
  .hero__lead { margin-top: 16px; font-size: 15px; }
  .hero__text { font-size: 13.5px; margin-top: 8px; }
  .perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 22px; }
  .perks li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 0 0 10px; border-left: 1px solid rgba(255,255,255,.2); font-size: 11px; }
  .perks li:first-child { padding-left: 0; border-left: 0; }
  .perks svg { width: 22px; height: 22px; }
  .hero .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 14px; }
  .hero__script { right: 18px; bottom: auto; top: calc(var(--header-h) + 14px); font-size: 26px; }

  /* Servicios: fila deslizable */
  .services-strip { padding-top: 56px; padding-bottom: 48px; gap: 22px; }
  .services-strip__list {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none;
  }
  .services-strip__list::-webkit-scrollbar { display: none; }
  .svc, .svc:nth-child(n) { flex: 0 0 92px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 6px; padding: 12px 4px; gap: 8px; font-size: 11px; }
  .svc svg { width: 26px; height: 26px; }
  .marquee { padding: 16px 0; }
  .marquee__track span, .marquee__track i { font-size: 34px; }

  .section { padding-top: 64px; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .works--home { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work__cap { padding: 22px 10px 8px; font-size: 11px; background: linear-gradient(transparent, rgba(17,24,31,.6)); }
  .work__cap em { display: none; }
  .work::after { display: none; }
  .quality { padding-top: 40px; padding-bottom: 72px; }
  .checks { gap: 12px; }

  .reviews .btn, .cta .btn, .contact .btn { width: 100%; justify-content: center; }
  .reviews__actions { width: 100%; gap: 22px; flex-direction: column; }
  .btn--line { margin: 12px 0 0; }
  .cta__title { font-size: 34px; }

  /* Pestañas */
  .page-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 36px; }
  .page-hero__lead { font-size: 15px; margin-top: 18px; }
  .display { font-size: clamp(40px, 12vw, 56px); }
  .service { gap: 18px; padding: 28px 0; }
  .service__media { aspect-ratio: 16 / 10; }
  .service__body h2 { font-size: 26px; margin: 6px 0 8px; }
  .service__body svg { display: none; }
  .service__body p { font-size: 14px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 8px 14px; font-size: 12px; }
  .works--all { column-gap: 10px; }
  .works--all .work { margin-bottom: 10px; }
  .videos__grid { gap: 10px; }
  .vcard__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .vcard__play svg { width: 18px; height: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 18px 18px 20px; }
  .steps h3 { margin-top: 10px; font-size: 18px; }
  .process { padding-bottom: 80px; }
  .contact { padding-top: calc(var(--header-h) + 24px); padding-bottom: 72px; gap: 28px; }
  .contact__list { margin: 28px 0; }
  .contact__list li { font-size: 15px; padding: 13px 0; gap: 14px; }
  .contact__list svg { width: 22px; height: 22px; }
  .btn--lg { padding: 18px 24px; font-size: 15px; }

  /* Pie */
  .footer { padding-top: 44px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer__nav { gap: 14px 20px; }
  .footer__bottom { flex-direction: column; gap: 6px; }

  /* Visor */
  .lightbox { padding: 60px 10px 100px; }
  .lightbox__img { height: 70vh; }
  .lightbox__nav { position: absolute; bottom: 28px; }
  .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); }
  .lightbox__close { top: 10px; right: 10px; }

  .scroll-hint { display: none; }
  .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .fab svg { width: 24px; height: 24px; }
  .menu-open .fab { transform: scale(0); }
}

.menu__actions { display: flex; gap: 10px; margin-top: 40px; opacity: 0; transition: opacity .5s .55s; }
.menu-open .menu__actions { opacity: 1; }
.menu__actions a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-size: 14px; font-weight: 600; }
.menu__actions a:first-child { background: var(--wa); border-color: var(--wa); }
.menu__actions svg { width: 18px; height: 18px; }

/* En pantallas táctiles no se quedan "pegados" los efectos de hover */
@media (hover: none) {
  .work:hover .work__img img.is-loaded { transform: scale(1); }
  .work:hover::after { transform: scaleX(0); }
  .svc:hover svg { transform: none; }
  .steps li:hover { background: var(--mist); color: inherit; }
  .steps li:hover .muted { color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}

/* Con el menú abierto la cabecera se integra en el fondo oscuro */
.menu-open .header, .menu-open .header.is-solid { background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
