/* ==========================================================================
   Don Pagotto — estilos
   1. Fuentes y tokens   2. Base   3. Piezas (botones, enlaces, fotos, hora)
   4. Persiana y navegación   5. Secciones, en orden de página   6. Movimiento reducido
   ========================================================================== */

/* 1. Fuentes y tokens ------------------------------------------------------ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta: sale de la vitrina */
  --madrugada: #24120c;   /* el local antes de que amanezca */
  --chocolate: #4a2617;   /* el marrón de la marca */
  --tinta: #2b1710;
  --harina: #fbf4e6;
  --manteca: #f4df9f;
  --alba: #f5cfab;
  --rosa: #efc6b7;        /* caja de pastelería */
  --kraft: #d9b88c;       /* bolsa de papel */
  --dorado: #dd9a2e;      /* pintura de huevo */
  --membrillo: #a3271f;
  --papel: #fffdf8;

  --f-titulo: "Fraunces", "Cooper Black", Georgia, serif;
  --f-texto: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-chico: 0.875rem;
  --t-texto: 1.0625rem;
  --t-medio: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --t-titulo: clamp(2.7rem, 1.1rem + 5.6vw, 6.4rem);

  --margen: clamp(1.25rem, 4.2vw, 4.5rem);
  --canal: clamp(0.75rem, 1.6vw, 1.5rem);
  --aire: clamp(5.5rem, 12vw, 11.5rem);
  --radio: 1.35rem;

  --suave: cubic-bezier(0.22, 0.8, 0.2, 1);
  --rebote: cubic-bezier(0.3, 1.5, 0.5, 1);

  --persiana: repeating-linear-gradient(180deg, #f1e3c8 0 21px, #dfcba8 21px 24px, #f8edd8 24px 26px);
}

/* 2. Base ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--madrugada);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: var(--t-texto);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Grano de papel, muy leve, sobre todo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: url("../img/grano.png") 0 0 / 180px 180px;
  opacity: 0.55;
}

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

:focus-visible {
  outline: 3px solid var(--manteca);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--madrugada);
  border-radius: 0.4rem;
}

::selection { background: var(--chocolate); color: var(--manteca); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html:not(.js) .solo-js { display: none; }

.saltar {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.8rem 1.2rem;
  background: var(--manteca);
  color: var(--tinta);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-300%);
}
.saltar:focus { transform: none; }

/* 3. Piezas ---------------------------------------------------------------- */

.titulo,
.como-h2 {
  font-family: var(--f-titulo);
  font-weight: 760;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--t-titulo);
  line-height: 0.93;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.subtitulo {
  font-family: var(--f-titulo);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.subtitulo--grande { font-size: clamp(2.2rem, 1.3rem + 3vw, 4rem); line-height: 0.96; }

/* Palabras que suben al aparecer (las arma main.js) */
.pal { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.pal > span { display: inline-block; will-change: transform; }

/* La hora del día: un sol chiquito que recorre su arco */
.hora {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: var(--t-medio);
  line-height: 1;
  color: var(--chocolate);
}
.hora__sol { width: 2.75rem; height: 1.625rem; flex: none; overflow: visible; }
.hora__sol path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1 4; opacity: 0.7; }
.hora__sol g { transform-origin: 22px 23px; }
.hora__sol circle { fill: var(--membrillo); }
.hora--claro { color: var(--manteca); }
.hora--claro .hora__sol circle { fill: var(--dorado); }

/* Botones: el relleno sube como una masa */
.btn {
  --btn-fondo: var(--chocolate);
  --btn-texto: var(--harina);
  --btn-sube: var(--membrillo);
  --btn-texto-sube: var(--harina);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 3.4rem;
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-fondo);
  color: var(--btn-texto);
  font-family: var(--f-texto);
  font-weight: 620;
  font-stretch: 96%;
  font-size: 1.02rem;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.25s var(--suave), color 0.35s var(--suave);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--btn-sube);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  transform: translateY(102%);
  transition: transform 0.55s var(--suave), border-radius 0.55s var(--suave);
}
.btn:active { transform: scale(0.965); }
@media (hover: hover) {
  .btn:hover { color: var(--btn-texto-sube); }
  .btn:hover::before { transform: translateY(0); border-radius: 0; }
}
.btn__icono { width: 1.2em; height: 1.2em; flex: none; }
.btn--manteca { --btn-fondo: var(--manteca); --btn-texto: var(--tinta); --btn-sube: var(--harina); --btn-texto-sube: var(--tinta); }
.btn--chico { min-height: 2.75rem; padding-inline: 1.15rem; font-size: 0.95rem; }
.btn--grande { min-height: 4.2rem; padding-inline: 2.2rem; font-size: 1.15rem; }
.btn--ancho { width: 100%; }

/* Enlaces de texto: el subrayado se vuelve a trazar */
.enlace {
  display: inline-block;
  padding-block: 0.35rem;
  font-weight: 600;
  font-stretch: 96%;
  color: var(--chocolate);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size 0.45s var(--suave);
}
.enlace--claro { color: var(--manteca); }
@media (hover: hover) {
  .enlace:hover { background-position: 100% 100%; background-size: 0% 2px; animation: retrazo 0.7s var(--suave) 0.3s forwards; }
}
@keyframes retrazo {
  from { background-position: 0 100%; background-size: 0% 2px; }
  to { background-position: 0 100%; background-size: 100% 2px; }
}

/* Estado en vivo (abierto / cerrado) */
.estado {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--chocolate);
}
.estado--claro { color: var(--harina); }
.estado__punto {
  position: relative;
  top: -0.02em;
  flex: none;
  width: 0.62rem; height: 0.62rem;
  border-radius: 50%;
  border: 2px solid currentColor;
}
[data-activo="si"] > .estado__punto { background: var(--dorado); border-color: var(--dorado); }
[data-activo="si"] > .estado__punto::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--dorado);
  animation: latido 2.4s ease-out infinite;
}
@keyframes latido { to { transform: scale(2.8); opacity: 0; } }

/* Fotos: bandejas de esquinas redondeadas */
.foto { position: relative; }
.foto img,
.foto__marco { border-radius: var(--radio); }
.foto img { width: 100%; }
.foto__marco { position: relative; display: block; overflow: hidden; }
.foto__marco img { border-radius: 0; }
.foto__marco::after,
.hero__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--harina);
  opacity: var(--velo, 0);
  pointer-events: none;
}
.foto figcaption {
  margin-top: 0.7rem;
  font-size: var(--t-chico);
  line-height: 1.35;
}

/* Trazos a mano */
.trazo { overflow: visible; }
.trazo path { fill: none; stroke: var(--membrillo); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* 4. Persiana de apertura y navegación ------------------------------------- */

.persiana { display: none; }
.apertura .persiana {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--persiana);
  color: var(--chocolate);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  /* Si el script no llega a correr, se levanta sola */
  animation: persiana-sola 0.9s var(--suave) 4s forwards;
}
@keyframes persiana-sola { to { transform: translateY(-105%); } }
.persiana__letrero { display: grid; justify-items: center; gap: 0.5rem; text-align: center; padding: 1rem; }
.persiana__letrero > * { animation: letrero-entra 0.65s var(--suave) both; }
.persiana__letrero > :nth-child(2) { animation-delay: 0.09s; }
.persiana__letrero > :nth-child(3) { animation-delay: 0.18s; }
@keyframes letrero-entra { from { opacity: 0; transform: translateY(26px); } }
/* Logo: una máscara que toma el color del texto (currentColor),
   así sirve igual sobre fondo claro y oscuro. */
.logo {
  display: block;
  aspect-ratio: 1600 / 328;
  background-color: currentColor;
  -webkit-mask: url("../img/logo-mascara.webp") center / contain no-repeat;
  mask: url("../img/logo-mascara.webp") center / contain no-repeat;
}
.persiana__marca { width: min(82vw, 36rem); margin-bottom: 0.6rem; }
.persiana__bajada {
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
}
.persiana__zocalo,
.pie__zocalo {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5rem;
  background: var(--chocolate);
}
.persiana__zocalo::after,
.pie__zocalo::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4.5rem; height: 0.4rem;
  border-radius: 999px;
  background: var(--kraft);
  transform: translate(-50%, -50%);
}

.nav {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  width: min(100% - 1.5rem, 66rem);
  min-height: 3.6rem;
  padding: 0.42rem 0.42rem 0.42rem 1.6rem;
  border-radius: 999px;
  background: var(--chocolate);
  color: var(--harina);
  box-shadow: 0 0 0 1px rgba(244, 223, 159, 0.16), 0 14px 30px -18px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
  transition: transform 0.6s var(--suave);
}
.nav.is-oculta { transform: translate(-50%, -160%); }
.nav__marca {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  font-family: var(--f-titulo);
  font-weight: 760;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--manteca);
  text-decoration: none;
  white-space: nowrap;
}
/* En el header va la versión fina del logo (sin espiga). La cola de la "g"
   cuelga por debajo de las letras: se baja el logo para que se centren las
   letras, no la imagen entera. */
.nav__logo {
  width: 8.6rem;
  aspect-ratio: 1600 / 321;
  -webkit-mask-image: url("../img/logo-nav-mascara.webp");
  mask-image: url("../img/logo-nav-mascara.webp");
  transform: translateY(17%);
}
.nav__links { display: none; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__links a {
  position: relative;
  padding: 0.6rem 0;
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.3rem;
  height: 2px;
  background: var(--manteca);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--suave);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__estado {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--manteca);
  white-space: nowrap;
}
.nav__estado::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.nav__estado[data-activo="si"]::before { background: var(--dorado); border-color: var(--dorado); }
.nav__menu {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav__menu-lineas,
.nav__menu-lineas::before {
  display: block;
  width: 1.35rem; height: 2px;
  border-radius: 2px;
  background: var(--manteca);
}
.nav__menu-lineas { transform: translateY(-4px); }
.nav__menu-lineas::before { content: ""; transform: translateY(8px); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__menu { display: none; }
}
@media (min-width: 1120px) {
  .nav__estado:not([hidden]) { display: inline-flex; }
}

.menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0;
  padding: 1.25rem var(--margen) 2rem;
  border: 0;
  background: var(--chocolate);
  color: var(--manteca);
  opacity: 0;
  transform: translateY(-4%);
  transition: opacity 0.4s var(--suave), transform 0.5s var(--suave), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}
.menu[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style { .menu[open] { opacity: 0; transform: translateY(-4%); } }
.menu::backdrop { background: var(--madrugada); }
.menu__cerrar {
  align-self: flex-end;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}
.menu__links { display: grid; gap: 0.2rem; margin-block: auto; }
.menu__links a {
  padding: 0.35rem 0;
  font-family: var(--f-titulo);
  font-weight: 760;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(2.4rem, 12vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu__pie { font-size: 0.98rem; color: var(--harina); }

/* 5. Secciones ------------------------------------------------------------- */

/* Inicio: la foto ocupa toda la pantalla y el texto va encima */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 7rem var(--margen) clamp(2.5rem, 7vh, 4.5rem);
  background: var(--madrugada);
  color: var(--harina);
  overflow: clip;
}
.hero__texto { position: relative; z-index: 2; }
.hero__titulo {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-variation-settings: "wght" 800, "SOFT" 100, "WONK" 0;
  font-size: clamp(3.4rem, 18.5vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--manteca);
}
.hero__linea { display: block; white-space: nowrap; }
.hero__letra { display: inline-block; will-change: transform; }
.hero__bajada {
  max-width: 31ch;
  margin-top: 1.5rem;
  font-size: var(--t-medio);
  line-height: 1.38;
}
.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.75rem;
  margin-top: 1.75rem;
}
.hero .estado { margin-top: 1.6rem; }
.hero__foto {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
}
/* Más alta que el hero para que el parallax no deje un hueco arriba */
.hero__foto img {
  position: absolute;
  left: 0; top: -10%;
  width: 100%; height: 110%;
  object-fit: cover;
  object-position: 50% 55%;
}
/* Versión ancha: que se vea el fondo oscuro de la izquierda detrás del texto */
@media (min-aspect-ratio: 1/1) {
  .hero__foto img { object-position: 35% 50%; }
}
/* Sombra para que el texto se lea; abajo se funde con la sección siguiente */
.hero__foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--madrugada) 0%, rgba(36, 18, 12, 0.86) 30%, rgba(36, 18, 12, 0.5) 52%, rgba(36, 18, 12, 0.08) 78%, rgba(36, 18, 12, 0.45) 100%);
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero { justify-content: center; padding-top: 6.5rem; }
  .hero__texto { max-width: min(64rem, 72%); }
  .hero__titulo { font-size: min(12vw, 25svh, 13.5rem); }
  .hero__titulo.es-largo { font-size: min(12vw, 18.5svh, 13.5rem); }
  .hero__bajada { margin-top: clamp(1.25rem, 3.5vh, 2.25rem); }
  .hero__foto::before {
    background:
      linear-gradient(to top, var(--madrugada) 0%, rgba(36, 18, 12, 0) 22%),
      linear-gradient(90deg, rgba(36, 18, 12, 0.92) 0%, rgba(36, 18, 12, 0.72) 38%, rgba(36, 18, 12, 0.12) 72%, rgba(36, 18, 12, 0) 100%);
  }
}

/* Antes de las 6:30 */
.horno { position: relative; background: var(--madrugada); color: var(--harina); }

/* Antes de las 6:30: corte editorial "Desde 1978"
   Una sección que se lee de corrido, sin escena fija: título grande, una cinta
   con lo que sale del horno y tres datos. Detrás, el año que va pasando. */
.oficio {
  position: relative;
  overflow: clip;
  padding: var(--aire) 0 calc(var(--aire) + clamp(3.5rem, 11vw, 10rem));
}
.oficio__fondo {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  padding-top: calc(var(--aire) * 0.35);
  pointer-events: none;
}
.oficio__fondo span {
  font-family: var(--f-titulo);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: 46vw;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 223, 159, 0.17);
}
.oficio__in { position: relative; max-width: 88rem; margin-inline: auto; padding-inline: var(--margen); }
.oficio__titulo { max-width: 11ch; font-size: clamp(3rem, 1.1rem + 7.4vw, 9rem); }
.oficio__bajada { max-width: 32ch; margin-top: 2rem; font-size: var(--t-medio); line-height: 1.42; }
.oficio__cinta {
  position: relative;
  width: 112%;
  margin: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 9vw, 7rem) -6%;
  padding-block: 1.1rem;
  overflow: hidden;
  background: var(--manteca);
  color: var(--chocolate);
  rotate: -2.2deg;
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.7);
}
.oficio__cinta-in {
  display: flex;
  width: max-content;
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 640;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.9rem);
  line-height: 1.1;
  white-space: nowrap;
}
.oficio__cinta-in span::after { content: "✳"; margin-inline: 0.7em; font-style: normal; font-size: 0.6em; vertical-align: 0.25em; color: var(--membrillo); }
.oficio__datos { position: relative; display: grid; gap: 2.75rem; max-width: 88rem; margin-inline: auto; padding-inline: var(--margen); }
.oficio__dato { padding-top: 1.2rem; border-top: 1px solid rgba(244, 223, 159, 0.32); }
.oficio__dato dt { font-size: var(--t-chico); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--manteca); opacity: 0.8; }
.oficio__dato dd { display: grid; gap: 0.7rem; margin: 0.9rem 0 0; }
.oficio__num {
  font-family: var(--f-titulo);
  font-weight: 760;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(3.2rem, 2rem + 4.2vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
  color: var(--manteca);
}
.oficio__texto { max-width: 26ch; line-height: 1.45; }

@media (min-width: 900px) {
  .oficio__in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--canal); align-items: end; }
  .oficio__in .hora { grid-column: 1 / -1; justify-self: start; }
  .oficio__titulo { grid-column: 1 / span 8; }
  .oficio__bajada { grid-column: 9 / -1; margin: 0 0 0.8rem; }
  .oficio__datos { grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.5rem, 3vw, 3.5rem); }
  .oficio__fondo span { font-size: 36vw; }
}

/* Abrimos: amanece. La sección sube como un sol sobre la escena del horno. */
.abrimos {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--alba), var(--manteca) 85%);
  padding: calc(var(--aire) * 0.55) var(--margen) var(--aire);
}
.abrimos::before,
.cierre::before {
  content: "";
  position: absolute;
  left: -6vw; right: -6vw; bottom: calc(100% - 1px);
  height: clamp(3.5rem, 11vw, 10rem);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--alba);
}
.abrimos__in { max-width: 88rem; margin-inline: auto; }
.manifiesto {
  max-width: 21em;
  font-family: var(--f-titulo);
  font-weight: 620;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.95rem, 0.9rem + 4.1vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
/* Las fotos entre palabras: la foto entera está detrás y la píldora es una
   ventanita recortada. Al pasar el mouse la ventana se abre y la foto se ve
   completa, por encima del texto, sin mover las palabras. */
.manifiesto__foto {
  --pw: 1.75em;  /* píldora */
  --ph: 0.82em;
  --fw: 4.4em;   /* foto abierta */
  --fh: 3.1em;
  position: relative;
  display: inline-block;
  width: var(--pw); height: var(--ph);
  margin-inline: 0.06em;
  vertical-align: -0.07em;
  transition: filter 0.5s var(--suave);
}
/* --ox y --oy (0 a 1) eligen qué parte de la foto se ve por la ventanita */
.manifiesto__foto img {
  --sx: calc(var(--fw) - var(--pw));
  --sy: calc(var(--fh) - var(--ph));
  position: absolute;
  left: calc(var(--sx) * var(--ox, 0.5) * -1);
  top: calc(var(--sy) * var(--oy, 0.5) * -1);
  width: var(--fw); max-width: none; height: var(--fh);
  object-fit: cover;
  clip-path: inset(
    calc(var(--sy) * var(--oy, 0.5)) calc(var(--sx) * (1 - var(--ox, 0.5)))
    calc(var(--sy) * (1 - var(--oy, 0.5))) calc(var(--sx) * var(--ox, 0.5))
    round calc(var(--ph) / 2));
  transition: clip-path 0.6s var(--suave), rotate 0.6s var(--suave);
}
.manifiesto .pal { overflow: visible; padding: 0; margin: 0; }
@media (min-width: 900px) {
  .manifiesto__foto { --pw: 2.1em; --ph: 0.9em; --fw: 4.6em; --fh: 3.2em; vertical-align: -0.1em; }
}
@media (hover: hover) and (pointer: fine) {
  .manifiesto__foto:hover { z-index: 5; filter: drop-shadow(0 18px 28px rgba(43, 23, 16, 0.35)); }
  .manifiesto__foto:hover img { clip-path: inset(0 round 0.28em); rotate: -2deg; }
}

/* Facturas */
.facturas { background: var(--manteca); padding: 0 var(--margen) calc(var(--aire) + 2.5rem); }
.facturas__in { display: grid; gap: 2.5rem; max-width: 88rem; margin-inline: auto; }
.facturas__foto-a { width: 88%; rotate: 1.5deg; }
.facturas__cita { position: relative; }
.facturas__cita blockquote p {
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 330;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.7rem, 1rem + 2.7vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.facturas__cita strong { font-style: normal; font-weight: 800; font-variation-settings: "SOFT" 100, "WONK" 0; }
.facturas__elegir { margin-top: 1.6rem; }
.facturas__pregunta {
  margin-bottom: 0.75rem;
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 450;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: var(--t-medio);
  line-height: 1.1;
}
.facturas__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.facturas__firma { margin-top: 1.25rem; font-size: 0.98rem; }
.facturas__firma a { text-underline-offset: 0.18em; }
/* En el teléfono la foto queda arriba: la flecha apunta hacia ella */
.trazo--flecha { display: block; width: 5.5rem; height: 3.2rem; margin: -1rem 0 1rem 34%; rotate: 190deg; }
@media (min-width: 900px) {
  .facturas__in { grid-template-columns: repeat(12, 1fr); column-gap: var(--canal); row-gap: 0; }
  .facturas__cabeza { grid-column: 1 / span 9; grid-row: 1; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
  .facturas__foto-a { grid-column: 1 / span 6; grid-row: 2; width: 100%; }
  .facturas__cita { grid-column: 8 / -1; grid-row: 2; align-self: center; }
  .trazo--flecha { position: absolute; right: calc(100% + 0.5rem); top: 3.2rem; width: 6.5rem; height: 3.8rem; margin: 0; rotate: none; }
}

/* Mediodía: salado o dulce */
.mediodia {
  position: relative;
  z-index: 1;
  margin-top: -2.5rem;
  border-radius: 2.5rem 2.5rem 0 0;
  background: var(--harina);
  padding: calc(var(--aire) * 0.8) var(--margen) var(--aire);
  transition: background-color 0.8s var(--suave);
}
.mediodia[data-sod="dulce"] { background-color: var(--rosa); }
.mediodia__in { max-width: 88rem; margin-inline: auto; }
.sod {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1em 0.3em;
  font-family: var(--f-titulo);
  font-weight: 760;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: var(--t-titulo);
  line-height: 0.95;
  letter-spacing: -0.028em;
}
.sod__opcion { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sod__opcion span { display: inline-block; opacity: 0.45; transition: opacity 0.5s var(--suave); }
.sod__opcion input:checked + span { opacity: 1; }
.sod__opcion input:focus-visible + span { outline: 3px solid var(--chocolate); outline-offset: 6px; border-radius: 0.5rem; }
@media (hover: hover) { .sod__opcion:hover span { opacity: 0.7; } .sod__opcion:hover input:checked + span { opacity: 1; } }
.sod__pista {
  position: relative;
  flex: none;
  width: 1.9em; height: 1em;
  border-radius: 999px;
  background: var(--chocolate);
  cursor: pointer;
}
.sod__perilla {
  position: absolute;
  top: 0.11em; left: 0.11em;
  width: 0.78em; height: 0.78em;
  border-radius: 50%;
  background: var(--manteca);
  transition: transform 0.6s var(--rebote), background-color 0.6s;
}
[data-sod="dulce"] .sod__perilla { transform: translateX(0.9em); background: var(--rosa); }
.sod__paneles { margin-top: clamp(2.5rem, 6vw, 5rem); }
.sod__panel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem var(--canal); }
.sod__panel[hidden] { display: none; }
.sod__foto--1 { grid-column: 1 / span 4; }
.sod__foto--1 img { aspect-ratio: 4 / 4.6; object-fit: cover; }
.sod__foto--2 { grid-column: 4 / -1; margin-top: -5.5rem; rotate: 3deg; }
.sod__foto--2 img { aspect-ratio: 1; object-fit: cover; }
.sod__texto { grid-column: 1 / -1; display: grid; gap: 1.25rem; justify-items: start; max-width: 32rem; }
.sod__chiste p {
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: var(--t-medio);
  line-height: 1.25;
}
.sod__chiste footer { margin-top: 0.4rem; font-size: var(--t-chico); }

@media (min-width: 900px) {
  .sod__panel { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .sod__foto--1 { grid-column: 1 / span 4; max-width: 23rem; }
  .sod__foto--2 { grid-column: 5 / span 3; max-width: 17.5rem; margin-top: 9rem; margin-left: -3rem; }
  .sod__texto { grid-column: 9 / -1; padding-top: 1rem; }
}

/* Pastelería: borde de blonda */
.pasteleria { position: relative; z-index: 2; background: var(--rosa); padding: var(--aire) var(--margen); }
.pasteleria::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: calc(100% - 1px);
  height: 22px;
  background: radial-gradient(circle at 50% 100%, var(--rosa) 0 21px, transparent 22px) 50% 0 / 44px 22px repeat-x;
}
.pasteleria__in { display: grid; gap: 3rem; max-width: 88rem; margin-inline: auto; }
.plato {
  width: min(84vw, 30rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  border: clamp(0.5rem, 1vw, 0.85rem) solid #d8ae52;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 40px 60px -40px rgba(74, 38, 23, 0.55);
}
.plato img { width: 100%; height: 100%; object-fit: cover; }
.pasteleria__bajada { max-width: 30rem; margin-top: 1.5rem; font-size: var(--t-medio); line-height: 1.4; }
.postres { margin-top: 2.25rem; border-top: 2px solid var(--tinta); }
.postres li { border-bottom: 2px solid var(--tinta); }
.postres a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5em 0 0.42em;
  font-family: var(--f-titulo);
  font-weight: 540;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: font-weight 0.5s var(--suave), padding 0.5s var(--suave), color 0.3s;
}
.postres__accion {
  font-family: var(--f-texto);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
@media (hover: hover) {
  .postres__accion { opacity: 0; transform: translateX(-0.6rem); transition: opacity 0.35s, transform 0.5s var(--suave); }
  .postres a:hover,
  .postres a:focus-visible { font-weight: 840; padding-left: 0.35em; color: var(--membrillo); }
  .postres a:hover .postres__accion,
  .postres a:focus-visible .postres__accion { opacity: 1; transform: none; }
}
.pasteleria__detalle { display: grid; gap: 2.5rem; }
.pasteleria__brownie { width: 74%; rotate: -2.5deg; }
.pasteleria__tiramisu { width: 82%; margin-left: auto; rotate: 1.5deg; }
.evento { display: grid; gap: 2rem; align-items: center; }
.evento__foto { border-radius: var(--radio); overflow: hidden; }
.evento__foto img { width: 100%; }
.evento__texto { display: grid; gap: 1.1rem; justify-items: start; max-width: 30rem; }

@media (min-width: 900px) {
  .pasteleria__in { grid-template-columns: repeat(12, 1fr); column-gap: var(--canal); row-gap: 0; }
  .pasteleria__plato-col { grid-column: 1 / span 6; grid-row: 1; }
  .plato { position: sticky; top: 13vh; width: min(100%, 74svh); margin-left: 0; }
  .pasteleria__texto { grid-column: 8 / -1; grid-row: 1; }
  .pasteleria__detalle { grid-column: 1 / -1; grid-template-columns: repeat(12, 1fr); column-gap: var(--canal); margin-top: var(--aire); align-items: start; }
  .pasteleria__brownie { grid-column: 2 / span 5; width: 100%; }
  .pasteleria__tiramisu { grid-column: 8 / span 4; width: 100%; margin-top: 11rem; }
  .evento { grid-column: 1 / -1; grid-template-columns: repeat(12, 1fr); column-gap: var(--canal); margin-top: var(--aire); }
  .evento__foto { grid-column: 1 / span 7; }
  .evento__texto { grid-column: 9 / -1; }
}

/* Pedidos: papel de bolsa, borde serrucho */
.pedidos { position: relative; z-index: 2; background: var(--kraft); padding: var(--aire) var(--margen) calc(var(--aire) + 6vw); }
.pedidos::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: calc(100% - 1px);
  height: 12px;
  background: conic-gradient(from -45deg at 50% 100%, var(--kraft) 90deg, transparent 0) 50% 0 / 24px 12px repeat-x;
}
.pedidos__in { display: grid; gap: 3rem; max-width: 88rem; margin-inline: auto; }
.ticket-wrap { filter: drop-shadow(0 28px 30px rgba(74, 38, 23, 0.28)); }
.ticket {
  position: relative;
  display: grid;
  gap: 1.4rem;
  margin-block: 9px;
  padding: 2rem clamp(1.15rem, 3vw, 2.25rem) 2.1rem;
  background: var(--papel);
}
/* Bordes de serrucho, arriba y abajo */
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 9px;
}
.ticket::before { bottom: calc(100% - 0.5px); background: conic-gradient(from -45deg at 50% 100%, var(--papel) 90deg, transparent 0) 0 0 / 18px 9px repeat-x; }
.ticket::after { top: calc(100% - 0.5px); background: conic-gradient(from 135deg at 50% 0, var(--papel) 90deg, transparent 0) 0 0 / 18px 9px repeat-x; }
.ticket__cabeza {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px dashed rgba(43, 23, 16, 0.3);
}
.ticket__marca { font-family: var(--f-titulo); font-weight: 800; font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.ticket__numero { font-size: var(--t-chico); text-align: right; }
.ticket__armado { display: grid; gap: 1.4rem; }
.ticket__ayuda { font-size: 1rem; }
.ticket__grupos { display: grid; gap: 1.1rem; }
.ticket__grupo-titulo,
.ticket__entrega legend,
.ticket__nota > span,
.ticket__rotulo { display: block; margin-bottom: 0.55rem; font-size: var(--t-chico); font-weight: 650; }
.ticket__nota small { font-weight: 400; font-size: inherit; opacity: 0.75; }
.ticket__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 1rem;
  border: 2px solid rgba(43, 23, 16, 0.3);
  border-radius: 999px;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.3s var(--suave), color 0.3s var(--suave), border-color 0.3s, transform 0.3s var(--rebote);
  -webkit-tap-highlight-color: transparent;
}
.chip::before {
  content: "";
  width: 0; height: 0.72em;
  margin-right: 0;
  background: currentColor;
  clip-path: polygon(8% 52%, 0 64%, 38% 100%, 100% 14%, 88% 4%, 36% 74%);
  transition: width 0.35s var(--rebote), margin 0.35s var(--rebote);
}
.chip:active { transform: scale(0.94); }
.chip[aria-pressed="true"] { background: var(--chocolate); border-color: var(--chocolate); color: var(--harina); }
.chip[aria-pressed="true"]::before { width: 0.8em; margin-right: 0.5em; }
@media (hover: hover) { .chip:hover { border-color: var(--chocolate); } }
.ticket__entrega { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ticket__entrega legend { float: left; width: 100%; }
.ticket__entrega label { cursor: pointer; }
.ticket__entrega input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ticket__entrega label span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 1rem;
  border: 2px solid rgba(43, 23, 16, 0.3);
  border-radius: 0.8rem;
  font-size: 0.98rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.ticket__entrega input:checked + span { background: var(--manteca); border-color: var(--chocolate); }
.ticket__entrega input:focus-visible + span { outline: 3px solid var(--chocolate); outline-offset: 3px; }
.ticket__nota textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(43, 23, 16, 0.3);
  border-radius: 0.8rem;
  background: transparent;
  font: inherit;
  color: inherit;
  resize: vertical;
}
.ticket__nota textarea::placeholder { color: rgba(43, 23, 16, 0.6); }
.ticket__nota textarea:focus-visible { outline: 3px solid var(--chocolate); outline-offset: 2px; box-shadow: none; border-color: var(--chocolate); }
.ticket__mensaje { padding-top: 1.3rem; border-top: 2px dashed rgba(43, 23, 16, 0.3); }
.ticket__texto {
  min-height: 3.2em;
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.2rem;
  line-height: 1.35;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ticket__letra { font-size: var(--t-chico); line-height: 1.4; }
.ticket :focus-visible { box-shadow: none; outline-color: var(--chocolate); }

.canales { display: grid; gap: 2.25rem; align-content: start; }
.canal { display: grid; gap: 0.5rem; justify-items: start; padding-top: 2rem; border-top: 2px solid var(--tinta); }
.canal__dato { font-family: var(--f-titulo); font-weight: 620; font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.1; letter-spacing: -0.015em; }
.canal__dato a { text-decoration: none; }
.canal__letra { font-size: var(--t-chico); }
.canal .estado { margin-block: 0.3rem; }
.combos { display: grid; gap: 0.75rem; margin-block: 0.5rem; }
.combos dt { font-family: var(--f-titulo); font-style: italic; font-weight: 640; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.3rem; line-height: 1.1; }
.combos dd { font-size: 0.98rem; line-height: 1.4; }
.canales__pagos { padding-top: 1.5rem; border-top: 2px solid var(--tinta); font-size: 0.98rem; }
.pedidos :focus-visible { outline-color: var(--chocolate); box-shadow: 0 0 0 7px var(--manteca); }

@media (min-width: 900px) {
  .pedidos__in { grid-template-columns: repeat(12, 1fr); column-gap: var(--canal); row-gap: clamp(3rem, 6vw, 5rem); }
  .pedidos__cabeza { grid-column: 1 / span 10; }
  .ticket-wrap { grid-column: 1 / span 6; rotate: -1.2deg; }
  .canales { grid-column: 8 / -1; }
}

/* Cierre: de noche */
.cierre { position: relative; z-index: 3; background: var(--madrugada); color: var(--harina); padding: calc(var(--aire) * 0.6) var(--margen) var(--aire); }
.cierre::before { background: var(--madrugada); }
.cierre__in { position: relative; max-width: 88rem; margin-inline: auto; }
.cierre__luna {
  position: absolute;
  right: 0; top: -1rem;
  width: clamp(4.5rem, 13vw, 11rem);
  fill: var(--manteca);
  rotate: -18deg;
}
.cierre__frase {
  max-width: 9.5em;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(3rem, 1rem + 9.2vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--manteca);
  text-wrap: balance;
}
.cierre__remate {
  margin-top: 0.5em;
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 320;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.9rem, 1rem + 4.2vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.cierre__obvio { position: relative; display: inline-block; }
.trazo--subrayado { position: absolute; left: -4%; bottom: -0.2em; width: 108%; height: auto; }
.trazo--subrayado path { stroke: var(--dorado); stroke-width: 3; }
.cierre__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.cierre__manana { max-width: 18rem; font-size: var(--t-medio); line-height: 1.3; }

/* Pie: la persiana baja */
.pie { position: relative; z-index: 3; background: var(--madrugada); overflow: clip; }
.pie__panel {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) var(--margen) 4.5rem;
  background: var(--persiana);
  color: var(--tinta);
  box-shadow: 0 -1px 0 var(--chocolate);
}
.pie__marca {
  width: min(100%, 72rem);
  margin-inline: auto;
  color: var(--chocolate);
}
.pie__cols { display: grid; gap: 2.25rem; max-width: 88rem; margin: clamp(2.5rem, 6vw, 5rem) auto 0; }
.pie__titulo { margin-bottom: 0.6rem; font-family: var(--f-titulo); font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.3rem; line-height: 1.1; }
.pie__links { display: grid; gap: 0.15rem; }
.pie__links a { display: inline-block; padding-block: 0.4rem; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
.pie__links a:hover { text-decoration-thickness: 3px; }
.pie__demo p { font-size: 0.95rem; line-height: 1.5; }
.pie :focus-visible { outline-color: var(--chocolate); box-shadow: 0 0 0 7px var(--manteca); }

@media (min-width: 900px) {
  .pie__cols { grid-template-columns: 4fr 3fr 5fr; column-gap: clamp(2rem, 5vw, 5rem); }
}

/* Fondos --------------------------------------------------------------------
   Cada sección suma una capa (::after) detrás del contenido: brasas en el
   horno y el cierre, ondas en abrimos, azúcar en facturas, mantel en
   mediodía, blonda en pastelería y rayas de bolsa en pedidos. */
:is(.horno, .abrimos, .facturas, .mediodia, .pasteleria, .pedidos, .cierre) { position: relative; isolation: isolate; }
:is(.horno, .abrimos, .facturas, .mediodia, .pasteleria, .pedidos, .cierre)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Brasas: brillo de horno y chispas que suben */
:is(.horno, .cierre)::after {
  background:
    url("../img/fondos/chispas.svg") 0 0 / 420px 520px,
    url("../img/fondos/chispas.svg") 210px 260px / 300px 370px,
    radial-gradient(ellipse 85% 50% at 50% 100%, rgba(221, 110, 36, 0.3), transparent 72%);
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 92%);
  mask-image: linear-gradient(to top, #000 25%, transparent 92%);
  animation: fondo-chispas 22s linear infinite;
}
@keyframes fondo-chispas {
  to { background-position: 40px -520px, 230px -110px, 0 0; }
}
/* Mantel cuadrillé */
.mediodia::after {
  background:
    linear-gradient(90deg, rgba(163, 39, 31, 0.055) 50%, transparent 0) 0 0 / 40px 40px,
    linear-gradient(rgba(163, 39, 31, 0.055) 50%, transparent 0) 0 0 / 40px 40px;
}
/* Blonda */
.pasteleria::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 2px, transparent 2.6px) 0 0 / 24px 24px,
    radial-gradient(circle, rgba(255, 255, 255, 0.3) 1.2px, transparent 1.8px) 12px 12px / 24px 24px;
}

/* Abrimos: ondas de calor que se apagan antes de los bordes */
.abrimos::after {
  background: url("../img/fondos/ondas.svg") 0 0 / 160px 44px;
  -webkit-mask-image: linear-gradient(to top, transparent, #000 25%, transparent 90%);
  mask-image: linear-gradient(to top, transparent, #000 25%, transparent 90%);
}
/* Facturas: azúcar impalpable. Aparece de a poco porque abrimos y facturas
   comparten color y no tienen corte entre sí. */
.facturas::after {
  background: url("../img/fondos/azucar.svg") 0 0 / 400px 400px;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(transparent, #000 20rem);
  mask-image: linear-gradient(transparent, #000 20rem);
}
/* Pedidos: rayas de bolsa */
.pedidos::after { background: repeating-linear-gradient(-45deg, rgba(74, 38, 23, 0.07) 0 22px, transparent 22px 44px); }

/* Créditos de Arawyn (assets/css/arawyn-credit.css, de E:/Arawyn/Shared):
   mismo margen que el sitio y sin el halo de foco general */
.arawyn-credit { --arawyn-credit-gutter: var(--margen); position: relative; z-index: 3; }
.arawyn-credit a:focus-visible { box-shadow: none; border-radius: 0; }

/* 6. Movimiento reducido --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-activo="si"] > .estado__punto::after { display: none; }
}
