/* Paleta de la propuesta 2b del logo (01_identidad/01_logo/propuesta_2b), pendiente de aprobación
   de la cliente. Se conservan los nombres de variable de la versión anterior para no tocar el resto:
   --rosa = fucsia de marca, --fucsia = fucsia oscuro (texto y botones, AA sobre blanco),
   --vino = negro de marca, --amarillo = dorado de marca. */
:root {
  --rosa: #E4007C;      /* Fucsia de marca; blanco encima 4.6:1 */
  --fucsia: #B8006A;    /* Fucsia oscuro; 6.2:1 sobre el fondo */
  --vino: #111111;      /* Negro del letrero */
  --nube: #F8BBD9;      /* Rosa */
  --nube-2: #FDE7F1;
  --amarillo: #D4A537;  /* Dorado del letrero; solo con texto negro encima, nunca blanco */
  --rojo: #C8102E;      /* Rojo del suéter de la niña */
  --blanco: #FFFFFF;
  --gris: #6B6B6B;
  --linea: #F0D3E1;
  --wa: #1FA855;
  --wa-dark: #178a45;
  --ok: #1B7F4B;
  --warn: #A65E00;
  --off: #8A8A8A;
  --radio: 16px;
  --sombra: 0 6px 20px rgba(17, 17, 17, .10);
  --f-titulo: "Pacifico", cursive;
  --f-texto: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  color: #2b1420;
  background: #FFF8FB;
  line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--fucsia); outline-offset: 2px; }

.demo-banner {
  background: var(--amarillo); color: var(--vino);
  font-size: 12px; font-weight: 600; text-align: center; padding: 6px 16px; letter-spacing: .02em;
}

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; background: var(--vino);
  border-bottom: 2px solid var(--amarillo);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--amarillo); text-decoration: none; min-width: 0; }
.logo-icon { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.logo-text { font-family: var(--f-titulo); font-size: 19px; line-height: 1.2; white-space: nowrap; }
/* En celular, el botón del pedido queda solo con ícono y contador para que quepa el nombre */
@media (max-width: 440px) { .cart-btn > span:not(.badge) { display: none; } .cart-btn { padding: 9px 12px; } }
@media (max-width: 360px) { .logo-text { font-size: 16px; } .logo-icon { width: 38px; height: 38px; } }
.cart-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 9px 14px;
  background: var(--nube-2); color: var(--vino); font-weight: 600; font-size: 14px;
}
.cart-btn svg { width: 20px; height: 20px; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--rosa); color: var(--blanco); font-size: 12px;
  display: inline-grid; place-items: center;
}

/* Hero */
.hero {
  padding: 32px 16px 28px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--nube) 0%, var(--nube-2) 55%, #FFF8FB 100%);
}
.hero-logo { display: block; width: min(300px, 72vw); height: auto; margin: 0 auto 14px; filter: drop-shadow(0 10px 18px rgba(17, 17, 17, .18)); }
.hero-kicker {
  display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 999px;
  background: var(--rosa); color: var(--blanco); font-weight: 600; font-size: 13px;
}
.hero h1 { font-family: var(--f-titulo); font-weight: 400; color: var(--vino); font-size: clamp(30px, 8vw, 52px); line-height: 1.2; margin: 0 0 12px; }
.hero h1 .w { display: inline-block; }
.hero h1 .grad .w { color: var(--rosa); }
.hero-text { max-width: 560px; margin: 0 auto 18px; color: #5a3446; }
.hero-steps { list-style: none; padding: 0; margin: 0 auto 22px; display: grid; gap: 8px; max-width: 360px; text-align: left; }
.hero-steps li { display: flex; align-items: center; gap: 10px; background: var(--blanco); border-radius: 12px; padding: 8px 12px; font-size: 14px; box-shadow: var(--sombra); }
.hero-steps b { width: 26px; height: 26px; border-radius: 50%; background: var(--amarillo); color: var(--vino); display: grid; place-items: center; flex: none; }
.hero-min { font-size: 13px; color: var(--gris); margin: 14px 0 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; text-decoration: none;
  min-height: 46px;
}
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-primary { background: var(--fucsia); color: var(--blanco); }
.btn-primary:hover { background: var(--vino); }
.btn-wa { background: var(--wa); color: var(--blanco); width: 100%; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa svg { width: 22px; height: 22px; }
.btn:disabled { background: #d9c6cf; color: #fff; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--fucsia); text-decoration: underline; font-weight: 600; }
.link.danger { display: block; margin: 18px auto 4px; color: var(--gris); font-weight: 500; }

/* Secciones */
.section-title { font-family: var(--f-titulo); font-weight: 400; color: var(--vino); font-size: 28px; margin: 0 0 14px; }
.cats, .catalog, .info { padding: 24px 16px; max-width: 1180px; margin: 0 auto; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat {
  border: 0; border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra);
  padding: 10px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13px; color: var(--vino);
}
.cat svg { width: 54px; height: 54px; }
.cat small { font-weight: 400; color: var(--gris); font-size: 11px; }

/* Filtros */
.filters { padding: 0 0 6px; margin: 0 0 8px; }
@media (min-width: 960px) {
  .filters { position: sticky; top: 60px; z-index: 10; background: #FFF8FB; margin: 0 -16px 8px; padding: 8px 16px 6px; }
}
.search input {
  width: 100%; border: 1.5px solid var(--linea); border-radius: 999px; padding: 11px 16px;
  background: var(--blanco); font-size: 16px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--linea); background: var(--blanco); color: var(--vino);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--rosa); border-color: var(--rosa); color: var(--blanco); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; padding-top: 6px; }
.filter-row label { display: flex; flex-direction: column; font-size: 12px; color: var(--gris); gap: 2px; flex: 1 1 120px; }
.filter-row select {
  border: 1.5px solid var(--linea); border-radius: 12px; padding: 9px 10px; background: var(--blanco); font-size: 15px;
}
.filter-row .check { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: #2b1420; flex: 1 1 100%; }
.filter-row .check input { width: 20px; height: 20px; accent-color: var(--rosa); }
.results { font-size: 13px; color: var(--gris); margin: 6px 0 0; }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column; border: 0; padding: 0; text-align: left;
}
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--nube-2); }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; background: var(--blanco);
}
.tag.ok { color: var(--ok); }
.tag.warn { color: var(--warn); }
.tag.off { color: var(--blanco); background: var(--off); }
.tag-print { top: auto; bottom: 8px; background: var(--amarillo); color: var(--vino); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-code { font-size: 11px; color: var(--gris); }
.card-name { font-size: 14px; font-weight: 600; line-height: 1.25; margin: 0; }
.card-meta { font-size: 12px; color: var(--gris); }
.card-dots { display: flex; gap: 4px; margin-top: 2px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-weight: 700; color: var(--fucsia); font-size: 17px; }
.price small { font-weight: 400; font-size: 11px; color: var(--gris); }
.card-add {
  width: 36px; height: 36px; border-radius: 50%; background: var(--rosa); color: var(--blanco);
  display: grid; place-items: center; font-size: 22px; line-height: 1;
}
.card.is-off { opacity: .7; }
.card.is-off .card-add { background: var(--off); }
.empty { text-align: center; color: var(--gris); padding: 30px 0; }

/* Info */
.info { display: grid; gap: 12px; }
.info-card { background: var(--blanco); border-radius: var(--radio); padding: 14px 16px; box-shadow: var(--sombra); }
.info-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--vino); }
.info-card p { margin: 0; font-size: 14px; color: #5a3446; }

/* Footer */
.footer { background: var(--vino); color: var(--nube); text-align: center; padding: 28px 16px 100px; margin-top: 20px; }
.footer { border-top: 3px solid var(--amarillo); }
.footer-logo { margin: 0 auto 8px; }
.footer-logo img { width: min(280px, 80vw); height: auto; margin: 0 auto; }
.footer p { margin: 4px 0; }
.social { display: flex; gap: 10px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.social a { color: var(--blanco); background: rgba(255,255,255,.12); padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; }
.footer-note { font-size: 12px; opacity: .75; }

/* Barra flotante */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  border: 0; border-radius: 999px; padding: 14px 20px;
  white-space: nowrap; gap: 12px;
  background: var(--fucsia); color: var(--blanco); font-size: 15px; box-shadow: 0 8px 24px rgba(17, 17, 17, .35);
}
.cart-bar[hidden] { display: none; }

/* Hojas (dialog) */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%;
  max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; background: var(--blanco);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(17, 17, 17, .55); }
.sheet[open] { animation: subir .22s ease-out; }
@keyframes subir { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { position: relative; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.close {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); font-size: 26px; line-height: 1; color: var(--vino);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.p-media { aspect-ratio: 16 / 11; background: var(--nube-2); }
.p-media img, .p-media svg { width: 100%; height: 100%; object-fit: contain; }
.p-body { padding: 16px 16px 24px; }
.p-body h2 { margin: 0 0 6px; font-size: 20px; color: var(--vino); line-height: 1.25; }
.p-code { margin: 0; font-size: 12px; color: var(--gris); }
.p-desc { margin: 0 0 8px; font-size: 14px; color: #5a3446; }
.p-price { margin: 0; font-size: 22px; font-weight: 700; color: var(--fucsia); }
.p-price small { font-size: 13px; color: var(--gris); font-weight: 400; }
.p-avail { margin: 2px 0 8px; font-size: 13px; font-weight: 600; }
.p-avail.ok { color: var(--ok); } .p-avail.warn { color: var(--warn); } .p-avail.off { color: var(--off); }
.opt { border: 0; padding: 0; margin: 14px 0 0; }
.opt legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--vino); }
.opt legend span { font-weight: 400; color: var(--gris); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label {
  flex: 1 1 140px; display: flex; align-items: center; gap: 8px; font-size: 14px;
  border: 1.5px solid var(--linea); border-radius: 12px; padding: 10px 12px;
}
.seg input { accent-color: var(--rosa); width: 18px; height: 18px; }
.seg label:has(input:checked) { border-color: var(--rosa); background: var(--nube-2); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1.5px solid var(--linea); background: var(--blanco); font-size: 14px; min-height: 40px;
}
.sw .dot { width: 26px; height: 26px; }
.sw[aria-pressed="true"] { border-color: var(--rosa); background: var(--nube-2); font-weight: 600; }
.sw .n { font-size: 11px; background: var(--rosa); color: #fff; border-radius: 999px; padding: 0 6px; }
.qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1.5px solid var(--linea); border-radius: 12px; padding: 6px 6px 6px 12px; }
.qty b { font-size: 15px; min-width: 34px; }
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--nube-2); color: var(--vino); font-size: 20px; font-weight: 600; }
.stepper input { width: 44px; text-align: center; border: 0; font-size: 16px; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--gris); }
.quick button { border: 1px solid var(--linea); background: var(--blanco); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.p-foot {
  position: sticky; bottom: 0; background: var(--blanco); margin: 16px -16px 0; padding: 12px 16px;
  border-top: 1px solid var(--linea); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.p-sub { margin: 0; font-size: 14px; }
.p-sub b { display: block; font-size: 18px; color: var(--fucsia); }
.hint { font-size: 13px; color: var(--gris); margin: 6px 0 0; }
.center { text-align: center; }

/* Carrito */
.line { border-bottom: 1px solid var(--linea); padding: 12px 0; }
.line-head { display: flex; justify-content: space-between; gap: 10px; }
.line-head b { font-size: 15px; }
.line-head small { color: var(--gris); display: block; font-size: 12px; }
.line-detail { font-size: 13px; color: #5a3446; margin: 4px 0 0; }
.line-tools { display: flex; gap: 14px; margin-top: 6px; }
.line-tools button { background: none; border: 0; padding: 0; font-size: 13px; color: var(--fucsia); font-weight: 600; text-decoration: underline; }
.line-amt { text-align: right; white-space: nowrap; font-weight: 600; }
.pill-print { display: inline-block; font-size: 11px; background: var(--amarillo); color: var(--vino); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.totals { background: var(--nube-2); border-radius: var(--radio); padding: 12px 14px; margin: 14px 0; }
.totals .row { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.totals .big { font-size: 20px; font-weight: 700; color: var(--vino); padding-top: 6px; }
.totals .warn { color: var(--warn); font-size: 13px; margin: 6px 0 0; }
.cart-empty { text-align: center; color: var(--gris); padding: 24px 0; }
.step-title { font-size: 16px; color: var(--vino); margin: 20px 0 8px; }
.step-title small { font-weight: 400; color: var(--gris); }
.fields { display: grid; grid-template-columns: 1fr; gap: 8px; }
.fields label, .full { display: flex; flex-direction: column; font-size: 12px; color: var(--gris); gap: 2px; }
.full { margin-top: 8px; }
.fields input, .full textarea { border: 1.5px solid var(--linea); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.sellers { display: grid; gap: 8px; margin-bottom: 16px; }
.seller {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  border: 1.5px solid var(--linea); background: var(--blanco); text-align: left; width: 100%;
}
.seller[aria-checked="true"] { border-color: var(--wa); background: #EAF8EF; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--nube); color: var(--vino); display: grid; place-items: center; font-weight: 700; flex: none; }
.seller[aria-checked="true"] .avatar { background: var(--wa); color: #fff; }
.seller b { display: block; font-size: 15px; }
.seller small { color: var(--gris); font-size: 12px; }
.preview { margin-top: 12px; font-size: 13px; }
.preview summary { color: var(--fucsia); cursor: pointer; font-weight: 600; }
.preview pre { white-space: pre-wrap; word-break: break-word; background: #F4F4F4; border-radius: 12px; padding: 12px; font-family: var(--f-texto); font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--vino); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 50;
  transition: .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Tableta y escritorio */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .info { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .filter-row .check { flex: 0 0 auto; }
  .hero-steps { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .info { grid-template-columns: repeat(4, 1fr); }
  .sheet { margin: auto; max-width: 620px; border-radius: 22px; }
  .cart-bar { display: none !important; }
  .hero { padding: 56px 16px 48px; }
}
/* =====================================================================
   ANIMACIONES
   Solo se animan transform y opacity para que corra fluido en celulares.
   Todo se apaga si el teléfono tiene activado «reducir movimiento».
   ===================================================================== */
body { overflow-x: clip; }

@keyframes subirIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: translateY(.5em) rotate(-6deg) scale(.6); } 60% { opacity: 1; transform: translateY(-.08em) rotate(2deg) scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate(var(--fx, 6px), var(--fy, -18px)) rotate(calc(var(--r, 0deg) + 12deg)); } }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -20px) scale(1.12); } 66% { transform: translate(-20px, 16px) scale(.92); } }
@keyframes degradado { to { background-position: 300% 0; } }
@keyframes brillo { 0%, 60% { transform: translateX(-140%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes rebote { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes columpio { 0% { transform: rotate(-16deg); } 30% { transform: rotate(12deg); } 55% { transform: rotate(-7deg); } 78% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
@keyframes meneo { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) scale(1.08); } 75% { transform: rotate(8deg) scale(1.08); } }
@keyframes onda { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .55); } 100% { box-shadow: 0 0 0 16px rgba(31, 168, 85, 0); } }
@keyframes aparecer { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hoja { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes velo { from { opacity: 0; } to { opacity: 1; } }
@keyframes barra { 0% { transform: translateY(120%); } 70% { transform: translateY(-6px); } 100% { transform: none; } }
@keyframes trazo { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes caer { 0% { transform: translate3d(0, -10vh, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--giro, 540deg)); opacity: 0; } }
@keyframes palomita { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }

/* Aparición al hacer scroll (la clase la pone app.js) */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: subirIn .6s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) backwards; }

/* Logo: la niña entra con rebote y se columpia al tocarla */
.logo-icon { animation: popIn .7s .2s cubic-bezier(.3, 1.4, .5, 1) backwards; }
.logo:hover .logo-icon, .logo:active .logo-icon { transform-origin: 50% 90%; animation: columpio 1.2s ease-out; }
.hero-logo { animation: popIn .8s .05s cubic-bezier(.3, 1.4, .5, 1) backwards; }
.badge.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
.cart-btn { transition: transform .15s, background .2s; }
.cart-btn:active { transform: scale(.94); }

/* Portada */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-in { position: relative; z-index: 1; }
.hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .55; animation: blob 14s ease-in-out infinite; }
.b1 { width: 220px; height: 220px; background: #F48FB1; left: -70px; top: -50px; }
.b2 { width: 180px; height: 180px; background: #EBCB7A; right: -60px; top: 22%; animation-duration: 17s; animation-delay: -5s; }
.b3 { width: 240px; height: 240px; background: #F8BBD9; left: 30%; bottom: -120px; animation-duration: 20s; animation-delay: -9s; }
.fl { position: absolute; font-size: 22px; color: var(--rosa); opacity: .55; animation: flotar 6s ease-in-out infinite; }
/* En celular van en las orillas para no tapar el texto */
.f1 { left: 5%; top: 4%; --r: -14deg; }
.f2 { right: 7%; top: 5%; color: var(--amarillo); font-size: 26px; opacity: .9; animation-duration: 5s; animation-delay: -1s; }
.f3 { right: 5%; top: 71%; font-size: 26px; --r: 12deg; --fx: -8px; --fy: -12px; animation-duration: 7.5s; animation-delay: -3s; }
.f4 { left: 5%; top: 73%; color: var(--amarillo); opacity: .9; font-size: 18px; --fy: -10px; animation-duration: 4.5s; animation-delay: -2s; }
.f5 { right: 24%; top: 2%; color: var(--amarillo); opacity: .85; font-size: 22px; --r: -10deg; --fy: -8px; animation-duration: 8s; }
.f6 { right: 22%; top: 74%; color: var(--fucsia); font-size: 16px; --fy: -10px; animation-duration: 5.5s; animation-delay: -4s; }
.f7 { left: 22%; top: 3%; font-size: 16px; color: var(--fucsia); --fx: 10px; --fy: -8px; animation-duration: 6.5s; animation-delay: -2.5s; }
@media (min-width: 760px) {
  .fl { font-size: 30px; }
  .f1 { left: 9%; top: 16%; } .f2 { right: 11%; top: 14%; font-size: 38px; }
  .f3 { right: 8%; top: 52%; font-size: 40px; } .f4 { left: 7%; top: 62%; font-size: 26px; }
  .f5 { right: auto; left: 16%; top: 38%; font-size: 44px; } .f6 { right: 18%; top: 80%; }
  .f7 { left: 22%; top: 82%; }
}

.hero-kicker { animation: popIn .7s .05s cubic-bezier(.3, 1.4, .5, 1) backwards; }
.hero h1 .w { animation: popIn .7s calc(.2s + var(--i) * .11s) cubic-bezier(.3, 1.4, .5, 1) backwards; }
.hero h1 .grad .w {
  padding: .12em .06em; margin: -.12em -.06em;
  background: linear-gradient(90deg, #E4007C, #C8102E, #B8006A, #E4007C, #C8102E, #B8006A, #E4007C);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: popIn .7s calc(.2s + var(--i) * .11s) cubic-bezier(.3, 1.4, .5, 1) backwards, degradado 7s linear infinite;
}
.hero-text { animation: subirIn .7s .8s backwards; }
.hero-steps li { animation: subirIn .6s calc(1s + var(--i) * .14s) cubic-bezier(.2, .8, .2, 1) backwards; }
.hero-steps b { animation: latido 4.5s calc(2.2s + var(--i) * 1.5s) ease-in-out infinite; }
.hero .btn-lg { animation: popIn .7s 1.5s cubic-bezier(.3, 1.4, .5, 1) backwards; box-shadow: 0 10px 24px rgba(228, 0, 124, .35); }
.hero-min { animation: subirIn .6s 1.8s backwards; }
.arrow { display: inline-block; animation: rebote 1.2s ease-in-out infinite; }

/* Botones */
.btn { position: relative; overflow: hidden; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active:not(:disabled) { transform: scale(.95); }
.btn-shine::after, .btn-wa:not(:disabled)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: brillo 3.2s ease-in-out infinite;
}
.btn-wa:not(:disabled) { animation: onda 1.8s ease-out infinite; }

/* Cinta en movimiento */
.marquee {
  position: relative; z-index: 2; overflow: hidden; width: 104%; margin: -8px 0 6px -2%;
  background: var(--fucsia); color: var(--blanco); padding: 10px 0; transform: rotate(-1.4deg);
  box-shadow: 0 8px 20px rgba(17, 17, 17, .22);
}
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.mq { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mq i { font-style: normal; color: var(--amarillo); }

/* Títulos con subrayado que se dibuja */
.section-title { position: relative; display: inline-block; }
.section-title::after {
  content: ""; position: absolute; left: 0; right: -8px; bottom: -2px; height: 6px; border-radius: 6px;
  background: var(--amarillo); opacity: .75; z-index: -1; transform-origin: left; transform: scaleX(1);
}
.section-title.reveal::after { transform: scaleX(0); }
.section-title.reveal.in::after { animation: trazo .7s .35s cubic-bezier(.2, .8, .2, 1) forwards; }
.cats, .catalog { isolation: isolate; }
.catalog > .section-title, .cats > .section-title { display: table; }

/* Categorías */
.cat { transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s; }
.cat:active { transform: scale(.94); }
.cat:active svg { animation: meneo .5s; }

/* Filtros */
.chip { transition: transform .15s, background .2s, color .2s, border-color .2s; }
.chip:active { transform: scale(.92); }
.chip[aria-pressed="true"] { animation: aparecer .3s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 4px 12px rgba(228, 0, 124, .35); }
.search input { transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 4px rgba(228, 0, 124, .15); }

/* Tarjetas */
.card { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.card:active { transform: scale(.97); }
.card-media { overflow: hidden; }
.card-media > :first-child { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card-add { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.tag.warn { animation: latido 2.2s ease-in-out infinite; transform-origin: left center; }
.tag-print { overflow: hidden; }
.tag-print::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: brillo 4s ease-in-out infinite;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(17, 17, 17, .2); }
  .card:hover .card-media > :first-child { transform: scale(1.07) rotate(-1deg); }
  .card:hover .card-add { transform: rotate(90deg) scale(1.12); }
  .cat:hover { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 0 14px 28px rgba(17, 17, 17, .18); }
  .cat:hover svg { animation: meneo .6s; }
  .chip:hover { border-color: var(--rosa); }
  .info-card { transition: transform .25s; }
  .info-card:hover { transform: translateY(-4px); }
  .seller:hover { border-color: var(--nube); transform: translateX(3px); }
  .btn-primary:hover { box-shadow: 0 10px 24px rgba(228, 0, 124, .4); }
}

/* Barra flotante del pedido */
.cart-bar:not([hidden]) { animation: barra .5s cubic-bezier(.2, .8, .2, 1); }
.cart-bar.bump { animation: bump .45s; }
.cart-bar b { animation: rebote 1.4s ease-in-out infinite; display: inline-block; }

/* Hojas */
.sheet[open] { animation: hoja .42s cubic-bezier(.2, 1.15, .3, 1); }
.sheet[open]::backdrop { animation: velo .3s; }
.p-media > * { animation: aparecer .35s cubic-bezier(.2, .8, .2, 1); }
.sw { transition: transform .15s, border-color .2s, background .2s; }
.sw:active { transform: scale(.93); }
.sw .n { animation: palomita .35s cubic-bezier(.3, 1.6, .5, 1); }
.qty { animation: subirIn .35s calc(var(--i, 0) * 40ms) backwards; transition: border-color .2s, background .2s; }
.qty.has { border-color: var(--rosa); background: var(--nube-2); }
.stepper button { transition: transform .1s, background .15s; }
.stepper button:active { transform: scale(.85); background: var(--nube); }
.stepper input.pop, .p-sub b.pop, .totals .big span.pop { animation: bump .3s; display: inline-block; }
.close { transition: transform .25s; }
.close:hover, .close:active { transform: rotate(90deg); }

/* Pedido */
.line { animation: subirIn .4s calc(var(--i, 0) * 60ms) backwards; }
.seller { transition: transform .2s, border-color .2s, background .2s; animation: subirIn .4s calc(var(--i, 0) * 60ms) backwards; }
.seller:active { transform: scale(.97); }
.seller[aria-checked="true"] .avatar { animation: palomita .4s cubic-bezier(.3, 1.6, .5, 1); }
.avatar { transition: background .2s, color .2s; }

/* Bolita que vuela al pedido y confeti */
.fly {
  position: fixed; z-index: 60; width: 26px; height: 26px; border-radius: 50%; pointer-events: none;
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.confeti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confeti i {
  position: absolute; top: 0; width: 10px; height: 14px; border-radius: 2px; font-style: normal; line-height: 1;
  animation: caer var(--t, 2.4s) var(--d, 0s) cubic-bezier(.3, .6, .6, 1) forwards; opacity: 0;
}
.confeti i.h { background: none !important; width: auto; height: auto; font-size: 18px; }
.toast { transition: .35s cubic-bezier(.3, 1.5, .5, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
  .section-title.reveal::after { transform: none; }
  .marquee-track { transform: none; }
}
