:root {
  /* Guía de marca de los vídeos de @ganchoweb */
  --red: #E3242B;
  --red-hot: #F0392F;
  --red-deep: #A8121C;
  --ink: #0E0D11;
  --ink-soft: #1C1A20;
  --paper: #FFFFFF;
  --paper-dim: #F2EFEC;

  --font: "Inter Tight", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Que la barra fija no tape el principio de cada sección al saltar desde el menú */
section[id] { scroll-margin-top: 64px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Etiquetas y barras (el estilo de las miniaturas) ---------- */

.tag {
  display: inline-block;
  margin: 0;
  padding: .12em .38em .16em;
  border-radius: .2em;
  background: var(--paper);
  color: var(--red);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1;
}

.tag--red { background: var(--red); color: var(--paper); }

.bars { margin: 0; line-height: 1.12; }

.bar {
  display: inline;
  padding: .02em .22em .06em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.015em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.bar--ink { background: var(--ink); color: var(--paper); }
.bar--paper { background: var(--paper); color: var(--red); }

.text-red { color: var(--red); }

/* ---------- Navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background-color .3s ease, padding .3s ease;
}

.nav.is-solid {
  background: rgba(14, 13, 17, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-icon { width: 18px; height: 22px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  opacity: .9;
}

.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.nav-cta {
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--red);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease;
}

.nav-cta:hover { transform: translateY(-1px); }
.nav-cta:active { transform: scale(.97); }

/* ---------- Dónde estás ---------- */

/* En pantalla ancha: la sección actual subrayada en el menú y una línea roja con lo recorrido */
.nav-links a.is-current {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--red-hot);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.where {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}

.where.is-on { opacity: 1; }
.where-num,
.where-label { display: none; }

.where-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red-hot);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@keyframes where-in {
  from { opacity: 0; transform: translateY(7px); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, var(--red-hot) 0%, var(--red) 45%, var(--red-deep) 100%);
  isolation: isolate;
}

/* Grano fino para que el rojo no quede plano */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.hero-kicker {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  font-size: clamp(26px, 3.4vw, 48px);
  box-shadow: 0 10px 30px rgba(80, 0, 8, .25);
  opacity: 0;
  /* --kx marca el borde derecho de la etiqueta, a la izquierda del gancho */
  transform: translate3d(calc(var(--kx, 30vw) - 100%), var(--ky, 24vh), 0) scale(.9);
  transform-origin: right center;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .3, 1.3);
  pointer-events: none;
}

.hero-kicker.is-in {
  opacity: 1;
  transform: translate3d(calc(var(--kx, 30vw) - 100%), var(--ky, 24vh), 0) scale(1);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  max-width: 740px;
  pointer-events: none;
}

.hero-copy .bars { font-size: clamp(30px, 3.6vw, 52px); white-space: nowrap; }

/* En pantalla ancha el texto y los botones van en una fila; si no caben, los botones bajan */
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 18px;
}

.hero-sub {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

/* La caja del texto deja pasar el ratón al gancho; los botones sí se pueden pulsar */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  pointer-events: auto;
}

.hero-actions .btn { margin-top: 0; }

.hero-hint {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: opacity .6s ease;
  pointer-events: none;
}

.hero-hint.is-hidden { opacity: 0; }

.hint-arrow {
  display: inline-block;
  animation: nudge 1.6s ease-in-out infinite;
}

.hint-arrow:last-child { animation-direction: reverse; }

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

/* Respaldo sin WebGL */
.hero-fallback { display: none; }

.no-webgl .hero-fallback {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.fallback-chain {
  width: 6px;
  height: 36vh;
  background: repeating-linear-gradient(#d9dde2 0 14px, #8a9096 14px 18px);
  border-radius: 3px;
}

.fallback-sign {
  padding: .25em .5em;
  border-radius: 8px;
  background: var(--paper);
  color: var(--red);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 120px);
  letter-spacing: -.01em;
  box-shadow: 0 30px 60px rgba(60, 0, 6, .35);
}

/* ---------- Banda de texto ---------- */

.marquee {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  border-block: 4px solid var(--ink);
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 14px 0;
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.marquee .dot { color: var(--red); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Trabajos: carteles colgados de su gancho ---------- */

.works {
  --hook-w: 84px;
  padding: clamp(80px, 14vh, 150px) var(--gutter) clamp(90px, 16vh, 170px);
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(227, 36, 43, .22), transparent 70%),
    var(--ink);
  overflow: hidden;
}

.works-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 32px 56px;
  max-width: 1200px;
  margin: 0 auto clamp(48px, 8vh, 88px);
}

.works-head .tag { font-size: 18px; }

.works-title {
  margin: 22px 0 0;
  font-size: clamp(44px, 6.2vw, 96px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.035em;
}

.works-intro {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.3vw, 18px);
  color: rgba(255, 255, 255, .74);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 72px clamp(32px, 5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
}

.hang { position: relative; }

.hang-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  will-change: transform;
}

/* Hasta que entra en pantalla (solo si el JS está activo) */
.hang.is-armed .hang-rig { opacity: 0; }
.hang.is-in .hang-rig { opacity: 1; transition: opacity .35s ease; }

.hang-hook {
  position: relative;
  z-index: 2;
  display: block;
  width: var(--hook-w);
  height: auto;
  /* la cadena se pierde hacia arriba, como en la portada */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 32%);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.plate {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px 14px 26px;
  border-radius: 14px;
  background: var(--paper-dim);
  color: var(--ink);
  box-shadow: 0 40px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .8);
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.plate img { -webkit-user-drag: none; }

.plate.is-dragging { cursor: grabbing; }

/* Pestaña metálica por la que pasa la anilla del gancho */
.plate::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 30px;
  height: 24px;
  margin-left: -15px;
  border-radius: 9px 9px 4px 4px;
  background:
    radial-gradient(circle at 50% 12px, #0b0b0d 0 4px, transparent 4.5px),
    linear-gradient(90deg, #8c9198, #f4f6f8 35%, #b9bec4 60%, #6f747b);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}

/* Tornillos de las esquinas */
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  --screw: radial-gradient(circle at 40% 35%, #fff 0 1px, #c3c7cc 2px, #7d8288 4px, transparent 4.6px);
  background:
    var(--screw) 9px 9px / 10px 10px no-repeat,
    var(--screw) calc(100% - 9px) 9px / 10px 10px no-repeat,
    var(--screw) 9px calc(100% - 9px) / 10px 10px no-repeat,
    var(--screw) calc(100% - 9px) calc(100% - 9px) / 10px 10px no-repeat;
}

.plate-shots {
  position: relative;
  margin: 0 0 30px;
}

.plate-shots figure { margin: 0; }

.browser {
  overflow: hidden;
  border-radius: 8px;
  background: #16151a;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: #1f1d24;
}

.browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a4752;
}

.browser-bar i:first-child { background: var(--red); }

.browser-bar span {
  flex: 1;
  max-width: 60%;
  margin: 0 auto;
  padding: 2px 10px;
  border-radius: 6px;
  background: #2b2932;
  color: #a7a3b0;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser img,
.browser video,
.browser .shot-anim {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #111;
}

/* La animación del cartel es solo una vista previa: el ratón la atraviesa y toca el cartel
   (así no se puede arrastrar la imagen suelta y el toque abre el visor) */
.shot-anim { pointer-events: none; }

.phone {
  position: absolute;
  right: -6px;
  bottom: -22px;
  width: 22%;
  overflow: hidden;
  border: 4px solid #0b0b0d;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .45);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.plate-body { padding: 0 6px; }

.plate-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(14, 13, 17, .6);
}

.plate-day {
  padding: .2em .5em .25em;
  border-radius: 3px;
  background: var(--red);
  color: var(--paper);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.plate-day--ink { background: var(--ink); }

.plate h3 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

.plate-meta {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

.plate-text {
  max-width: 46ch;
  margin: 12px 0 0;
  font-size: 15px;
  color: rgba(14, 13, 17, .78);
}

.plate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 20px;
}

/* Botón grande: se pulsa a la primera aunque el cartel se mueva */
.plate-cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font: 800 16px/1 var(--font);
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}

.plate-cta:hover { background: var(--red-hot); }
.plate-cta:active { transform: scale(.97); }
.plate-cta:focus-visible,
.plate-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.plate-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--red);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease;
}

.plate-link:hover { color: var(--red); }

/* El gancho libre ocupa toda la fila */
.hang--free { grid-column: 1 / -1; }
.hang--free .hang-rig { max-width: 760px; margin: 0 auto; }

.plate--free {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 24vw, 340px);
  padding: 40px clamp(24px, 4vw, 48px);
  text-align: center;
  cursor: default;
  border: 3px dashed rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .03);
  color: var(--paper);
  box-shadow: none;
}

.plate--free::after { display: none; }

.free-title {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.01em;
}

.free-text {
  max-width: 28ch;
  margin: 16px 0 0;
  font-size: 17px;
  color: rgba(255, 255, 255, .74);
}

.plate--free .btn { margin-top: 28px; }

/* ---------- Visor: la web en grande ---------- */

html:has(.visor[open]) { overflow: hidden; }

.visor {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--paper-dim);
  color: var(--ink);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .6);
  overflow: auto;
}

.visor[open] { animation: visor-in .35s cubic-bezier(.2, .9, .3, 1); }

.visor::backdrop {
  background: rgba(14, 13, 17, .84);
  backdrop-filter: blur(6px);
}

@keyframes visor-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
}

.visor-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 400 28px/1 var(--font);
  cursor: pointer;
}

.visor-close:hover { background: var(--red); }

.visor-browser {
  position: relative;
  margin: 16px 16px 0;
}

.visor-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 13, 17, .72);
  color: var(--paper);
  font: 800 22px/1 var(--font);
  cursor: pointer;
  translate: 0 -50%;
  backdrop-filter: blur(6px);
  transition: background-color .2s ease;
}

.visor-arrow:hover { background: var(--red); }
.visor-arrow:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.visor-arrow--prev { left: 14px; }
.visor-arrow--next { right: 14px; }

.visor-browser video {
  max-height: calc(100dvh - 300px);
  object-fit: contain;
}

.visor-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 32px;
  padding: 22px 30px 28px;
}

.visor-info > :not(.plate-actions) { grid-column: 1; }

.visor-info h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

.visor-info .plate-actions {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 0;
}

/* ---------- Proceso: la grúa baja con el scroll ---------- */

.process {
  --s: .36; /* escala del gancho y la cadena renderizados */
  padding: clamp(80px, 14vh, 150px) var(--gutter) 0;
  overflow-x: clip; /* clip, no hidden: hidden rompería el sticky de la grúa */
  background: var(--paper-dim);
  color: var(--ink);
}

.process-head {
  max-width: 1200px;
  margin: 0 auto;
}

.process-head .tag { font-size: 18px; }

.process-title {
  margin: 22px 0 0;
  font-size: clamp(46px, 7vw, 104px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.035em;
}

.process-intro {
  max-width: 44ch;
  margin: 22px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(14, 13, 17, .7);
}

.process-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0 clamp(24px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.crane { position: relative; }

/* Sin recorte: el cartel puede balancearse fuera de su columna sin cortarse contra los bordes */
.crane-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.crane-rig {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%) rotate(var(--a, 0rad));
  transform-origin: 50% 0;
}

.crane-chain {
  position: relative;
  z-index: 0;
  width: calc(92px * var(--s));
  height: 22vh;
  margin-bottom: calc(-60px * var(--s));
  background: url("../assets/cadena.png") repeat-y center bottom / calc(92px * var(--s)) calc(198px * var(--s));
}

/* Del gancho renderizado solo se ve de la horquilla para abajo: la cadena la pone .crane-chain */
.crane-hook {
  position: relative;
  z-index: 1;
  width: calc(304px * var(--s));
  height: calc(508px * var(--s));
  overflow: hidden;
}

.crane-hook img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: calc(-398px * var(--s));
}

.crane-sign {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(560px * var(--s));
  aspect-ratio: 1.55;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 30px 50px rgba(14, 13, 17, .22), inset 0 1px 0 #fff;
  transform: rotate(var(--sa, 0rad));
  transform-origin: 50% -10px;
}

.crane-sign::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 30px;
  height: 24px;
  margin-left: -15px;
  border-radius: 9px 9px 4px 4px;
  background:
    radial-gradient(circle at 50% 12px, #0b0b0d 0 4px, transparent 4.5px),
    linear-gradient(90deg, #8c9198, #f4f6f8 35%, #b9bec4 60%, #6f747b);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}

.crane-sign::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  --screw: radial-gradient(circle at 40% 35%, #fff 0 1px, #c3c7cc 2px, #7d8288 4px, transparent 4.6px);
  background:
    var(--screw) 9px 9px / 10px 10px no-repeat,
    var(--screw) calc(100% - 9px) 9px / 10px 10px no-repeat;
}

.crane-sign span {
  display: block;
  transition: transform .16s ease-in;
  color: var(--red);
  font-size: calc(250px * var(--s));
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}

.crane-sign.is-flipping span { transform: rotateX(90deg); }

.step-cta { align-self: flex-start; }

.steps {
  margin: 0;
  padding: 8vh 0 30vh;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  opacity: .28;
  transform: translateX(14px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1);
}

.step.is-active {
  opacity: 1;
  transform: none;
}

.step-num {
  align-self: flex-start;
  margin: 0;
  padding: .2em .5em .25em;
  border-radius: 3px;
  background: var(--red);
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.step h3 {
  margin: 16px 0 0;
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
}

.step p:last-child {
  max-width: 40ch;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(14, 13, 17, .74);
}

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 40px;
  padding: clamp(90px, 16vh, 170px) max(var(--gutter), calc((100vw - 1200px) / 2));
  background: radial-gradient(ellipse 70% 70% at 30% 40%, var(--red-hot) 0%, var(--red) 45%, var(--red-deep) 100%);
  overflow: hidden;
}

.contact .tag { font-size: 18px; }

.contact-title {
  max-width: 13ch;
  margin: 22px 0 0;
  font-size: clamp(44px, 6.2vw, 92px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.03em;
}

.contact-text {
  max-width: 42ch;
  margin: 24px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(255, 255, 255, .92);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.contact-actions .btn { margin-top: 0; }

.contact-sign {
  --hook-w: 96px;
  justify-self: center;
  width: min(340px, 100%);
}

.plate--sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 28px;
  background: var(--paper);
  cursor: default;
}

.sign-small {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.sign-big {
  margin-top: 6px;
  color: var(--red);
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
}

/* ---------- Pie ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  padding: 40px max(var(--gutter), calc((100vw - 1200px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.footer .brand { color: var(--paper); }
.footer-text { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-left: auto;
}

.footer-links a {
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin: 0; }

.btn {
  display: inline-block;
  margin-top: 36px;
  padding: 19px 32px;
  border-radius: 10px;
  background: var(--red);
  color: var(--paper);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: transform .15s ease, background-color .2s ease;
}

.btn:hover { background: var(--red-hot); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

.btn--paper { background: var(--paper); color: var(--red); }
.btn--paper:hover { background: var(--paper); color: var(--red-deep); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85);
}

.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* Enlace para saltar directo al contenido con el teclado */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.skip:focus { top: 16px; }

/* ---------- Secciones de contenido (qué incluye, dominio, Google, legal, presupuesto) ---------- */

.sec { padding: clamp(80px, 14vh, 150px) var(--gutter); }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--paper { background: var(--paper-dim); color: var(--ink); }

.sec-inner { max-width: 1200px; margin: 0 auto; }

.sec-inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
  gap: clamp(32px, 6vw, 90px);
}

.sec-head { max-width: 780px; margin-bottom: clamp(40px, 7vh, 72px); }
.sec-head .tag { font-size: 18px; }

.sec-title {
  margin: 22px 0 0;
  font-size: clamp(42px, 6.2vw, 92px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.035em;
}

.sec-intro {
  max-width: 52ch;
  margin: 22px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
}

.sec--ink .sec-intro { color: rgba(255, 255, 255, .74); }
.sec--paper .sec-intro { color: rgba(14, 13, 17, .7); }

/* Qué incluye: etiquetas con su agujero, como las de una tienda */
.include-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.include-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .14);
}

.include-label--extra { margin-top: clamp(44px, 7vh, 72px); }

.include-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.include-item {
  position: relative;
  padding: 24px 22px;
  border-radius: 14px;
  background: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s ease;
}

.include-item::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  background: url("../assets/favicon.svg") center / contain no-repeat;
}

.include-item::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7), 0 0 0 2px rgba(255, 255, 255, .14);
}

.include-item:hover {
  transform: translateY(-4px) rotate(-.8deg);
  box-shadow: inset 0 0 0 1px rgba(227, 36, 43, .7);
}

.include-item h4 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.include-item p { margin: 8px 0 0; font-size: 15px; color: rgba(255, 255, 255, .66); }

/* Lo opcional: tarjeta abierta con un "+" en lugar del gancho */
.include-grid--extra { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.include-item--extra {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.include-item--extra::before {
  content: "+";
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: none;
  box-shadow: inset 0 0 0 2px var(--red);
  color: var(--red-hot);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.include-item--extra::after { display: none; }

.include-note { margin: 20px 0 0; font-size: 15px; color: rgba(255, 255, 255, .66); }

/* Dominio y hosting */
.urlbar {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(80px, 11vh, 110px);
}

.urlbar-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(14, 13, 17, .12), inset 0 0 0 1px rgba(14, 13, 17, .08);
  font-size: clamp(19px, 3vw, 34px);
  font-weight: 700;
}

.urlbar-part {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
}

.urlbar-part svg { width: .75em; height: .75em; color: #1d8a4c; }
.urlbar-part--lock { color: rgba(14, 13, 17, .55); }
.urlbar-part--domain { background: rgba(227, 36, 43, .1); color: var(--red); }

.urlbar-part::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 18px;
  background: rgba(14, 13, 17, .3);
}

.urlbar-part::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.analogy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analogy-item {
  padding: 26px 22px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(14, 13, 17, .08);
}

.analogy-key {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.analogy-item h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.analogy-item p:last-child { margin: 12px 0 0; font-size: 15px; color: rgba(14, 13, 17, .72); }

.analogy-item--me { background: var(--red); color: var(--paper); box-shadow: none; }
.analogy-item--me .analogy-key { color: rgba(255, 255, 255, .8); }
.analogy-item--me p:last-child { color: rgba(255, 255, 255, .92); }

/* Por qué el hosting es gratis y qué pasa si quieres correo: dos tarjetas lado a lado */
.hosting-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 8vh, 80px);
}

.faq-card {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(14, 13, 17, .08);
}

.faq-card--extra { box-shadow: inset 0 0 0 2px var(--red); }

.faq-tag {
  display: inline-block;
  margin: 0;
  padding: .25em .6em .3em;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.faq-card--extra .faq-tag { background: var(--red); }

.faq-card h3 {
  margin: 14px 0 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.faq-card p:not(.faq-tag) { margin: 12px 0 0; font-size: 16px; color: rgba(14, 13, 17, .75); }
.faq-card strong { color: var(--ink); }

.costs-optional {
  display: inline-block;
  margin-left: 6px;
  padding: .15em .45em .2em;
  border-radius: 3px;
  background: rgba(227, 36, 43, .1);
  color: var(--red-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ¿Y cuánto cuesta? Una tabla de tres columnas: qué, quién lo paga y cuánto */
.costs {
  margin-top: clamp(48px, 8vh, 80px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(14, 13, 17, .08), inset 0 0 0 1px rgba(14, 13, 17, .06);
}

.costs-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: -.02em;
}

.costs-list { margin: 0; }

.costs-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, .8fr);
  gap: 6px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid rgba(14, 13, 17, .1);
}

.costs-row dt { font-size: 18px; font-weight: 800; }
.costs-row dd { margin: 0; }
.costs-who { font-size: 15px; color: rgba(14, 13, 17, .72); }

.costs-price {
  color: var(--red-deep);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.costs-price a { color: inherit; text-underline-offset: 4px; }
.costs-row--me dt { color: var(--red); }

/* La fila del total resalta: es la respuesta corta a "¿cuánto me va a costar?" */
.costs-row--total { border-top: 2px solid var(--ink); }
.costs-row--total dt { font-size: 20px; font-weight: 900; }
.costs-row--total .costs-who { color: var(--ink); font-weight: 700; }
.costs-row--total .costs-price { font-size: 20px; }

.costs-note {
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 13, 17, .1);
  font-size: 15px;
  font-weight: 600;
}

/* Google */
.seo-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: seo;
}

.seo-list li {
  padding-top: 14px;
  border-top: 2px solid rgba(255, 255, 255, .12);
  counter-increment: seo;
}

.seo-list li::before {
  content: counter(seo, decimal-leading-zero);
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.seo-list h3 { margin: 6px 0 0; font-size: 19px; font-weight: 800; }
.seo-list p { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, .66); }

.seo-note {
  max-width: 56ch;
  margin: 34px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  font-weight: 600;
}

/* Búsqueda de ejemplo: genérica, sin la marca de ningún buscador */
.serp {
  position: sticky;
  top: 96px;
  padding: 18px;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  transform: rotate(1.2deg);
}

.serp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(14, 13, 17, .16);
  font-size: 16px;
  font-weight: 600;
}

.serp-search svg { width: 18px; height: 18px; color: rgba(14, 13, 17, .5); }

.serp-map {
  position: relative;
  height: 170px;
  margin: 14px 0 8px;
  overflow: hidden;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, #fff 46px 52px),
    repeating-linear-gradient(0deg, transparent 0 38px, #fff 38px 43px),
    linear-gradient(140deg, transparent 52%, #cfe3c6 52% 68%, transparent 68%),
    #ebe7df;
}

.serp-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #8d8a93;
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.serp-pin--you {
  z-index: 1;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  background: var(--red);
  font-size: 15px;
  animation: pin-pulse 2s ease-out infinite;
}

@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 36, 43, .5), 0 3px 8px rgba(0, 0, 0, .25); }
  100% { box-shadow: 0 0 0 16px rgba(227, 36, 43, 0), 0 3px 8px rgba(0, 0, 0, .25); }
}

.serp-results { margin: 0; padding: 0; list-style: none; }
.serp-result { padding: 12px 8px; border-top: 1px solid rgba(14, 13, 17, .1); }

.serp-result--you {
  margin-bottom: 4px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(227, 36, 43, .06);
  box-shadow: inset 0 0 0 2px var(--red);
}

.serp-name { margin: 0; font-size: 17px; font-weight: 800; }
.serp-result--you .serp-name { color: var(--red); }
.serp-meta { margin: 3px 0 0; font-size: 13px; color: rgba(14, 13, 17, .64); }
.serp-stars { color: #a86d00; font-weight: 700; }
.serp-open { color: #1d8a4c; font-weight: 700; }

.serp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.serp-actions span {
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(14, 13, 17, .2);
  font-size: 13px;
  font-weight: 700;
}

/* Lo legal */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-grid li {
  padding: 24px 22px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(14, 13, 17, .08);
}

.legal-law {
  display: inline-block;
  margin: 0;
  padding: .2em .5em .25em;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.legal-grid h3 { margin: 14px 0 0; font-size: 21px; font-weight: 900; letter-spacing: -.01em; }
.legal-grid p:last-child { margin: 8px 0 0; font-size: 15px; color: rgba(14, 13, 17, .72); }
.legal-note { max-width: 72ch; margin: 28px 0 0; font-size: 15px; color: rgba(14, 13, 17, .7); }

/* Presupuesto */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.quote-form { display: grid; gap: 26px; }

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 16px;
  font-weight: 800;
}

.field > legend { margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.optional { font-weight: 500; color: rgba(255, 255, 255, .5); }

.quote-form input[type="text"],
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--ink-soft);
  color: var(--paper);
  font: 500 16px/1.4 var(--font);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: box-shadow .2s ease;
}

.quote-form select {
  appearance: none;
  padding-right: 44px;
  background: var(--ink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
}

.quote-form textarea { resize: vertical; }
.quote-form ::placeholder { color: rgba(255, 255, 255, .38); }

.quote-form input[type="text"]:focus,
.quote-form select:focus,
.quote-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red); }

.quote-form .is-invalid { box-shadow: inset 0 0 0 2px #ff6b70 !important; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }

.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.chip:hover span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.chip input:checked + span { background: var(--red); box-shadow: none; }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, .8);
}

.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.check a { color: var(--paper); }

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(227, 36, 43, .16);
  color: #ffb3b6;
  font-size: 15px;
  font-weight: 700;
}

.quote-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quote-actions .btn { margin-top: 0; border: 0; font-family: var(--font); cursor: pointer; }
.quote-actions [hidden] { display: none; }

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}

.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }

.form-hint { margin: -12px 0 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Campo trampa: fuera de la vista (no display:none, que algunos robots saben saltarse) */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-done {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(46, 160, 90, .16);
  color: #b6f0c9;
  font-weight: 700;
  white-space: pre-line; /* si no se pudo copiar, el mensaje se enseña con sus saltos de línea */
  user-select: text;
}

/* El resumen es un tique que cuelga del gancho */
.ticket-wrap {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticket-hook {
  position: relative;
  z-index: 2;
  display: block;
  width: 70px;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
}

.ticket {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-bottom: 16px;
  padding: 26px 22px 24px;
  border-radius: 6px 6px 0 0;
  background: #fbfaf7;
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  transform-origin: 50% -12px;
}

.ticket::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 30px;
  height: 24px;
  margin-left: -15px;
  border-radius: 9px 9px 4px 4px;
  background:
    radial-gradient(circle at 50% 12px, #0b0b0d 0 4px, transparent 4.5px),
    linear-gradient(90deg, #8c9198, #f4f6f8 35%, #b9bec4 60%, #6f747b);
}

/* Borde de tique, en dientes de sierra */
.ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  background:
    linear-gradient(-45deg, transparent 7px, #fbfaf7 0) 0 0 / 14px 14px repeat-x,
    linear-gradient(45deg, transparent 7px, #fbfaf7 0) 0 0 / 14px 14px repeat-x;
}

.ticket.is-bump { animation: ticket-bump .55s cubic-bezier(.2, .9, .3, 1.3); }

@keyframes ticket-bump {
  30% { transform: rotate(-2.4deg); }
  65% { transform: rotate(1.1deg); }
}

.ticket-head {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(14, 13, 17, .25);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.ticket-lines { display: grid; gap: 10px; margin: 0; font-size: 13px; }
.ticket-lines div { display: grid; gap: 2px; }

.ticket-lines dt {
  color: rgba(14, 13, 17, .5);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ticket-lines dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.ticket-total {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 2px dashed rgba(14, 13, 17, .25);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 900;
}

.ticket-total span:last-child { color: var(--red); }

.ticket-foot {
  margin: 16px 0 0;
  color: rgba(14, 13, 17, .5);
  font-size: 11px;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Botón flotante de WhatsApp (aparece al pasar la portada) ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(14, 13, 17, .35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.95);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3), background-color .2s ease;
}

.wa-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.wa-float:hover { background: var(--red-hot); }
.wa-float:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.wa-float svg { width: 22px; height: 22px; }

/* Rojo un punto más oscuro para texto pequeño sobre fondo claro (contraste AA) */
.plate-meta,
.legal-doc a { color: #C51D24; }

/* ---------- Precios: dos etiquetas colgadas sobre rojo ---------- */

.sec--red {
  background: radial-gradient(ellipse 70% 60% at 50% 30%, var(--red-hot) 0%, var(--red) 45%, var(--red-deep) 100%);
  color: var(--paper);
}

.sec--red .sec-intro { color: rgba(255, 255, 255, .9); }
.text-ink { color: var(--ink); }

.price-grid {
  --hook-w: 84px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 56px clamp(32px, 5vw, 72px);
  max-width: 980px;
  margin: 0 auto;
}

.plate--price {
  padding: 30px 28px 32px;
  background: var(--paper);
  cursor: default;
}

.price-kicker {
  display: inline-block;
  margin: 0;
  padding: .2em .5em .25em;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.plate--price h3 {
  margin: 14px 0 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
}

.price-amount {
  margin: 16px 0 0;
  color: var(--red);
  font-size: clamp(56px, 6vw, 84px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em;
}

.price-amount span {
  display: block;
  margin-bottom: 6px;
  color: rgba(14, 13, 17, .55);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.price-amount--custom { font-size: clamp(44px, 5vw, 66px); }

/* "+ IVA" pequeño junto a la cifra y, debajo, el total con IVA */
.price-amount small {
  margin-left: .2em;
  color: rgba(14, 13, 17, .55);
  font-size: .3em;
  letter-spacing: 0;
  vertical-align: .9em;
}

.price-iva { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: rgba(14, 13, 17, .6); }

.price-text { margin: 16px 0 0; font-size: 15px; color: rgba(14, 13, 17, .75); }

.price-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 600;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

.plate--price .btn { margin-top: 24px; }

.price-note {
  max-width: 620px;
  margin: clamp(40px, 6vh, 56px) auto 0;
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.price-note a { color: var(--paper); font-weight: 800; text-underline-offset: 4px; }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: #2a2730; }

.contact-mail { margin: 22px 0 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.contact-mail a { color: var(--paper); font-weight: 700; }

/* ---------- Entrada suave al hacer scroll (solo con js/aparecer.js activo) ---------- */

.js-reveal :is(.works-head, .process-head, .sec-head, .urlbar, .serp, .seo-note, .legal-note, .contact-copy,
  .include-item, .include-label, .analogy-item, .faq-card, .costs, .legal-grid li, .seo-list li):not(.is-visible) {
  opacity: 0;
  translate: 0 28px;
}

.js-reveal :is(.works-head, .process-head, .sec-head, .urlbar, .serp, .seo-note, .legal-note, .contact-copy,
  .include-item, .include-label, .analogy-item, .faq-card, .costs, .legal-grid li, .seo-list li) {
  transition:
    opacity .6s ease var(--d, 0ms),
    translate .7s cubic-bezier(.2, .9, .3, 1) var(--d, 0ms),
    transform .3s cubic-bezier(.2, .9, .3, 1.3),
    box-shadow .25s ease;
}

/* ---------- Menú desplegable ---------- */

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 6px;
  background: rgba(14, 13, 17, .55);
  color: var(--paper);
  font: 800 14px/1 var(--font);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .nav-cta { margin-left: 0; }

  .nav .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 12px;
    background: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }

  .nav.is-open .nav-links { display: flex; }
  .nav .nav-links { z-index: 2; }

  /* Dónde estás: una franja bajo la barra con el número y el nombre de la sección */
  .where {
    top: 100%;
    bottom: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 var(--gutter);
    background: #141318;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(0, 0, 0, .18);
    transform: translateY(-8px);
  }
  .where.is-on { transform: none; }
  .nav.is-open .where { opacity: 0; }
  .where-num,
  .where-label { display: block; }
  .where-num { color: var(--red-hot); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
  .where-label { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .where.is-changing :is(.where-num, .where-label) { animation: where-in .35s cubic-bezier(.2, .9, .3, 1); }
  .nav-links a.is-current { background: rgba(255, 255, 255, .08); text-decoration: none; }
  .nav-links a.is-current::before { content: "● "; color: var(--red-hot); }
  section[id] { scroll-margin-top: 104px; }

  .nav .nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 16px;
  }

  .nav-links a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
}

/* ---------- Pantallas medianas ---------- */

@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .analogy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .include-grid--extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .include-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-inner--split { grid-template-columns: 1fr; }
  .serp { position: relative; top: 0; max-width: 520px; transform: none; }
  .quote { grid-template-columns: 1fr; }
  .ticket-wrap { position: relative; top: 0; }
}

/* ---------- Móvil ---------- */

@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-cta { padding: 11px 15px; font-size: 15px; }
  .hero-copy { right: var(--gutter); max-width: none; }
  .hero-sub { font-size: 14px; }
  .hero-foot { gap: 16px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { padding: 15px 20px; font-size: 16px; }
  .hero-hint { display: none; }
  .works { --hook-w: 66px; }
  .works-head { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; gap: 56px; }
  .phone { width: 26%; border-width: 3px; border-radius: 12px; }
  .plate--free { min-height: 300px; }
  .visor-browser { margin: 10px 10px 0; }
  .visor-info { grid-template-columns: 1fr; padding: 18px 18px 22px; }
  .visor-info .plate-actions { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .visor-close { top: 6px; right: 6px; }
  .process-body { grid-template-columns: 1fr; }
  .crane { display: none; }
  .steps { padding: 24px 0 72px; }
  .step {
    min-height: 0;
    padding: 30px 0;
    border-top: 2px solid rgba(14, 13, 17, .1);
    opacity: 1;
    transform: none;
  }
  .contact { grid-template-columns: 1fr; }
  .contact-sign { --hook-w: 76px; width: min(260px, 80%); }
  .footer-links { margin-left: 0; }
  .analogy,
  .legal-grid,
  .include-grid,
  .seo-list,
  .field-row { grid-template-columns: 1fr; }
  .urlbar-pill { padding: 12px 16px; }
  .price-grid { --hook-w: 66px; grid-template-columns: 1fr; }
  /* Tabla de costes: qué y cuánto en una línea, quién lo paga debajo */
  .hosting-faq { grid-template-columns: 1fr; }
  .costs-row { grid-template-columns: minmax(0, 1fr) auto; }
  .costs-who { grid-column: 1 / -1; grid-row: 2; }
  .costs-row dt,
  .costs-price { font-size: 16px; }
  /* Qué incluye: tarjetas más bajas, con el icono a la izquierda */
  .include-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 40px 18px 18px;
  }
  .include-item::before { grid-row: span 2; margin: 0; }
  .include-item p { margin-top: 4px; }
  /* Botón flotante: en el móvil solo el icono, para no tapar el texto */
  .wa-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .wa-float svg { width: 28px; height: 28px; }
  /* Todo lo que se pulsa, de al menos 44 px de alto para el dedo */
  .brand { min-height: 44px; }
  .nav-toggle { min-height: 44px; padding: 0 14px; }
  .nav-cta { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { gap: 0 20px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .check { align-items: center; min-height: 44px; }
}

/* Móviles estrechos (360 px): la barra de arriba cabe en una línea */
@media (max-width: 400px) {
  .nav { gap: 8px; }
  .nav .brand { font-size: 20px; }
  .nav-toggle { padding: 0 12px; }
  .nav-cta { padding: 10px 12px; font-size: 14px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .hint-arrow { animation: none; }
  .hero-kicker { transition: opacity .3s ease; }
}
