/* LaFeriaDeMary: estilos de la tienda. Gótico romántico azul (noche, luna, mariposas, plata y pergamino),
   solo modo oscuro. Pensado primero para el celular (375 px) y después para pantallas grandes.
   El verde queda reservado para WhatsApp y el ahorro con transferencia. */

/* ------------------------------------------------------------ fuentes locales (licencia OFL en fuentes/OFL-*.txt) */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fuentes/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mystery Quest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/MysteryQuest-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "IM Fell English SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/IMFeENsc28P.ttf") format("truetype");
}

/* ------------------------------------------------------------ paleta y medidas */

:root {
  color-scheme: dark;
  /* paleta de la temática */
  --noche: #05070c;
  --noche-2: #0a0f1a;
  --noche-3: #111a2b;
  --luna: #3fa9f5;
  --luna-clara: #7cc8ff;
  --brillo: #bfe6ff;
  --azul-profundo: #1b4f8a;
  --plata: #9aa6b2;
  --plata-clara: #c9d1d9;
  --pergamino: #e6e8ea;
  --pergamino-2: #cfd3d6;
  --tinta: #0d1420;
  --tinta-2: #2a3546;
  --hueso: #f2f4f5;

  /* usos */
  --texto: var(--hueso);
  --texto-2: var(--plata-clara);
  --suave: #a9b4c0;              /* 8:1 sobre la noche */
  --borde: rgba(154, 166, 178, .2);
  --borde-fuerte: rgba(154, 166, 178, .38);
  --borde-luna: rgba(124, 200, 255, .5);
  --vidrio: rgba(10, 15, 26, .66);
  --vidrio-tarjeta: rgba(10, 15, 26, .86);
  --vidrio-ventana: rgba(8, 12, 21, .94);
  --campo: rgba(255, 255, 255, .045);
  --campo-hover: rgba(255, 255, 255, .07);
  --degrade-luna: linear-gradient(135deg, #d6f0ff 0%, #7cc8ff 42%, #3fa9f5 100%);
  --degrade-plata: linear-gradient(135deg, #f2f4f5 0%, #c9d1d9 45%, #9aa6b2 100%);
  --boton: var(--degrade-luna);
  --boton-hover: linear-gradient(135deg, #e8f6ff 0%, #9ad6ff 42%, #58b6f7 100%);
  --boton-texto: var(--tinta);
  --ahorro: #6fd39c;
  --ahorro-suave: rgba(111, 211, 156, .12);
  --whatsapp: #167c45;
  --whatsapp-hover: #1a8c4e;
  --peligro: #ff9a92;
  --peligro-suave: rgba(255, 143, 134, .12);
  --aviso: #ffd889;
  --aviso-suave: rgba(255, 216, 137, .1);
  --foco: var(--luna-clara);
  --anillo-foco: rgba(63, 169, 245, .35);
  --velo: rgba(2, 4, 9, .74);
  --resplandor: 0 0 0 1px rgba(124, 200, 255, .4), 0 0 26px -4px rgba(63, 169, 245, .6);
  --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  --sombra-alta: 0 2px 6px rgba(0, 0, 0, .45), 0 20px 44px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 200, 255, .14);
  --sombra-ventana: 0 32px 90px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(154, 166, 178, .16), 0 0 60px -20px rgba(63, 169, 245, .35);
  --sombra-flotante: 0 12px 30px -8px rgba(0, 0, 0, .75), 0 0 24px -6px rgba(63, 169, 245, .55);
  --pergamino-fondo:
    url("/tema/pergamino.svg"),
    radial-gradient(130% 120% at 50% 40%, transparent 55%, rgba(60, 72, 88, .32) 100%),
    linear-gradient(170deg, #eef0f1 0%, #e6e8ea 40%, #d9dde0 75%, #cfd3d6 100%);

  --radio: 16px;
  --radio-chico: 12px;
  --radio-grande: 24px;
  --ancho: 1240px;
  --curva: cubic-bezier(.2, .8, .2, 1);
  --fuente: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fuente-logo: "Mystery Quest", "IM Fell English SC", Georgia, serif;
  --fuente-cartel: "IM Fell English SC", Georgia, "Times New Roman", serif;
}

/* ------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  background: transparent; /* el cielo animado (fondo.css) queda detrás */
  color: var(--texto);
  font: 16px/1.5 var(--fuente);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.bloqueado { overflow: hidden; }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

a { color: var(--luna-clara); }

h1, h2, h3 { letter-spacing: -.01em; }

:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: rgba(63, 169, 245, .4); color: var(--hueso); }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.saltar {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--pergamino); color: var(--tinta); padding: 12px 16px; border-radius: 999px;
  font-weight: 700; box-shadow: var(--sombra-alta);
}
.saltar:focus { top: 12px; }

.titulo-gotico { font-family: var(--fuente-cartel); font-weight: 400; letter-spacing: .02em; }

/* pergamino: degradé gris claro con textura sutil y bordes apenas tostados */
.pergamino {
  background: var(--pergamino-fondo);
  background-size: 240px 240px, 100% 100%, 100% 100%;
  color: var(--tinta);
}

/* ------------------------------------------------------------ aviso de configuración (para la dueña) */

.aviso-config {
  position: relative;
  z-index: 25;
  background: var(--pergamino-fondo);
  background-size: 240px 240px, 100% 100%, 100% 100%;
  color: var(--tinta);
  border-bottom: 2px solid var(--azul-profundo);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* ------------------------------------------------------------ encabezado */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(5, 7, 12, .82), rgba(5, 7, 12, .6));
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  padding: 10px 16px 12px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  transition: border-color .25s ease, box-shadow .25s ease;
}
.encabezado.con-scroll {
  border-bottom-color: var(--borde);
  box-shadow: 0 10px 30px -18px rgba(63, 169, 245, .5);
}

.encabezado-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "marca carrito" "buscador buscador";
  align-items: center;
  gap: 10px 12px;
  max-width: var(--ancho);
  margin: 0 auto;
}
@media (min-width: 860px) {
  .encabezado { padding: 14px 24px; }
  .encabezado-fila {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "marca buscador carrito";
    gap: 32px;
  }
}

.marca {
  grid-area: marca;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  color: var(--texto);
  text-decoration: none;
  border-radius: 999px;
}

/* "LaFeria" en letra gótica grande y "DeMary" en versalitas antiguas azul luna */
.marca-texto { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.marca-nombre {
  font-family: var(--fuente-logo);
  font-size: 27px;
  line-height: .95;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--degrade-plata);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(124, 200, 255, .28));
}
.marca-sufijo {
  margin-top: 3px;
  font-family: var(--fuente-cartel);
  font-size: 14px;
  letter-spacing: .26em;
  color: var(--luna-clara);
  white-space: nowrap;
}
@media (min-width: 860px) { .marca-nombre { font-size: 31px; } }

/* ------------------------------------------------------------ monograma (M con mariposa) */

.logo-marca {
  flex: none;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 200, 255, .22), 0 0 18px -4px rgba(63, 169, 245, .55);
  transition: box-shadow .35s ease, transform .35s var(--curva);
}
@media (min-width: 860px) { .logo-marca { width: 48px; height: 48px; } }
.logo-marca svg { display: block; width: 100%; height: 100%; overflow: visible; }

.lm-anillo {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 32px 32px;
  animation: lm-dibujar 1.2s var(--curva) .1s forwards;
}
.lm-trazo {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: lm-dibujar .6s cubic-bezier(.65, 0, .35, 1) .3s forwards;
}
.lm-v { animation-duration: .9s; animation-delay: .7s; }
.lm-der { animation-delay: 1.35s; }
.lm-pies { animation-duration: .4s; animation-delay: 1.75s; }
.lm-rulos { animation-duration: .5s; animation-delay: 1.9s; }
.lm-filete { opacity: 0; animation: lm-aparecer .4s ease 2.1s forwards; }
.lm-mariposa {
  transform-box: fill-box;
  transform-origin: center;
  /* entra una vez y después aletea cada 7 s, junto con el destello */
  animation: lm-mariposa-entra .6s var(--curva) 1.9s both, lm-aletear 7s ease-in-out 2.6s infinite;
}
.lm-brillo { animation: lm-brillo 7s ease-in-out 2.6s infinite; }

@keyframes lm-dibujar { to { stroke-dashoffset: 0; } }
@keyframes lm-aparecer { to { opacity: 1; } }
@keyframes lm-mariposa-entra {
  from { transform: translateY(6px) scale(0); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes lm-aletear {
  0%, 12%, 100% { transform: scaleX(1); }
  4% { transform: scaleX(.35); }
  8% { transform: scaleX(.9); }
  10% { transform: scaleX(.5); }
}
@keyframes lm-brillo {
  0% { transform: translateX(0); }
  16%, 100% { transform: translateX(104px); }
}

@media (hover: hover) and (pointer: fine) {
  .marca:hover .logo-marca {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 200, 255, .55), 0 0 26px -2px rgba(63, 169, 245, .7);
  }
}

/* ------------------------------------------------------------ buscador y carrito de arriba */

.buscador {
  grid-area: buscador;
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: center;
}
.buscador input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 44px;
  border: 1px solid var(--borde-fuerte);
  border-radius: 999px;
  background: rgba(10, 15, 26, .7);
  font-size: 16px; /* 16 px: el iPhone no hace zoom al tocar */
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.buscador input::placeholder { color: var(--suave); opacity: 1; }
.buscador input:hover { border-color: rgba(154, 166, 178, .55); }
.buscador input:focus { background: rgba(10, 15, 26, .92); border-color: var(--luna-clara); box-shadow: 0 0 0 4px var(--anillo-foco); outline: none; }
.buscador-lupa { position: absolute; left: 17px; top: 14px; color: var(--plata); pointer-events: none; }

.boton-carrito-arriba {
  grid-area: carrito;
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid var(--borde-fuerte);
  background: rgba(10, 15, 26, .7);
  color: var(--texto);
  transition: background .2s ease, border-color .2s ease, transform .2s var(--curva), box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .boton-carrito-arriba:hover { border-color: var(--borde-luna); box-shadow: var(--resplandor); }
}
.boton-carrito-arriba:active { transform: scale(.96); }

.contador {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--degrade-luna);
  color: var(--tinta);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.boton-carrito-arriba .contador { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--noche); }

/* ------------------------------------------------------------ portada */

/* La portada es una sola columna centrada: el cartel con el nombre (y la mascota, si hay)
   y debajo la fila de tarjetas de beneficios. clip: las esquinas y la mascota no generan
   scroll horizontal. */
.portada { padding: 18px 16px 0; width: 100%; overflow-x: clip; }
@media (min-width: 860px) { .portada { padding: 28px 24px 0; } }

.portada-interior {
  position: relative;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 30px 18px 24px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  background:
    radial-gradient(70% 85% at 50% 0%, rgba(63, 169, 245, .16), transparent 62%),
    radial-gradient(60% 50% at 50% 100%, rgba(124, 200, 255, .07), transparent 70%),
    linear-gradient(180deg, rgba(10, 15, 26, .62), rgba(5, 7, 12, .72));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--sombra), inset 0 0 0 6px rgba(5, 7, 12, .35), inset 0 0 0 7px rgba(154, 166, 178, .12);
}
@media (min-width: 860px) {
  .portada-interior { padding: 46px 56px 42px; }
}

/* enredaderas plateadas en las esquinas */
.esquina {
  position: absolute;
  width: 92px;
  height: 92px;
  pointer-events: none;
  opacity: .9;
  filter: drop-shadow(0 0 6px rgba(124, 200, 255, .25));
}
.esquina-ai { top: -8px; left: -8px; }
.esquina-ad { top: -8px; right: -8px; transform: scaleX(-1); }
.esquina-bi { bottom: -8px; left: -8px; transform: scaleY(-1); }
.esquina-bd { bottom: -8px; right: -8px; transform: scale(-1, -1); }
@media (min-width: 860px) { .esquina { width: 128px; height: 128px; top: auto; } .esquina-ai, .esquina-ad { top: -10px; } }

/* columna centrada con un ancho cómodo de leer (no se estira a todo el ancho de la pantalla) */
.portada-texto {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 0 auto;
}

/* cartel colgante de pergamino con el nombre */
.cartel {
  position: relative;
  margin: 18px 4px 0;
  padding: 20px 18px 18px;
  text-align: center;
  border-radius: 6px 6px 10px 10px / 6px 6px 14px 14px;
  box-shadow:
    inset 0 0 0 1px rgba(13, 20, 32, .12),
    inset 0 0 22px rgba(60, 72, 88, .28),
    0 18px 36px -16px rgba(0, 0, 0, .85),
    0 0 40px -12px rgba(124, 200, 255, .35);
  transform: rotate(-1deg);
}
/* las dos "sogas" de enredadera de las que cuelga */
.cartel::before, .cartel::after {
  content: "";
  position: absolute;
  top: -22px;
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, transparent, var(--plata-clara) 40%, var(--plata));
  box-shadow: 0 0 6px rgba(124, 200, 255, .5);
}
.cartel::before { left: 18%; transform: rotate(4deg); }
.cartel::after { right: 18%; transform: rotate(-3deg); }

.cartel-antetitulo {
  margin: 0;
  font-family: var(--fuente-cartel);
  font-size: 14px;
  letter-spacing: .28em;
  color: var(--azul-profundo);
}
.cartel-titulo {
  margin: 4px 0 0;
  font-family: var(--fuente-logo);
  font-weight: 400;
  font-size: clamp(30px, 9vw, 68px);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--tinta);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
@media (min-width: 860px) {
  .cartel { padding: 28px 40px 24px; margin: 22px 10px 0; }
}

/* fila del cartel, centrada: en el celular y en pantallas medianas la mascota va arriba,
   sentada entre las dos sogas; desde 1100 px va al costado y el par queda centrado */
.cartel-fila {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  min-width: 0;
}
.cartel-fila > .cartel { align-self: stretch; }

.mascota-portada {
  position: relative;
  z-index: 1;
  order: -1;
  flex: none;
  width: 92px;
  height: 92px;
  margin: 0 0 -12px; /* apoya las patitas en el margen de arriba del cartel, sin tapar el texto */
  pointer-events: none;
  animation: mascota-flota 5.5s ease-in-out infinite alternate;
}
.mascota-portada-halo {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63, 169, 245, .45), rgba(63, 169, 245, .16) 55%, transparent 100%);
  filter: blur(4px);
  animation: mascota-halo 5.5s ease-in-out infinite alternate;
}
.mascota-portada-imagen {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(63, 169, 245, .65)) drop-shadow(0 6px 10px rgba(0, 0, 0, .5));
}
@keyframes mascota-flota {
  from { transform: translateY(3px) rotate(-2deg); }
  to { transform: translateY(-7px) rotate(2deg); }
}
@keyframes mascota-halo { from { opacity: .75; } to { opacity: 1; } }

@media (min-width: 860px) {
  .mascota-portada { width: 112px; height: 112px; margin-bottom: -16px; }
}
@media (min-width: 1100px) {
  /* con la mascota al costado la fila se ensancha lo justo para que el cartel no se achique */
  .cartel-fila.con-mascota { flex-direction: row; justify-content: center; gap: 4px; max-width: 880px; }
  .con-mascota > .cartel { flex: 1 1 auto; min-width: 0; }
  .con-mascota .mascota-portada { order: 0; width: 150px; height: 150px; margin: 22px -6px 0 0; }
}

/* adorno entre el cartel y las tarjetas (usa el mismo separador de los filtros) */
.separador.separador-portada { width: 100%; max-width: 620px; padding: 2px 0 0; }
/* sin tarjetas el adorno sobra */
.separador-portada:has(+ .beneficios[hidden]) { display: none; }

/* tarjetas de beneficios: centradas, y si la última fila queda incompleta también va al medio */
.beneficios {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.beneficio {
  display: flex;
  flex: 1 1 100%;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-chico);
  background: rgba(10, 15, 26, .55);
  box-shadow: inset 0 1px 0 rgba(201, 209, 217, .06);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--suave);
  overflow-wrap: anywhere;
}
/* si el ícono no existe en /iconos.svg queda el lugar vacío, sin correr el texto */
.beneficio svg { flex: none; color: var(--luna-clara); }
.beneficio-icono { width: 24px; height: 24px; overflow: visible; }
.beneficio strong { color: var(--texto); font-size: 13.5px; font-weight: 700; }
/* desde 640 px, de a tres por fila (con 1, 2 o 4 tarjetas, de a dos para que no queden sueltas) */
@media (min-width: 640px) {
  .beneficios { gap: 14px; }
  .beneficio { flex: 0 1 calc((100% - 28px) / 3); padding: 14px 16px; }
  .beneficios[data-cantidad="2"] .beneficio,
  .beneficios[data-cantidad="4"] .beneficio { flex-basis: calc((100% - 14px) / 2); }
  .beneficios[data-cantidad="1"] .beneficio { flex-basis: 100%; max-width: 480px; }
  .beneficio strong { display: block; font-size: 15px; }
  .beneficio svg { width: 28px; height: 28px; }
}

/* ------------------------------------------------------------ filtros: sección, categorías y talles */

.filtros { max-width: var(--ancho); width: 100%; margin: 0 auto; padding: 22px 0 0; }
@media (min-width: 860px) { .filtros { padding: 30px 8px 0; } }

.secciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}
@media (min-width: 860px) { .secciones { max-width: 720px; margin: 0 auto; gap: 16px; } }

.seccion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--borde-fuerte);
  background: linear-gradient(180deg, rgba(17, 26, 43, .82), rgba(8, 12, 22, .9));
  color: var(--texto-2);
  text-align: left;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s var(--curva), color .2s ease;
}
.seccion::after {
  /* brillo de luna en el elegido */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 0% 0%, rgba(124, 200, 255, .22), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.seccion-icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(63, 169, 245, .1);
  border: 1px solid rgba(124, 200, 255, .3);
  color: var(--luna-clara);
}
.seccion-texto { min-width: 0; display: flex; flex-direction: column; }
.seccion-texto strong {
  font-family: var(--fuente-cartel);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--texto);
}
.seccion-texto small { font-size: 12.5px; color: var(--suave); margin-top: 3px; }
@media (min-width: 860px) {
  .seccion { min-height: 84px; padding: 14px 18px; gap: 14px; }
  .seccion-texto strong { font-size: 23px; }
  .seccion-icono { width: 50px; height: 50px; }
}
@media (hover: hover) and (pointer: fine) {
  .seccion:hover { border-color: var(--borde-luna); transform: translateY(-1px); }
}
.seccion[aria-pressed="true"] {
  border-color: var(--luna-clara);
  box-shadow: var(--resplandor), inset 0 0 0 1px rgba(124, 200, 255, .25);
}
.seccion[aria-pressed="true"]::after { opacity: 1; }
.seccion[aria-pressed="true"] .seccion-icono { background: var(--degrade-luna); color: var(--tinta); border-color: transparent; }
.seccion[aria-pressed="true"] .seccion-texto small { color: var(--brillo); }

/* separador: rosa azul con dos líneas de enredadera con espinas */
.separador {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 16px 0;
  color: var(--plata);
}
.separador::before, .separador::after {
  content: "";
  flex: 1;
  max-width: 260px;
  height: 7px;
  background:
    linear-gradient(var(--plata), var(--plata)) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(201, 209, 217, .7) 22px 24px, transparent 24px 34px) center / 100% 7px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.separador::after { -webkit-mask-image: linear-gradient(270deg, transparent, #000 40%); mask-image: linear-gradient(270deg, transparent, #000 40%); }
.separador svg { flex: none; filter: drop-shadow(0 0 6px rgba(63, 169, 245, .6)); }

.chips {
  display: flex;
  gap: 8px;
  padding: 14px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 16px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--borde-fuerte);
  background: rgba(10, 15, 26, .78);
  color: var(--texto-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--borde-luna); color: var(--texto); }
}
.chip .chip-cantidad {
  color: var(--suave);
  font-weight: 600;
  font-size: 12px;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] {
  background: var(--degrade-luna);
  border-color: transparent;
  color: var(--tinta);
  box-shadow: 0 0 22px -6px rgba(63, 169, 245, .8);
}
.chip[aria-pressed="true"] .chip-cantidad { color: var(--azul-profundo); }

.talles { display: flex; align-items: center; padding-left: 16px; }
.talles-etiqueta {
  flex: none;
  font-family: var(--fuente-cartel);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--plata-clara);
}
.chips-talles { flex: 1; min-width: 0; padding-top: 8px; padding-left: 12px; }
.chips-talles .chip { min-height: 40px; min-width: 44px; justify-content: center; padding: 0 14px; font-size: 13.5px; }
@media (min-width: 860px) { .talles { padding-left: 24px; } }

/* ------------------------------------------------------------ catálogo */

.catalogo {
  flex: 1;
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 8px 16px 96px;
}
@media (min-width: 860px) { .catalogo { padding: 8px 24px 120px; } }
.catalogo:focus { outline: none; }

.barra-resultados {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px;
  scroll-margin-top: 140px;
}
.cantidad-resultados { margin: 0; color: var(--suave); font-size: 14px; font-weight: 500; min-width: 0; }

.orden {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 14px;
  color: var(--suave);
}
.orden select {
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
  padding: 0 38px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--borde-fuerte);
  background: rgba(10, 15, 26, .82);
  color: var(--texto);
  font-size: 14px;
  font-weight: 600;
  max-width: 180px;
  cursor: pointer;
}
.orden select:hover { border-color: var(--borde-luna); }
.orden select option { background: var(--noche-2); color: var(--texto); }
.orden::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.6px solid var(--plata-clara);
  border-bottom: 1.6px solid var(--plata-clara);
  transform: rotate(45deg);
  pointer-events: none;
}
@media (max-width: 400px) { .orden > span { display: none; } }

.grilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; } }

.cargando, .vacio {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--suave);
  padding: 48px 16px;
  border-radius: var(--radio-grande);
  background: var(--vidrio);
  border: 1px solid var(--borde);
}
.vacio strong { display: block; color: var(--texto); font-family: var(--fuente-cartel); font-weight: 400; font-size: 23px; margin-bottom: 6px; }
.vacio svg { display: block; margin: 0 auto 12px; filter: drop-shadow(0 0 10px rgba(63, 169, 245, .7)); }
.vacio .boton { margin-top: 18px; }

/* ------------------------------------------------------------ tarjeta de prenda */

.tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, rgba(17, 26, 43, .86), rgba(8, 12, 22, .92));
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  container-type: inline-size;
  transition: transform .35s var(--curva), box-shadow .35s var(--curva), border-color .35s ease;
}
/* vidrio esmerilado solo en pantallas grandes: en el celular, sobre un fondo animado, cuesta mucho */
@media (min-width: 960px) and (hover: hover) {
  .tarjeta {
    background: linear-gradient(180deg, rgba(17, 26, 43, .68), rgba(8, 12, 22, .8));
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
  }
}

.tarjeta-enlace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radio);
}
.tarjeta-enlace:focus-visible { outline-offset: 2px; border-radius: var(--radio); }

.tarjeta-foto {
  position: relative;
  margin: 6px 6px 0;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, #16243d, #05070c);
  overflow: hidden;
  isolation: isolate;
}
.tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--curva), opacity .3s ease;
}
.tarjeta-foto::after {
  /* viñeta suave para que la foto se funda con la noche */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(5, 7, 12, .45));
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta), 0 0 34px -10px rgba(63, 169, 245, .6); border-color: var(--borde-luna); }
  .tarjeta:hover .tarjeta-foto img { transform: scale(1.045); }
}

.etiqueta {
  position: absolute;
  left: 8px; top: 8px;
  z-index: 1;
  max-width: calc(100% - 16px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.etiqueta-agotado {
  background: rgba(5, 7, 12, .85);
  color: var(--hueso);
  border: 1px solid var(--borde-fuerte);
  font-family: var(--fuente-cartel);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .08em;
}
.etiqueta-ahorro { background: rgba(5, 7, 12, .82); color: var(--ahorro); border: 1px solid rgba(111, 211, 156, .35); }

.tarjeta-datos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 10px 10px;
  flex: 1;
}
@media (min-width: 640px) { .tarjeta-datos { padding: 14px 14px 12px; } }

.tarjeta-nombre {
  margin: 0;
  min-height: 2.7em;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--texto);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.talle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 200, 255, .5);
  background: rgba(63, 169, 245, .1);
  color: var(--brillo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.talle b { font-size: 13.5px; font-weight: 800; color: var(--hueso); }

/* precio en cartelito de pergamino con las puntas en cola de golondrina */
.precio-cartel {
  display: inline-block;
  margin-top: auto;
  padding: 4px 16px 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--tinta);
  background: var(--pergamino-fondo);
  background-size: 240px 240px, 100% 100%, 100% 100%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55));
}
@media (min-width: 640px) { .precio-cartel { font-size: 20px; } }
.tarjeta-transferencia { font-size: 12.5px; color: var(--ahorro); font-weight: 600; font-variant-numeric: tabular-nums; }
.tarjeta.sin-stock .tarjeta-foto img { opacity: .45; filter: grayscale(.7); }
.tarjeta.sin-stock .precio-cartel { opacity: .6; }

.tarjeta-agregar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin: 0 10px 10px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--borde-luna);
  background: rgba(63, 169, 245, .08);
  color: var(--brillo);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
@media (min-width: 640px) { .tarjeta-agregar { margin: 0 14px 14px; } }
@media (hover: hover) and (pointer: fine) {
  .tarjeta-agregar:hover { background: var(--boton); color: var(--boton-texto); border-color: transparent; box-shadow: 0 0 20px -4px rgba(63, 169, 245, .8); }
}
.tarjeta-agregar:active { transform: scale(.97); }
.tarjeta-sin-stock {
  margin: 0 10px 12px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--suave);
  border: 1px dashed var(--borde-fuerte);
  border-radius: 999px;
}
@media (min-width: 640px) { .tarjeta-sin-stock { margin: 0 14px 14px; } }

.mas { display: flex; justify-content: center; margin-top: 28px; }

/* ------------------------------------------------------------ botones */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--boton);
  color: var(--boton-texto);
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 24px -6px rgba(63, 169, 245, .7), 0 6px 16px -8px rgba(0, 0, 0, .8);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease, border-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .boton:not(:disabled):not([aria-disabled="true"]):hover { background: var(--boton-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 32px -4px rgba(63, 169, 245, .9); }
}
.boton:not(:disabled):active { transform: scale(.985); }
.boton:disabled, .boton[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }

.boton-secundario {
  background: rgba(10, 15, 26, .7);
  color: var(--texto);
  border-color: var(--borde-fuerte);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .boton-secundario:not(:disabled):hover { background: rgba(17, 26, 43, .9); border-color: var(--borde-luna); box-shadow: var(--resplandor); }
}

.boton-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 0 24px -8px rgba(111, 211, 156, .7); }
@media (hover: hover) and (pointer: fine) {
  .boton-whatsapp:not(:disabled):not([aria-disabled="true"]):hover { background: var(--whatsapp-hover); box-shadow: 0 0 30px -6px rgba(111, 211, 156, .8); }
}

.boton-texto {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none; border: 0; padding: 0 4px; color: var(--suave);
  font-size: 14px; font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--borde-fuerte);
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.boton-texto:hover { color: var(--texto); text-decoration-color: currentColor; }
.boton-ancho { width: 100%; }

.carrito-flotante {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 10px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--boton);
  color: var(--boton-texto);
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--sombra-flotante);
  animation: aparecer-abajo .4s var(--curva);
  transition: transform .2s var(--curva);
}
.carrito-flotante:active { transform: scale(.97); }
.carrito-flotante .contador {
  min-width: 28px; height: 28px; line-height: 28px; font-size: 13px;
  background: var(--noche);
  color: var(--brillo);
}
@keyframes aparecer-abajo { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------ ventanas (ficha, carrito, pedido) */

.capa {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fondo {
  position: absolute;
  inset: 0;
  background: var(--velo);
  animation: fundido .3s ease;
}
@media (min-width: 760px) {
  .fondo { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }

.ventana {
  position: relative;
  width: 100%;
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(63, 169, 245, .1), transparent 60%),
    var(--vidrio-ventana);
  border-radius: var(--radio-grande) var(--radio-grande) 0 0;
  box-shadow: var(--sombra-ventana);
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: subir .42s var(--curva);
}
@media (min-width: 760px) {
  .ventana { -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
}
@keyframes subir { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 760px) {
  .capa { align-items: center; padding: 32px; }
  .ventana { max-width: 980px; border-radius: 28px; max-height: 90vh; padding: 32px; animation-name: emerger; }
  .pedido { max-width: 660px; }
}
@keyframes emerger { from { transform: translateY(16px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

/* enredadera en la esquina de cada ventana */
.esquina-ventana {
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 84px;
  pointer-events: none;
  opacity: .75;
  z-index: 0;
}
@media (min-width: 760px) { .esquina-ventana { width: 110px; height: 110px; } }

.capa-lateral { justify-content: flex-end; align-items: stretch; }
.panel {
  display: flex;
  flex-direction: column;
  max-width: 460px;
  max-height: none;
  height: 100%;
  border-radius: 0;
  padding: 0;
  animation: entrar .42s var(--curva);
}
@media (min-width: 760px) {
  .capa-lateral { padding: 0; align-items: stretch; }
  .panel { max-height: none; border-radius: 28px 0 0 28px; padding: 0; animation-name: entrar; }
}
@keyframes entrar { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.cerrar {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--borde-fuerte);
  background: rgba(10, 15, 26, .9);
  color: var(--texto);
  transition: background .2s ease, transform .2s var(--curva), border-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cerrar:hover { border-color: var(--borde-luna); transform: rotate(90deg); }
}

.ventana-barra {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 0;
  display: flex;
  justify-content: flex-end;
}
.ventana-barra .cerrar { position: relative; top: -6px; right: -4px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .8); }
@media (min-width: 760px) { .ventana-barra .cerrar { top: -14px; right: -14px; } }

.panel-encabezado {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0 72px 0 26px;
  border-bottom: 1px solid var(--borde);
}
.panel-encabezado h2 { position: relative; margin: 0; font-size: 27px; color: var(--texto); }
.panel-encabezado .cerrar { top: 16px; right: 16px; }
.panel-encabezado .esquina-ventana { width: 64px; height: 64px; }
.panel-cuerpo {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ------------------------------------------------------------ ficha */

.ficha-grilla { position: relative; display: grid; gap: 20px; }
@media (min-width: 760px) { .ficha-grilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; } }

.galeria { position: relative; min-width: 0; margin: -20px -16px 0; }
@media (min-width: 760px) { .galeria { margin: 0; } }
.galeria-fotos {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: radial-gradient(circle at 50% 30%, #16243d, #05070c);
  border-radius: var(--radio-grande) var(--radio-grande) 0 0;
  isolation: isolate;
}
@media (min-width: 760px) {
  .galeria-fotos { border-radius: 20px; box-shadow: 0 0 0 1px var(--borde-fuerte), 0 0 40px -14px rgba(63, 169, 245, .5); }
}
.galeria-fotos::-webkit-scrollbar { display: none; }
.galeria-fotos img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  scroll-snap-align: center;
}
.galeria-flecha {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--borde-fuerte);
  background: rgba(5, 7, 12, .72);
  color: var(--hueso);
  transition: border-color .2s ease, opacity .2s ease;
}
.galeria-flecha:hover { border-color: var(--borde-luna); }
.galeria-flecha:disabled { opacity: 0; pointer-events: none; }
.galeria-anterior { left: 10px; }
.galeria-siguiente { right: 10px; }
.galeria-contador {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(5, 7, 12, .75);
  color: var(--hueso);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 759px) { .galeria-contador { right: auto; left: 14px; top: 14px; } }
.miniaturas { display: flex; gap: 8px; padding: 12px 16px 2px; overflow-x: auto; scrollbar-width: none; }
.miniaturas::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .miniaturas { padding: 12px 2px 2px; } }
.miniatura {
  flex: none;
  width: 56px; height: 70px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--borde-fuerte);
  background: var(--noche-2);
  overflow: hidden;
  opacity: .7;
  transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura[aria-current="true"] { opacity: 1; border-color: var(--luna-clara); box-shadow: 0 0 0 1px var(--luna-clara), 0 0 14px -2px rgba(63, 169, 245, .8); }

.ficha-info { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ficha-rubro {
  margin: 0;
  font-family: var(--fuente-cartel);
  color: var(--luna-clara);
  font-size: 15px;
  letter-spacing: .16em;
}
.ficha-info h2 {
  margin: -6px 0 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding-right: 40px;
}
@media (min-width: 760px) { .ficha-info h2 { font-size: 30px; padding-right: 24px; } }
.ficha-talle { font-size: 14px; padding: 6px 14px; }
.ficha-talle b { font-size: 17px; }
.ficha-precio { font-size: 30px; padding: 6px 22px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%); }
.ficha-resaltado {
  margin: -4px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ahorro-suave);
  color: var(--ahorro);
  font-weight: 700;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.stock-info { margin: 0; font-size: 14.5px; color: var(--texto-2); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.stock-info::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--luna-clara); box-shadow: 0 0 8px var(--luna); }
.stock-info.poco { color: var(--brillo); }
.stock-info.agotado { color: var(--peligro); font-weight: 700; }
.stock-info.agotado::before { background: var(--peligro); box-shadow: none; }

.comprar { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; width: 100%; }
.comprar .boton { flex: 1 1 180px; }

.cantidad {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--borde-fuerte);
  border-radius: 999px;
  background: var(--campo);
  overflow: hidden;
  flex: none;
}
.cantidad button {
  width: 44px; height: 48px;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 500;
  color: var(--texto);
  transition: background .15s ease;
}
.cantidad button:hover:not(:disabled) { background: var(--campo-hover); }
.cantidad button:disabled { opacity: .3; cursor: not-allowed; }
.cantidad input {
  width: 40px; height: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cantidad input:focus-visible { outline-offset: -2px; }
.cantidad input::-webkit-outer-spin-button, .cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cantidad-chica button { width: 44px; height: 44px; font-size: 18px; }
.cantidad-chica input { width: 34px; height: 44px; font-size: 15px; }

.descripcion { margin: 0; font-size: 15px; line-height: 1.65; color: var(--texto-2); overflow-wrap: anywhere; white-space: pre-line; }
.ficha-seccion { width: 100%; border-top: 1px solid var(--borde); padding-top: 16px; }
.ficha-seccion h3 { margin: 0 0 8px; font-family: var(--fuente-cartel); font-weight: 400; font-size: 19px; color: var(--plata-clara); letter-spacing: .04em; }

.compartir { align-self: flex-start; }

/* ------------------------------------------------------------ carrito */

.carrito-vacio { text-align: center; color: var(--suave); padding: 40px 8px; }
.carrito-vacio strong { display: block; color: var(--texto); font-family: var(--fuente-cartel); font-weight: 400; font-size: 24px; margin-bottom: 6px; }
.carrito-vacio p { margin-top: 20px; }

/* mascota del tema (imagen de la dueña o mariposa con rosa) */
.mascota { display: grid; place-items: center; margin: 0 auto 14px; width: 120px; height: 120px; }
.mascota img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 16px rgba(63, 169, 245, .5)); }
.mascota svg { overflow: visible; filter: drop-shadow(0 0 14px rgba(63, 169, 245, .7)); }
.mascota .mascota-mariposa { animation: flotar 4s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes flotar { from { transform: translateY(2px) rotate(-4deg); } to { transform: translateY(-6px) rotate(5deg); } }

.cambios {
  background: var(--aviso-suave);
  color: var(--aviso);
  border: 1px solid rgba(255, 216, 137, .3);
  border-radius: var(--radio-chico);
  padding: 12px 14px;
  font-size: 14px;
}
.cambios p { margin: 0 0 4px; font-weight: 700; }
.cambios ul { margin: 0; padding-left: 18px; }

.lineas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.linea {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--borde);
}
.linea-foto {
  width: 72px; height: 90px;
  border-radius: var(--radio-chico);
  background: var(--noche-2);
  border: 1px solid var(--borde-fuerte);
  overflow: hidden;
  padding: 0;
}
.linea-foto img { width: 100%; height: 100%; object-fit: cover; }
.linea-datos { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.linea-nombre {
  margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere;
  background: none; border: 0; padding: 0; text-align: left; color: inherit;
}
.linea-nombre:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--borde-fuerte); }
.linea-precio { font-size: 12.5px; color: var(--suave); font-variant-numeric: tabular-nums; }
.linea-abajo { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.linea-subtotal { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.linea-tope { font-size: 12px; color: var(--suave); }
.quitar { align-self: flex-start; color: var(--peligro); min-height: 36px; text-decoration-color: currentColor; }
.quitar:hover { color: var(--peligro); }

.resumen {
  background: rgba(17, 26, 43, .7);
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 14px 16px;
  font-variant-numeric: tabular-nums;
}
.resumen-fila { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--suave); }
.resumen-total { font-size: 19px; font-weight: 800; color: var(--texto); border-bottom: 1px solid var(--borde); padding-bottom: 10px; margin-bottom: 4px; }
.resumen-ahorro { color: var(--ahorro); font-weight: 700; }

.panel-acciones { display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------ pedido */

.pedido h2 { position: relative; margin: 0 0 6px; font-size: 30px; padding-right: 48px; }
.pedido-intro { position: relative; margin: 0 0 20px; color: var(--suave); font-size: 15px; }

.formulario { position: relative; display: flex; flex-direction: column; gap: 26px; }
.formulario fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.formulario legend {
  display: flex;
  align-items: center;
  font-family: var(--fuente-cartel);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: .02em;
  margin-bottom: 10px;
  padding: 0;
}
.paso {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px; height: 28px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--degrade-luna);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 14px -2px rgba(63, 169, 245, .7);
}

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-weight: 600; font-size: 14px; color: var(--texto-2); }
.campo .opcional { color: var(--suave); font-weight: 400; }
.campo input, .campo textarea, .campo select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--borde-fuerte);
  border-radius: 14px;
  background: var(--campo);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.campo input::placeholder, .campo textarea::placeholder { color: var(--suave); opacity: .85; }
.campo input:hover, .campo textarea:hover, .campo select:hover { border-color: rgba(154, 166, 178, .6); }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--luna-clara); box-shadow: 0 0 0 4px var(--anillo-foco); background: var(--campo-hover); }
.campo textarea { min-height: 96px; resize: vertical; }
.campo select { cursor: pointer; }
.campo select option { background: var(--fondo-2, #0a0f1a); color: var(--texto); }
.campo [aria-invalid="true"] { border-color: var(--peligro); background: var(--peligro-suave); }
.error { color: var(--peligro); font-size: 13px; font-weight: 600; margin: 0; }
#datos-envio { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

.opciones { display: flex; flex-direction: column; gap: 10px; }
.opcion {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio);
  background: var(--campo);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) { .opcion:hover { border-color: var(--borde-luna); } }
.opcion input {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid var(--plata);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s ease;
}
.opcion input::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--degrade-luna);
  box-shadow: 0 0 8px rgba(63, 169, 245, .9);
  transform: scale(0);
  transition: transform .2s var(--curva);
}
.opcion input:checked { border-color: var(--luna-clara); }
.opcion input:checked::after { transform: scale(1); }
.opcion input:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.opcion:has(input:checked) {
  border-color: var(--luna-clara);
  background: rgba(63, 169, 245, .1);
  box-shadow: var(--resplandor);
}
.opcion-texto { min-width: 0; }
.opcion-texto strong { display: block; font-size: 15px; font-weight: 700; }
.opcion-texto small { display: block; color: var(--suave); font-size: 12.5px; margin-top: 1px; }
.opcion-precio { text-align: right; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opcion-precio small { display: block; font-weight: 600; color: var(--ahorro); font-size: 12px; }
.nota { margin: 0; font-size: 13.5px; color: var(--suave); }

/* caja del alias para transferir */
.caja-alias {
  position: relative;
  margin-top: 4px;
  padding: 22px 18px 18px;
  text-align: center;
  border-radius: 20px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(63, 169, 245, .2), transparent 70%),
    linear-gradient(180deg, rgba(17, 26, 43, .95), rgba(5, 7, 12, .95));
  box-shadow:
    0 0 0 1px rgba(201, 209, 217, .55),
    0 0 0 5px rgba(5, 7, 12, .9),
    0 0 0 6px rgba(124, 200, 255, .35),
    0 0 40px -10px rgba(63, 169, 245, .8);
  overflow: hidden;
  animation: fundido .35s ease;
}
.caja-alias .esquina-alias { position: absolute; width: 58px; height: 58px; opacity: .8; pointer-events: none; }
.caja-alias .esquina-alias-i { top: 0; left: 0; }
.caja-alias .esquina-alias-d { top: 0; right: 0; transform: scaleX(-1); }
.caja-alias-titulo {
  position: relative;
  margin: 0;
  font-family: var(--fuente-cartel);
  font-size: 16px;
  letter-spacing: .2em;
  color: var(--plata-clara);
}
.alias {
  position: relative;
  display: block;
  margin: 8px 0 14px;
  font-size: clamp(22px, 7.4vw, 32px);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--brillo);
  text-shadow: 0 0 18px rgba(63, 169, 245, .8);
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.caja-alias .boton { position: relative; min-width: 200px; }
.caja-alias-total {
  position: relative;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--borde);
  font-size: 15px;
  color: var(--texto-2);
  font-variant-numeric: tabular-nums;
}
.caja-alias-total strong { display: block; font-size: 24px; color: var(--hueso); }
.caja-alias-total small { display: block; color: var(--ahorro); font-weight: 700; font-size: 13px; }

.pedido-resumen { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.pedido-resumen li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.pedido-resumen li span:first-child { min-width: 0; overflow-wrap: anywhere; color: var(--texto-2); }
.pedido-resumen li span:last-child { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }

.total-elegido {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(17, 26, 43, .8); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px;
  font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.total-elegido > span:first-child { font-size: 15px; }
.total-elegido small { display: block; font-size: 12.5px; font-weight: 600; color: var(--suave); }
.total-elegido small.con-ahorro { color: var(--ahorro); }

.alerta {
  position: relative;
  margin: 0 0 4px;
  border-radius: var(--radio-chico);
  padding: 12px 14px;
  background: var(--peligro-suave);
  border: 1px solid rgba(255, 143, 134, .3);
  color: var(--peligro);
  font-weight: 600;
  font-size: 14px;
}

.gracias { position: relative; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: stretch; padding-top: 12px; }
.gracias h2 { padding: 0; font-size: 36px; margin: 0; }
.gracias .boton-texto { justify-content: center; }
.gracias p { margin: 0; color: var(--texto-2); line-height: 1.6; }
.numero-pedido {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(63, 169, 245, .14);
  color: var(--brillo);
}

/* ------------------------------------------------------------ avisos flotantes (en pergamino) */

.avisos {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  width: min(calc(100vw - 32px), 440px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.aviso {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--radio);
  background: var(--pergamino-fondo);
  background-size: 240px 240px, 100% 100%, 100% 100%;
  color: var(--tinta);
  box-shadow: var(--sombra-flotante);
  font-size: 14.5px;
  font-weight: 600;
  animation: aparecer-abajo .35s var(--curva);
}
.aviso span { min-width: 0; overflow-wrap: anywhere; }
.aviso button {
  flex: none; border: 0; background: none; color: var(--azul-profundo);
  min-height: 40px; padding: 0 10px; border-radius: 10px;
  font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}

/* ------------------------------------------------------------ pie */

.pie {
  position: relative;
  border-top: 1px solid var(--borde);
  background: linear-gradient(180deg, rgba(5, 7, 12, .7), rgba(5, 7, 12, .92));
  color: var(--suave);
  text-align: center;
  font-size: 14px;
  padding: 40px 16px calc(100px + env(safe-area-inset-bottom, 0px));
}
.pie-interior { max-width: var(--ancho); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pie p { margin: 0; }
.pie-calavera { filter: drop-shadow(0 0 8px rgba(63, 169, 245, .55)); }
.pie-marca { font-family: var(--fuente-logo); font-size: 26px; color: var(--plata-clara); }
.pie-marca::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 10px auto 4px;
  border-radius: 2px;
  background: var(--degrade-luna);
  box-shadow: 0 0 10px rgba(63, 169, 245, .8);
}
.pie-whatsapp { display: inline-flex; align-items: center; gap: 8px; color: var(--texto-2); font-weight: 600; }
.pie-whatsapp svg { color: var(--ahorro); }
.pie-chico { font-size: 12.5px; max-width: 46ch; }
.pie .pie-creditos {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--borde);
  width: min(100%, 320px);
  font-size: 12px;
  letter-spacing: .02em;
}
.pie-creditos strong { color: var(--texto-2); font-weight: 700; }

/* ------------------------------------------------------------ movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  .lm-anillo, .lm-trazo { animation: none; stroke-dashoffset: 0; }
  .lm-filete { animation: none; opacity: 1; }
  .lm-mariposa { animation: none; transform: none; opacity: 1; }
  .lm-brillo { display: none; }
  .logo-marca, .marca:hover .logo-marca { transition: none; transform: none; }
  .mascota .mascota-mariposa { animation: none; }
  .mascota-portada, .mascota-portada-halo { animation: none; }
  .ventana, .panel, .fondo, .carrito-flotante, .aviso, .caja-alias { animation: none; }
  .tarjeta, .tarjeta-foto img, .boton, .chip, .tarjeta-agregar, .seccion, .cerrar { transition: none; }
  .tarjeta:hover, .tarjeta:hover .tarjeta-foto img, .seccion:hover, .cerrar:hover { transform: none; }
}
