/* ==========================================================================
   Gades Estudio · estilos
   Tokens arriba: cambia colores y radios en :root y todo el sitio sigue.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --panel: #16161a;
  --line: rgba(243, 241, 236, 0.12);
  --line-strong: rgba(243, 241, 236, 0.28);
  --ink: #f3f1ec;
  --muted: #a6a29b;
  --accent: #ff6a3d;
  --accent-hover: #ff7d55;
  --accent-ink: #0b0b0c;
  --error: #ff8a6b;

  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --nav: 72px;
  --gut: clamp(20px, 5.6vw, 80px);
  --padt: clamp(96px, 12vw, 140px);
  --padb: clamp(72px, 8vw, 110px);

  --r-lg: 20px;
  --r-md: 14px;
  --r-btn: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
main { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* Enlaces con línea que se dibuja al pasar el puntero */
.nav__links a:not(.btn),
.foot__nav a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.35s var(--ease), color 0.25s;
  padding-bottom: 2px;
}
.nav__links a:not(.btn):hover,
.foot__nav a:hover { background-size: 100% 1px; }

/* ---------- Botones: un solo estilo para todo el sitio ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font: 500 16px/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 13px/1 var(--sans);
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}
.nav__links a:not(.btn) { color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__menu-cta { display: none; }
.nav__cta { height: 46px; padding: 0 22px; }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Entradas al cargar ---------- */
.enter { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Revelado al entrar en pantalla (solo con JS) ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Títulos de sección: suben línea a línea desde una máscara (js/motion.js) ---------- */
.mw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.07em 0.2em;
  margin: -0.08em -0.07em -0.2em;
}
.mw__in { display: inline-block; }
.is-split .mw__in {
  transform: translateY(112%);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--l, 0) * 80ms);
}
.is-split.is-in .mw__in { transform: none; }
/* El bloque del título ya no se funde entero: sube el título y el resto aparece detrás */
.js .rv.has-split { opacity: 1; transform: none; }
.js .rv.has-split > :not(h2):not(:has(h2)),
.js .rv.has-split .stat {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease) 0.3s, transform 0.9s var(--ease) 0.3s;
}
.js .rv.has-split .stat { transition-delay: 0s; }
.js .rv.has-split.is-in > :not(h2):not(:has(h2)),
.js .rv.has-split.is-in .stat { opacity: 1; transform: none; }

/* ---------- Scroll suave (Lenis) ---------- */
html.lenis,
html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav) + 48px) 0 72px;
}

/* Fondo de la portada: un eclipse. Disco negro abajo con el borde encendido en naranja,
   una chispa que recorre el borde y un halo que respira. Solo CSS. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* Franja de abajo donde se pinta el eclipse. --R es el radio del disco y --cy su centro,
   por debajo de la franja: solo asoma el borde de arriba. */
.eclipse {
  --R: 80vw;
  --cy: calc(100% - 64px + var(--R));
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 520px;
  margin-left: -50vw;
  background: radial-gradient(circle at 50% var(--cy),
    var(--bg) calc(var(--R) - 1px),
    rgba(255, 196, 150, 0.9) var(--R),
    rgba(255, 120, 70, 0.5) calc(var(--R) + 3px),
    rgba(255, 106, 61, 0.2) calc(var(--R) + 24px),
    rgba(255, 106, 61, 0.07) calc(var(--R) + 110px),
    transparent calc(var(--R) + 280px));
}
/* Halo grande que sube del borde y respira despacio */
.eclipse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% var(--cy),
    transparent var(--R),
    rgba(255, 96, 45, 0.2) calc(var(--R) + 8px),
    rgba(255, 80, 30, 0.07) calc(var(--R) + 200px),
    transparent calc(var(--R) + 440px));
  animation: eclipse-halo 9s ease-in-out infinite alternate;
}
/* Chispa: una ventana estrecha que se desliza y deja ver un borde más brillante */
.eclipse__spark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 140px);
  width: 280px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent);
  mask: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent);
  animation: eclipse-spark 13s ease-in-out infinite alternate;
}
.eclipse__ring {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(140px - 50vw);
  width: 100vw;
  background: radial-gradient(circle at 50% var(--cy),
    transparent calc(var(--R) - 2px),
    rgba(255, 236, 214, 1) var(--R),
    rgba(255, 160, 100, 0.7) calc(var(--R) + 4px),
    rgba(255, 106, 61, 0.18) calc(var(--R) + 26px),
    transparent calc(var(--R) + 60px));
  animation: eclipse-spark-back 13s ease-in-out infinite alternate;
}
@keyframes eclipse-halo {
  from { opacity: 0.5; }
  to { opacity: 1; }
}
@keyframes eclipse-spark {
  from { transform: translateX(-30vw); }
  to { transform: translateX(30vw); }
}
@keyframes eclipse-spark-back {
  from { transform: translateX(30vw); }
  to { transform: translateX(-30vw); }
}

/* Brillo naranja muy suave detrás del formulario de Contacto. Se mueve despacio. */
#contacto::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(1100px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 106, 61, 0.15), rgba(255, 106, 61, 0.05) 55%, transparent);
  animation: glow 30s ease-in-out infinite alternate-reverse;
}
#contacto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}
#contacto::before { right: -16vw; top: 50%; translate: 0 -50%; }
@keyframes glow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7%, 5%, 0) scale(1.08); }
  100% { transform: translate3d(4%, -6%, 0) scale(0.95); }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  margin-bottom: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
/* El titular se ajusta al ancho y también al alto de la pantalla,
   para que los botones quepan en portátiles con poca altura. */
.hero__title {
  font-size: clamp(44px, min(5.6vw, 10vh), 88px);
  font-size: clamp(44px, min(5.6vw, 10svh), 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero__title .word { display: inline-block; }
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero__lead {
  margin-top: 28px;
  max-width: 32em;
  font-size: 19px;
  color: var(--muted);
}
.hero__copy .btn-row { margin-top: 40px; }
.facts {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 15px;
  color: var(--muted);
}
.facts li { display: flex; align-items: center; gap: 10px; }
.facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.wa-icon { color: #25d366; flex: none; }

/* Portada: una web real vuestra en ordenador y en móvil, recorriéndose sola */
.hero__visual { position: relative; padding: 0 9% 9% 0; }
.browser {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.7);
}
.browser__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(243, 241, 236, 0.18); }

/* Pantalla que recorta una captura larga. --h es su alto en relación a su ancho. */
.screen {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.screen img { width: 100%; height: auto; will-change: transform; }
.screen--desk { aspect-ratio: 16 / 10; }
.screen--desk img { --end: calc(-100% + 62.5cqw); }
.screen--phone { aspect-ratio: 390 / 844; border-radius: 22px; }
.screen--phone img { --end: calc(-100% + 216.4cqw); }

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  padding: 7px;
  border-radius: 30px;
  background: #1d1d22;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}

.hero__visual .screen img { animation: tour 26s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.hero__visual .phone .screen img { animation-duration: 22s; animation-delay: 3s; }
@keyframes tour {
  0%, 10% { transform: translateY(0); }
  62%, 74% { transform: translateY(var(--end)); }
  90%, 100% { transform: translateY(0); }
}

/* ---------- Secciones ---------- */
.sec { padding: var(--padt) 0 var(--padb); }
.sec--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-head h2,
.about h2,
.contact h2 {
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1;
}
.lead { color: var(--muted); font-size: 18px; max-width: 34em; }

/* Cifra encima del título de Trabajos */
.stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
}
.stat strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 60px;
  line-height: 0.8;
  color: var(--accent);
}

/* Qué consigue tu negocio: filas, sin iconos */
.outcomes {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.outcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.outcome h3 {
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1.05;
  transition: transform 0.45s var(--ease);
}
.outcome h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.outcome p { color: var(--muted); font-size: 18px; max-width: 30em; }
.outcome:hover h3 { transform: translateX(8px); }

/* Proceso */
.steps {
  position: relative;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
}
.steps::before { background: var(--line); }
.steps::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s linear 0.2s;
}
.steps.is-in::after { transform: scaleX(1); }
.step { padding-top: 36px; }
.step__n {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 46px;
  line-height: 1;
  color: var(--accent);
}
/* Cada número pasa de gris a naranja cuando la línea llega a su columna */
.js .step__n { color: rgba(243, 241, 236, 0.24); transition: color 0.5s var(--ease); }
.js .steps.is-in .step__n { color: var(--accent); }
.js .steps.is-in .step:nth-child(1) .step__n { transition-delay: 0.2s; }
.js .steps.is-in .step:nth-child(2) .step__n { transition-delay: 0.6s; }
.js .steps.is-in .step:nth-child(3) .step__n { transition-delay: 1s; }
.js .steps.is-in .step:nth-child(4) .step__n { transition-delay: 1.45s; }
.step h3 { font-size: 21px; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* Tarifas */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.prices > .rv { height: 100%; }
.price {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.price:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.price--featured { border-color: var(--accent); }
.price--featured:hover { border-color: var(--accent); }
/* Tarifa recomendada: su borde naranja se dibuja alrededor al entrar en pantalla */
@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.js .price--featured,
.js .price--featured:hover { border-color: var(--line); }
.js .price--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-lg) + 1px);
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from 0deg, var(--accent) var(--sweep), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: --sweep 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
}
.js .prices__featured.is-in .price--featured::before { --sweep: 360deg; }
.price__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 13px/26px var(--text);
}
.price h3 { font-size: 24px; }
.price__for { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 8px; min-height: 3em; }
.price__amount {
  margin: 26px 0 26px;
  font-family: var(--sans);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price__from {
  display: block;
  margin-bottom: 8px;
  font: 400 16px/1.2 var(--text);
  letter-spacing: 0;
  color: var(--muted);
}
.price__amount small {
  display: block;
  margin-top: 10px;
  font: 400 15px/1.3 var(--text);
  letter-spacing: 0;
  color: var(--muted);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
}
.ticks li { display: flex; align-items: flex-start; gap: 12px; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.price .btn { margin-top: auto; width: 100%; }

/* Tienda y mantenimiento: líneas pequeñas bajo las tres tarifas */
.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.extra h3 { font-size: 18px; letter-spacing: -0.02em; }
.extra p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 6px; }
.link-arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateX(3px); }
.note { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* Trabajos: cada captura se recorre al pasar el ratón */
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cases > .rv { height: 100%; }
.case {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.case:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.case__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 26px 22px;
}
.case h3 { font-size: 24px; }
.case__meta { margin-top: 6px; color: var(--muted); font-size: 15px; }
/* Antes / Ahora: tiene que ser verdad para cada negocio */
.case__result {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.case__result span {
  margin-right: 4px;
  font: 600 12px/1 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.case__result span + span { margin-left: 6px; color: var(--accent); }
.case__shot {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0 12px 12px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
}
.case__shot img {
  --end: calc(-100% + 62.5cqw);
  width: 100%;
  height: auto;
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.case:hover .case__shot img,
.case.is-touring .case__shot img { transform: translateY(var(--end)); transition-duration: 7s; }
@media (hover: none) { .hover-hint { display: none; } }

/* Opiniones (bloque comentado en index.html hasta que haya opiniones reales) */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.quote { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.quote figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; }
.quote strong { color: var(--ink); font-weight: 500; }

/* Quiénes somos */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about h2 { font-size: clamp(36px, 3.8vw, 58px); line-height: 1.04; max-width: 11em; }
.about__text { margin-top: 28px; max-width: 30em; font-size: 19px; color: var(--muted); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.people > .rv { height: 100%; }
.person {
  height: 100%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.person:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.slot {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 70% at 70% 0%, rgba(255, 106, 61, 0.18), transparent 60%),
    linear-gradient(170deg, #26221e 0%, #141210 65%, #0d0c0b 100%);
}
.slot span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 110px;
  line-height: 1;
  color: rgba(243, 241, 236, 0.32);
}
.person > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* La foto se descubre como una cortina, de abajo arriba */
.js .person > .slot,
.js .person > img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}
.js .rv.is-in .person > .slot,
.js .rv.is-in .person > img { clip-path: inset(0); }
.person__body { padding: 20px 22px 24px; }
.person h3 { font-size: 22px; }
.person p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Contacto */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__lead { margin-top: 28px; }
.contact__alt { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact__alt > p:first-child { font-size: 17px; margin-bottom: 16px; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__mail { margin-top: 18px; color: var(--muted); font-size: 15px; }
.contact__mail a { color: var(--ink); }
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.field { display: grid; gap: 8px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 var(--text);
  transition: border-color 0.25s;
}
.field textarea { height: auto; min-height: 128px; padding: 14px 16px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { min-height: 0; font-size: 14px; color: var(--error); }
.field__error:empty { display: none; }
.form__submit { grid-column: 1 / -1; justify-self: start; }
.form__submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; font-size: 15px; color: var(--muted); }
.form__status.is-ok { color: var(--ink); }
.form__legal { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Casilla de privacidad */
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; }
.check input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg) no-repeat center / 14px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.check input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230b0b0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input[aria-invalid="true"] { border-color: var(--error); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check label { color: var(--ink); cursor: pointer; }

/* Campo trampa para robots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Círculo «Ver web» que sigue al ratón sobre tarjetas enlazadas (js/motion.js) */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 14px/1 var(--text);
  pointer-events: none;
  scale: 0;
  transition: scale 0.35s var(--ease);
}
.cursor.is-on { scale: 1; }
.has-cursor a.case { cursor: none; }

/* WhatsApp flotante (solo móvil) */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  display: none;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:active { transform: scale(0.95); }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 40px 0; font-size: 15px; color: var(--muted); }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot__nav a { color: var(--muted); }
.foot__nav a:hover { color: var(--ink); }
.foot .logo { font-size: 16px; color: var(--ink); }
.foot .mark { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }

/* ---------- Portátiles con poca altura (p. ej. 1366x768, 1520x703) ---------- */
@media (min-width: 961px) and (max-height: 820px) {
  .hero { padding: calc(var(--nav) + 24px) 0 32px; }
  .pill { margin-bottom: 20px; }
  .hero__lead { margin-top: 20px; font-size: 17px; }
  .hero__copy .btn-row { margin-top: 28px; }
  .facts { margin-top: 24px; }
}

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  /* Dos columnas: la línea solo cruza la primera fila */
  .js .steps.is-in .step:nth-child(2) .step__n { transition-delay: 1s; }
  .js .steps.is-in .step:nth-child(3) .step__n { transition-delay: 1.5s; }
  .js .steps.is-in .step:nth-child(4) .step__n { transition-delay: 1.8s; }
  .price { padding: 32px 22px 24px; }
  .price__amount { font-size: 44px; }
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav);
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
    padding: 24px var(--gut) 40px;
    background: var(--bg);
    overflow-y: auto;
  }
  .nav__links.is-open a:not(.nav__menu-cta) {
    padding: 18px 0;
    font-size: 22px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    background: none;
  }
  .nav__links.is-open .nav__menu-cta {
    display: flex;
    margin-top: 28px;
    width: 100%;
    height: 56px;
    font-size: 17px;
  }

  .hero { min-height: auto; padding: calc(var(--nav) + 40px) 0 64px; }
  #contacto::before { width: 140vw; right: -55vw; top: auto; bottom: -12%; translate: none; }
  .eclipse { --R: 130vw; --cy: calc(100% - 40px + var(--R)); height: 420px; }
  .hero__grid,
  .about,
  .contact { grid-template-columns: 1fr; }
  /* Móvil: titular, texto y botones; justo debajo la web de muestra; los datos al final */
  .hero__grid { gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy > .pill { justify-self: start; }
  .hero__visual { order: 1; max-width: 620px; margin-top: 44px; }
  .hero .facts { order: 2; margin-top: 32px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .outcome { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .prices { grid-template-columns: 1fr; max-width: 560px; }
  .prices__featured { order: -1; }
  .price__for { min-height: 0; }
  .extras { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .wa-float { display: grid; }
  .foot { padding-bottom: 104px; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__title { font-size: clamp(42px, 12.4vw, 60px); }
  .hero__lead { font-size: 17px; }
  .btn-row .btn { width: 100%; }
  .stat strong { font-size: 52px; }
  .outcome p { font-size: 16px; }
  .prices,
  .people,
  .steps { grid-template-columns: 1fr; }
  .steps { row-gap: 40px; }
  .js .steps.is-in .step:nth-child(2) .step__n { transition-delay: 0.5s; }
  .js .steps.is-in .step:nth-child(3) .step__n { transition-delay: 0.8s; }
  .js .steps.is-in .step:nth-child(4) .step__n { transition-delay: 1.1s; }
  .form { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .browser__bar { height: 30px; }
  .phone { width: 33%; padding: 5px; border-radius: 22px; }
  .screen--phone { border-radius: 17px; }
  .case__head { padding: 20px 20px 18px; }
  .case__shot { margin: 0 8px 8px; }
  .extra { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .contact__alt .btn { width: 100%; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__visual .screen img { animation: none; }
  #contacto::before,
  .eclipse::after,
  .eclipse__spark,
  .eclipse__ring { animation: none; }
  .eclipse__spark { display: none; }
  .case:hover .case__shot img,
  .case.is-touring .case__shot img { transform: none; }
  .outcome:hover h3 { transform: none; }
  .js .rv { opacity: 1; transform: none; }
  .steps::after { transform: scaleX(1); }
}
