:root {
  --fudge-oscuro: #4a2219;
  --fudge: #6e3427;
  --banana: #fdebaa;
  --strawberry: #ffbaa5;
  --pistachio: #c4be53;
  --papel: #fffdf7;
  --font-display: "DynaPuff", sans-serif;
  --font-cuerpo: "Plus Jakarta Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  /* Texto corrido un tono más oscuro que el fudge: el fondo halftone es vibrante. */
  color: var(--fudge-oscuro);
  font-family: var(--font-cuerpo);
  background-color: #f2a07a;
}
/* La envoltura recorta la lámina inclinada sin ampliar el documento. */
.fondo-vivo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  perspective: 1000px;
  isolation: isolate;
}
.fondo-lamina {
  position: absolute;
  inset: 0;
  /* El velo conserva el contraste del fondo original. */
  background:
    linear-gradient(rgba(255, 253, 247, 0.2), rgba(255, 253, 247, 0.2)),
    url("../assets/marca/fondo-ribbed.webp") center / cover no-repeat;
  transform: scale(1.1);
  will-change: transform;
}
.fondo-lente {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.fondo-lente.lista { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .fondo-lamina { transform: none !important; will-change: auto; }
  .fondo-lente { display: none; }
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--fudge);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p {
  line-height: 1.7;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}
em {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  font-weight: 600;
  font-style: normal;
}
#mundo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
#mundo canvas {
  display: block;
}
.cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.marca {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  display: inline-block;
}
.marca span {
  display: block;
  font: 700 9px var(--font-cuerpo);
  letter-spacing: 1px;
  margin-top: 9px;
}
.cabecera nav {
  display: flex;
  font-weight: 800;
}
.enlace-instagram {
  font-size: 13px;
  border-bottom: 1px solid;
  padding-bottom: 4px;
}
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-etiqueta,
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}
.mini-etiqueta {
  border: 1px solid #6e34274a;
  border-radius: 50px;
  padding: 9px 16px;
}
.sello {
  border: 1px dashed var(--fudge);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(12deg);
  background: var(--banana);
}
.hero-titulo {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 0;
}
.hero-titulo p {
  font-family: var(--font-display);
}
h1 {
  font-family: var(--font-cuerpo);
  font-weight: 800;
  font-size: clamp(140px, 25vw, 350px);
  line-height: 0.9;
  letter-spacing: -0.075em;
  color: var(--fudge);
}
h1 span {
  display: block;
  font-size: clamp(12px, 1.5vw, 21px);
}
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
}

.acciones {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--fudge);
  border-radius: 50px;
  background: var(--strawberry);
  padding: 15px 23px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 3px 4px 0 var(--fudge);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.boton:hover {
  transform: translateY(-3px);
  box-shadow: 4px 7px 0 var(--fudge);
}
.boton svg {
  width: 17px;
  height: 17px;
}
.secundario {
  background: var(--papel);
  box-shadow: none;
}
.boton-texto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  font-size: 11px;
  margin: 18px 0;
}
.boton-texto svg {
  width: 14px;
}
#giroscopio {
  display: none;
}
.hero-pie {
  display: flex;
  justify-content: space-between;
  letter-spacing: 1.5px;
}
.encabezado-seccion {
  text-align: center;
  padding: 95px 20px 35px;
}
.encabezado-seccion h2 {
  margin: 18px 0;
}
.encabezado-seccion p {
  font-size: 14px;
}
.catalogo-escenario {
  height: 660px;
  min-height: 580px;
  position: relative;
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 6% 80px;
  gap: 7%;
}
.modelo-espacio {
  height: 360px;
  position: relative;
  display: grid;
  place-items: center;
}
.modelo-espacio:before {
  content: "";
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: var(--banana);
  position: absolute;
  opacity: 0.55;
}
.anotacion {
  position: absolute;
  bottom: -25px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  transform: rotate(-7deg);
}
.tarjetas-catalogo {
  z-index: 3;
  position: relative;
}
.tarjeta {
  background: var(--papel);
  border: 1px solid #6e342760;
  box-shadow: 8px 8px 0 #6e34270d;
  padding: 40px;
  transform: rotate(2deg);
  position: relative;
}
.tarjeta:before,
.paso:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 38%;
  width: 90px;
  height: 28px;
  background: #ffbaa5a6;
  transform: rotate(-7deg);
  border-inline: 2px dotted #ffffff80;
}
.tarjeta[hidden] {
  display: none;
}
.badge {
  display: inline-block;
  background: var(--pistachio);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 30px;
}
.tarjeta h3 {
  font-size: 34px;
  line-height: 1.1;
  margin: 22px 0 16px;
  font-weight: 800;
  letter-spacing: 0;
}
.tarjeta p {
  font-size: 14px;
}
.precio {
  font-size: 25px;
  font-weight: 800;
  margin: 24px 0 18px;
}
.precio small {
  font-size: 12px;
  font-weight: 600;
}
.catalogo-control {
  position: absolute;
  bottom: 27px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  z-index: 3;
}
.catalogo-control button {
  border: 1px solid #6e342766;
  border-radius: 50%;
  height: 35px;
  width: 35px;
  background: var(--papel);
}
.pista-scroll {
  font-size: 10px;
  font-weight: 600;
}
.proceso {
  position: relative;
  z-index: 3;
  isolation: isolate;
  overflow: hidden;
  border-radius: 2rem;
  margin-inline: clamp(14px, 3vw, 48px);
  padding-bottom: 65px;
  border-block: 1px solid #6e342729;
}
.pasos {
  max-width: 1300px;
  margin: 40px auto 0;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.paso {
  position: relative;
  background: var(--papel);
  border: 1px solid #6e342740;
  padding: 30px 20px;
  box-shadow: 0 5px 10px #6e34271c;
  transform: rotate(-2deg);
}
.paso:nth-child(even) {
  transform: rotate(3deg);
}
.paso > svg {
  width: 29px;
  height: 29px;
  margin: 12px 0 20px;
}
.paso-numero {
  font-size: 11px;
  position: absolute;
  right: 17px;
  top: 20px;
}
.paso h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.paso p {
  font-size: 12px;
}
.nota-manuscrita {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  text-align: center;
  margin: 40px 20px 0;
}
.pedido {
  min-height: 850px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 100px 10%;
  max-width: 1500px;
  margin: auto;
  isolation: isolate;
}
.pedido-titulo {
  align-self: flex-start;
  margin-top: 60px;
  max-width: 330px;
  z-index: 3;
}
.pedido-titulo h2 {
  font-size: 65px;
  margin: 20px 0;
}
.pedido-titulo p {
  font-size: 13px;
}
.ticket {
  position: relative;
  z-index: 3;
  background: var(--papel);
  width: 350px;
  padding: 30px 27px 35px;
  box-shadow: 0 18px 35px #6e34271c;
  transform: rotate(4deg);
  margin-top: 130px;
  flex-shrink: 0;
}
.ticket:after,
.ticket:before {
  content: "";
  position: absolute;
  height: 12px;
  left: 0;
  right: 0;
  background:
    linear-gradient(
      135deg,
      transparent 33%,
      var(--papel) 33%,
      var(--papel) 66%,
      transparent 66%
    ),
    linear-gradient(
      45deg,
      transparent 33%,
      var(--papel) 33%,
      var(--papel) 66%,
      transparent 66%
    );
  background-size: 16px 24px;
}
.ticket:before {
  top: -10px;
  transform: rotate(180deg);
}
.ticket:after {
  bottom: -10px;
}
.ticket-marca {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 47px;
  text-align: center;
}
.ticket-subtitulo {
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
  border-bottom: 1px dashed;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.ticket .boton {
  border-radius: 6px;
  width: 100%;
  font-size: 11px;
  padding: 14px 8px;
  gap: 5px;
  margin-top: 15px;
}
.linea-factura {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin: 12px 0;
}
.linea-factura span:first-child {
  flex: 1;
}
.total-factura {
  border-top: 1px dashed;
  padding-top: 12px;
  font-weight: 800;
  font-size: 15px;
}
.letra-pequena,
.aviso {
  font-size: 10px;
  margin-top: 14px;
  line-height: 1.5;
}
.aviso:empty {
  display: none;
}
.aviso {
  font-weight: 800;
  background: var(--banana);
  padding: 8px;
}
.vacio {
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}
.vacio a {
  display: inline-block;
  text-decoration: underline;
  font-weight: 800;
  margin-top: 10px;
}
.faq-seccion {
  position: relative;
  z-index: 3;
  background: var(--papel);
  border-block: 1px solid #6e342733;
  padding: 80px 9%;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}
.faq-seccion h2 {
  margin: 18px 0;
}
.faq-seccion p {
  font-size: 13px;
}
.faq details {
  border-bottom: 1px solid #6e34272a;
}
.faq summary {
  cursor: pointer;
  padding: 19px 30px 19px 0;
  font-size: 14px;
  font-weight: 800;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:after {
  content: "+";
  position: absolute;
  right: 5px;
  font-size: 22px;
  top: 12px;
}
.faq details[open] summary:after {
  content: "−";
}
.faq details p {
  padding-bottom: 20px;
}
footer {
  position: relative;
  z-index: 3;
  background: var(--strawberry);
  padding: 60px 8% calc(125px + env(safe-area-inset-bottom));
}
.footer-principal {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
}
.footer-principal p {
  font-size: 12px;
  margin: 20px 0;
}
.footer-principal h3 {
  font-size: 14px;
  font-weight: 800;
}
.footer-principal a:not(.marca) {
  font-size: 13px;
  font-weight: 800;
  display: block;
}
.footer-base {
  border-top: 1px solid #6e342740;
  margin-top: 50px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 10px;
}
.footer-creditos {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.footer-creditos a:hover,
.footer-creditos a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.carrito-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--fudge);
  border-radius: 40px;
  background: var(--fudge);
  color: var(--papel);
  padding: 14px 18px;
  box-shadow: 0 5px 20px #6e342730;
  font-size: 12px;
  font-weight: 800;
}
.carrito-flotante svg {
  width: 19px;
}
.carrito-flotante b {
  border-radius: 50%;
  background: var(--banana);
  color: var(--fudge);
  width: 24px;
  height: 24px;
  display: grid;
  place-content: center;
}
.velo {
  position: fixed;
  inset: 0;
  background: #301b1766;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(480px, 100%);
  background: var(--papel);
  z-index: 11;
  padding: 30px;
  overflow: auto;
  box-shadow: -10px 0 40px #301b1720;
}
.drawer-cabecera {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.drawer h2 {
  font-size: 27px;
  margin: 12px 0;
}
.drawer-cabecera button {
  background: var(--banana);
  border-radius: 50%;
  padding: 8px;
}
.drawer > p {
  font-size: 12px;
  margin: 10px 0 20px;
}
.item-carrito {
  border-block-start: 1px dashed #6e342750;
  padding: 20px 0;
}
.item-carrito h3 {
  font-size: 16px;
  font-weight: 800;
}
.item-controles {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
.item-controles button {
  background: var(--banana);
  padding: 4px 12px;
  border-radius: 5px;
}
.item-controles .quitar {
  background: transparent;
  text-decoration: underline;
  font-size: 11px;
  margin-left: auto;
}
.item-carrito label {
  font-size: 11px;
  display: block;
}
.item-carrito textarea {
  display: block;
  resize: vertical;
  width: 100%;
  background: white;
  border: 1px solid #6e342740;
  border-radius: 7px;
  padding: 10px;
  color: var(--fudge);
  font: inherit;
  font-size: 13px;
  margin-top: 7px;
}
.drawer-pie {
  padding: 20px 0;
}
.drawer-pie > p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer-pie .boton {
  width: 100%;
}
.notificacion {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 12;
  background: var(--banana);
  font-size: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 20px #6e342730;
  padding: 0;
}
.notificacion:not(:empty) {
  padding: 14px 20px;
}
.sr-only,
.saltar:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.saltar:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: var(--banana);
  padding: 15px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .enlace-instagram {
    display: none;
  }
  .hero {
    padding-inline: 6%;
  }

  .mini-etiqueta {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero-pie {
    letter-spacing: 1px;
  }
  .pasos {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  .catalogo-escenario {
    gap: 30px;
    padding-inline: 5%;
  }
  .tarjeta {
    padding: 26px;
  }
  .tarjeta h3 {
    font-size: 28px;
  }
  .pedido {
    padding-inline: 6%;
    gap: 20px;
  }
  .pedido-titulo {
    max-width: 230px;
  }
  .pedido-titulo h2 {
    font-size: 48px;
  }
  .ticket {
    width: 310px;
  }
  .faq-seccion {
    gap: 30px;
  }
  .footer-principal {
    gap: 25px;
  }
  .modelo-espacio:before {
    width: 260px;
    height: 260px;
  }
}
@media (max-width: 600px) {
  .marca {
    font-size: 51px;
  }

  h1 span {
    font-size: 10px;
  }

  .boton {
    font-size: 11px;
    padding: 13px 16px;
  }

  .hero-pie span:first-child {
    max-width: 160px;
  }
  #giroscopio {
    display: inline-flex;
  }
  .encabezado-seccion {
    padding-top: 65px;
  }
  .encabezado-seccion h2 {
    font-size: 32px;
  }
  .encabezado-seccion p {
    font-size: 12px;
  }
  .catalogo-escenario {
    height: 770px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 25px 75px;
  }
  .modelo-espacio {
    width: 100%;
    height: 310px;
    flex-shrink: 0;
  }
  .modelo-espacio:before {
    width: 250px;
    height: 250px;
  }
  .anotacion {
    bottom: 3px;
    font-size: 21px;
  }
  .tarjetas-catalogo {
    width: 100%;
    max-width: 390px;
  }
  .tarjeta {
    padding: 24px;
    transform: rotate(1deg);
  }
  .tarjeta h3 {
    font-size: 27px;
    margin: 18px 0 10px;
  }
  .tarjeta p {
    font-size: 12px;
  }
  .precio {
    margin: 16px 0;
    font-size: 23px;
  }
  .catalogo-control {
    bottom: 20px;
    gap: 18px;
  }
  .pasos {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 10%;
  }
  .paso {
    padding: 24px 24px 24px 80px;
    min-height: 125px;
  }
  .paso > svg {
    position: absolute;
    left: 25px;
    top: 22px;
  }
  .paso-numero {
    top: 10px;
    font-size: 9px;
  }
  .paso h3 {
    font-size: 16px;
  }
  .paso p {
    font-size: 12px;
  }
  .nota-manuscrita {
    font-size: 25px;
  }
  .pedido {
    min-height: 1050px;
    display: block;
    padding: 65px 25px;
  }
  .pedido-titulo {
    margin: 0;
    max-width: none;
    text-align: center;
  }
  .pedido-titulo h2 {
    font-size: 45px;
  }
  .pedido-titulo h2 br {
    display: none;
  }
  .ticket {
    margin: 280px auto 0;
    width: min(330px, 95%);
    transform: rotate(2deg);
  }
  .faq-seccion {
    display: block;
    padding: 60px 7%;
  }
  .faq {
    margin-top: 30px;
  }
  .footer-principal {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-principal p {
    margin: 15px 0;
  }
  .footer-base {
    gap: 20px;
    padding-bottom: 0;
  }
  .footer-creditos {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-creditos-separador {
    display: none;
  }
  .carrito-flotante {
    bottom: 16px;
    right: 16px;
  }
  .drawer {
    top: auto;
    max-height: 90svh;
    border-radius: 24px 24px 0 0;
    padding: 24px;
  }
  .pista-scroll {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.pedido {
  perspective: 1100px;
  /* La factura entra girada en 3D: que ese giro no cree scroll lateral en móvil. */
  overflow-x: clip;
}
.ticket {
  transform-style: preserve-3d;
}
.item-controles button:disabled {
  opacity: 0.45;
  cursor: default;
}

.hero-titulo {
  position: relative;
}

.hero-objeto {
  flex-shrink: 0;
}

.hero-titulo,
.hero-superior,
.hero-pie {
  z-index: 3;
  position: relative;
}
.cinta-contenedor {
  overflow-x: clip;
  padding-block: 20px;
}

@media (max-width: 600px) {
  .ticket {
    margin-top: 30px;
  }
}

.hero-objeto {
  position: relative;
}


/* Tipografía compartida por títulos, marcas y cifras destacadas. */
h1,
h2,
h3,
.marca,
.ticket-marca,
.precio,
.total-factura,
#subtotal {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.precio small,
.marca span {
  font-family: var(--font-cuerpo);
}

/* Reservar el primer pantallazo para la composición del hero. */
.hero {
  min-height: 0;
  height: calc(100svh - 100px);
  max-height: 1000px;
  padding: 10px 7% 0;
}
.hero-superior {
  min-height: 42px;
}
.sello {
  width: 58px;
  height: 58px;
  font-size: 9px;
}
.hero-titulo {
  margin-top: 0;
  flex-shrink: 0;
}
.hero-titulo p {
  font-size: clamp(18px, 3svh, 30px);
  line-height: 1.3;
  font-weight: 600;
}
.hero-titulo h1 {
  font-size: clamp(100px, min(24vw, 24svh), 260px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}
.hero-titulo h1 span {
  font-family: var(--font-cuerpo);
  font-size: clamp(10px, 1.5svh, 15px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.15em;
  margin: 2px 0 0;
}
.hero-objeto {
  height: clamp(100px, 17svh, 180px);
  flex: 1 0 clamp(100px, 17svh, 180px);
}
.hero-copy {
  margin-top: 0;
  padding-top: 0;
  flex-shrink: 0;
}
.hero-copy h2 {
  font-size: clamp(23px, 3.5svh, 34px);
  line-height: 1.25;
}
.hero-copy p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 12px;
}
.hero .boton {
  padding: 12px 18px;
  font-size: 12px;
}
.hero-pie {
  margin-top: auto;
  padding: 16px 0;
}
@media (max-width: 850px) {
  .hero {
    height: calc(100svh - 82px);
    padding-inline: 6%;
  }
}
@media (max-width: 600px) {
  .hero-superior {
    min-height: 48px;
    gap: 8px;
  }
  .mini-etiqueta {
    font-size: 7px;
    padding: 8px 10px;
    letter-spacing: 0.5px;
  }
  .sello {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    font-size: 8px;
  }
  .hero-titulo p {
    font-size: 21px;
  }
  .hero .acciones {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .hero .boton {
    padding: 12px 10px;
    gap: 5px;
    font-size: 10px;
  }
  .hero .boton-texto {
    margin: 12px 0 0;
  }
  .hero-pie {
    padding: 14px 0;
    font-size: 6px;
  }
}

/* Navegación flotante y catálogo continuo. */
html {
  scroll-padding-top: 130px;
}
.cabecera {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  height: 66px;
  padding: 10px 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  /* Sin backdrop-filter el vidrio sería ilegible: respaldo más opaco. */
  background: rgba(255, 253, 247, 0.8);
  box-shadow: 0 8px 30px #6e342714, inset 0 1px 0 rgba(255, 255, 255, 0.25);
  z-index: 20;
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .cabecera {
    background: rgba(255, 255, 255, 0.15);
    /* brightness aclara lo que pasa detrás para que el texto oscuro siga legible. */
    -webkit-backdrop-filter: blur(12px) saturate(1.15) brightness(1.12);
    backdrop-filter: blur(12px) saturate(1.15) brightness(1.12);
  }
}
.cabecera .marca {
  font-size: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lirio {
  width: 44px;
  height: 43px;
  flex: none;
  /* Pixel art: sin suavizado al escalar. */
  image-rendering: pixelated;
  filter: drop-shadow(2px 3px 0 #6e342730);
  transform-origin: 50% 70%;
  animation: lirio 3.2s ease-in-out infinite alternate;
  will-change: transform;
}
.cabecera nav {
  gap: 8px;
  position: relative;
}
.cabecera nav a {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 22px;
  font-size: 12px;
  color: var(--fudge-oscuro);
  transition: color 0.25s ease;
}
.cabecera nav a.resaltado {
  color: var(--fudge);
}
/* Burbuja que sigue al cursor; JS le da posición y tamaño del enlace. */
.nav-burbuja {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w, 0);
  height: var(--h, 0);
  transform: translate(var(--x, 0), var(--y, 0));
  border-radius: 22px;
  background: var(--banana);
  box-shadow: 0 2px 10px #6e342722, inset 0 0 0 1px #6e342714;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.32, 0.52, 1),
    width 0.45s cubic-bezier(0.34, 1.32, 0.52, 1),
    height 0.3s ease,
    opacity 0.3s ease;
}
.nav-burbuja.visible {
  opacity: 1;
}
.nav-burbuja.sin-transicion {
  transition: none;
}
#menu-boton {
  display: none;
  background: none;
  align-items: center;
  gap: 8px;
}
.coky {
  image-rendering: pixelated;
  object-fit: contain;
  display: block;
  width: 100%;
  height: 100%;
}
.coky-nav {
  position: absolute;
  top: -47px;
  left: 49%;
  width: 100px;
  height: 57px;
  padding: 0;
  background: none;
}
.coky-nav [data-coky] {
  display: block;
  width: 100%;
  height: 100%;
  animation: respirar 4s ease-in-out infinite;
  transform-origin: bottom;
}
.zz {
  position: absolute;
  right: -10px;
  top: 6px;
  font: 18px var(--font-display);
  animation: dormir 4s ease-in-out infinite;
}
@keyframes respirar {
  50% {
    transform: scale(1.03);
  }
}
@keyframes dormir {
  0%,100% {
    transform: translateY(0);
    opacity: .45;
  }
  60% {
    transform: translateY(-7px);
    opacity: 1;
  }
}
/* Flotación sutil: ±4 px en Y y ±3° de giro. */
@keyframes lirio {
  from {
    transform: translateY(4px) rotate(-3deg);
  }
  to {
    transform: translateY(-4px) rotate(3deg);
  }
}
.hero {
  height: 100svh;
  min-height: 690px;
  max-height: 1100px;
  padding: 138px 7% 0;
  display: grid;
  grid-template-rows: 40px auto minmax(150px, 1fr) auto 36px;
  gap: 4px;
}
.hero-superior {
  min-height: 0;
}
.hero-titulo {
  position: static;
  margin: 0;
}
.hero-titulo p {
  display: none;
}
.hero-titulo h1 {
  font-size: clamp(88px, 15svh, 160px);
  line-height: 1;
}
.hero-titulo h1 span {
  display: block;
  font-size: 10px;
}
.hero-objeto {
  position: relative;
  height: 100%;
  min-height: 0;
  width: 100%;
  flex: none;
}
.hero-copy {
  text-align: center;
  position: relative;
  margin: 0;
}
.hero-copy h2 {
  font-size: clamp(23px, 3.5svh, 32px);
}
.hero-copy p {
  margin: 6px 0 10px;
}
.hero-copy h2 br {
  display: none;
}
.hero .acciones {
  justify-content: center;
}
.hero .boton-texto {
  margin: 8px 0 0;
}
.hero-pie {
  margin: 0;
  padding: 8px 0;
}
.nosotros {
  max-width: 1150px;
  margin: auto;
  padding: 90px 6%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 50px;
}
.nosotros h2 {
  margin: 18px 0;
}
.nosotros p + p {
  margin-top: 14px;
}
.nosotros figure {
  margin: 0;
  text-align: center;
}
.nosotros [data-coky] {
  display: block;
  width: min(100%, 270px);
  aspect-ratio: 1;
  margin: auto;
}
.nosotros figcaption {
  font-size: 12px;
}
.catalogo-fluido {
  max-width: 1120px;
  margin: auto;
  padding: 0 6%;
}
.producto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  align-items: center;
  min-height: 440px;
  padding: 35px 0;
  border-bottom: 1px dashed #6e342740;
  transition: opacity .8s, transform .8s;
}
.producto:nth-child(even) .vista-modelo {
  order: 2;
}
.producto:not(.visible) {
  opacity: .5;
  transform: translateY(25px);
}
.vista-modelo {
  position: relative;
  height: 340px;
  border-radius: 45% 48% 40% 50%;
  background: #fdebaa55;
}
.producto:nth-child(2) .vista-modelo {
  background: #ffbaa540;
}
.producto:nth-child(3) .vista-modelo {
  background: #c4be5326;
}
.producto-copy {
  position: relative;
  z-index: 3;
}
.producto h3, .producto-simple h3 {
  font: 600 clamp(24px, 3vw, 36px) var(--font-display);
  margin: 16px 0;
}
.producto p {
  font-size: 14px;
}
.producto .letra-pequena {
  font-size: 10px;
  margin-top: 12px;
}
.respaldo-producto {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.respaldo-producto svg {
  width: 100px;
  height: 100px;
  stroke-width: 1;
}
body:not(.sin-webgl) .modelo-listo .respaldo-producto {
  visibility: hidden;
}
.tambien {
  max-width: 1120px;
  margin: 60px auto;
  padding: 0 6%;
}
.tambien > h3 {
  font: 28px var(--font-display);
  margin-bottom: 26px;
}
#otros-productos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.producto-simple {
  border: 1px solid #6e34272b;
  padding: 24px;
  border-radius: 24px;
  background: #fffdf7e6;
}
.producto-simple h3 {
  font-size: 21px;
}
.producto-simple p {
  font-size: 12px;
}
.producto-simple .badge {
  font-size: 9px;
  margin-top: 16px;
}
.producto-simple .precio {
  font-size: 20px;
}
.producto-simple .boton {
  font-size: 11px;
  padding: 12px;
}
.producto-simple .letra-pequena {
  margin-top: 12px;
  font-size: 9px;
}
.pedido {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  min-height: 0;
  padding: 80px 6%;
  gap: 36px;
  perspective: 1200px;
}
.pedido-titulo {
  grid-column: 1 / -1;
  text-align: center;
  max-width: none;
  margin: 0;
}
.pedido-titulo h2 {
  font-size: 48px;
}
.pedido-titulo h2 br {
  display: none;
}
.ticket {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.carta-perspectiva {
  grid-column: 2;
  grid-row: 2;
  perspective: 1100px;
  width: 100%;
  max-width: 400px;
  margin: auto;
  aspect-ratio: 3 / 4;
}
.carta-holo {
  --x: 0;
  --y: 0;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  border: 7px solid var(--banana);
  background: radial-gradient(ellipse at 50% 25%, #fffdf7, #ffbaa5 65%, #c4be53);
  box-shadow: 0 20px 40px #6e342725;
  transform: rotateX(calc(var(--y) * -15deg)) rotateY(calc(var(--x) * 15deg));
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}
.carta-leyenda {
  position: absolute;
  top: 7%;
  width: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
}
.holo-brillo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at calc(50% + var(--x) * 40%) calc(50% + var(--y) * 40%), #fff9, transparent 55%);
  mix-blend-mode: soft-light;
}
.carta-holo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: color-dodge;
  background: repeating-linear-gradient(115deg,#ffbaa5 0%,#fdebaa 15%,#c4be53 30%,#a4cfe0 45%,#c4ace3 60%,#ffbaa5 75%);
  background-size: 220% 220%;
  background-position: calc(50% + var(--x) * 30%) calc(50% + var(--y) * 30%);
}
#contacto {
  scroll-margin-top: 130px;
}
.footer-principal a {
  display: block;
  margin-top: 12px;
}
@media (max-width: 700px) {
  .cabecera {
    top: 44px;
    height: 58px;
    padding: 8px 20px;
  }
  .cabecera .marca {
    font-size: 28px;
  }
  .lirio {
    width: 36px;
    height: 35px;
  }
  .coky-nav {
    left: 45%;
    top: -39px;
    width: 82px;
    height: 48px;
  }
  #menu-boton {
    display: flex;
    font-size: 12px;
  }
  .cabecera nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    padding: 14px;
    background: var(--papel);
    border: 1px solid #6e34272b;
    border-radius: 25px;
    box-shadow: 0 12px 24px #6e342714;
  }
  .cabecera.menu-abierto nav {
    display: grid;
  }
  /* En el panel desplegable no hay hover: se marca la sección actual sin burbuja. */
  .nav-burbuja {
    display: none;
  }
  .cabecera nav a.activo {
    background: var(--banana);
    color: var(--fudge);
  }
  .hero {
    padding: 118px 6% 0;
    min-height: 670px;
    grid-template-rows: 35px auto minmax(130px,1fr) auto 28px;
    gap: 3px;
  }
  .hero-titulo h1 {
    font-size: 12svh;
  }
  .hero-superior .sello {
    width: 44px;
    height: 44px;
    font-size: 7px;
  }
  .mini-etiqueta {
    font-size: 7px;
  }
  .hero-copy h2 {
    font-size: 23px;
  }
  .hero-copy h2 br {
    display: block;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .hero .boton {
    font-size: 10px;
    padding: 12px 10px;
  }
  .hero-pie {
    font-size: 7px;
  }
  .nosotros {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 65px 7%;
  }
  .nosotros [data-coky] {
    width: 180px;
  }
  .producto {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 25px 0 40px;
  }
  .producto:nth-child(even) .vista-modelo {
    order: 0;
  }
  .vista-modelo {
    height: 270px;
  }
  .producto-copy {
    padding: 10px 12px;
  }
  #otros-productos {
    grid-template-columns: 1fr;
  }
  .producto-simple {
    padding: 24px;
  }
  .pedido {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 7%;
  }
  .pedido-titulo, .ticket, .carta-perspectiva {
    grid-column: 1;
    grid-row: auto;
  }
  .carta-perspectiva {
    width: min(100%, 320px);
  }
  .ticket {
    order: 1;
  }
  .pedido-titulo h2 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .producto:not(.visible) {
    opacity: 1;
    transform: none;
  }
  .carta-holo {
    transform: none;
  }
  .holo-brillo {
    background: radial-gradient(circle at 40% 30%, #fff8, transparent 60%);
  }
}
.nota-ticket {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
@media (pointer: coarse) {
  #giroscopio {
    display: inline-flex;
  }
}

/* El diálogo y su velo cubren también la cápsula fija. */
.velo {
  z-index: 30;
}
.drawer {
  z-index: 31;
}
.notificacion {
  z-index: 32;
}

/* La cápsula queda por encima de todos los elementos del hero. */
.hero { isolation: isolate; z-index: 0; }

/* Assets oficiales: la pieza principal sigue nítida fuera del canvas. */
.hero {
  min-height: 0;
  max-height: 1100px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 42px 1fr auto 30px;
  column-gap: 32px;
  overflow: clip;
}
.hero-superior { grid-column: 1 / -1; justify-content: flex-start; gap: 24px; }
.hero-titulo { grid-column: 1; grid-row: 2; align-self: end; }
.hero-copy { grid-column: 1; grid-row: 3; padding: 16px 0; }
.hero-objeto { grid-column: 2; grid-row: 2 / 4; }
.hero-pie { grid-column: 1 / -1; }
.hero-pieza {
  position: absolute;
  height: min(calc(100% - 48px), 470px);
  aspect-ratio: 520 / 1029;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
}
.hero-empuje { position: relative; width: 100%; height: 100%; transform: rotate(var(--empuje, 0deg)); transform-origin: 60% -180px; }
.etiquetas-colgantes { position: relative; width: 100%; height: 100%; transform-origin: 60% -180px; filter: drop-shadow(8px 14px 10px #6e34271c); }
.etiquetas-colgantes img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cinta-cafe { position: absolute; left: 51%; width: 18%; height: 1000px; bottom: calc(100% - 2px); background: #6b2a22; transform: skewX(-2deg); transform-origin: bottom; }
.cordon-oliva { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.llavero-fijo { position: fixed; top: -24px; right: 12px; width: 135px; z-index: 19; pointer-events: none; transform-origin: 50% 4%; }
.llavero-fijo img { display: block; width: 100%; height: auto; }
.banner-marca { grid-column: 1 / -1; position: relative; }
.banner-marca img { display: block; width: 100%; height: auto; aspect-ratio: 851 / 315; object-fit: cover; border-radius: 24px; box-shadow: 0 12px 24px #6e34271a; }
.banner-marca::after { content: ""; position: absolute; width: 80px; height: 27px; top: 0; right: 16px; background: #fdebaabf; transform: rotate(22deg); border-inline: 1px dashed #6e34272b; }
.carta-holo { background: var(--papel); }
.carta-bolsa-parallax { position: absolute; width: 72%; height: 77%; top: 17%; left: 14%; transform: translate(calc(var(--x) * 14px), calc(var(--y) * 14px)); }
.carta-bolsa { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(8px 12px 7px #6e34272b); animation: flotar-bolsa 5s ease-in-out infinite; }
@keyframes flotar-bolsa { 0%, 100% { transform: translateY(4px) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
.camion-pedido { width: 38px; height: 22px; flex-shrink: 0; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { .carta-bolsa { animation: none; } .carta-bolsa-parallax { transform: none; } }

.ticket { --papel: #F3F1E5; color: #1e1b33; background: radial-gradient(#1e1b3308 .6px, transparent 1px) 0 0 / 4px 4px, #F3F1E5; padding: 28px 22px; transform: none; max-width: 470px; }
.ticket-marca { font-size: 78px; font-weight: 700; line-height: 1; }
.ticket-coky { width: 135px; height: 125px; object-fit: contain; display: block; margin: 8px auto; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse at center, #000 48%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at center, #000 48%, transparent 72%); }
#ticket-titulo { font: 800 40px var(--font-cuerpo); text-align: center; }
#ticket-numero { text-align: center; font-size: 25px; letter-spacing: 5px; }
.ticket-detalles { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; margin: 18px 0; border-block: 2px dotted; font-size: 10px; }
.ticket-artesanal { text-align: center; font-size: clamp(18px, 2vw, 24px); font-weight: 800; }
.ticket-origen { text-align: center; font-weight: 800; border-block: 2px dotted; margin: 10px 0; padding: 7px 0; font-size: 14px; letter-spacing: 2px; }
.ticket-instagram { font: 700 28px var(--font-display); text-align: center; margin: 18px 0; }
#ticket-barras svg { display: block; width: 90%; height: 46px; margin: auto; fill: #1e1b33; }
#ticket-identificador, .ticket-url { text-align: center; font-size: 10px; margin-top: 5px; }
.ticket-tabla { border-collapse: collapse; width: 100%; margin: 24px 0 18px; font-size: 10px; table-layout: fixed; }
.ticket-tabla th, .ticket-tabla td { padding: 10px 3px; border-bottom: 1px solid #1e1b3355; text-align: left; overflow-wrap: anywhere; vertical-align: top; }
.ticket-tabla th:first-child { width: 11%; }
.ticket-tabla th:nth-child(2) { width: 40%; }
.ticket-tabla th:nth-child(3) { width: 13%; }
.ticket-tabla th:last-child { width: 36%; }
.ticket-tabla td:last-child, .ticket-tabla th:last-child { text-align: right; }
.ticket-tabla .vacio { text-align: center; }
.ticket-tabla a { text-decoration: underline; }
.ticket-totales { margin-left: auto; font-size: 10px; }
.ticket-totales div { display: flex; justify-content: flex-end; gap: 12px; padding: 8px 0; text-align: right; }
.ticket-totales dt { font-weight: 800; }
.ticket-totales dd { margin: 0; min-width: 110px; }
.ticket-totales small { display: block; font-size: 9px; }
.ticket-gracias { text-align: center; font-size: 12px; font-weight: 800; margin: 24px 0; }
.ticket .boton { background: #1e1b33; border-color: #1e1b33; color: #f4f2e6; }
.ticket .boton:disabled { opacity: .55; cursor: default; }
.ticket > .letra-pequena { text-align: center; margin-top: 12px; }
@media (max-width: 850px) {
  .llavero-fijo { width: 95px; right: 0; top: -18px; }
  .hero { column-gap: 16px; }
  .hero-copy h2 { font-size: 24px; }
  .hero .acciones { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .hero { height: 100svh; min-height: 640px; padding: 120px 16px 0; grid-template-columns: 1fr 1fr; grid-template-rows: 32px minmax(170px, 1fr) auto 25px; gap: 8px; }
  .hero-superior { padding-right: 55px; }
  .hero-superior .sello { display: none; }
  .hero-titulo { align-self: center; }
  .hero-titulo h1 { font-size: 80px; }
  .hero-titulo h1 span { font-size: 8px; letter-spacing: .05em; }
  .hero-objeto { grid-row: 2; }
  .hero-pieza { height: min(calc(100% - 52px), 280px); bottom: 20px; max-width: calc(100% - 16px); }
  .hero-copy { grid-column: 1 / -1; grid-row: 3; padding: 0; }
  .hero-copy h2 { font-size: 23px; }
  .hero-copy h2 br { display: none; }
  .hero .acciones { flex-wrap: nowrap; }
  .hero-pie { font-size: 6px; }
  .llavero-fijo { top: 105px; right: -8px; width: 72px; }
  .llavero-fijo::before { content: ""; position: absolute; width: 2px; height: 140px; bottom: 95%; left: 50%; background: #8e9a3d; }
  .pedido { padding: 60px 16px; gap: 36px; }
  .ticket { width: 100%; max-width: 470px; padding: 26px 18px; }
  .nosotros { gap: 25px; }
}
@media (max-width: 400px) {
  .hero-pieza { height: min(calc(100% - 72px), 240px); left: calc(50% - 8px); }
}

/* La cinta ocupa su propio espacio entre el hero y Sobre TAI. */
.cinta-contenedor { width: 100%; padding-block: 24px; }
.cinta-vidrio { display: block; width: 100%; height: auto; object-fit: contain; }
.proceso-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../assets/marca/fondo-ondas.webp") center / cover no-repeat; transform: scale(1.08); }
.variantes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.variantes button { border: 1px solid #6e3427; border-radius: 999px; padding: 8px 14px; background: transparent; color: #6e3427; font: inherit; cursor: pointer; }
.variantes button[aria-pressed="true"] { background: #6e3427; color: #fffdf7; }
.producto-simple.elevada { box-shadow: 0 20px 30px -10px rgba(110, 52, 39, 0.15); }

/* La impresora y el recorte comparten plano: el papel nace dentro de la boca. */
.pedido { grid-template-columns: minmax(0, 1fr); }
.pedido-composicion {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  min-width: 0;
  width: 100%;
  perspective: 1000px;
  transform-origin: 50% 20%;
}
.impresora {
  --margen-balanceo: 180px;
  position: relative;
  width: 100%;
  min-width: 0;
  align-self: start;
  padding-top: 6.7388%;
  transform: rotateY(-15deg) rotateZ(-3deg);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}
.impresora::before {
  content: "";
  position: absolute;
  z-index: 4;
  /* La altura de la factura es dinámica; el cuerpo depende solo de su ancho. */
  top: 0;
  left: 1%;
  width: 98%;
  aspect-ratio: 6.2;
  border-radius: 22% / 40%;
  background: linear-gradient(175deg, #f6dce5 18%, #d8a0b5 70%, #a86787);
  transform: translateY(12px) translateZ(-8px);
  box-shadow: 8px 22px 25px -12px #71334855;
  pointer-events: none;
}
.impresora-ranura {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 3px #80324a26);
  pointer-events: none;
}
.impresora-recorte {
  position: relative;
  overflow: hidden;
  width: calc(100% + var(--margen-balanceo) * 2);
  margin-inline: calc(var(--margen-balanceo) * -1);
  padding: 0 var(--margen-balanceo) var(--margen-balanceo);
  perspective: 1000px;
  perspective-origin: 50% 0;
}
.impresora .ticket {
  width: 80%;
  max-width: 470px;
  margin: 0 auto;
  /* Con el plano de la impresora, la diagonal visible ronda los -6°. */
  transform: translateZ(12px) rotateY(25deg) rotateX(3deg) rotateZ(-3deg);
  transform-origin: 50% 0;
  transform-style: flat;
  isolation: isolate;
  box-shadow: 12px 24px 28px #6e34272b;
}
.impresora .ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  transform: none;
  background:
    linear-gradient(114deg, transparent 12%, #796f5c20 15%, #fffdf58a 17%, transparent 21% 60%, #74695920 65%, #fffdf570 67%, transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='520'%3E%3Cfilter id='papel'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.009 .016' numOctaves='4' seed='12' result='ruido'/%3E%3CfeDiffuseLighting in='ruido' lighting-color='%23ffffff' surfaceScale='7' diffuseConstant='1'%3E%3CfeDistantLight azimuth='45' elevation='42'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23papel)' d='M0 0h360v520H0z'/%3E%3C/svg%3E") center / 360px 520px;
  opacity: .32;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}
.impresora .ticket .boton { min-height: 48px; touch-action: manipulation; }
#pedido .carta-perspectiva {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 30px auto 0;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4.5;
}
#pedido .carta-holo {
  border-radius: 1.5rem;
  border: 7px solid #fff0b5;
  background: #fffdf5;
  box-shadow: 10px 24px 38px #6e342730, 0 4px 8px #6e342712;
}
@media (max-width: 700px) {
  .pedido { padding-inline: 16px; }
  .pedido-composicion { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .impresora { width: 94%; margin-inline: auto; transform: rotateY(-7.5deg) rotateZ(-1.5deg); }
  .impresora .ticket { padding: 26px 14px; transform: translateZ(6px) rotateY(12.5deg) rotateX(1.5deg) rotateZ(-1.5deg); }
  #pedido .carta-perspectiva { grid-column: 1; grid-row: 2; width: min(100%, 320px); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pedido-composicion { transform: none !important; }
}

/* Contacto y pedido comparten una sola base, incluida el área segura del teléfono. */
.acciones-flotantes {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  /* Reserva la cabeza y su recorrido de hover sobre el botón. */
  padding-top: 44px;
}
.acciones-flotantes[hidden] { display: none; }
.acciones-flotantes .carrito-flotante { position: static; }
.boton-whatsapp {
  overflow: visible;
  position: relative;
  isolation: isolate;
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  color: #fff;
}
.whatsapp-circulo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #25d366;
  box-shadow: 0 5px 20px #128c7e30;
}
.whatsapp-circulo svg { width: 31px; height: 31px; }
.whatsapp-coky {
  position: absolute;
  width: 108%;
  height: auto;
  left: -4%;
  /* Asoma el 84 % de la cabeza (160 × 108); el círculo tapa la base. */
  top: -61%;
  pointer-events: none;
  image-rendering: auto;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.boton-whatsapp:focus-visible { outline: 3px solid var(--fudge); outline-offset: 5px; }
@keyframes brillo-whatsapp {
  from { box-shadow: 0 0 0 0 #25d36670; }
  to { box-shadow: 0 0 0 18px #25d36600; }
}
@media (prefers-reduced-motion: no-preference) {
  .boton-whatsapp:focus-visible .whatsapp-coky { transform: translateY(-5px) rotate(5deg); }
  .boton-whatsapp:focus-visible .whatsapp-circulo { animation: brillo-whatsapp .7s ease-out; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .boton-whatsapp:hover .whatsapp-coky { transform: translateY(-5px) rotate(5deg); }
  .boton-whatsapp:hover .whatsapp-circulo { animation: brillo-whatsapp .7s ease-out; }
}
@media (max-width: 700px) {
  .acciones-flotantes {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    gap: 10px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }
  .acciones-flotantes.acciones-ocultas {
    opacity: 0;
    transform: translateY(16px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  }
  .boton-whatsapp { width: 52px; height: 52px; flex-basis: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-coky, .acciones-flotantes, .acciones-flotantes.acciones-ocultas { transition: none; }
}
