/* ============================================================================
   WHITEMOON — Estudio de tatuajes
   Landing de captación de una sola página. CSS plano, sin framework.

   Breakpoints (mobile first): 600 · 640(sm) · 768(md) · 900 · 1024(lg)
   Marca: buscar "WhiteMoon" para renombrar.
   ========================================================================= */

/* ------------------------------------------------------------------ fuente ---
 * Kanit autoalojada (subset latin, woff2). Se sirve desde el mismo origen en
 * vez del <link> de Google Fonts: ahorra dos conexiones a terceros y, sobre
 * todo, el titular del hero (900) llega preloaded, así no hay reflow del
 * hero al cambiar de la fuente de sistema a Kanit — que era lo que disparaba
 * el CLS. Solo se embarcan los 4 pesos que usa la página: 300 · 500 · 600 · 900.
 */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/kanit-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/kanit-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/kanit-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/kanit-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0C0C0C;
  --ink: #D7E2EA;
  --grad-1: #646973;
  --grad-2: #BBCCD7;
  --paper: #FFFFFF;
  --border: rgba(215, 226, 234, .18);

  /* Altura real de la barra fija. site.js la mide y la sobrescribe; este
     valor es el de reserva por si el JS no carga. Se usa para el hueco
     superior del hero y para el scroll-margin-top de las anclas. */
  --nav-h: 84px;

  /* Curva y duración por defecto de los reveals */
  --ease-rv: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-rv: 0.7s;

  /* Equivalencias de las medidas del spec */
  --gap-3: 0.75rem;
  --px-6: 1.5rem;
  --px-10: 2.5rem;
  --py-20: 5rem;
}

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

html, body {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

/* Los anclas del navbar (y el logo, que vuelve a #top) se desplazan en vez
   de saltar. Se anula más abajo con prefers-reduced-motion. */
html { scroll-behavior: smooth; }

body {
  font-family: 'Kanit', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* clip (no hidden): recorta el desborde lateral sin crear contenedor de
   scroll, para que position:sticky de las cards siga funcionando. */
.wrapper {
  background: var(--bg);
  overflow-x: clip;
  position: relative;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
ul { list-style: none; }

::selection { background: rgba(182, 0, 168, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--grad-2);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 300;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-weight: 500;
}
.skip:focus { left: 12px; }

/* Texto en degradado — clase pedida por el spec */
.hero-heading {
  background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------- reveal --- */

[data-rv] {
  opacity: 0;
  transform: translate3d(var(--rx, 0), var(--ry, 0), 0);
  transition:
    opacity var(--rdur, var(--dur-rv)) var(--ease-rv) var(--rdelay, 0s),
    transform var(--rdur, var(--dur-rv)) var(--ease-rv) var(--rdelay, 0s);
}
[data-rv].in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- botones --- */

.btn {
  display: inline-block;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: transform .2s ease-out, filter .2s ease-out;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--primary {
  background: linear-gradient(123deg, #18011F 7%, #B600A8 37%, #7621B0 72%, #BE4C00 100%);
  box-shadow:
    0 4px 4px rgba(181, 1, 167, .25),
    4px 4px 12px #7721B1 inset;
  outline: 2px solid #FFFFFF;
  outline-offset: -3px;
  color: #FFFFFF;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
}
.btn--primary:hover { filter: brightness(1.12); }

.btn--ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
  transition: background-color .2s ease-out, transform .2s ease-out;
}
.btn--ghost:hover { background: rgba(215, 226, 234, .1); }

/* ============================================================== 1. HERO === */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  position: relative;
  /* Hueco para la barra fija, que ya no ocupa sitio dentro del hero */
  padding-top: var(--nav-h);
}

/*
 * Barra fija. z-index 100: por encima de todo el contenido (que se mueve
 * entre 2 y 20) y muy por debajo del chat flotante (2147483000), para que
 * el panel de Nita siga tapándola.
 */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem var(--px-6);
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease-out, border-color .2s ease-out,
              backdrop-filter .2s ease-out;
}

/* A partir de ~40px de scroll la barra se despega del hero */
.nav.scrolled {
  background: rgba(8, 8, 13, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

/* Las anclas del navbar no deben quedar debajo de la barra */
.hero,
.about,
.services,
.work,
.faq,
.contact { scroll-margin-top: var(--nav-h); }
.nav a, .nav button {
  color: var(--ink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 200ms ease-out;
}
.nav a:hover, .nav button:hover { opacity: .7; }

/* Los 4 enlaces se agrupan a la derecha; el crédito queda a la izquierda. */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2.2vw, 2.5rem);
}

/* --- Crédito de WhiteMoon (emblema + wordmark) --- */
.wm {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
}
.wm img {
  height: 32px;
  width: auto;
  display: block;
}
/*
 * El wordmark solo aparece a partir de 900px. Por debajo, los 4 enlaces del
 * navbar no dejan sitio y el último se recortaba. El emblema se queda siempre
 * y su alt sigue diciendo "WhiteMoon", así que el crédito no se pierde.
 */
.wm span {
  display: none;
  font-family: 'Kanit', system-ui, sans-serif;
  font-weight: 600;
  color: #D7E2EA;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -.01em;
  /* Anula el uppercase y el tracking amplio de .nav a */
  text-transform: none;
  white-space: nowrap;
}

.hero__title {
  overflow: hidden;
  padding-inline: var(--px-6);
  position: relative;
  z-index: 5;
}
/*
 * Titular del hero. El tamaño va SOLO aquí: la clase .hero-heading la
 * comparten los <h2> de las demás secciones, que mantienen el suyo.
 *
 * "ARTE EN TU PIEL" mide 7,185 veces su font-size en Kanit 900 con este
 * letter-spacing (medido en el navegador, no estimado). El caso más
 * apretado es un viewport de 320 px, donde quedan 272 px útiles: ahí caben
 * 37,9 px, o sea 11,83vw. Con 11.5vw entra en una sola línea desde 278 px
 * hacia arriba, con un 3 % de margen, y sin recortarse en ningún tamaño.
 *
 * Se conserva white-space:nowrap a propósito: si el texto pudiera envolver,
 * la fuente de sistema —más ancha que Kanit— lo partiría en dos líneas
 * durante el primer pintado y al llegar Kanit volvería a una, lo que sería
 * justo el salto de layout que este hero no debe tener. Con nowrap la caja
 * mide lo mismo con una fuente o con la otra y el CLS se queda en 0.
 */
.hero__title .hero-heading {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  font-size: clamp(2rem, 11.5vw, 200px);
  margin-top: 1.5rem;
}

.hero__bar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 var(--px-6) 1.75rem;
  position: relative;
  z-index: 20;
}
.hero__bar p {
  color: var(--ink);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.15;
  font-size: clamp(0.75rem, 1.4vw, 1.5rem);
  max-width: 160px;
}

.hero__img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 280px;
  pointer-events: none;
}
/* Radio grande: la foto del hero es un rectángulo, no un recorte con
   fondo transparente, y sin esquinas redondeadas choca con el titular. */
.hero__img img {
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

/* Magnet: la transición se conmuta desde JS al entrar/salir del radio */
.magnet { will-change: transform; }

/* =========================================================== 2. MARQUEE === */

.marquee {
  background: var(--bg);
  padding-top: 6rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
}
.marquee__row {
  display: flex;
  gap: var(--gap-3);
  will-change: transform;
}
.marquee__row img {
  width: 420px;
  height: 270px;
  flex: none;
  object-fit: cover;
  border-radius: 1rem;
}

/* ==================================================== 3. SOBRE NOSOTROS === */

.about {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--py-20) 1.25rem;
  position: relative;
}

/*
 * Props decorativos de las esquinas. El diseño original pedía recortes 3D
 * con fondo transparente; con fotos rectangulares de stock hay que
 * adaptarlas o compiten con el titular: se recortan en círculo, se
 * desaturan y se bajan de opacidad hasta que leen como textura de fondo.
 * Para quitarlas del todo, borra los cuatro bloques .about__deco del HTML.
 */
.about__deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .38;
}
.about__deco img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(.85) brightness(.72);
}
.deco-tl { top: 4%; left: 1%; width: 120px; }
.deco-bl { bottom: 8%; left: 3%; width: 100px; }
.deco-tr { top: 4%; right: 1%; width: 120px; }
.deco-br { bottom: 8%; right: 3%; width: 130px; }

.about h2 {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(3rem, 12vw, 160px);
  letter-spacing: -.02em;
  position: relative;
  z-index: 2;
}

.about__text {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.75;
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
}
/* Cada carácter arranca al 20% y sube a 1 según avanza el scroll */
.about__text span { opacity: .2; transition: opacity .12s linear; }

.about__cta { margin-top: 4rem; position: relative; z-index: 2; }

/* ========================================================= 4. SERVICIOS === */

.services {
  background: var(--paper);
  color: var(--bg);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 5rem 1.25rem;
  position: relative;
  z-index: 5;
}
.services h2 {
  color: var(--bg);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  letter-spacing: -.02em;
  font-size: clamp(3rem, 12vw, 160px);
  margin-bottom: 4rem;
}

.services__list { max-width: 64rem; margin-inline: auto; }

.service {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid rgba(12, 12, 12, .15);
}
.service:last-child { border-bottom: 1px solid rgba(12, 12, 12, .15); }

.service__n {
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 140px);
  line-height: .9;
  color: var(--bg);
  flex: none;
  letter-spacing: -.04em;
  /* Ancho fijo en em: sin esto "01" es más estrecho que "04" y la columna
     de texto baila de un item a otro. */
  min-width: 1.2em;
  font-variant-numeric: tabular-nums;
}
.service__b h3 {
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.service__b p {
  font-weight: 300;
  line-height: 1.65;
  max-width: 42rem;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  opacity: .6;
  margin-top: 0.5rem;
}

/* ========================================================= 5. PROYECTOS === */

.work {
  background: var(--bg);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding: 5rem 1.25rem 0;
}
.work h2 {
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  letter-spacing: -.02em;
  font-size: clamp(3rem, 12vw, 160px);
  margin-bottom: 3rem;
}

.cases { max-width: 78rem; margin-inline: auto; padding-bottom: 5rem; }
.case-slot { height: 85vh; }

.case {
  position: sticky;
  /* cada card se apoya 28px más abajo que la anterior */
  top: calc(96px + var(--i) * 28px);
  border-radius: 40px;
  border: 2px solid var(--ink);
  background: var(--bg);
  padding: 1rem;
  transform-origin: top center;
  will-change: transform;
}

.case__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}
.case__n {
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 140px);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--ink);
  min-width: 1.2em;
  font-variant-numeric: tabular-nums;
}
.case__meta { margin-right: auto; }
.case__cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .55;
}
.case__name {
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.case__grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--gap-3);
}
.case__col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  min-width: 0;
}
.case__grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 40px;
}
.case__a { height: clamp(130px, 16vw, 230px); }
.case__b { height: clamp(160px, 22vw, 340px); }

/* La altura de la fila la marcan las dos imágenes de la izquierda.
   La imagen alta se posiciona en absoluto para no aportar altura propia:
   si no, su proporción estira la fila y deja un hueco muerto a la izquierda. */
.case__grid > .case__col:last-child { position: relative; }
.case__c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================== 6. FAQ + CONTACTO (extra) === */
/*
  No está en el orden de secciones del spec, pero el FAQPage de schema.org
  exige que las respuestas sean visibles en el DOM. Este bloque las muestra
  y además da destino al enlace "Contacto" del navbar.
*/

.faq {
  background: var(--bg);
  padding: 5rem 1.25rem;
  position: relative;
  z-index: 10;
}
.faq__in { max-width: 56rem; margin-inline: auto; }
.faq h2 {
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  letter-spacing: -.02em;
  font-size: clamp(2.4rem, 9vw, 110px);
  margin-bottom: 3rem;
}
.faq details { border-top: 1px solid rgba(215, 226, 234, .18); }
.faq details:last-of-type { border-bottom: 1px solid rgba(215, 226, 234, .18); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  transition: opacity 200ms ease-out;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { opacity: .7; }
.faq summary::after {
  content: '';
  margin-left: auto;
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate .28s var(--ease-rv);
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq__a {
  padding: 0 2.5rem 1.5rem 0;
  font-weight: 300;
  line-height: 1.7;
  opacity: .62;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
}

.contact {
  background: var(--bg);
  padding: 0 1.25rem 4rem;
  position: relative;
  z-index: 10;
}
/* minmax(0,…) evita que el iframe del mapa infle la columna y desborde */
.contact__in {
  max-width: 78rem;
  margin-inline: auto;
  border-top: 1px solid rgba(215, 226, 234, .18);
  padding-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.contact__col { min-width: 0; }
.contact__cta { margin-top: 1.75rem; }

/* --- Tarjeta de datos --- */
.contact__card {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(215, 226, 234, .18);
  border-radius: 28px;
  background: rgba(215, 226, 234, .035);
}
/* Las opacidades de los textos secundarios sobre #0C0C0C están medidas: a
   .5 el gris resultante se queda en 4.32:1 y no llega al 4.5:1 de la AA.
   .58 deja el contraste real en ~5.3:1 sin cambiar la jerarquía visual. */
.contact__tag {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .58;
  margin-bottom: 1.25rem;
}

.contact__data {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
}
.contact__data li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.contact__ic {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(215, 226, 234, .07);
  border: 1px solid rgba(215, 226, 234, .16);
  color: var(--ink);
}
.contact__ic svg { width: 18px; height: 18px; }

.contact__val { min-width: 0; }
.contact__val a {
  display: block;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.25;
  /* Un email largo debe partir antes que desbordar en móvil */
  overflow-wrap: anywhere;
  transition: opacity 200ms ease-out;
}
.contact__val a:hover { opacity: .7; }
.contact__val > span {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .58;
}

.contact__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
}
.contact__wa svg { width: 18px; height: 18px; flex: none; }

/* --- Mapa --- */
.contact__map {
  width: 100%;
  min-width: 0;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 234, .22);
  background: #14141a;
  line-height: 0;
  /* Fuerza una capa propia: sin esto Safari no recorta el iframe al radio */
  transform: translateZ(0);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: clamp(340px, 38vw, 420px);
  border: 0;
  border-radius: inherit;
  /* El embed de Google es claro; se rebaja apenas para que no deslumbre
     sobre el #0C0C0C sin perder legibilidad. */
  filter: saturate(.88) brightness(.93);
}

.contact__nota {
  max-width: 78rem;
  margin: 2.5rem auto 0;
}
.contact h2 {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.02em;
  font-size: clamp(2rem, 7vw, 76px);
  margin-bottom: 1rem;
}
.contact p {
  font-weight: 300;
  opacity: .6;
  max-width: 46ch;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
}
/* Aviso honesto: hueco de prueba social sin datos inventados */
.slot {
  border: 2px dashed rgba(215, 226, 234, .25);
  border-radius: 24px;
  padding: 1.5rem;
  max-width: 46rem;
}
.slot b {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #d79a4a;
  margin-bottom: 0.5rem;
}
.slot p { font-weight: 300; opacity: .55; max-width: none; }

.footer {
  background: var(--bg);
  padding: 0 1.25rem 2.5rem;
  position: relative;
  z-index: 10;
}
.footer__in {
  max-width: 78rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 300;
  opacity: .58;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ====================================================== BREAKPOINT 600 === */

@media (min-width: 600px) {
  /* A 600px justo la barra debe seguir siendo compacta (≤64px) */
  .nav { padding: 0.8rem var(--px-6); }
  .wm img { height: 36px; }
  .hero__bar p { max-width: 200px; }
  .deco-tl, .deco-tr { width: 140px; }
  .deco-bl { width: 120px; }
  .deco-br { width: 150px; }
}

/* =================================================== BREAKPOINT 640 (sm) === */

@media (min-width: 640px) {
  .wm img { height: 44px; }
  /* El tamaño lo lleva el clamp de .hero__title .hero-heading; aquí solo
     queda el ajuste vertical del titular. */
  .hero__title h1 { margin-top: 1rem; }

  .hero__img {
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: 360px;
  }

  .hero__bar { padding-bottom: 2rem; }
  .hero__bar p { max-width: 220px; }

  .marquee { padding-top: 8rem; }

  .about { padding-inline: 2rem; }
  .about__text { margin-top: 3.5rem; }
  .about__cta { margin-top: 5rem; }
  .deco-tl, .deco-tr { width: 160px; }
  .deco-bl { width: 140px; }
  .deco-br { width: 170px; }
  .deco-tl, .deco-tr { left: auto; }
  .deco-tl { left: 2%; }
  .deco-tr { right: 2%; }
  .deco-bl { left: 6%; }
  .deco-br { right: 6%; }

  .services {
    padding: 6rem 2rem;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
  }
  .services h2 { margin-bottom: 5rem; }
  .service { gap: 1.75rem; padding-block: 2.5rem; }

  .work {
    padding-inline: 2rem;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -3rem;
  }
  .case { border-radius: 50px; padding: 1.5rem; }
  .case__grid img { border-radius: 50px; }
  .contact__map { border-radius: 50px; }
  .contact__card { border-radius: 34px; padding: 1.75rem; }

  .btn--primary { padding: 0.875rem 2.5rem; font-size: 0.875rem; }
  .btn--ghost { padding: 0.6rem 1.5rem; font-size: 0.75rem; }

  .faq, .contact { padding-inline: 2rem; }
  .footer { padding-inline: 2rem; }
}

/* =================================================== BREAKPOINT 768 (md) === */

@media (min-width: 768px) {
  .nav { padding: 1rem var(--px-10); }
  .nav a, .nav button { font-size: 1.125rem; }

  .hero__title { padding-inline: var(--px-10); }
  .hero__title h1 { margin-top: -1.25rem; }

  .hero__img { width: 440px; }

  .hero__bar { padding: 0 var(--px-10) 2.5rem; }
  /* El claim del hero de tatuajes es más largo que el de la demo original:
     con 260px caía en una columna de diez líneas que se comía el hueco de
     la foto. 380px lo deja en tres o cuatro líneas sin tocar nada más. */
  .hero__bar p { max-width: 380px; }

  .marquee { padding-top: 10rem; }

  .about { padding-inline: var(--px-10); }
  .about__text { margin-top: 4rem; }
  .about__cta { margin-top: 6rem; }
  .deco-tl, .deco-tr { width: 210px; }
  .deco-bl { width: 180px; }
  .deco-br { width: 220px; }
  .deco-tl { left: 4%; }
  .deco-tr { right: 4%; }
  .deco-bl { left: 10%; }
  .deco-br { right: 10%; }

  .services {
    padding: 8rem var(--px-10);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
  }
  .services h2 { margin-bottom: 7rem; }
  .service { gap: 2.5rem; padding-block: 3rem; }

  .work {
    padding-inline: var(--px-10);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: -3.5rem;
  }
  .case {
    border-radius: 60px;
    padding: 2rem;
    top: calc(128px + var(--i) * 28px);
  }
  .case__grid img { border-radius: 60px; }
  .contact__map { border-radius: 60px; }
  .contact__card { border-radius: 40px; padding: 2rem; }

  .btn--primary { padding: 1rem 3rem; font-size: 1rem; }
  .btn--ghost { padding: 0.7rem 1.75rem; font-size: 0.8rem; }

  .faq, .contact, .footer { padding-inline: var(--px-10); }
}

/* ====================================================== BREAKPOINT 900 === */

@media (min-width: 900px) {
  .nav { gap: 2rem; }
  /* A partir de aquí sí caben emblema + wordmark + los 4 enlaces */
  .wm img { height: 48px; }
  .wm span { display: block; font-size: 1.15rem; }
  .contact__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

/* ================================================== BREAKPOINT 1024 (lg) === */

@media (min-width: 1024px) {
  .nav a, .nav button { font-size: 1.4rem; }
  .wm img { height: 52px; }
  .wm span { font-size: 1.3rem; }
  .hero__img { width: 520px; }
  .hero__bar p { max-width: 440px; }
}

/* ============================================== AJUSTES SOLO MÓVIL (<600) === */

@media (max-width: 599px) {
  /*
   * Barra compacta: una sola fila para que no pase de ~56px de alto. Los 4
   * enlaces se quedan en línea y, si no caben (a partir de ~340px hacia
   * abajo), la propia fila se desplaza en horizontal. Así ninguno se pierde
   * y la página nunca desborda.
   */
  .nav {
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding: 0.55rem var(--px-6);
  }
  .nav a, .nav button {
    font-size: 0.62rem;
    letter-spacing: .05em;
    white-space: nowrap;
  }
  .nav__links {
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0.7rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }

  .hero__bar { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero__bar p { max-width: none; }
  .btn--primary { padding: 0.75rem 1.75rem; }

  .marquee__row img { width: 260px; height: 168px; }

  .about__deco { opacity: .5; }

  .service { flex-direction: column; gap: 0.25rem; }
  .service__n { font-size: 2.6rem; }

  .case__grid { grid-template-columns: 1fr; }
  /* En una sola columna la imagen alta vuelve al flujo normal */
  .case__grid > .case__col:last-child { position: static; }
  .case__c { position: static; inset: auto; height: clamp(200px, 48vw, 320px); }
  .case-slot { height: auto; margin-bottom: 1.25rem; }
  .case { position: static; top: auto; transform: none !important; }
}

/* ============================================== MOVIMIENTO REDUCIDO === */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* La barra sigue cambiando de estado, pero sin transición */
  .nav { transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-rv] { opacity: 1; transform: none; }
  .about__text span { opacity: 1; }
  .magnet { transform: none !important; }
}
