/* =========================================================
   Lumeka Studio — estilos
   Para cambiar los colores de toda la web, edita solo
   las variables de :root.
   ========================================================= */

/* Tipografías alojadas en la propia web (sin conexiones a Google: más privacidad y más rápido) */
@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --fondo: #FBFAF6;   /* blanco roto */
  --tinta: #3A3A3A;   /* gris carbón: logo y textos */
  --oscuro: #1E1A18;  /* fondo de las zonas oscuras */
  --rosa: #B692A1;    /* rosa malva: fondo de la perrita y asteriscos */

  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: clamp(72px, 9vw, 104px);
  --ease: cubic-bezier(0.2, 0.8, 0.1, 1);
}

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

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }

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

/* Cabecera ------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
}

.site-header {
  color: var(--tinta);
  background: rgba(251, 250, 246, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.45s var(--ease);
}
/* Se esconde al bajar y vuelve al subir (js/main.js, apartado 15) */
.head-hidden .site-header { transform: translateY(-100%); }
.menu-open .site-header { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: color 0.3s ease, background-color 0.3s ease; }
}
.is-dark .site-header {
  color: var(--fondo);
  background: rgba(30, 26, 24, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.menu-open .site-header { color: var(--tinta); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand { display: block; color: inherit; }
/* Logo de la cabecera: Lmk; al pasar el ratón se despliega «lumeka» letra a letra */
.brand-logo { width: clamp(78px, 9.6vw, 142px); height: auto; overflow: visible; }
.brand-logo .bl {
  transition: opacity 0.7s cubic-bezier(0.62, 0.14, 0, 1), transform 0.7s cubic-bezier(0.62, 0.14, 0, 1);
  transition-delay: calc(var(--i) * 0.07s);
}
.brand-logo .bl-long .bl { opacity: 0; transform: translateY(26px); }
.brand.is-long .bl-short .bl,
.ask-brand.is-long .bl-short .bl {
  opacity: 0;
  transform: translateY(-26px);
  transition-delay: calc((3 - var(--i)) * 0.05s);
}
.brand.is-long .bl-long .bl,
.ask-brand.is-long .bl-long .bl {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.12s + var(--i) * 0.09s);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .bl-short .bl,
  .ask-brand:hover .bl-short .bl,
  .brand:focus-visible .bl-short .bl {
    opacity: 0;
    transform: translateY(-26px);
    transition-delay: calc((3 - var(--i)) * 0.05s);
  }
  .brand:hover .bl-long .bl,
  .ask-brand:hover .bl-long .bl,
  .brand:focus-visible .bl-long .bl {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.12s + var(--i) * 0.09s);
  }
}

.menu-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 28px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 24px; transform: rotate(20deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 24px; transform: rotate(-20deg); }

/* Menú a pantalla completa */
.menu {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--pad) var(--pad);
  background: var(--fondo);
}
.menu[hidden] { display: none; }
.menu { overflow-y: auto; }

/* Servicios dentro del menú: cerrados, con un «+» al lado.
   Al pulsar el «+» se despliegan y el menú se pone rosa con grano */
.menu { isolation: isolate; }
.menu::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--rosa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0.42 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.menu.is-sub-open::before { opacity: 1; }

.menu-row { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }
.menu-plus {
  position: relative;
  flex: none;
  width: clamp(2rem, 4vw, 3rem);
  height: clamp(2rem, 4vw, 3rem);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-plus span {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-plus span:last-child { transform: rotate(90deg); }
.menu-plus[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-plus[aria-expanded="true"] span:last-child { transform: rotate(135deg); }

.menu-sub-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.menu-sub-wrap > .menu-sub { overflow: hidden; min-height: 0; }
.is-sub-open .menu-sub-wrap { grid-template-rows: 1fr; }
.menu-sub-wrap:not(.is-shown) { visibility: hidden; }

.menu-sub {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}
.menu-sub li:first-child { border-top: 1px solid rgba(58, 58, 58, 0.35); margin-top: 0.35rem; }
.menu-sub li { border-bottom: 1px solid rgba(58, 58, 58, 0.35); }
.menu-sub li:last-child { margin-bottom: 1.1rem; }
.menu-list .menu-sub a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  padding: 0.55rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu-list .menu-sub a span { font-size: 0.7rem; }
.menu-list .menu-sub a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* Cada servicio lleva su «Ver» a la derecha: abre el servicio */
.menu-sub li { display: flex; align-items: center; gap: 1rem; }
.menu-list .menu-sub li > a:first-child { flex: 1; min-width: 0; }
.menu-list .menu-sub a.menu-ver {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  flex: none;
  padding: 0.42rem 0.85rem 0.42rem 0.95rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.menu-ver i {
  position: relative;
  display: block;
  width: 0.95em;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.menu-ver i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -0.22em;
  width: 0.45em;
  height: 0.45em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.menu-list .menu-sub a.menu-ver:hover,
.menu-list .menu-sub a.menu-ver:focus-visible { background: var(--tinta); color: var(--fondo); text-decoration: none; }
.menu-list .menu-sub a.menu-ver:hover i { transform: translateX(3px); }

.menu-list a {
  display: inline-block;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu-list a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.menu-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.menu-legal a { text-decoration: none; }
.menu-legal a:hover { text-decoration: underline; }

/* Portada ------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--header-h) var(--pad) clamp(0.75rem, 2vw, 1.5rem);
}

/* Frase centrada en el espacio libre */
.hero-claim {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(1.1rem, 2.5vh, 1.8rem);
  padding-block: 2rem;
}
/* Día, hora, ciudad y país */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6em;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.62rem + 0.2vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}
.hm-time { font-variant-numeric: tabular-nums; }

.claim {
  max-width: 44ch;
  font-family: var(--mono);
  font-size: clamp(0.85rem, 0.75rem + 0.45vw, 1.15rem);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  white-space: pre-line;
}

.claim-cursor {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 0.35em;
  vertical-align: -0.15em;
  background: currentColor;
  animation: parpadeo 1s steps(1) infinite;
}
@keyframes parpadeo { 50% { opacity: 0; } }

/* Logo gigante pegado abajo */
.hero-logo-wrap { display: flex; justify-content: center; }

.hero-logo {
  /* Ancho completo, sin pasarse de alto en pantallas bajas */
  width: min(100%, calc((100svh - var(--header-h) - 9rem) * 3.02));
  height: auto;
  color: var(--tinta);
}

/* Entrada: las letras suben desde abajo una a una */
.js .hero-logo .ch {
  transform-box: fill-box;
  transform: translateY(110%);
}

.js .is-loaded .hero-logo .ch {
  transform: none;
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 90ms + 200ms);
}

/* Recorrido de imágenes y servicios ------------------------ */
.reel {
  position: relative;
  background: var(--fondo);
  --oscuro: #1E1A18;   /* fondo de la lista de servicios */
}

.reel-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  --ix: 0px;
  --iy: 0px;
  --r: 0px;
  --shade: 1;
}

/* Ventana que recorta la imagen: pequeña al principio, pantalla completa al final */
.reel-frame {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--iy) var(--ix) round var(--r));
  background: var(--tinta);
}
.reel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 17, 0.55);
  opacity: var(--shade);
}

.reel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.reel-img.is-active { opacity: 1; }
/* Las dos primeras fotos se ven enteras dentro de la ventana */
.reel-img--fit {
  inset: auto;
  left: 50%;
  top: 50%;
  width: var(--fw, 100%);
  height: var(--fh, 100%);
  transform: translate(-50%, -50%);
}
html:not(.js) .reel-img:last-of-type { opacity: 1; }

.reel-track { display: none; }

/* Al abrir un servicio, el fondo pasa al rosa de la marca con grano (ruido) */
.reel-pink {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--rosa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0.42 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.svc-pink .reel-pink { opacity: 1; }
.services { transition: color 0.5s ease; }
.svc-pink .services { color: var(--tinta); }
.svc-list, .svc { transition: border-color 0.5s ease; }
.svc-pink .svc-list { border-top-color: var(--tinta); }
.svc-pink .svc { border-bottom-color: rgba(58, 58, 58, 0.35); }
.svc-pink .services :focus-visible { outline-color: var(--tinta); }
/* La cabecera también se pone rosa mientras está sobre los servicios */
.is-pink-head .site-header {
  color: var(--tinta);
  background: rgba(182, 146, 161, 0.88);
}

/* Lista de servicios: sube por encima de la imagen abierta, en claro sobre oscuro */
.services {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.5rem) var(--pad) clamp(3rem, 8vw, 6rem);
  color: var(--fondo);
}
/* Empieza a subir un poco antes de que la imagen termine de abrirse */
.js .services { margin-top: -20vh; }
html:not(.js) .services { background: var(--oscuro); }

/* Las filas van apareciendo una tras otra al llegar */
.js .svc {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s var(--ease);
  transition-delay: calc(var(--n, 0) * 90ms);
}
.js .svc.is-in { opacity: 1; transform: none; }

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

.svc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--fondo);
}

.svc { border-bottom: 1px solid rgba(251, 250, 246, 0.35); scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.svc-head { margin: 0; font: inherit; }

/* Fila: (número)  TÍTULO ........................ VER */
.svc-toggle {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.svc-num { font-size: 0.7rem; }

.svc-title {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.svc-view {
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-transform: uppercase;
}

/* Panel desplegable */
.svc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.svc.is-open .svc-panel { grid-template-rows: 1fr; }
.svc-inner { min-height: 0; overflow: hidden; }

.svc-body {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(140px, 0.6fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    ". . sol desc img"
    "inq inq . . img";
  column-gap: clamp(1.25rem, 3vw, 3rem);
  padding: 0.35rem 0 1.75rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.svc.is-open .svc-body { opacity: 1; transform: none; transition-delay: 0.12s; }

.svc-solutions {
  grid-area: sol;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  align-content: start;
}
.svc-label {
  grid-column: 1 / -1;
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.svc-solutions ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.4;
}

.svc-desc {
  grid-area: desc;
  max-width: 34ch;
  margin: 1.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: justify;
  hyphens: auto;
}

.svc-img {
  grid-area: img;
  justify-self: end;
  width: 100%;
  max-width: 170px;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.svc-inquire {
  grid-area: inq;
  align-self: end;
  justify-self: start;
  margin-top: 3rem;
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.8rem);
  line-height: 1;
  text-decoration: none;
}
.svc-inquire:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* Foto pequeña que sigue al cursor (solo con ratón) */
.svc-hover {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 15;
  width: clamp(140px, 13vw, 200px);
  aspect-ratio: 3 / 4;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--hx, -999px), var(--hy, -999px), 0) translate(18px, -50%);
  transition: opacity 0.25s ease;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.svc-hover.is-on { opacity: 1; }
.svc-hover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.svc-hover img.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .svc-hover { display: none; }
}

.svc-toggle:hover .svc-view,
.svc.is-open .svc-view { text-decoration-thickness: 2px; }

/* Móvil y tablet: acordeón a una columna */
@media (max-width: 900px) {
  .svc-toggle { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .svc-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "sol" "desc" "img" "inq";
    row-gap: 1.5rem;
    padding: 0.25rem 0 1.75rem 3rem;
  }
  .svc-solutions { margin: 0; }
  .svc-img { justify-self: start; max-width: 160px; margin: 0; }
  .svc-desc { max-width: 46ch; margin: 0; }
  .svc-inquire { margin: 0; }
}

/* Con JavaScript: la imagen queda fija mientras dura el recorrido
   (3 pantallas de scroll) y la lista sube por encima */
.js .reel-stage { position: sticky; top: 0; }
.js .reel-track { display: block; height: 300vh; margin-top: -100vh; }


/* Trabajos: esfera de fotos -------------------------------- */
.work {
  position: relative;
  z-index: 3;
  background: var(--fondo);
  color: var(--tinta);
}

.work-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  --spread: 0;
}

/* «Trabajos» y «2025» se separan hacia los lados al bajar */
.work-title {
  position: absolute;
  inset: 50% 0 auto 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  margin: 0;
  padding-inline: var(--pad);
  transform: translateY(-50%);
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
}
.work-word { display: block; }
.work-word--l { transform: translateX(calc(var(--spread) * -1 * var(--travel, 22vw))); }
.work-word--r { transform: translateX(calc(var(--spread) * var(--travel, 22vw))); }

.work-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
}
.work-scene.is-dragging { cursor: grabbing; }

.work-sphere {
  position: relative;
  width: 0;
  height: 0;
}

.work-card {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  width: var(--cw, 110px);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  will-change: transform, opacity;
}
.work-card--v { --cw: clamp(58px, 6.5vw, 104px); aspect-ratio: 3 / 4; }
.work-card--h { --cw: clamp(72px, 8vw, 128px); aspect-ratio: 4 / 3; }
.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.work-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Móvil: una palabra arriba y otra abajo, que se separan en vertical */
@media (max-width: 760px) {
  .work-title {
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }
  .work-word--l { transform: translateY(calc(var(--spread) * -1 * var(--travel-y, 26vh))); }
  .work-word--r { transform: translateY(calc(var(--spread) * var(--travel-y, 26vh))); }
}

/* Sin JavaScript: las fotos se ven en una cuadrícula */
html:not(.js) .work-stage { height: auto; padding: 8rem var(--pad) 4rem; overflow: visible; }
html:not(.js) .work-title { position: static; transform: none; justify-content: space-between; margin-bottom: 2rem; }
html:not(.js) .work-scene { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; perspective: none; }
html:not(.js) .work-sphere { display: contents; }
html:not(.js) .work-card { position: static; width: auto; transform: none; }
html:not(.js) .work-hint { display: none; }

/* Con JavaScript: la esfera queda fija mientras se baja (2 pantallas) */
.js .work { height: 220vh; }
.js .work-stage { position: sticky; top: 0; }


/* Lo que nos diferencia ------------------------------------ */
.diff { position: relative; z-index: 3; }

.ast {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  flex: none;
  color: var(--rosa);
  vertical-align: 0.02em;
}

/* Franja de palabras que se desplaza sola */
.diff-marquee {
  overflow: hidden;
  padding-block: clamp(1rem, 2.2vw, 1.75rem);
  background: var(--fondo);
  color: var(--tinta);
  border-top: 1px solid rgba(58, 58, 58, 0.15);
  border-bottom: 1px solid rgba(58, 58, 58, 0.15);
}
.diff-marquee-track {
  display: flex;
  width: max-content;
  animation: diff-marquee 38s linear infinite;
}
.diff-marquee-run {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-right: clamp(1.25rem, 3vw, 3rem);
  font-size: clamp(1.9rem, 1rem + 3.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.diff-marquee .ast { width: 0.5em; height: 0.5em; animation: diff-spin 12s linear infinite; }
@keyframes diff-marquee { to { transform: translateX(-50%); } }
@keyframes diff-spin { to { transform: rotate(360deg); } }

/* Bloque claro */
.diff-body {
  background: var(--fondo);
  color: var(--tinta);
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(4rem, 10vw, 8rem);
}

.diff-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 8vw, 6.5rem);
}
.diff-tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.diff-tag--r { text-align: right; }

.diff-title {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.diff-title .ast { width: 1.1em; height: 1.1em; }

/* Frase grande: cada palabra se enciende al bajar */
.diff-statement {
  margin: 0 0 clamp(4rem, 9vw, 7rem);
  font-size: clamp(1.45rem, 0.9rem + 2.1vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.diff-statement .w { opacity: calc(0.15 + 0.85 * var(--o, 1)); transition: opacity 0.2s linear; }

.diff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}

/* Tarjeta de la fundadora (estilo ficha de equipo) */
.diff-card { margin: 0; width: 100%; max-width: 360px; justify-self: center; }
.diff-photo {
  position: relative;
  overflow: hidden;
  background: var(--rosa);
}
/* La foto se ve entera, sin recortes */
.diff-photo img {
  width: 100%;
  height: auto;
}
.diff-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0 0.9rem;
  border-bottom: 1px solid currentColor;
}
.diff-name {
  font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.diff-role {
  padding: 0.45em 0.9em 0.4em;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--fondo);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diff-note {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.75;
}
.diff-note .ast { margin-right: 0.3em; }

/* Los tres puntos fuertes */
.diff-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(58, 58, 58, 0.3); }
.diff-point {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  column-gap: 0.75rem;
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid rgba(58, 58, 58, 0.3);
}
.diff-point .ast { grid-row: span 2; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; }
.diff-point h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.diff-point p { margin: 0; max-width: 38ch; font-size: 0.85rem; line-height: 1.55; opacity: 0.8; }
.diff-cta { padding-top: 2rem; }
.diff-cta a {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.4rem);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.diff-cta a:hover { background-size: 100% 1px; }

/* Entrada suave de la tarjeta, la foto pequeña y los puntos */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
  transition-delay: calc(var(--n, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .diff-top { flex-direction: column; gap: 1rem; margin-bottom: 4rem; }
  .diff-tag--r { text-align: left; }
  .diff-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .diff-card { max-width: 280px; justify-self: start; }
}


/* Contacto (pie de página) --------------------------------- */
.foot {
  position: relative;
  z-index: 3;
  background: var(--oscuro);
  color: var(--fondo);
  padding: clamp(4rem, 9vw, 7rem) var(--pad) 1.5rem;
}
.foot a { text-decoration: none; }
.foot :focus-visible { outline-color: var(--fondo); }

/* Logo gigante: las letras salen pequeñas y separadas y se juntan al bajar */
.foot-logo {
  margin: 0 0 clamp(3.5rem, 9vw, 8rem);
  color: var(--fondo);
}
.foot-logo svg { width: 100%; height: auto; overflow: visible; }
.foot-logo .fl {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  will-change: transform;
}

.foot-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.foot-col { display: grid; gap: 2rem; align-content: start; }
.foot-item h2 {
  margin: 0 0 0.4rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.3rem, 1rem + 0.7vw, 1.75rem);
  line-height: 1;
  text-transform: uppercase;
}
.foot-item a,
.foot-item p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-item p { opacity: 0.6; }
.foot-item ul { margin: 0; padding: 0; list-style: none; }
.foot-item a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.foot-item a:hover { background-size: 100% 1px; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(251, 250, 246, 0.25);
  font-size: 0.72rem;
}
.foot-bottom p { margin: 0; }
.foot-bottom ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.foot-bottom a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .foot-info { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .foot-bottom { flex-direction: column; }
}

/* Páginas legales y 404 ----------------------------------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--pad);
}
.page-header img { width: clamp(92px, 9vw, 120px); height: auto; }
.page-header a { text-decoration: none; }

.wrap { max-width: 760px; margin-inline: auto; padding-inline: var(--pad); }

.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 2.5rem; }
.legal h2 { font-weight: 500; font-size: 1.15rem; margin: 2.5rem 0 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4rem; }
.legal p a, .legal li a { text-decoration: underline; text-underline-offset: 0.2em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.85rem; }
.legal-table th, .legal-table td { padding: 0.7rem 0.6rem 0.7rem 0; border-bottom: 1px solid rgba(58, 58, 58, 0.25); text-align: left; vertical-align: top; }
.legal-table th { font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 600px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid rgba(58, 58, 58, 0.25); }
  .legal-table td { display: block; padding: 0.15rem 0; border: 0; }
}

.site-footer { padding-block: 2rem; font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-copy { margin: 0; }

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: var(--pad);
  text-align: center;
}
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.notfound a { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }

/* Movimiento reducido ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .work { height: auto; }
  .js .svc { opacity: 1; transform: none; transition: none; }
  .js .services { margin-top: 0; }
  .js .hero-logo .ch,
    .claim-cursor { animation: none; }
  .diff-marquee-track, .diff-marquee .ast { animation: none; }
  .foot-logo .fl { transform: none !important; }
  .menu-sub-wrap, .menu::before, .menu-plus span { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .reel-track { height: 0; margin-top: 0; }
  .js .reel-stage { position: relative; }
  .reel-img { opacity: 0 !important; }
  .reel-img:last-of-type { opacity: 1 !important; }
}

/* Pide presupuesto: reloj de servicios + formulario ----------- */
.ask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: var(--tinta);
  background-color: var(--rosa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0.42 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.ask[hidden] { display: none; }
.ask.is-in { opacity: 1; }

.ask-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  flex: none;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
}
.ask-brand /* Logo de la cabecera: Lmk; al pasar el ratón se despliega «lumeka» letra a letra */
.brand-logo { width: clamp(78px, 9.6vw, 142px); height: auto; overflow: visible; }
.brand-logo .bl {
  transition: opacity 0.7s cubic-bezier(0.62, 0.14, 0, 1), transform 0.7s cubic-bezier(0.62, 0.14, 0, 1);
  transition-delay: calc(var(--i) * 0.07s);
}
.brand-logo .bl-long .bl { opacity: 0; transform: translateY(26px); }
.brand.is-long .bl-short .bl,
.ask-brand.is-long .bl-short .bl {
  opacity: 0;
  transform: translateY(-26px);
  transition-delay: calc((3 - var(--i)) * 0.05s);
}
.brand.is-long .bl-long .bl,
.ask-brand.is-long .bl-long .bl {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.12s + var(--i) * 0.09s);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .bl-short .bl,
  .ask-brand:hover .bl-short .bl,
  .brand:focus-visible .bl-short .bl {
    opacity: 0;
    transform: translateY(-26px);
    transition-delay: calc((3 - var(--i)) * 0.05s);
  }
  .brand:hover .bl-long .bl,
  .ask-brand:hover .bl-long .bl,
  .brand:focus-visible .bl-long .bl {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.12s + var(--i) * 0.09s);
  }
}
.ask-close {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.ask-close span {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 24px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(20deg);
}
.ask-close span:last-child { transform: rotate(-20deg); }

.ask-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--pad) var(--pad);
  animation: ask-up 0.6s var(--ease) both;
}
.ask-step[hidden] { display: none; }
@keyframes ask-up { from { opacity: 0; transform: translateY(18px); } }

.ask-kicker,
.ask-hint,
.ask-back,
.ask-again {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ask-title {
  margin-top: 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ask-title em,
.ask-form-title em,
.clock-center em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }

/* Reloj */
.clock {
  --r: min(27vh, 33vw, 300px);
  position: relative;
  /* con el dedo se arrastra la aguja (sin mover la página) */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin: clamp(3.5rem, 9vh, 5rem) auto clamp(4rem, 10vh, 5.5rem);
  flex: none;
}
.clock-face {
  position: absolute;
  inset: 0;
}
/* brillo suave en el centro */
.clock-face::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 250, 246, 0.42) 0%, rgba(251, 250, 246, 0.14) 45%, rgba(251, 250, 246, 0) 70%);
  filter: blur(6px);
}
/* doce marcas como las horas de un reloj */
.clock-face::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.6deg, rgba(58, 58, 58, 0.5) 0deg 1.2deg, transparent 1.2deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 7px), #000 calc(50% - 6px) 50%, transparent 50%);
  mask: radial-gradient(circle, transparent 0 calc(50% - 7px), #000 calc(50% - 6px) 50%, transparent 50%);
}
.clock-list { margin: 0; padding: 0; list-style: none; }
.clock-item {
  --a: calc(var(--i) * 60deg);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}
.clock-item button {
  position: absolute;
  left: calc(sin(var(--a)) * var(--r) * var(--rx, 1.12));
  top: calc(cos(var(--a)) * var(--r) * -1.06);
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 11em;
  padding: 0.3em 0.2em;
  border: 0;
  background: none;
  color: var(--tinta);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  opacity: var(--o, 0.38);
  transition: opacity 0.25s ease;
}
.clock-n {
  display: block;
  margin-bottom: 0.45em;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}
.clock-item button:focus-visible { outline-offset: 2px; }
.clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--hand, 0deg));
  pointer-events: none;
}
.clock-hand span {
  position: absolute;
  left: -0.75px;
  bottom: -10px;
  width: 1.5px;
  height: calc(var(--r) * 0.66);
  background: var(--tinta);
  border-radius: 2px;
}
.clock.is-drag .clock-hand span { width: 2.5px; left: -1.25px; }
.clock.is-drag .clock-hand::after { transform: scale(1.5); }
.clock-hand::after {
  content: "";
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tinta);
}
.clock-center {
  position: absolute;
  left: 50%;
  top: calc(50% + 1.4rem);
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  pointer-events: none;
}
.clock-center span,
.clock-center em { display: block; }
.clock-center em { font-size: 1.15rem; letter-spacing: 0; text-transform: none; }

/* Formulario (estilo lista numerada, como los servicios) */
.ask-form-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  width: 100%;
  padding-top: clamp(1rem, 4vh, 3rem);
}
.ask-form-step[hidden] { display: none; }
.ask-back,
.ask-again {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.ask-back:hover,
.ask-again:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.ask-form-title {
  margin: 1.4rem 0 1.2rem;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.ask-chosen { display: block; margin-top: 0.15em; font-size: 0.8em; letter-spacing: -0.01em; }
.ask-note { max-width: 24rem; font-size: 0.95rem; }

.ask-form { width: 100%; }
.f-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: start;
  border-bottom: 1px dotted rgba(58, 58, 58, 0.6);
}
.f-row:first-of-type { border-top: 1px dotted rgba(58, 58, 58, 0.6); }
.f-n,
.f-row > input,
.f-row textarea,
.f-svc {
  padding: 1.15rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.f-n { font-size: 0.75rem; opacity: 0.75; }
.f-label,
.f-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.f-row > input,
.f-row textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tinta);
  font-family: var(--sans);
  text-transform: uppercase;
  outline: none;
}
.f-row textarea { min-height: 7.5rem; resize: vertical; text-transform: none; }
.f-row ::placeholder { color: rgba(58, 58, 58, 0.62); text-transform: uppercase; opacity: 1; }
.f-row:focus-within { border-bottom-style: solid; }
.f-row.is-bad { border-bottom-color: #7a1f2b; border-bottom-style: solid; }

.f-svc {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: none;
  color: rgba(58, 58, 58, 0.62);
  font-family: var(--sans);
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}
.f-svc.has-value { color: var(--tinta); }
.f-plus { font-size: 1rem; line-height: 1; transition: transform 0.35s var(--ease); }
.f-svc[aria-expanded="true"] .f-plus { transform: rotate(45deg); }
.f-svc-wrap {
  grid-column: 2;
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  transition: grid-template-rows 0.45s var(--ease);
}
.f-svc-wrap.is-open { grid-template-rows: 1fr; }
.f-svc-list { overflow: hidden; min-height: 0; }
.f-svc-wrap.is-open .f-svc-list { padding-bottom: 1rem; }
.f-svc-list label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.38rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.f-svc-list input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 12px;
  height: 12px;
  margin: 0;
  border: 1px solid var(--tinta);
  border-radius: 0;
}
.f-svc-list input:checked { background: var(--tinta); }

.f-send {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.4rem;
}
.f-check,
.f-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.f-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-box {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--tinta);
}
.f-check input:checked + .f-box::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--tinta);
}
.f-check input:focus-visible + .f-box { outline: 2px solid var(--tinta); outline-offset: 3px; }
.f-check.is-bad .f-box { border-color: #7a1f2b; }
.f-submit {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.f-submit .f-box { transition: background-color 0.25s ease; }
.f-submit:hover .f-box,
.f-submit.is-sending .f-box { background: var(--tinta); }
.f-error { min-height: 1.4em; margin: 1rem 0 0; font-size: 0.8rem; color: #7a1f2b; }

/* Gracias */
.ask-done { justify-content: center; text-align: center; padding-bottom: 18vh; }
.ask-done-title {
  margin: 0.5rem 0 1rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ask-done .ask-again { margin-top: 1.5rem; }

@media (max-width: 760px) {
  .clock { --r: min(30vh, 31vw); --rx: 0.98; }
  .clock-item button { font-size: 0.8rem; max-width: 7.6em; }
  .clock-n { font-size: 0.55rem; margin-bottom: 0.35em; }
  .clock-center { top: calc(50% + 1rem); font-size: 0.55rem; }
  .clock-center em { font-size: 0.85rem; }
  .ask-form-step { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 0; }
  .ask-form-title { margin: 1rem 0 0.8rem; }
  .f-row { grid-template-columns: 3rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ask, .ask-step { transition: none; animation: none; }
}

/* Bloque negro del panel de contacto: logo en movimiento + datos */
.ask-foot {
  flex: none;
  margin-top: clamp(2rem, 6vh, 4rem);
  padding: clamp(4rem, 12vh, 7rem) var(--pad) clamp(2.5rem, 6vh, 4rem);
  background: var(--oscuro);
  color: var(--fondo);
}
.ask-foot[hidden] { display: none; }
.ask-foot .foot-logo { margin-bottom: clamp(3rem, 8vh, 5.5rem); }
.ask-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem clamp(2rem, 7vw, 6rem);
}
.ask-info .foot-item h2 { font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.3rem); }
.ask-info a { text-decoration: none; }
.ask-foot :focus-visible { outline-color: var(--fondo); }

/* Gotita que sigue al ratón en la portada */
.hero { position: relative; }
.ghost {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ghost.is-on { opacity: 1; }
.ghost svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .ghost { display: none; }
}

/* Cabecera: botón de música + menú */
.head-tools { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2rem); }
.sound { display: flex; gap: 0.5rem; }
.sound-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(30px, 2.4vw, 34px);
  height: clamp(30px, 2.4vw, 34px);
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.sound-btn:hover { border-color: currentColor; }
.sound-btn svg { width: 46%; height: 46%; }
.sound-play .i-pause,
.sound-play[aria-pressed="true"] .i-play,
.sound-mute .i-off,
.sound-mute[aria-pressed="true"] .i-on { display: none; }
.sound-play[aria-pressed="true"] .i-pause,
.sound-mute[aria-pressed="true"] .i-off { display: block; }
/* mientras suena, un anillo que late alrededor del play */
.sound-play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
}
.sound-play[aria-pressed="true"]::after { animation: sound-ring 1.8s ease-out infinite; }
@keyframes sound-ring {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sound-play[aria-pressed="true"]::after { animation: none; }
}

/* Cookies: aviso abajo a la izquierda, con Rechazar y Aceptar al mismo nivel */
.ck {
  position: fixed;
  left: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 80;
  width: min(30rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--oscuro);
  color: var(--fondo);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(20, 18, 17, 0.28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.ck[hidden] { display: none; }
.ck.is-in { opacity: 1; transform: none; }
.ck-title {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rosa);
}
.ck-text { margin: 0 0 1.1rem; font-size: 0.86rem; line-height: 1.55; }
.ck-text a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.ck-prefs { display: grid; gap: 0.8rem; margin: 0 0 1.2rem; padding-top: 0.9rem; border-top: 1px solid rgba(251, 250, 246, 0.2); }
.ck-prefs[hidden] { display: none; }
.ck-opt { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; font-size: 0.8rem; line-height: 1.45; cursor: pointer; }
.ck-opt b { display: block; font-weight: 500; font-size: 0.85rem; }
.ck-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-box { position: relative; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--fondo); }
.ck-opt input:checked + .ck-box::after { content: ""; position: absolute; inset: 3px; background: var(--rosa); }
.ck-opt input:disabled + .ck-box { opacity: 0.55; }
.ck-opt input:focus-visible + .ck-box { outline: 2px solid var(--fondo); outline-offset: 3px; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.ck-btn {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--fondo);
  border-radius: 999px;
  background: transparent;
  color: var(--fondo);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.ck-btn:hover { background: var(--fondo); color: var(--oscuro); }
.ck-btn[hidden] { display: none; }
.ck-link { flex: 0 1 auto; border-color: transparent; text-decoration: underline; text-underline-offset: 0.25em; }
.ck-link:hover { background: transparent; color: var(--rosa); }
.ck :focus-visible { outline: 2px solid var(--fondo); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }

/* enlace «Cookies» que vuelve a abrir el aviso */
button.cookies-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
button.cookies-link:hover { text-decoration: underline; }

/* Fotos de los servicios dentro del menú: siguen al cursor */
.menu-peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  width: clamp(150px, 15vw, 220px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 20px 45px rgba(30, 26, 24, 0.3);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 0.3s ease;
}
.menu-peek.is-on { opacity: 1; }
.menu-peek img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.3s ease, transform 0.6s var(--ease);
}
.menu-peek img.is-active { opacity: 1; transform: scale(1); }
@media (max-width: 760px) {
  .menu-peek { width: 140px; }
}
