/* ==========================================================
   HECO — Portfolio de moda
   Negro, blanco hueso y gris. Galería al estilo Fotos de iPhone.
   ========================================================== */

:root {
  /* Color */
  --paper: #0A0A0A;
  --paper-2: #161616;
  --ink: #ECE8E1;
  --ink-2: #8D8A85;          /* texto secundario: 5.9:1 sobre negro */
  --rule: rgba(236, 232, 225, 0.28);
  --glass: rgba(34, 34, 34, 0.72);

  /* Tipo */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Espaciado (base 8) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --top-h: 66px;             /* lo ajusta JS con la altura real de la cabecera */

  --fast: 180ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ios: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); }

/* Barras de scroll a juego con la web: finas, rojas y redondeadas */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  border: 2px solid #0a0a0a;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6281c, #7a120d);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff3b30, #a3170f); }
::-webkit-scrollbar-corner { background: #0a0a0a; }

/* Dentro de los paneles (formulario, info del visor): pista transparente y separada del borde redondeado */
.quote::-webkit-scrollbar,
.viewer__info::-webkit-scrollbar { width: 8px; }
.quote::-webkit-scrollbar-track,
.viewer__info::-webkit-scrollbar-track { margin: 16px 0; background: transparent; }
.quote::-webkit-scrollbar-thumb,
.viewer__info::-webkit-scrollbar-thumb { border-color: transparent; background-clip: padding-box; }

/* Firefox (no entiende lo de arriba) */
@supports not selector(::-webkit-scrollbar) {
  html, .quote, .viewer__info { scrollbar-width: thin; scrollbar-color: #b3211a transparent; }
}

/* Fondo: negro con resplandores rojos profundos, fijo al hacer scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(178, 24, 18, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 55% at 105% 105%, rgba(140, 16, 12, 0.4), transparent 70%),
    radial-gradient(ellipse 50% 40% at -10% 60%, rgba(110, 12, 10, 0.25), transparent 70%),
    var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
svg { display: block; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: var(--paper);
  padding: var(--s1) var(--s2); z-index: 100; text-decoration: none;
}
.skip:focus { top: var(--s1); }

/* ---------- Cabecera ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s2);
  align-items: center;
  padding: 10px var(--gutter);
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.3;
}
.top__status {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-weight: 600;
  color: var(--ink-2);
}
.top__mark { justify-self: center; display: block; }
.top__mark img { width: 52px; }
.dot { width: 8px; height: 8px; flex: none; background: var(--ink); border-radius: 50%; }

/* Tres rayitas → X */
/* Derecha de la cabecera: idioma + tres rayitas, juntos y alineados */
.top__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(236, 232, 225, 0.22);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.35);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color var(--fast), border-color var(--fast);
}
.lang:hover { border-color: rgba(236, 232, 225, 0.5); }

.burger {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ios), opacity 0.2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú desplegable compacto, bajo las tres rayitas — mismo rojo difuminado que la web */
.menu {
  position: fixed;
  top: calc(var(--top-h) + 10px);
  right: var(--gutter);
  z-index: 45;
  width: 300px;
  padding: 10px;
  border: 1px solid rgba(236, 232, 225, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(178, 24, 18, 0.55), transparent 65%),
    radial-gradient(90% 60% at 0% 100%, rgba(110, 12, 10, 0.4), transparent 70%),
    rgba(16, 12, 12, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.24s var(--ios), transform 0.32s var(--ios), visibility 0.24s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--fast), padding 0.3s var(--ios);
}
/* Flecha que aparece y avanza al pasar por encima */
.menu__nav a::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: translateX(-6px) rotate(45deg);
  opacity: 0.35;
  transition: transform 0.3s var(--ios), opacity 0.2s;
}
/* Sección en la que estás: punto rojo */
.menu__nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  margin-left: -2px;
  border-radius: 50%;
  background: #e0321f;
  box-shadow: 0 0 10px rgba(224, 50, 31, 0.8);
  transform: scale(0);
  transition: transform 0.3s var(--ios);
}
.menu__nav a:not(.is-current)::before { width: 0; margin-left: -10px; }
.menu__nav a.is-current::before { transform: none; }
@media (hover: hover) {
  .menu__nav a:hover { background: rgba(236, 232, 225, 0.07); }
  .menu__nav a:hover::after { transform: translateX(0) rotate(45deg); opacity: 1; }
}
.menu__nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* Encargar: botón claro, como el resto de llamadas a la acción */
.menu__nav a:last-child { margin-top: 8px; background: var(--ink); color: var(--paper); }
.menu__nav a:last-child::after { opacity: 1; transform: none; transform: rotate(45deg); }
@media (hover: hover) {
  .menu__nav a:last-child:hover { background: #fff; }
}
/* Entrada escalonada de cada opción */
.menu.is-open .menu__nav a { animation: menu-in 0.42s var(--ios) both; animation-delay: calc(var(--i, 0) * 45ms + 40ms); }
.menu.is-open .menu__foot { animation: menu-in 0.42s var(--ios) both; animation-delay: 220ms; }
@keyframes menu-in { from { opacity: 0; transform: translateY(8px); } }

.menu__foot {
  margin-top: 10px;
  padding: 12px 6px 4px;
  border-top: 1px solid rgba(236, 232, 225, 0.1);
}
.menu__status { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 13px; color: var(--ink-2); }
.menu__status .dot { width: 7px; height: 7px; }
.menu__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.menu__links .menu__chip { flex: 1 1 calc(50% - 3px); }
.menu__links .menu__chip--wide { flex-basis: 100%; }
.menu__chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(236, 232, 225, 0.16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--fast), border-color var(--fast);
}
@media (hover: hover) {
  .menu__chip:hover { background: rgba(236, 232, 225, 0.08); border-color: rgba(236, 232, 225, 0.35); }
}

/* Velo suave detrás del menú */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ios);
}
.menu.is-open ~ .menu-scrim { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu-scrim, .menu__nav a, .menu__nav a::after, .menu__nav a::before { transition: none; }
  .menu.is-open .menu__nav a, .menu.is-open .menu__foot { animation: none; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--s3) var(--gutter) var(--s4); }

.hero__word {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  font-size: clamp(96px, 30vw, 520px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  padding: 0.06em 0 0.04em;
  border-bottom: 1px solid var(--rule);
}
.hero__word span { display: block; }

.hero__row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s3);
  padding-top: var(--s3);
  align-items: start;
}
.hero__mark { grid-column: 1 / span 2; grid-row: 1 / span 2; width: 100%; max-width: 150px; }
.hero__copy { grid-column: 4 / span 5; grid-row: 1; }
.hero__statement {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.95;
  font-weight: 900;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.03em;
}
.hero__sub {
  margin-top: var(--s2);
  max-width: 38ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.4;
  color: var(--ink-2);
}
.hero__cta {
  grid-column: 4 / span 5;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s3);
}
.hero__facts { grid-column: 10 / span 3; grid-row: 1 / span 2; font-size: 13px; line-height: 1.35; }

/* Botón principal y enlace de texto */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.textlink {
  display: inline-block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
button.textlink { background: none; border: 0; cursor: pointer; }
.hero__facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s2);
  padding: var(--s1) 0;
  border-top: 1px solid var(--rule);
}
.hero__facts dt { color: var(--ink-2); }
.hero__facts dd { font-feature-settings: "tnum" 1; }

/* ---------- Secciones: sin etiquetas ni líneas, separa el espacio ---------- */
.section { padding: var(--s4) var(--gutter); }

.sec { margin-bottom: var(--s4); }
.sec:not(:has(.sec__intro)) { margin-bottom: 0; }

/* El nombre de la sección sigue ahí para lectores de pantalla, pero no se ve */
.sec__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* En Contacto, la frase va pegada al correo como entrada */
.sec__intro {
  max-width: 40ch;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
#contacto .sec { margin-bottom: var(--s2); }

/* Barra de herramientas de la galería */
.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin-bottom: var(--s3);
}
.bar__meta { font-size: 13px; color: var(--ink-2); margin-right: auto; font-feature-settings: "tnum" 1; }

/* ==========================================================
   GALERÍA (estilo Fotos)
   ========================================================== */
.tools { display: flex; align-items: center; gap: var(--s1); }
.tool {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.tool:disabled { opacity: 0.35; cursor: default; }
.tool--icon { padding: 0; display: grid; place-items: center; }

.lib {
  --cols: 5;
  --ratio: 3 / 4;
  touch-action: pan-x pan-y;
  transition: opacity 160ms var(--ease);
}

.lib[data-fit="square"] { --ratio: 1; }

/* Todo: cuadrícula densa agrupada por colección */
.group__head {
  position: sticky;
  top: var(--top-h);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  padding: 12px 0 10px;
  background: rgba(10, 10, 10, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.group__title {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.group__meta { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.group + .group { margin-top: var(--s5); }

/* Prendas sueltas: juntas en una fila, cada una con su nombre encima */
.singles {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 6px;
  row-gap: var(--s3);
  transition: grid-template-columns 240ms var(--ios);
}
.group + .singles,
.singles + .group { margin-top: var(--s5); }
.singles > .group {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid; /* las fotos quedan alineadas aunque un nombre ocupe 2 líneas */
  row-gap: 0;
  min-width: 0;
  margin: 0;
}
.singles .group__head {
  position: static;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 3px;
  padding: 0 2px 10px;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.singles .group__title { font-size: clamp(13px, 1.15vw, 17px); line-height: 1.1; }
.singles .group__meta { font-size: 12px; white-space: normal; }
.singles .grid { grid-template-columns: 1fr; padding: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 6px;
  transition: grid-template-columns 240ms var(--ios);
}

.tile {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--paper-2);
  overflow: hidden;
  cursor: pointer;
}
/* Prendas recortadas: se ve la pieza entera, sin recorte ni zoom */
.tile:has(img) { padding: 7%; }
.tile img { width: 100%; height: 100%; object-fit: contain; }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Imagen de reserva (hasta que haya fotos) */
.ph {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: hsl(30 4% var(--l, 12%));
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/logo.png") center / 24% auto no-repeat;
  opacity: 0.16;
}

/* ==========================================================
   ANTES / DESPUÉS
   ========================================================== */
.compare { width: min(440px, 80%); margin: 0 auto; }

/* Texto al lado del antes/después: solo en ordenador */
.showcase__text { display: none; }
@media (min-width: 1025px) {
  .showcase__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--s6);
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
  }
  .showcase__grid .compare { width: 100%; max-width: 560px; justify-self: end; }
  .showcase__grid .compare__cap { display: none; }
  .showcase__text { display: block; }
  .showcase__title {
    margin-top: 10px;
    font-weight: 900;
    font-stretch: 125%;
    font-size: clamp(48px, 5vw, 84px);
    line-height: 0.9;
    letter-spacing: -0.035em;
    text-transform: uppercase;
  }
  .showcase__lead { margin: var(--s3) 0 var(--s4); max-width: 40ch; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
  .showcase__text .btn { min-height: 60px; padding: 0 36px; font-size: 18px; }

  /* Logo del inicio más grande */
  .hero__mark { grid-column: 1 / span 3; max-width: 250px; }
  .hero__copy, .hero__cta { grid-column: 4 / span 6; }
}

.compare__frame {
  position: relative;
  aspect-ratio: 1550 / 1840;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(236, 232, 225, 0.12);
  background: rgba(22, 22, 22, 0.55);
  user-select: none;
  -webkit-user-select: none;
}
.compare__frame:has(.compare__range:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; }
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5%;
  object-fit: contain;
  pointer-events: none;
}
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.compare__tag {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.compare__cap { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-2); }

/* ==========================================================
   FORMULARIO DE PRESUPUESTO
   ========================================================== */
.contact__quote { margin-bottom: var(--s3); }
/* En ordenador, el botón principal más grande para que no se lo coma el email */
@media (min-width: 1025px) {
  .contact__quote {
    min-height: clamp(76px, 6.2vw, 108px);
    padding: 0 clamp(48px, 4.4vw, 80px);
    font-size: clamp(22px, 2vw, 34px);
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: var(--s4);
  }
}
/* En móvil, de lado a lado y más alto: fácil de pulsar con el pulgar */
@media (max-width: 640px) {
  .contact__quote { width: 100%; min-height: 58px; font-size: 17px; }
}

.quote {
  width: min(580px, calc(100% - 32px));
  max-height: min(90vh, 900px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 90, 70, 0.18);
  border-radius: 20px;
  /* Mismo ambiente que la web: negro con resplandor rojo profundo */
  background:
    radial-gradient(ellipse 100% 55% at 50% -12%, rgba(178, 24, 18, 0.6), transparent 70%),
    radial-gradient(ellipse 70% 45% at 110% 108%, rgba(140, 16, 12, 0.4), transparent 70%),
    radial-gradient(ellipse 50% 40% at -12% 60%, rgba(110, 12, 10, 0.22), transparent 70%),
    #0b0a0a;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 70px -24px rgba(255, 40, 30, 0.45);
}
.quote[open] { animation: fadeUp 0.3s var(--ios); }
.quote::backdrop {
  background: radial-gradient(ellipse at 50% 40%, rgba(70, 8, 6, 0.55), rgba(0, 0, 0, 0.8) 70%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.quote__form { display: grid; gap: var(--s3); padding: var(--s3); }
.quote__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.quote__title { font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -0.02em; }
.quote__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(236, 232, 225, 0.12);
  cursor: pointer;
}
.quote__intro { margin-top: calc(var(--s2) * -1); font-size: 15px; color: var(--ink-2); }

.qf { margin: 0; padding: 0; border: 0; min-width: 0; }
.qf--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.qf__label { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 800; }
.qf__req { color: var(--ink-2); }
.qf input[type="text"], .qf input[type="email"], .qf textarea, .qf select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(236, 232, 225, 0.18);
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}
.qf textarea { resize: vertical; min-height: 110px; }
.qf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.qf select option { background: #121212; color: var(--ink); }
.qf ::placeholder { color: rgba(236, 232, 225, 0.35); }
.qf input:focus-visible, .qf textarea:focus-visible, .qf select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.qf [aria-invalid="true"] { border-color: #ff6b5e; }
.qf__err { margin-top: 6px; font-size: 13px; font-weight: 600; color: #ff8a7f; }
.qf__err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(236, 232, 225, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.4);
  font-size: 14px;
  font-weight: 700;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.quote__actions .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.quote__actions .btn:disabled { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.quote__alt { margin-top: calc(var(--s2) * -1); font-size: 14px; color: var(--ink-2); text-align: center; }
.quote__alt .textlink { padding: 4px 0; font-size: 14px; color: var(--ink); }
.quote__done {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(236, 232, 225, 0.08);
  font-size: 14px;
  font-weight: 600;
}
.quote__done:empty { display: none; }
.quote__privacy { margin-top: calc(var(--s2) * -1); font-size: 12px; line-height: 1.5; color: var(--ink-2); text-align: center; }
.quote__privacy a { color: var(--ink); text-underline-offset: 3px; }

@media (max-width: 640px) {
  .quote {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }
  .quote__form { padding: var(--s3) var(--gutter) max(var(--s3), env(safe-area-inset-bottom)); }
  .qf--row { grid-template-columns: 1fr; }
}

/* ==========================================================
   VISOR
   ========================================================== */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #000;
  color: var(--ink);
  transition: background-color 320ms var(--ios);
}
.viewer[hidden] { display: none; }
.viewer.is-entering { background: rgba(0, 0, 0, 0); }

.viewer__top, .viewer__bottom { transition: opacity 200ms var(--ease); }
.viewer.is-bare .viewer__top,
.viewer.is-bare .viewer__bottom,
.viewer.is-entering .viewer__top,
.viewer.is-entering .viewer__bottom { opacity: 0; pointer-events: none; }

.viewer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s2);
  padding: 8px var(--gutter);
}
.viewer__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 8px 0 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.viewer__title { text-align: center; line-height: 1.2; }
.viewer__title strong { display: block; font-size: 15px; font-weight: 800; }
.viewer__title span { font-size: 12px; color: var(--ink-2); }
.viewer__count { justify-self: end; font-size: 13px; color: var(--ink-2); font-feature-settings: "tnum" 1; }

.viewer__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-x;
}
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__track.is-locked { overflow-x: hidden; touch-action: none; }

.slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 4px;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.slide > img {
  width: auto;
  height: auto;
  max-width: calc(100cqw - 8px);
  max-height: calc(100cqh - 8px);
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 260ms var(--ios);
  user-select: none;
  -webkit-user-drag: none;
}
.slide.is-zoomed > img { cursor: grab; }
.slide.is-zoomed > img:active { cursor: grabbing; }
.slide { container-type: size; }
.slide > .ph {
  width: min(100cqw - 8px, (100cqh - 8px) * 0.75);
  height: auto;
  aspect-ratio: 3 / 4;
}

.viewer__bottom { display: grid; gap: 10px; padding: 8px 0 max(16px, env(safe-area-inset-bottom)); }

.viewer__strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 50%;
}
.viewer__strip::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 26px;
  height: 42px;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  overflow: hidden;
  opacity: 0.55;
  cursor: pointer;
  transition: flex-basis 220ms var(--ios), margin 220ms var(--ios), opacity 220ms;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { flex-basis: 40px; margin: 0 6px; opacity: 1; }

.viewer__actions { display: flex; justify-content: center; gap: var(--s1); }
.vbtn {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 232, 225, 0.1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.vbtn--icon { padding: 0; }
.vbtn[aria-expanded="true"], .vbtn[aria-pressed="true"] { background: var(--ink); color: #000; }
.vbtn[aria-pressed="true"] .zoom-plus { d: path("M6 8.5h5"); }
.vbtn:disabled { opacity: 0.35; cursor: default; }

/* Panel de información */
.viewer__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  max-height: 62vh;
  overflow-y: auto;
  padding: 12px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: #161616;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 320ms var(--ios);
}
.viewer__info.is-open { transform: none; }
.viewer__grab {
  display: block;
  width: 40px; height: 5px;
  margin: 0 auto var(--s3);
  border: 0; padding: 0;
  border-radius: 3px;
  background: rgba(236, 232, 225, 0.3);
  cursor: pointer;
}
.info-sheet__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.info-sheet__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s2);
  margin: var(--s3) 0;
  padding-top: var(--s1);
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.info-sheet__meta dt { color: var(--ink-2); }
.info-sheet__desc { max-width: 60ch; font-size: 17px; }

/* Animación de apertura/cierre desde la miniatura */
.ghost { position: fixed; z-index: 80; overflow: hidden; pointer-events: none; }
.ghost img { width: 100%; height: 100%; object-fit: contain; }
.ghost .ph { width: 100%; height: 100%; }

/* ---------- Info ---------- */
.info__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3) var(--s3); }
.info__lead {
  grid-column: 1 / span 7;
  font-size: clamp(26px, 2.8vw, 44px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.info__text { grid-column: 9 / span 4; font-size: 16px; color: var(--ink-2); }
.info__text p + p { margin-top: var(--s2); }

/* ---------- Contacto ---------- */
.contact__mail {
  display: inline-block;
  font-size: clamp(30px, 7vw, 124px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap; /* siempre en una sola línea */
  cursor: text; /* solo se muestra; se puede seleccionar y copiar, pero no se pulsa */
}
@media (max-width: 640px) {
  .contact__mail { font-size: 6.6vw; letter-spacing: -0.035em; }
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  margin-top: var(--s4);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.contact__links a { display: inline-block; padding: 6px 0; text-underline-offset: 4px; }

/* ---------- Pie ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s2) var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.foot a { text-decoration: none; }

/* ---------- Cómo trabajo ---------- */
.steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  counter-reset: none;
}
.steps li { padding-top: var(--s2); border-top: 2px solid var(--rule); }
.steps__num {
  display: block;
  font-size: clamp(40px, 4.4vw, 72px);
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink-2);
}
.steps h3 { margin: var(--s2) 0 6px; font-size: 20px; font-weight: 900; }
.steps p { max-width: 34ch; font-size: 15px; color: var(--ink-2); }

.contact__note { max-width: 46ch; margin-top: var(--s2); font-size: 15px; color: var(--ink-2); }

.info-sheet__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); margin-top: var(--s3); }

.contact__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s2);
  margin-top: var(--s3);
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- Precios ---------- */
.prices__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}
.price {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding-top: var(--s2);
  border-top: 2px solid var(--rule);
}
.price__name { font-size: 20px; font-weight: 900; }
.price__amount {
  font-size: clamp(44px, 4.6vw, 76px);
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum" 1;
}
/* "desde" en la misma línea que el precio, bien visible */
.price__amount span {
  display: inline-block;
  margin-right: 0.18em;
  font-size: 0.36em;
  font-weight: 800;
  font-variation-settings: "wdth" 100;
  letter-spacing: 0;
  color: var(--ink);
  vertical-align: baseline;
}
/* "/ prenda" detrás del precio de la colección */
.price__amount .price__per { margin: 0 0 0 0.12em; color: var(--ink-2); }
.price__desc { max-width: 30ch; font-size: 15px; color: var(--ink-2); flex: 1; }
.price .textlink { align-self: flex-start; }
/* Nota de precio para marcas, debajo de las tarifas */
.prices__brand {
  margin-top: var(--s3);
  padding-left: 14px;
  border-left: 3px solid #e0321f;
  max-width: 70ch;
  font-size: 15px;
  color: var(--ink-2);
}
.prices__brand b { color: var(--ink); font-weight: 900; }
.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}
.terms li { padding-top: var(--s2); border-top: 1px solid var(--rule); }
.terms h3 { margin-bottom: 6px; font-size: 17px; font-weight: 900; }
.terms p { max-width: 40ch; font-size: 15px; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .top__more { display: none; }
  .hero__copy, .hero__cta { grid-column: 3 / span 10; }
  .hero__facts { grid-column: 3 / span 10; grid-row: 3; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info__lead { grid-column: 1 / span 7; }
  .info__text { grid-column: 8 / span 5; }
  .prices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
}

@media (max-width: 640px) {
  .top__mark img { width: 44px; }
  .top__status { font-size: 12px; }
  .menu { left: var(--gutter); width: auto; }
  .hero__row { grid-template-columns: 1fr 3fr; }
  .hero__mark { grid-column: 1; grid-row: 1; }
  .hero__copy { grid-column: 2; }
  .hero__cta { grid-column: 1 / -1; grid-row: 2; }
  .hero__facts { grid-column: 1 / -1; grid-row: 3; }
  .info__lead, .info__text { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .prices__list { grid-template-columns: 1fr; gap: var(--s4); }
  .terms { grid-template-columns: 1fr; margin-top: var(--s3); }
  .work { padding-left: 0; padding-right: 0; }
  .grid { padding: 0 var(--s1); gap: 4px; }
  .singles { padding: 0 var(--s1); column-gap: 4px; }
  .singles .group__head { padding: 0 4px 8px; }

  .tile { border-radius: 10px; }
  .work .bar, .group__head, .cards, .years { padding-left: var(--gutter); padding-right: var(--gutter); }
  .work .bar { margin-left: var(--gutter); margin-right: var(--gutter); padding-left: 0; padding-right: 0; }

  .info-sheet__meta { grid-template-columns: 1fr 1fr; }
  .viewer__title strong { font-size: 14px; }
}

/* ==========================================================
   ANIMACIONES (sutiles, una sola vez)
   ========================================================== */

/* Portada: las letras suben una a una, luego entra lo demás */
.hero__word { overflow: hidden; }
.hero__word span { animation: rise 1s var(--ios) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
.hero__mark { animation: markIn 1.1s var(--ios) 450ms both; }
.hero__copy { animation: fadeUp 0.9s var(--ios) 550ms both; }
.hero__cta { animation: fadeUp 0.9s var(--ios) 650ms both; }
.hero__facts { animation: fadeUp 0.9s var(--ios) 750ms both; }

@keyframes rise { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes markIn { from { opacity: 0; transform: scale(0.9) rotate(-6deg); } }

/* Punto de "agenda abierta": late despacio */
.dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(236, 232, 225, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(236, 232, 225, 0); }
}

/* Al hacer scroll: el contenido sube suavemente */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ios), transform 0.8s var(--ios);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Al bajar: las letras de HECO se hunden dentro de su caja */
.hero__word span { translate: 0 var(--hy, 0px); }

/* Barra de progreso bajo la cabecera */
.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Miniaturas: entran con un leve zoom */
.js .tile.reveal { transform: translateY(24px) scale(0.95); }
.js .tile.reveal.is-in { transform: none; }

/* Al pasar el ratón: la prenda se adelanta con un brillo rojo suave por debajo */
.tile { position: relative; }
.tile,
.js .tile.reveal {
  transition:
    opacity 0.8s var(--ios),
    transform 0.8s var(--ios),
    translate 0.35s var(--ios),
    scale 0.35s var(--ios),
    box-shadow 0.35s var(--ios),
    background-color 0.35s var(--ios);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s, 0s;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover,
  .tile:focus-visible {
    z-index: 6; /* por encima de las cabeceras fijas de los proyectos, para que el brillo no se corte */
    translate: 0 -8px;
    scale: 1.04;
    /* Solo un resplandor rojo suave saliendo por debajo del cuadrado */
    box-shadow: 0 24px 36px -20px rgba(255, 40, 30, 0.45);
  }
}

/* Correo: se descubre de izquierda a derecha */
.js .contact__mail.reveal { opacity: 1; transform: none; }
.mail__inner { display: inline-block; max-width: 100%; }
/* El recorte se extiende por arriba y por abajo para no comerse la "g" ni la "@" */
.js .contact__mail.reveal .mail__inner {
  clip-path: inset(-0.3em 100% -0.3em -0.1em);
  transition: clip-path 1.3s var(--ios);
  transition-delay: var(--d, 0ms);
}
.js .contact__mail.reveal.is-in .mail__inner { clip-path: inset(-0.3em -0.1em -0.3em -0.1em); }

/* Sobre mí: palabras apagadas que se encienden al bajar */
.info__lead .w { color: rgba(236, 232, 225, 0.22); transition: color 0.35s var(--ease); }
.info__lead .w.is-lit { color: var(--ink); }

/* Móvil: botones y enlaces pequeños con zona táctil de al menos 44 px */
@media (max-width: 640px) {
  .tool { min-width: 44px; height: 44px; }
  .contact__links a, .foot a { padding: 12px 0; }
}

/* ---------- Móvil: detalles ---------- */
/* Sin el recuadro gris al tocar; en su lugar, un pequeño "hundido" como en iOS */
a, button, .tile, label { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .tile, .campaign__media, .btn, .menu__chip, .menu__nav a, .chip span, .tool, .lang {
    transition: transform 0.18s var(--ios), background-color var(--fast), box-shadow 0.3s var(--ios);
  }
  .tile:active, .campaign__media:active { transform: scale(0.97); }
  .btn:active, .menu__chip:active, .tool:active, .lang:active, .chip span:active { transform: scale(0.95); }
  .menu__nav a:active { background: rgba(236, 232, 225, 0.08); }
}

@media (max-width: 640px) {
  /* Cabeceras de la galería en una sola línea */
  .group__title { font-size: 16px; }
  .group__meta { font-size: 12px; }
  .singles .group__title { font-size: 14px; }

  /* Campaña: fotos grandes que se deslizan con el dedo */
  .campaign > .campaign__pics {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    overflow-y: hidden; /* solo se arrastra en horizontal */
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .campaign__pics::-webkit-scrollbar { display: none; }
  /* Un poco más bajas para que asome la segunda foto y se vea que se puede pasar */
  .campaign__pics > .campaign__media { flex: none; height: 54vw; width: auto; scroll-snap-align: start; }
  .campaign__pics > .campaign__media--wide { aspect-ratio: 1264 / 848; }
  .campaign__pics > .campaign__media--tall { aspect-ratio: 3 / 4; }

  /* Antes / después un poco más ancho para arrastrar mejor con el dedo */
  .compare { width: 100%; }

  /* Pie: deja sitio a la barra de inicio del iPhone */
  .foot { padding-bottom: max(var(--s2), env(safe-area-inset-bottom)); }
}

/* ---------- Protección de los diseños ---------- */
.tile img, .slide img, .thumb img, .campaign__media img, .lightbox img, .compare img, .ghost img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iPhone: sin menú "Guardar en Fotos" al mantener pulsado */
}
/* Al pulsar un atajo de captura, salir de la ventana o imprimir: difuminados */
html.is-guarded :is(.tile img, .slide img, .thumb img, .campaign__media img, .lightbox img, .compare img, .ghost img) {
  filter: blur(26px) brightness(0.55) !important;
  transition: none !important;
}
@media print {
  :is(.tile img, .slide img, .thumb img, .campaign__media img, .lightbox img, .compare img, .ghost img) { visibility: hidden !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .contact__mail.reveal .mail__inner { clip-path: none; }
}

/* ---------- Campaña con IA encima de los precios (fuera de la galería) ---------- */
.campaign { margin: 0 0 var(--s5); }
/* Columnas proporcionales a cada foto para que las dos tengan la misma altura */
.campaign__pics {
  display: grid;
  grid-template-columns: minmax(0, 1.49fr) minmax(0, 0.75fr);
  gap: 6px;
}
.campaign__media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  transition: transform 320ms var(--ios), box-shadow 320ms var(--ios);
}
.campaign__media--wide { aspect-ratio: 1264 / 848; }
.campaign__media--tall { aspect-ratio: 3 / 4; }
.campaign__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.campaign__media:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) {
  .campaign__media:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(210, 30, 20, 0.55); }
}
.campaign__cap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "kicker text" "title text";
  align-items: end;
  gap: 6px clamp(20px, 4vw, 56px);
  margin-top: var(--s3);
}
.campaign__kicker {
  grid-area: kicker;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.campaign__title {
  grid-area: title;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.campaign__text { grid-area: text; justify-self: end; max-width: 40ch; color: var(--ink-2); }
@media (max-width: 720px) {
  .campaign__media { border-radius: 10px; }
  .campaign__cap { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "text"; margin-top: var(--s2); }
  .campaign__text { justify-self: start; margin-top: 6px; }
}

/* Foto de campaña en grande */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6, 6, 6, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 96px);
  width: auto;
  height: auto;
  border-radius: 12px;
}
.lightbox__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  cursor: pointer;
}
.lightbox[open] img { animation: lb-in 320ms var(--ios); }
.lightbox[open]::backdrop { animation: lb-fade 220ms ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.94); } }
@keyframes lb-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .campaign__media { transition: none; }
  .lightbox[open] img, .lightbox[open]::backdrop { animation: none; }
}

/* ---------- Trabajo para marcas: del diseño a la prenda real (fuera de la galería) ---------- */
.brandwork { padding-top: var(--s5); padding-bottom: var(--s5); }
/* Izquierda: el dibujo (más pequeño) y el texto. Derecha: la foto real, en grande */
.brandwork__fig {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "design photo" "cap photo";
  grid-template-rows: auto 1fr;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: var(--s4);
  margin: 0;
}
.brandwork__pics { display: contents; }
.brandwork__item:first-child { grid-area: design; }
.brandwork__item:last-child { grid-area: photo; }
/* El dibujo va con su fondo blanco original */
.brandwork__media--design { aspect-ratio: 1680 / 982; background: #fff; }
.brandwork__media--photo { aspect-ratio: 3 / 4; }
.brandwork__label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.brandwork__cap { grid-area: cap; align-self: end; }
.brandwork__title {
  margin-top: 8px;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.brandwork__text { margin-top: var(--s2); max-width: 44ch; color: var(--ink-2); }
.brandwork__link {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 0;
  font-weight: 700;
  text-underline-offset: 4px;
}
/* Flechita dibujada (no un carácter, que en iPhone sale como emoji) */
.brandwork__link::after,
.ext-arrow::after {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.35em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9L9 3M4 3h5v5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9L9 3M4 3h5v5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 720px) {
  /* En móvil, primero el título "La Dose" para que no parezca parte de la galería */
  .brandwork__fig { grid-template-columns: 1fr; grid-template-areas: "cap" "design" "photo"; grid-template-rows: auto; row-gap: var(--s3); }
}

/* ---------- Móvil: precios, condiciones y pasos en fila (se pasan con el dedo y solos) ---------- */
.swipe-dots { display: none; }
@media (max-width: 640px) {
  .swipe {
    display: flex !important;
    gap: 12px !important;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 6px;
    overflow-x: auto;
    overflow-y: hidden; /* solo se arrastra en horizontal */
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > li {
    flex: 0 0 82%;
    scroll-snap-align: start;
    padding: 18px;
    border: 1px solid var(--rule);
    border-radius: 16px;
    background: rgba(236, 232, 225, 0.04);
  }
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .swipe-dots span {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(236, 232, 225, 0.25);
    transition: width 0.3s var(--ios), background-color 0.3s;
  }
  .swipe-dots span.is-on { width: 18px; background: var(--ink); }
}
