/* =====================================================================
   ED SUBLIMACIÓN · Estilos
   Paleta: naranja, amarillo y negro, con fondo que se matiza en movimiento.
   ===================================================================== */
:root {
  --negro: #0b0b0d;
  --negro-2: #16161a;
  --naranja: #ff7a00;
  --naranja-2: #ff4d00;
  --amarillo: #ffc400;
  --amarillo-2: #ffe066;
  --texto: #fdf7ee;
  --texto-suave: #cfc6b8;
  --vidrio: rgba(14, 14, 18, .72);
  --vidrio-borde: rgba(255, 196, 0, .22);
  --ok: #3ddc84;
  --error: #ff5f5f;
  --info: #5fb8ff;
  --radio: 18px;
  --sombra: 0 18px 40px rgba(0, 0, 0, .45);
  --degradado: linear-gradient(135deg, var(--amarillo), var(--naranja) 55%, var(--naranja-2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--texto);
  background: var(--negro);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--amarillo); text-decoration: none; }
a:hover { color: var(--amarillo-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }

/* ---------- FONDO ANIMADO ---------- */
.fondo {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(-45deg, #000000, #ff7a00, #0b0b0d, #ffc400, #1a0f00, #ff4d00);
  background-size: 400% 400%;
  animation: matiz 22s ease-in-out infinite;
}
.fondo::after { /* velo oscuro para que el texto siempre se lea bien */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.78));
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; }
.b1 { width: 46vw; height: 46vw; background: var(--naranja); top: -12vw; left: -10vw; animation: flotar 18s ease-in-out infinite; }
.b2 { width: 38vw; height: 38vw; background: var(--amarillo); bottom: -14vw; right: -8vw; animation: flotar 24s ease-in-out infinite reverse; }
.b3 { width: 30vw; height: 30vw; background: #000; top: 35%; left: 40%; opacity: .7; mix-blend-mode: normal; animation: flotar 30s ease-in-out infinite; }

@keyframes matiz {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes flotar {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(8vw, 6vh) scale(1.15); }
  66%      { transform: translate(-6vw, 10vh) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .fondo, .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- ESTRUCTURA ---------- */
.contenedor { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 28px 0 60px; }
.saltar { position: absolute; left: -999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 100; background: var(--amarillo); color: #000; padding: 8px 12px; border-radius: 8px; }
.seccion { margin: 56px 0; }
.centro { text-align: center; }
.sub { color: var(--texto-suave); max-width: 640px; }
.centro .sub { margin-inline: auto; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fila { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.entre { justify-content: space-between; }
.oculto { display: none !important; }

.tarjeta {
  background: var(--vidrio);
  border: 1px solid var(--vidrio-borde);
  border-radius: var(--radio);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sombra);
}

/* ---------- NAVEGACIÓN ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 8, 10, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--vidrio-borde); }
.nav-in { width: min(1320px, 100% - 32px); margin: auto; display: flex; align-items: center; gap: 14px; min-height: 68px; }
.logo { color: var(--texto); display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo-txt { font-weight: 600; font-size: 1.12rem; letter-spacing: .06em; white-space: nowrap; }
.logo-txt b { font-weight: 800; background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover { color: var(--texto); }
@media (max-width: 380px) { .logo-txt { font-size: .95rem; } }
.menu { display: flex; gap: 4px; align-items: center; margin-left: auto; flex-wrap: nowrap; }
.menu > a, .desplegable > a, .link-btn { color: var(--texto); padding: 8px 10px; border-radius: 10px; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.menu > a:hover, .desplegable > a:hover, .menu a.activo, .link-btn:hover { background: rgba(255, 196, 0, .12); color: var(--amarillo); }
.menu .pill { background: var(--degradado); color: #000; }
.link-btn { background: none; border: 0; cursor: pointer; font: inherit; }
.form-inline { display: inline; margin: 0; }
.desplegable { position: relative; }
.desplegable-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; background: var(--negro-2); border: 1px solid var(--vidrio-borde); border-radius: 14px; box-shadow: var(--sombra); }
.desplegable-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--texto); }
.desplegable-menu a:hover { background: rgba(255, 122, 0, .18); }
.desplegable:hover .desplegable-menu, .desplegable:focus-within .desplegable-menu { display: block; }
.carrito-btn { position: relative; font-size: 1.3rem; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--texto); }
.carrito-num { position: absolute; top: -6px; right: -8px; background: var(--naranja); color: #000; font-size: .75rem; font-weight: 800; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 5px; }
.carrito-num.pulso { animation: pulso .6s; }
@keyframes pulso { 50% { transform: scale(1.5); background: var(--amarillo); } }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--vidrio-borde); color: var(--texto); font-size: 1.4rem; border-radius: 10px; padding: 4px 12px; cursor: pointer; }

@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--negro-2); padding: 12px 16px 20px; border-bottom: 1px solid var(--vidrio-borde); }
  .menu.abierto { display: flex; }
  .desplegable-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 16px; background: transparent; }
}

/* ---------- BOTONES Y FORMULARIOS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem 'Poppins', sans-serif; color: #000; background: var(--degradado);
  box-shadow: 0 8px 22px rgba(255, 122, 0, .35); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 122, 0, .5); color: #000; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sec { background: transparent; color: var(--texto); border: 1.5px solid var(--amarillo); box-shadow: none; }
.btn-sec:hover { background: rgba(255, 196, 0, .12); color: var(--amarillo); box-shadow: none; }
.btn-peligro { background: var(--error); color: #fff; box-shadow: none; }
.btn-chico { padding: 6px 14px; font-size: .88rem; }
.btn-bloque { width: 100%; }

label { display: block; font-weight: 500; margin-bottom: 6px; }
.campo { margin-bottom: 16px; }
.ayuda { font-size: .85rem; color: var(--texto-suave); margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit;
  background: rgba(255, 255, 255, .06); color: var(--texto);
  border: 1px solid rgba(255, 255, 255, .16);
}
input:focus, select:focus, textarea:focus { border-color: var(--amarillo); outline: none; box-shadow: 0 0 0 3px rgba(255, 196, 0, .2); }
select option { background: var(--negro-2); }
input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed var(--amarillo); border-radius: 12px; background: rgba(255, 196, 0, .05); color: var(--texto-suave); }
.trampa { position: absolute; left: -5000px; } /* campo anti-bots */

/* ---------- AVISOS ---------- */
.alerta { padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; border-left: 5px solid; background: var(--vidrio); }
.alerta-ok { border-color: var(--ok); }
.alerta-error { border-color: var(--error); }
.alerta-info { border-color: var(--info); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.1); white-space: nowrap; }
.estado-pendiente_pago   { background: rgba(255, 196, 0, .2);  color: var(--amarillo-2); }
.estado-pago_en_revision { background: rgba(95, 184, 255, .2); color: #a9d8ff; }
.estado-pagado, .estado-entregado { background: rgba(61, 220, 132, .2); color: #8ff0b9; }
.estado-en_produccion    { background: rgba(255, 122, 0, .25); color: #ffb26b; }
.estado-enviado          { background: rgba(190, 140, 255, .2); color: #d6b8ff; }
.estado-cancelado        { background: rgba(255, 95, 95, .2);  color: #ff9e9e; }

/* ---------- PORTADA ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: 72vh; }
.hero h1 span { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.12rem; color: var(--texto-suave); }
.hero-arte { position: relative; aspect-ratio: 1; }
.hero-arte .pieza { position: absolute; object-fit: cover; border-radius: 28px; border: 1px solid var(--vidrio-borde); box-shadow: var(--sombra); animation: flotar-suave 6s ease-in-out infinite; }
.pieza.p1 { width: 55%; height: 55%; top: 5%; left: 8%; z-index: 1; }
.pieza.p2 { width: 38%; height: 38%; top: 12%; right: 2%; animation-delay: -2s; }
.pieza.p3 { width: 42%; height: 42%; bottom: 4%; left: 30%; animation-delay: -4s; }
@keyframes flotar-suave { 50% { transform: translateY(-14px) rotate(-2deg); } }
.confianza { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--texto-suave); font-size: .92rem; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; min-height: auto; } .hero-arte { width: 100%; max-width: 360px; margin: 8px auto 0; } }

.paso { text-align: center; }
.paso .num { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--degradado); color: #000; font-weight: 800; }
.cat-tarjeta { text-align: center; transition: transform .2s; color: var(--texto); }
.cat-tarjeta:hover { transform: translateY(-6px); color: var(--amarillo); }
.cat-tarjeta .ico { font-size: 2.6rem; }

/* ---------- PRODUCTOS ---------- */
.producto { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.producto:hover { transform: translateY(-6px); border-color: var(--naranja); }
.producto .foto { aspect-ratio: 1; width: 100%; object-fit: cover; }
.producto .info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.producto h3 { font-size: 1.05rem; margin: 0; }
.producto h3 a { color: var(--texto); }
.precio { font-size: 1.3rem; font-weight: 800; color: var(--amarillo); }
.etiqueta { position: absolute; top: 12px; left: 12px; background: var(--amarillo); color: #000; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.foto-caja { position: relative; }
.img-placeholder { display: grid; place-items: center; aspect-ratio: 1; width: 100%; background: radial-gradient(circle at 30% 25%, rgba(255,196,0,.45), transparent 55%), radial-gradient(circle at 75% 80%, rgba(255,77,0,.55), transparent 55%), #111; }
.img-placeholder span { font-size: 5rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.filtros { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 720px) { .filtros { grid-template-columns: 1fr 1fr; } .filtros .campo-busqueda { grid-column: 1 / -1; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--vidrio-borde); color: var(--texto); background: rgba(0,0,0,.4); }
.chip.activo, .chip:hover { background: var(--degradado); color: #000; border-color: transparent; }

/* Detalle con vista previa */
.detalle { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .detalle { grid-template-columns: 1fr; } }
.preview { position: relative; border-radius: var(--radio); overflow: hidden; }
.preview .foto, .preview .img-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; }
.preview-diseno { position: absolute; top: 28%; left: 28%; width: 44%; height: 34%; object-fit: contain; border-radius: 8px; }
.preview-texto { position: absolute; bottom: 14%; left: 0; right: 0; text-align: center; font-weight: 800; font-size: clamp(1rem, 3vw, 1.6rem); color: #fff; text-shadow: 0 2px 10px #000, 0 0 2px #000; padding: 0 12px; word-break: break-word; }
.preview-nota { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.cantidad { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.cantidad button { background: transparent; border: 0; color: var(--texto); font-size: 1.2rem; width: 40px; height: 42px; cursor: pointer; }
.cantidad input { width: 56px; text-align: center; border: 0; border-radius: 0; background: transparent; padding: 8px 0; }
.estrellas { color: var(--amarillo); letter-spacing: 2px; }
.selector-estrellas { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.selector-estrellas input { display: none; }
.selector-estrellas label { font-size: 1.8rem; cursor: pointer; color: #555; margin: 0; }
.selector-estrellas input:checked ~ label, .selector-estrellas label:hover, .selector-estrellas label:hover ~ label { color: var(--amarillo); }
.resena { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; }

/* ---------- CARRITO Y CHECKOUT ---------- */
.tabla { width: 100%; border-collapse: collapse; }
.tabla th, .tabla td { padding: 12px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.tabla th { color: var(--texto-suave); font-weight: 500; font-size: .88rem; }
.tabla-scroll { overflow-x: auto; }
.mini { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; overflow: hidden; flex: none; }
.mini.img-placeholder span { font-size: 1.8rem; }
.resumen .linea { display: flex; justify-content: space-between; padding: 6px 0; }
.resumen .total { font-size: 1.35rem; font-weight: 800; border-top: 1px solid var(--vidrio-borde); margin-top: 8px; padding-top: 12px; color: var(--amarillo); }
.layout-compra { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .layout-compra { grid-template-columns: minmax(0, 1fr); } }
/* Celular: nada debe salirse de la pantalla */
@media (max-width: 640px) {
  .pasos-compra { gap: 6px; flex-wrap: nowrap; }
  .pasos-compra span { min-width: 0 !important; flex: 1 1 0; font-size: .74rem; padding: 8px 4px; }
  h1 { overflow-wrap: anywhere; }
  .dato-pago { flex-wrap: wrap; }
  .dato-pago b { text-align: left; overflow-wrap: anywhere; }
  .nav-in { gap: 8px; }
  .logo img { width: 34px; height: 34px; }
  .logo-txt { font-size: .9rem; letter-spacing: .02em; }
  .tarjeta { padding: 18px; }
}
.pasos-compra { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.pasos-compra span { flex: 1; min-width: 120px; text-align: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .9rem; }
.pasos-compra .hecho { background: rgba(255, 196, 0, .18); color: var(--amarillo); }
.pasos-compra .actual { background: var(--degradado); color: #000; font-weight: 600; }
.metodo { display: block; cursor: pointer; padding: 16px; border-radius: 14px; border: 2px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.metodo:has(input:checked) { border-color: var(--amarillo); background: rgba(255, 196, 0, .08); }
.metodo input { margin-right: 8px; accent-color: var(--naranja); }
.pago-chip { display: inline-block; padding: 4px 12px; border-radius: 8px; font-weight: 800; font-size: .85rem; }
.pago-chip.yappy { background: #00a3e0; color: #fff; }
.pago-chip.ach { background: #fff; color: #000; }
.pagos-logos { display: flex; gap: 8px; margin-bottom: 8px; }
/* QR de Yappy */
.yappy-pago { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 24px; align-items: start; }
.yappy-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.yappy-qr img { width: 100%; max-width: 260px; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 0 0 4px rgba(0,163,224,.6), var(--sombra); }
.yappy-qr figcaption { font-size: .92rem; }
.qr-checkout { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.qr-checkout img { width: 140px; height: auto; flex: none; border-radius: 12px; background: #fff; box-shadow: 0 0 0 3px rgba(0,163,224,.6); }
@media (max-width: 480px) { .qr-checkout { flex-direction: column; text-align: center; } .qr-checkout img { width: 180px; } }
@media (max-width: 640px) { .yappy-pago { grid-template-columns: 1fr; } .yappy-qr img { max-width: 240px; } }
.dato-pago { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.dato-pago b { color: var(--amarillo); text-align: right; }
.copiar { background: rgba(255,196,0,.15); border: 0; color: var(--amarillo); border-radius: 8px; padding: 2px 8px; cursor: pointer; font-size: .8rem; margin-left: 6px; }

/* Línea de tiempo del pedido */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 4px rgba(255,122,0,.25); }
.timeline li::after { content: ""; position: absolute; left: 16px; top: 22px; bottom: 0; width: 2px; background: rgba(255,255,255,.12); }
.timeline li:last-child::after { display: none; }
.timeline small { color: var(--texto-suave); }

/* ---------- PIE ---------- */
.pie { background: rgba(5,5,7,.9); border-top: 1px solid var(--vidrio-borde); margin-top: 40px; }
.pie-in { width: min(1180px, 100% - 32px); margin: auto; padding: 40px 0 20px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.pie h4 { color: var(--amarillo); margin: 0 0 10px; }
.pie a, .pie span { display: block; color: var(--texto-suave); margin-bottom: 6px; }
.pie a:hover { color: var(--amarillo); }
.pie-copy { text-align: center; color: #777; font-size: .85rem; padding-bottom: 24px; margin: 0; }

/* ---------- WHATSAPP, CHAT Y TOASTS ---------- */
.wa-flotante { position: fixed; left: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: #25d366; box-shadow: var(--sombra); z-index: 60; }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
/* En celular: botones flotantes más pequeños y espacio al final para que no tapen contenido */
@media (max-width: 640px) {
  .pie { padding-bottom: 80px; }
  .contenedor { padding-bottom: 90px; }
  .wa-flotante { width: 48px; height: 48px; font-size: 1.35rem; left: 12px; bottom: 12px; }
  .chat { right: 12px; bottom: 12px; }
  .chat-abrir { padding: 12px 14px; font-size: .9rem; }
  .chat-ventana { bottom: 58px; }
}
.chat-abrir { background: var(--degradado); color: #000; border: 0; padding: 14px 20px; border-radius: 999px; font: 600 1rem 'Poppins', sans-serif; cursor: pointer; box-shadow: var(--sombra); animation: saludo 3s ease-in-out 2s 2; }
@keyframes saludo { 10%, 30% { transform: rotate(-4deg) scale(1.05); } 20% { transform: rotate(4deg) scale(1.05); } 40% { transform: none; } }
.chat-ventana { position: absolute; right: 0; bottom: 64px; width: min(360px, calc(100vw - 36px)); max-height: min(520px, 75vh); display: flex; flex-direction: column; background: var(--negro-2); border: 1px solid var(--vidrio-borde); border-radius: 20px; box-shadow: var(--sombra); overflow: hidden; }
.chat-ventana[hidden] { display: none; }
.chat-ventana header { background: var(--degradado); color: #000; padding: 12px 16px; display: flex; align-items: center; gap: 6px; }
.chat-ventana header button { margin-left: auto; background: none; border: 0; font-size: 1.1rem; cursor: pointer; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; white-space: pre-line; }
.msg.bot { background: rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.msg.yo { background: var(--naranja); color: #000; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.escribiendo { color: var(--texto-suave); font-style: italic; }
.chat-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.chat-chips button { background: transparent; border: 1px solid var(--amarillo); color: var(--amarillo); border-radius: 999px; padding: 4px 10px; font-size: .8rem; cursor: pointer; }
.chat-form { display: flex; border-top: 1px solid rgba(255,255,255,.1); }
.chat-form input { border: 0; border-radius: 0; background: transparent; }
.chat-form button { background: none; border: 0; color: var(--amarillo); font-size: 1.2rem; padding: 0 16px; cursor: pointer; }
.toasts { position: fixed; top: 84px; right: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--negro-2); border-left: 5px solid var(--ok); padding: 14px 18px; border-radius: 12px; box-shadow: var(--sombra); animation: entrar .3s ease-out; max-width: 340px; }
.toast.error { border-color: var(--error); }
@keyframes entrar { from { transform: translateX(120%); opacity: 0; } }

/* ---------- ADMIN ---------- */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-nav a { padding: 8px 16px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--texto); }
.admin-nav a.activo, .admin-nav a:hover { background: var(--degradado); color: #000; }
.kpi { font-size: 2rem; font-weight: 800; color: var(--amarillo); }
.acciones { display: flex; gap: 6px; flex-wrap: wrap; }

/* Aparición suave al hacer scroll */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; } }

/* =====================================================================
   ÍCONOS DE LÍNEA (reemplazan a los emojis) y acabado profesional
   ===================================================================== */
.ico {
  width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.etiqueta .ico, .estrellas .ico { fill: currentColor; stroke-width: 1.5; }
.btn .ico, .chip .ico, .menu .ico, .pill .ico { width: 1.05em; height: 1.05em; }
.chip .ico { color: var(--amarillo); }
.chip.activo .ico, .chip:hover .ico { color: #000; }
.menu-btn { display: none; place-items: center; }
.menu-btn .ico { width: 22px; height: 22px; vertical-align: middle; }
.carrito-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; }
.carrito-btn .ico { width: 22px; height: 22px; }
.wa-flotante { color: #fff; }
.wa-flotante .ico { width: 26px; height: 26px; }
.chat-abrir { display: inline-flex; align-items: center; gap: 8px; }
.chat-ventana header button .ico, .chat-form button .ico { width: 18px; height: 18px; vertical-align: middle; }
.img-placeholder .ico { width: 30%; height: 30%; color: var(--amarillo); stroke-width: 1.4; opacity: .9; }
.cat-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center;
           background: var(--degradado); color: #0b0b0d; box-shadow: 0 10px 24px rgba(255,122,0,.3); }
.cat-ico .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.cat-tarjeta:hover .cat-ico { transform: translateY(-2px) rotate(-3deg); transition: transform .2s; }
.cat-ico-mini { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--degradado); color: #000; }
.confianza span { display: inline-flex; align-items: center; gap: 8px; }
.confianza .ico { color: var(--amarillo); }
.pie .ico { color: var(--amarillo); margin-right: 4px; }
.admin-nav a { display: inline-flex; align-items: center; gap: 8px; }
.admin-nav .badge { padding: 1px 8px; font-size: .75rem; }
.badge .ico { width: 1em; height: 1em; }
.timeline .ico { color: var(--amarillo); }
@media (max-width: 1240px) { .menu-btn { display: grid; } }

/* Tipografía y tarjetas más limpias */
h1, h2 { font-weight: 700; letter-spacing: -.02em; }
h3 { font-weight: 600; }
.producto { background: rgba(16, 16, 20, .82); }
.producto .foto-caja { background: #fff; display: block; overflow: hidden; }
.producto .foto { transition: transform .4s ease; }
.producto:hover .foto { transform: scale(1.05); }
.producto .info { gap: 4px; }
.producto h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.precio { font-weight: 700; letter-spacing: -.01em; }
.etiqueta { display: inline-flex; align-items: center; gap: 4px; background: rgba(11,11,13,.78); color: var(--amarillo);
            border: 1px solid rgba(255,196,0,.45); backdrop-filter: blur(6px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: .92rem; transition: background .2s, color .2s; }
.btn { letter-spacing: .01em; }
@media (max-width: 640px) {
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tarjeta.producto { padding: 0; }
  .producto .info { padding: 12px; }
  .producto h3 { font-size: .9rem; }
  .precio { font-size: 1.1rem; }
  .producto .btn-chico { font-size: .8rem; padding: 8px 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-tarjeta { padding: 16px 10px; }
  .cat-ico { width: 52px; height: 52px; }
  h1 { font-size: 1.85rem; }
}
