/* Portado de la maqueta ac-mezcla (paleta menta) una sola vez (78bbddd); desde entonces se edita aquí. */
/* Las piezas que se repiten: el botón, el móvil, la pegatina del precio, la tarjeta de sitio, la servilleta, el
   salvamanteles, la figura y la invitación ampliada. Cada una con sus estados: reposo, encima (solo con ratón),
   pulsado, foco de teclado y desactivado. */

/* ---------- El botón: píldora del acento con la flecha en su propio círculo ---------- */
.listachan .accion { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.listachan .boton {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  min-height: 60px; padding: 6px 7px 6px 24px;
  border: 2px solid var(--acento-borde); border-radius: 999px;
  background: var(--acento); color: var(--acento-texto);
  font: 400 22px/1.1 var(--letra-caja); letter-spacing: .005em; text-align: left; text-decoration: none;
  box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .32), 1px 2px 2px rgb(var(--sombra) / .2), 4px 10px 16px -8px rgb(var(--sombra) / .6);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.listachan .boton-texto { padding-block: 4px; }
.listachan .boton-icono {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--acento-icono);
  transition: transform 200ms var(--ease-out);
}
.listachan .boton-icono .ico { stroke-width: 2.4; }
.listachan .boton:active { transform: scale(.97); }
.listachan .boton:focus-visible { outline: 3px solid var(--tinta); outline-offset: 4px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .listachan .boton:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .32), 1px 3px 3px rgb(var(--sombra) / .2), 6px 16px 22px -10px rgb(var(--sombra) / .62);
  }
  .listachan .boton:hover .boton-icono { transform: translateX(3px); }
  .listachan .boton:active { transform: scale(.97); }
}
/* Venta cerrada: «Muy pronto». No se hunde ni se levanta: papel con el canto a trazos y el reloj. aria-disabled lo
   deja en el orden del tabulador para que el lector diga por qué. */
.listachan .boton--pronto {
  padding: 6px 24px 6px 7px; gap: 12px;
  background: var(--papel); color: var(--tinta); border: 2.5px dashed var(--tinta);
  box-shadow: none; cursor: not-allowed;
}
.listachan .boton--pronto .boton-icono { background: var(--papel-2); }
.listachan .boton--pronto:active, .listachan .boton--pronto:hover { transform: none; box-shadow: none; }
.listachan .boton--pronto:hover .boton-icono { transform: none; }

/* ---------- El móvil: marco de grafito, la captura real dentro, tumbado en la mesa ---------- */
.listachan .movil {
  --ancho: 220px;
  position: relative; display: block; width: var(--ancho); max-width: 100%;
  margin: 0; padding: 6px; border: 0; border-radius: var(--radio-movil);
  background: linear-gradient(150deg, #50565C, #1D2024 38%, #0F1113);
  color: inherit; font: inherit; text-align: left;
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / .14),
    1px 3px 2px -1px rgb(var(--sombra) / .5),
    8px 16px 22px -10px rgb(var(--sombra) / .55);
}
.listachan .movil::after { /* el botón del lado */
  content: ""; position: absolute; right: -2px; top: 21%; width: 3px; height: 8%;
  border-radius: 0 3px 3px 0; background: #2A2E33;
}
.listachan .movil-pantalla { position: relative; display: block; overflow: hidden; border-radius: var(--radio-pantalla); aspect-ratio: 390 / 844; background: #FFFFFF; }
.listachan .movil-pantalla img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.listachan button.movil { cursor: zoom-in; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.listachan button.movil:active { transform: scale(.98); }
.listachan button.movil:focus-visible { outline: 3px solid var(--tinta); outline-offset: 5px; border-radius: calc(var(--radio-movil) + 4px); }
.listachan .movil-chapa {
  position: absolute; right: 14px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 14px 4px 10px;
  border-radius: 999px; background: var(--tinta); color: #FFFFFF;
  font: 700 15px/1 var(--letra);
  box-shadow: 0 2px 6px rgb(var(--sombra) / .35);
  transition: background-color 160ms ease, color 160ms ease, transform 200ms var(--ease-out);
}
.listachan .movil-chapa .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .listachan button.movil:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14), 2px 5px 4px -1px rgb(var(--sombra) / .4), 12px 24px 28px -12px rgb(var(--sombra) / .55);
  }
  .listachan button.movil:hover .movil-chapa { background: var(--acento); color: var(--acento-texto); transform: scale(1.04); }
  .listachan button.movil:active { transform: scale(.98); }
}

/* ---------- La pegatina del precio: troquelada, con el canto blanco del vinilo ---------- */
/* Lo bastante grande para que «IVA incluido» vaya a 15 px, el mínimo de la página */
.listachan .pegatina-precio {
  --lado: 120px;
  position: absolute; z-index: 6;
  display: block; width: var(--lado); height: var(--lado); padding: 5px; border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgb(var(--sombra) / .12), 1px 2px 1px rgb(var(--sombra) / .22), 3px 8px 12px -4px rgb(var(--sombra) / .45);
  rotate: -9deg;
}
.listachan .pegatina-cara {
  display: grid; place-content: center; justify-items: center; gap: 4px;
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(70% 60% at 30% 24%, rgb(255 255 255 / .3), rgb(255 255 255 / 0) 62%), var(--acento);
  color: var(--acento-texto); text-align: center;
}
.listachan .pegatina-num { font: 400 40px/.9 var(--letra-caja); white-space: nowrap; }
.listachan .pegatina-iva { font: 700 15px/1.1 var(--letra); white-space: nowrap; }

/* ---------- La figura de vinilo ---------- */
.listachan .figura img { width: 100%; height: auto; }
.listachan .figura { filter: drop-shadow(0 6px 5px rgb(var(--sombra) / .26)) drop-shadow(0 2px 1.5px rgb(var(--sombra) / .3)); }

/* ---------- La tarjeta de sitio: cartulina blanca con el nombre y una línea ---------- */
.listachan .tarjeta {
  display: grid; align-content: start; gap: 4px; padding: 14px 18px 16px;
  background: var(--papel); color: var(--tinta); border-radius: var(--radio-papel); box-shadow: var(--sombra-baja);
}
.listachan .tarjeta-titulo { display: block; font: 400 24px/1.1 var(--letra-caja); }
.listachan .tarjeta-linea { display: block; color: var(--tinta-suave); font-size: 16px; line-height: 1.4; }

/* ---------- La servilleta de plastilina y el móvil encima (un sitio de la mesa) ---------- */
.listachan .servilleta, .listachan .servilleta img { display: block; width: 100%; height: auto; }
.listachan .sitio { position: relative; display: grid; margin: 0; }
.listachan .sitio-mesa { position: relative; height: var(--alto-sitio, 330px); }
.listachan .sitio-mesa .servilleta { position: absolute; left: 6%; top: 0; width: 78%; max-width: 300px; rotate: 5deg; }
.listachan .sitio-mesa .movil { --ancho: min(54%, 200px); position: absolute; left: 18%; top: 22px; rotate: -5deg; }
.listachan .sitio .tarjeta { position: relative; z-index: 2; margin-top: -22px; justify-self: start; max-width: 34ch; }

/* ---------- El salvamanteles de papel, con el festón de medias lunas ---------- */
.listachan .salvamanteles {
  --feston: 9px;
  position: relative; isolation: isolate;
  background: var(--papel);
  padding: 28px 22px 24px;
  filter: var(--sombra-filtro);
}
.listachan .salvamanteles::before {
  --d: calc(var(--feston) * 2);
  --c: radial-gradient(closest-side, var(--papel) 94%, rgb(255 255 255 / 0));
  content: ""; position: absolute; z-index: -1; inset: calc(var(--feston) * -1); pointer-events: none;
  background:
    var(--c) 0 0 / var(--d) var(--d) round no-repeat,
    var(--c) 0 100% / var(--d) var(--d) round no-repeat,
    var(--c) 0 0 / var(--d) var(--d) no-repeat round,
    var(--c) 100% 0 / var(--d) var(--d) no-repeat round;
}
.listachan .salvamanteles::after { /* el calado del papel */
  content: ""; position: absolute; z-index: -1; inset: 7px; pointer-events: none;
  border: 2px dotted var(--mantel-cruce); border-radius: var(--radio-papel);
}

/* ---------- La invitación ampliada ---------- */
.listachan .ampliada {
  width: min(430px, calc(100vw - 24px)); max-height: min(92dvh, 900px);
  margin: auto; padding: 0; border: 0; border-radius: var(--radio-pantalla);   /* la pantalla del móvil, en grande */
  background: var(--papel); color: var(--tinta);
  box-shadow: 0 30px 60px -20px rgb(var(--sombra) / .6);
  overflow: hidden; overscroll-behavior: contain;
}
.listachan .ampliada[open] { display: flex; flex-direction: column; }
.listachan .ampliada::backdrop { background: rgb(var(--sombra) / .62); }
.listachan .ampliada-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 4px 20px; }
.listachan .ampliada-titulo { font-size: 26px; }
.listachan .ampliada-nota { padding: 0 20px 12px; color: var(--tinta-suave); font-size: 15px; line-height: 1.4; }
.listachan .ampliada-rollo { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 12px 12px; }
/* Mientras la entera carga (ampliar.js, data-cargando), la primera pantalla de la misma invitación, a la misma escala. */
.listachan .ampliada-rollo picture { display: block; border-radius: var(--radio-papel); background: var(--anticipo, none) top / 100% auto no-repeat; }
.listachan .ampliada-rollo img[data-cargando] { opacity: 0; }
.listachan .ampliada-rollo img { width: 100%; border-radius: var(--radio-papel); box-shadow: 0 0 0 1px rgb(var(--sombra) / .14); }
.listachan .ampliada-rollo:focus-visible { outline-offset: -3px; }
.listachan .cerrar {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--papel-2); color: var(--tinta); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.listachan .cerrar:active { transform: scale(.94); }
.listachan .cerrar:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) {
  .listachan .cerrar:hover { background: var(--tinta); color: var(--papel); }
}
