/* ============================================================
   LA SANTIAGUERA — Estilos
   ============================================================ */

:root {
  --rojo-oscuro: #7f1d1d;
  --rojo-medio: #b91c1c;
  --rojo-claro: #ef4444;
  --crema: #f4ecdf;
  --fondo: #faf7f2;
  --tinta: #292524;
  --gris: #78716c;
  --dorado-1: #fde68a;
  --dorado-2: #f59e0b;
  --naranja-precio: #b45309;
  --verde: #166534;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* regla de oro: lo marcado como oculto, SIEMPRE se oculta */
[hidden] { display: none !important; }

html, body {
  /* solo permitir desplazamiento (nada de zoom con pellizco o doble toque) */
  touch-action: pan-x pan-y;
  /* evita el scroll horizontal que podría causar el ancho completo (100vw) */
  overflow-x: clip;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "Playfair Display", Georgia, serif; }

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   CINTA DE ANUNCIO (marquee de derecha a izquierda)
   ============================================================ */
.cinta-anuncio {
  overflow: hidden;
  background: linear-gradient(90deg, #7f1d1d, #b91c1c, #7f1d1d);
  color: #fff;
  white-space: nowrap;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 40;
}
.cinta-pista {
  display: inline-flex;
  will-change: transform;
  animation: cinta-corre 26s linear infinite;
}
.cinta-item { padding-right: 60px; }
.cinta-item::before { content: "✦ "; opacity: 0.7; }
/* segunda frase con colores invertidos: fondo blanco, texto rojo */
.cinta-resalta {
  background: #fff;
  color: #b91c1c;
  padding: 3px 12px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 400;
}
@keyframes cinta-corre {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}
.cinta-anuncio:hover .cinta-pista { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .cinta-pista { animation: none; }
}
/* cinta más discreta en móvil */
@media (max-width: 600px) {
  .cinta-anuncio { padding: 3px 0; font-size: 9px; letter-spacing: 0.01em; }
  .cinta-item { padding-right: 34px; }
  .cinta-resalta { padding: 1px 7px; font-weight: 400; }
}

/* ============================================================
   PORTADA (index.html)
   ============================================================ */

.portada {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--rojo-oscuro), var(--rojo-medio), var(--rojo-claro));
  color: #fff;
}

.portada::before,
.portada::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.portada::before { width: 340px; height: 340px; top: -170px; left: -170px; }
.portada::after { width: 380px; height: 380px; bottom: -190px; right: -190px; }

.portada > * { position: relative; z-index: 1; }

.portada .bienvenida {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  animation: aparecer 0.8s ease both;
}

.portada h1 {
  font-size: clamp(44px, 8vw, 64px);
  font-weight: 700;
  margin: 10px 0 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  animation: aparecer 0.8s ease 0.15s both;
}

.portada .lema {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  animation: aparecer 0.8s ease 0.3s both;
}

.rasgos {
  display: flex;
  gap: 34px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
  animation: aparecer 0.8s ease 0.45s both;
}

.rasgo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.rasgo svg { width: 22px; height: 22px; stroke: #fff; opacity: 0.95; }

/* Tarjetas tipo teléfono */
.accesos {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  animation: aparecer 0.8s ease 0.6s both;
}

.acceso { width: 168px; }

.telefono {
  width: 168px;
  height: 290px;
  border-radius: 26px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.acceso:hover .telefono {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4);
}

/* muesca superior */
.telefono::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 16px;
  background: #111;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}

.telefono .foto { width: 100%; height: 100%; object-fit: cover; }

.telefono .etiqueta {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 25, 23, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 2;
  white-space: nowrap;
}

/* mini catálogo dentro del teléfono */
.mini-app { height: 100%; display: flex; flex-direction: column; background: #f6f1e8; }
.mini-cabecera {
  background: var(--verde);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 20px 4px 8px;
}
.mini-rejilla {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 9px;
}
.mini-celda {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 700;
  color: #44403c;
}
.mini-celda span { font-weight: 400; font-size: 7px; color: #78716c; }

.acceso h3 { margin-top: 14px; font-size: 15px; font-weight: 700; color: #fff; }
.acceso p { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, 0.75); }

.pie-portada {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  animation: aparecer 0.8s ease 0.75s both;
}
.pie-portada a { display: inline-flex; align-items: center; gap: 5px; opacity: 0.9; }
.pie-portada a:hover { opacity: 1; text-decoration: underline; }
.pie-portada svg { width: 14px; height: 14px; stroke: currentColor; }
.pie-portada .punto { opacity: 0.5; }

.copyright {
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  animation: aparecer 0.8s ease 0.85s both;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* aviso "próximamente" */
.aviso {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(80px);
  background: rgba(28, 25, 23, 0.95);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
  z-index: 50;
}
.aviso.visible { transform: translateX(-50%) translateY(0); }

/* ============================================================
   TIENDA (tienda.html)
   ============================================================ */

.cabecera {
  position: relative;
  padding: 26px 20px 34px;
  text-align: center;
  overflow: hidden;
  min-height: 235px;
}
@media (max-width: 560px) {
  .cabecera { padding: 14px 12px 20px; min-height: 0; }
  /* en móvil el tamaño escala con el ancho para que cada frase entre en 1 línea */
  .cabecera h1 { font-size: 4.2vw; }
  .cabecera h2 { font-size: 4vw; }
}

.cabecera .fondo-heroe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* disposición C sin franja: logo + textos, grupo CENTRADO horizontalmente */
.marca-fila {
  display: flex;
  align-items: center;
  justify-content: center;   /* los 3 elementos centrados en la horizontal */
  gap: 16px;
  text-align: left;
}
.logo-marca {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.marca-texto { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 560px) {
  .marca-fila { gap: 10px; }
  .logo-marca { width: 60px; height: 60px; }
}

.cabecera::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 15, 5, 0.25) 0%, rgba(30, 15, 5, 0.1) 45%, var(--fondo) 100%);
  z-index: 1;
}

.cabecera > .contenido { position: relative; z-index: 2; }

.cabecera h1 {
  color: #fff;
  font-size: clamp(21px, 3.2vw, 28px);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  text-align: left;
  line-height: 1.15;
  white-space: nowrap;      /* una sola línea */
}

.cabecera h2 {
  margin-top: 14px;
  font-size: clamp(23px, 3.6vw, 32px);
  font-weight: 700;
  white-space: nowrap;      /* una sola línea */
  background: linear-gradient(to bottom, var(--dorado-1), var(--dorado-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  text-align: left;
  line-height: 1.1;
  margin-top: 4px;
}

.botones-cabecera {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-engrane {
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-engrane:hover { background: rgba(255, 255, 255, 0.35); }
.btn-engrane svg { width: 18px; height: 18px; stroke: #fff; flex-shrink: 0; }
a.btn-engrane { padding: 0; width: 38px; }

/* botón del administrador para volver a su panel (vidrio, esquina superior izquierda) */
.btn-volver-admin {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 14px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #3b312c;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.2s, opacity 0.2s;
}
.btn-volver-admin:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.75); }
/* al aparecer la barra fija de búsqueda, el ✕ de admin se quita para no taparla */
body.barra-fija-visible .btn-volver-admin { opacity: 0; pointer-events: none; }

.ficha.login .datos { text-align: center; }
.ficha.login h3 { font-size: 24px; }
.ficha.login form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ficha.login input {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  outline: none;
}
.ficha.login input:focus { border-color: var(--dorado-2); }
.nota-login { margin-top: 8px; font-size: 13.5px; color: var(--gris); }

/* campo de contraseña con ojito */
.campo-clave { position: relative; }
.campo-clave input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.ver-clave {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.6;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}
.ver-clave:hover { opacity: 1; }
.nota-login.error { color: #dc2626; }

/* Buscador con borde de arcoíris animado */
.zona-busqueda {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 20px;
  margin-top: 18px;
}
.cabecera .zona-busqueda { position: relative; padding: 0; margin-top: 20px; z-index: 2; }

.buscador {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  border-radius: 999px;
  padding: 2px; /* marco fino */
  /* arcoíris FIJO (sin animación, no pesa): varios colores como un arco iris */
  background: linear-gradient(90deg, #f43f5e, #f59e0b, #fde047, #22c55e, #3b82f6, #8b5cf6, #ec4899);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

@keyframes arcoiris {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.buscador .interior {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 20px;   /* barra más fina */
  position: relative;
}
/* deja sitio a la derecha para el orbe que sobresale */
#busqueda, #busqueda-2 { padding-right: 56px; }
.buscador svg { width: 17px; height: 17px; stroke: var(--gris); flex-shrink: 0; }
.buscador input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--tinta);
}
.buscador input::placeholder { color: #a8a29e; }

/* orbe del asistente: esfera de IA con anillos aerodinámicos.
   Sobresale de la barra (más grande que su alto) y flota a la derecha. */
.orbe-asistente {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 62px;
  height: 62px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.orbe-asistente:hover { transform: translateY(-50%) scale(1.08); }

/* orbe apagado (cliente sin preguntas hoy): gris, quieto, la barra sigue buscando */
.orbe-asistente.apagado { filter: grayscale(1) brightness(1.1) opacity(0.55); cursor: default; }
.orbe-asistente.apagado:hover { transform: translateY(-50%); }
.orbe-asistente.apagado .orbe-nucleo,
.orbe-asistente.apagado .orbe-anillo,
.orbe-asistente.apagado .orbe-marco { animation-play-state: paused; }

/* círculo blanco con el mismo borde de arcoíris de la barra */
.orbe-marco {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6, #f59e0b);
  background-size: 300% 100%;
  animation: arcoiris 6s linear infinite;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}
.orbe-fondo {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

/* la esfera (recorta el degradado giratorio) */
.orbe-esfera {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(185, 28, 28, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.orbe-nucleo {
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 0deg, #b91c1c, #f59e0b, #ec4899, #8b5cf6, #f59e0b, #b91c1c);
  filter: blur(3px);
  animation: orbe-girar 6s linear infinite;
}
.orbe-brillo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}
@keyframes orbe-girar { to { transform: rotate(360deg); } }

/* anillos aerodinámicos que orbitan (giroscopio) */
.orbe-anillo {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.6px solid rgba(245, 158, 11, 0.6);
  pointer-events: none;
}
.orbe-anillo.a1 { animation: aro1 5s linear infinite; }
.orbe-anillo.a2 { border-color: rgba(236, 72, 153, 0.55); animation: aro2 7s linear infinite; }
@keyframes aro1 {
  from { transform: rotate(0deg) scaleY(0.38); }
  to { transform: rotate(360deg) scaleY(0.38); }
}
@keyframes aro2 {
  from { transform: rotate(60deg) scaleY(0.42); }
  to { transform: rotate(-300deg) scaleY(0.42); }
}

/* late suave para llamar la atención (bienvenida) */
.orbe-asistente.pulsando .orbe-esfera { animation: orbe-pulso 1.5s ease-in-out infinite; }
@keyframes orbe-pulso {
  0%, 100% { box-shadow: 0 4px 14px rgba(185, 28, 28, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
  50% { box-shadow: 0 4px 24px rgba(236, 72, 153, 0.8), 0 0 0 4px rgba(236, 72, 153, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.9); }
}

/* chips de sugerencia dentro del panel del asistente */
.agente-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.agente-chips:empty { display: none; }
.agente-chips .chip-sug {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #57381a;
  transition: background 0.15s, transform 0.15s;
}
.agente-chips .chip-sug:hover { background: #fff; transform: translateY(-1px); }

/* ===== Orbe con personajes: el MISMO orbe del menú (abajo) se transforma =====
   Al tocar un tema, el orbe muestra carita + accesorio (gorro/gafas/moño/estrella).
   El gorro sobresale del contenedor. En reposo ("hola") queda el orbe normal. */

/* (el tamaño del orbe/contenedor se fija en las reglas de .menu-inferior más abajo) */

/* carita: solo cuando hay un tema activo (no en reposo) */
.orbe-menu .orbe-cara { position: absolute; inset: 11px; display: none; z-index: 4; pointer-events: none; }
.orbe-menu:not([data-modo="hola"]) .orbe-cara { display: block; }
.orbe-menu .orbe-cara i {
  position: absolute; top: 34%; width: 9px; height: 11px; background: #fff;
  border-radius: 50%; box-shadow: 0 1px 2px rgba(80,20,60,.45);
}
.orbe-menu .orbe-cara i:nth-of-type(1) { left: 27%; }
.orbe-menu .orbe-cara i:nth-of-type(2) { right: 27%; }
.orbe-menu .orbe-cara i::after {
  content: ""; position: absolute; left: 2.5px; top: 4px; width: 4.5px; height: 4.5px;
  background: #3a1830; border-radius: 50%;
}
.orbe-menu .orbe-cara b {
  position: absolute; top: 56%; left: 50%; margin-left: -8px; width: 16px; height: 8px;
  border-bottom: 2.6px solid rgba(255,255,255,.9); border-radius: 0 0 16px 16px;
}
/* guiño (recomendar): el ojo derecho se hace rayita */
.orbe-menu[data-modo="recomendar"] .orbe-cara i:nth-of-type(2) { height: 3px; border-radius: 3px; top: 40%; }
.orbe-menu[data-modo="recomendar"] .orbe-cara i:nth-of-type(2)::after { display: none; }

/* accesorios superpuestos (el gorro sobresale hacia arriba, fuera del contenedor) */
.orbe-menu .orbe-acc { position: absolute; left: 0; top: -32px; width: 80px; height: 112px; pointer-events: none; z-index: 5; }
.orbe-menu .orbe-acc > g { opacity: 0; transition: opacity .28s ease; }
.orbe-menu .orbe-acc .oa-gorro { filter: drop-shadow(0 2px 3px rgba(0,0,0,.32)); }
.orbe-menu[data-modo="cocino"] .oa-gorro { opacity: 1; }
.orbe-menu[data-modo="nuevo"] .oa-gafas { opacity: 1; }
.orbe-menu[data-modo="abren"] .oa-mono { opacity: 1; }
.orbe-menu[data-modo="recomendar"] .oa-estrella { opacity: 1; }

/* ===== Asistente: fondo oscurecido + globo flotante ===== */
.agente-velo {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(20, 15, 10, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: velo-aparece 0.25s ease both;
}
.agente-velo[hidden] { display: none; }
@keyframes velo-aparece { from { opacity: 0; } to { opacity: 1; } }

/* cuando el asistente habla, el buscador y el orbe quedan iluminados
   (por encima del fondo oscurecido) */
body.agente-abierto .cabecera > .contenido { position: relative; z-index: 90; }
body.agente-abierto .busqueda-fija { z-index: 90; }
/* el orbe vive en el menú inferior: se queda iluminado por encima del velo */
body.agente-abierto .menu-inferior { z-index: 90; }
/* el título sí se atenúa; el buscador y el orbe quedan brillando */
body.agente-abierto .cabecera h1,
body.agente-abierto .cabecera h2 { opacity: 0.4; transition: opacity 0.2s; }

/* el globo del asistente: sale del orbe, flotante y vivo (JS lo posiciona) */
.panel-agente {
  --tail-x: 380px;
  position: fixed;
  z-index: 95;
  top: 120px;
  left: 20px;
  width: min(440px, 92vw);
  padding: 17px 20px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform-origin: var(--tail-x) top;
  /* solo la entrada; SIN flotar (nada de subir y bajar) */
  animation: globo-sale 0.5s cubic-bezier(0.16, 1.5, 0.35, 1) both;
}
/* SIN marco alrededor del globo: la burbuja sale limpia, sin aura animada */
.panel-agente::after { display: none; }
/* la puntita (cola) apuntando al orbe, ubicada por JS */
.panel-agente::before {
  content: "";
  position: absolute;
  top: -10px;
  left: calc(var(--tail-x) - 11px);
  width: 22px;
  height: 12px;
  background: rgba(255, 255, 255, 0.92);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
/* cuando el globo sale ARRIBA del orbe (que está en el menú de abajo):
   colita hacia abajo y origen de la animación en la base */
.panel-agente.desde-abajo { transform-origin: var(--tail-x) bottom; }
.panel-agente.desde-abajo::before {
  top: auto;
  bottom: -10px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@keyframes globo-sale {
  0% { opacity: 0; transform: translateY(-10px) scale(0.82); }
  60% { opacity: 1; transform: translateY(3px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes globo-flota {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* cursor de "escribiendo" */
.agente-texto .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #b45309;
  margin-left: 1px;
  vertical-align: -2px;
  animation: parpadeo 0.7s step-end infinite;
}
@keyframes parpadeo { 50% { opacity: 0; } }

/* puntos de "pensando" animados */
.agente-texto .pensando span {
  display: inline-block;
  animation: rebote-punto 1.2s ease-in-out infinite;
}
.agente-texto .pensando span:nth-child(2) { animation-delay: 0.15s; }
.agente-texto .pensando span:nth-child(3) { animation-delay: 0.3s; }
@keyframes rebote-punto {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.agente-cabeza {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
}
.agente-texto {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tinta);
}
.agente-texto .pensando { color: var(--gris); font-style: italic; }
.cerrar-agente {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gris);
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.cerrar-agente:hover,
.cerrar-agente:active { background: rgba(0, 0, 0, 0.06); color: #57534e; }
.agente-productos {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
}
.agente-productos:empty { display: none; }
.tarjeta-agente {
  flex-shrink: 0;
  width: 110px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s;
}
.tarjeta-agente:hover { transform: translateY(-3px); }
.tarjeta-agente img, .tarjeta-agente .sin-foto { width: 100%; height: 78px; object-fit: cover; font-size: 24px; }
.tarjeta-agente .dato { padding: 7px 8px 9px; }
.tarjeta-agente .dato b { display: block; font-size: 11px; line-height: 1.3; font-weight: 600; }
.tarjeta-agente .dato span { font-size: 11.5px; color: #9a6a1f; font-weight: 700; }
.agente-pie { margin-top: 8px; font-size: 11px; color: var(--gris); }

/* pegajoso al hacer scroll */
.busqueda-fija {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px 20px;
  /* contenedor translúcido (vidrio esmerilado), no blanco rígido */
  background: linear-gradient(to bottom, rgba(250, 247, 242, 0.55), rgba(250, 247, 242, 0.32));
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  transform: translateY(-110%);
  transition: transform 0.25s ease;
}
.busqueda-fija.visible { transform: translateY(0); }

/* en móvil: menos relleno para que el texto del buscador entre completo */
@media (max-width: 560px) {
  .busqueda-fija { padding: 10px 12px; }
  .buscador .interior { padding: 9px 14px; gap: 8px; }
}

/* Novedades */
.novedades {
  background: var(--crema);
  padding: 18px 0 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.novedades h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  color: #57534e;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px 12px;
}

.carril {
  display: flex;
  align-items: flex-start; /* todos los círculos alineados arriba (sin acordeón) */
  gap: 26px;
  overflow-x: auto;
  padding: 4px 22px 8px;
  scrollbar-width: thin;
}

.novedad {
  flex-shrink: 0;
  width: 96px;
  text-align: center;
  transition: transform 0.2s ease;
}
.novedad:hover { transform: translateY(-3px); }

.novedad .circulo {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.novedad .circulo img { width: 100%; height: 100%; object-fit: cover; }

.novedad p {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: #44403c;
  /* zona del nombre fija a 3 líneas, alineada arriba (círculos parejos) */
  min-height: calc(1.35em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* precio incrustado en el centro de la imagen (solo fila de ofertas) */
.novedad-precio {
  position: absolute;
  bottom: 0;                 /* borde inferior del precio = borde inferior del círculo */
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}

/* Rejilla de productos */
.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 22px;
  padding: 26px 22px 60px;
  max-width: 1240px;
  margin: 0 auto;
}

.tarjeta {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  padding: 0;
  display: block;
  width: 100%;
}
.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.tarjeta .marco {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.tarjeta .marco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.tarjeta:hover .marco img { transform: scale(1.05); }

.precio-pastilla {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(28, 25, 23, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.tarjeta .nombre {
  padding: 12px 14px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tinta);
  line-height: 1.35;
  /* estándar: SIEMPRE el alto de dos filas, para que todas
     las tarjetas queden alineadas entre sí */
  min-height: calc(2.7em + 26px); /* 2 líneas + los rellenos */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  box-sizing: border-box;
}

/* etiqueta de formato (Caja, Paquete, Botella...) sobre la foto */
.etiqueta-formato {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(185, 28, 28, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
}
.etiqueta-formato.izquierda { right: auto; left: 10px; }

/* pastilla sutil del tamaño/peso (esquina inferior derecha de la foto) */
.tamano-pastilla {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #57534e;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.ficha .imagen { position: relative; }
.etiqueta-formato.en-ficha { top: 12px; left: 12px; right: auto; font-size: 12px; }

.sin-resultados {
  text-align: center;
  color: var(--gris);
  padding: 60px 20px;
  font-size: 15px;
  grid-column: 1 / -1;
}

/* Ventana de producto */
/* ============================================================
   MI CUENTA (pantalla del cliente)
   ============================================================ */
.velo-cuenta { align-items: stretch; justify-content: flex-end; padding: 0; }
.hoja-cuenta {
  background: var(--fondo);
  width: 100%;
  max-width: 460px;
  height: 100%;
  overflow-y: auto;
  position: relative;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  transform: translateX(30px);
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}
.velo-cuenta.visible .hoja-cuenta { transform: translateX(0); opacity: 1; }

.cuenta-cabecera {
  position: relative;
  padding: 26px 22px 22px;
  background: linear-gradient(135deg, var(--rojo-medio), var(--rojo-oscuro));
  color: #fff;
}
.cuenta-cabecera .cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.cuenta-cabecera .cerrar svg { width: 18px; height: 18px; stroke: #fff; }
.cuenta-cabecera .cerrar:hover { background: rgba(255, 255, 255, 0.3); }
.cuenta-perfil-top { display: flex; align-items: center; gap: 14px; }
.cuenta-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.cuenta-perfil-top h3 { color: #fff; font-size: 22px; line-height: 1.1; }
.cuenta-correo { font-size: 13px; opacity: 0.85; margin-top: 2px; word-break: break-all; }

.cuenta-cuerpo { padding: 18px 18px 40px; display: flex; flex-direction: column; gap: 14px; }
.cuenta-bloque {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.cuenta-bloque h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gris);
  margin-bottom: 12px;
}
.cuenta-bloque-titulo { display: flex; align-items: center; justify-content: space-between; }
.cuenta-campo { display: block; font-size: 12px; color: var(--gris); margin-bottom: 12px; }
.cuenta-campo input {
  width: 100%;
  margin-top: 5px;
  padding: 11px 13px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 15px;
  background: var(--fondo);
}
.cuenta-campo input:focus { outline: none; border-color: var(--dorado-2); }

.btn-cuenta {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rojo-medio), var(--rojo-oscuro));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-cuenta:hover { filter: brightness(1.06); }
.btn-cuenta:active { transform: scale(0.98); }
.btn-cuenta.secundario { background: #eee; color: var(--tinta); }
.btn-cuenta.salir { background: none; color: var(--rojo-medio); border: 1.5px solid rgba(185, 28, 28, 0.4); margin-top: 4px; }

.btn-mini {
  border: 1.5px solid var(--dorado-2);
  background: #fff;
  color: var(--naranja-precio);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-mini:hover { background: var(--dorado-1); }

.cuenta-lista { display: flex; flex-direction: column; gap: 8px; }
.cuenta-lista:empty { display: none; }
.cuenta-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cuenta-item .quitar {
  border: none; background: none; color: var(--gris);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px;
}
.cuenta-item .quitar:hover { color: var(--rojo-medio); }
.cuenta-item small { color: var(--gris); display: block; }
.cuenta-vacio { color: var(--gris); font-size: 13px; padding: 4px 0; }

.cuenta-form-direccion { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cuenta-form-direccion input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 14px;
  background: var(--fondo);
}
.cuenta-fila-2 { display: flex; gap: 8px; }
.cuenta-fila-2 > * { flex: 1; }
.cuenta-nota { font-size: 12px; color: var(--gris); line-height: 1.4; margin-top: 6px; }

@media (max-width: 480px) {
  .hoja-cuenta { max-width: 100%; }
}

.velo {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.velo.visible { opacity: 1; pointer-events: auto; }

.ficha {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
.velo.visible .ficha { transform: translateY(0) scale(1); }

.ficha .cerrar {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.ficha .cerrar svg { width: 18px; height: 18px; stroke: #44403c; }

.ficha .imagen { aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: #ece5d8; }
/* esqueleto animado (shimmer) mientras la foto del producto termina de cargar */
.ficha .imagen.cargando::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, #e7e0d2 30%, #f6f1e7 50%, #e7e0d2 70%);
  background-size: 220% 100%;
  animation: ficha-shimmer 1.1s ease-in-out infinite;
}
@keyframes ficha-shimmer { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }
/* efecto de movimiento suave (zoom + paneo) al abrir la ficha, como un mini-video */
.ficha .imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: ficha-movimiento 14s ease-in-out infinite alternate;
  transition: opacity 0.22s ease; /* fundido al cambiar de producto (sin parpadeo) */
}
@keyframes ficha-movimiento {
  0%   { transform: scale(1.08) translate(1.5%, -1%); }
  50%  { transform: scale(1.14) translate(-2%, 1.5%); }
  100% { transform: scale(1.09) translate(1.5%, 1%); }
}
/* brillo sutil que cruza la foto (toque premium) */
.ficha .imagen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: ficha-brillo 6s ease-in-out 0.8s infinite;
  pointer-events: none;
}
@keyframes ficha-brillo {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .ficha .imagen img { animation: none; transform: scale(1.05); }
  .ficha .imagen::after { animation: none; opacity: 0; }
}

.ficha .datos { padding: 20px 24px 26px; }
.ficha .datos h3 { font-size: 19px; font-weight: 700; }

.ficha .precio {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.ficha .precio strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--naranja-precio);
}
.ficha .precio span { font-size: 13px; color: var(--gris); }

.ficha .chip {
  margin-top: 16px;
  display: inline-block;
  background: #f5f0e8;
  border-radius: 10px;
  padding: 10px 16px;
}
.ficha .chip small {
  display: block;
  font-size: 11px;
  color: var(--gris);
}
.ficha .chip b { font-size: 14px; color: var(--tinta); }

/* filas promocionales intercaladas dentro de la rejilla */
/* banda promocional intercalada: rompe el ancho de la cuadrícula y ocupa
   todo el ancho de la pantalla, igual que la fila de Novedades */
.fila-intercalada {
  grid-column: 1 / -1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.fila-intercalada .novedades { border-radius: 0; }

.sin-foto {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: #f0e8dc;
}

.ficha .descripcion {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gris);
}

/* Botón sutil "¿Qué cocino con esto?" en la ficha */
.btn-receta-ficha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rojo, #b91c1c);
  background: rgba(185, 28, 28, 0.07);
  border: 1px solid rgba(185, 28, 28, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-receta-ficha:hover { background: rgba(185, 28, 28, 0.13); }
.btn-receta-ficha:active { transform: scale(0.97); }

/* Contenedor del captcha Turnstile en el login (solo aparece si está configurado) */
.turnstile-caja { margin: 6px 0 2px; display: flex; justify-content: center; min-height: 0; }
.turnstile-caja[hidden] { display: none; }

/* Opciones del menú que todavía no están activas (carrito/pedidos): tenues */
.menu-inferior .opcion.inactiva { opacity: 0.3; }

/* ============================================================
   Burbuja informativa con flecha (tooltip) — apunta al ícono
   ============================================================ */
.globo-info { position: fixed; z-index: 300; }
.globo-info[hidden] { display: none; }
.globo-cuerpo {
  position: relative; max-width: 230px; padding: 13px 34px 13px 15px;
  background: linear-gradient(135deg, #2a0d0d, #160707);
  border: 1px solid rgba(253, 230, 138, 0.55); border-radius: 15px;
  color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transform-origin: bottom center;
  animation: globo-pop 0.42s cubic-bezier(0.18, 1.35, 0.4, 1) both, globo-glow 2.4s ease-in-out 0.42s infinite;
}
.globo-texto b { color: var(--dorado-1); }
/* flecha hacia abajo, apunta al ícono (posición horizontal la fija el JS) */
.globo-cuerpo::after {
  content: ""; position: absolute; bottom: -9px; left: var(--flecha-x, 50%); transform: translateX(-50%);
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 10px solid #160707;
}
.globo-cerrar {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; padding: 0;
}
.globo-cerrar:hover { background: rgba(255, 255, 255, 0.24); }
.globo-cerrar svg { width: 13px; height: 13px; stroke: #fff; }
@keyframes globo-pop {
  0% { opacity: 0; transform: translateY(14px) scale(0.6); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes globo-glow {
  0%, 100% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(253, 230, 138, 0.0); }
  50% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 14px 1px rgba(253, 230, 138, 0.35); }
}

/* ============================================================
   JUEGOS Y PUNTOS (Fase A)
   ============================================================ */

/* botón/resumen en Mi Cuenta */
.tarjeta-juegos-cta {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 16px; cursor: pointer; font-family: inherit;
  color: #fff; background: linear-gradient(135deg, var(--rojo-medio), var(--rojo-oscuro));
  border: 1px solid rgba(253, 230, 138, .35);
}
.tarjeta-juegos-cta:active { transform: scale(.99); }
.tj-moneda {
  width: 40px; height: 40px; border-radius: 50%; flex: none; font-size: 18px; font-weight: 800; color: #7a4b06;
  background: radial-gradient(circle at 34% 30%, #fff3c9, var(--dorado-2) 70%);
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -3px 6px rgba(122, 75, 6, .4);
}
.tj-info { flex: 1; text-align: left; line-height: 1.2; }
.tj-info b { display: block; font-size: 16px; font-weight: 800; color: var(--dorado-1); }
.tj-info small { font-size: 12px; opacity: .85; }
.tj-jugar { font-size: 13.5px; font-weight: 700; color: var(--dorado-1); }

/* panel */
.hoja-juegos {
  position: relative; width: 100%; max-width: 420px; max-height: 90svh; overflow-y: auto;
  background: linear-gradient(180deg, #1c0a0a, #120606); border: 1px solid rgba(253, 230, 138, .16);
  border-radius: 26px; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 15px; color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: translateY(16px) scale(.97); transition: transform .25s ease;
}
.velo.visible .hoja-juegos { transform: none; }
.hoja-juegos .cerrar {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; z-index: 3;
}
.hoja-juegos .cerrar svg { width: 18px; height: 18px; stroke: #fff; }

.jg-barra {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(253, 230, 138, .22); border-radius: 16px; padding: 11px 13px;
}
.jg-moneda {
  width: 40px; height: 40px; border-radius: 50%; flex: none; color: #7a4b06; font-weight: 800; font-size: 18px;
  background: radial-gradient(circle at 34% 30%, #fff3c9, var(--dorado-2) 70%);
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -3px 6px rgba(122, 75, 6, .4);
}
.jg-info { flex: 1; line-height: 1.15; }
.jg-info small { font-size: 10.5px; color: rgba(255, 255, 255, .5); font-weight: 500; letter-spacing: .4px; text-transform: uppercase; }
.jg-info b { display: block; font-size: 21px; font-weight: 800; color: var(--dorado-1); }
.jg-nivel { text-align: right; font-size: 11px; color: rgba(255, 255, 255, .55); }
.jg-num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 7px; background: linear-gradient(180deg, var(--dorado-1), var(--dorado-2));
  color: #5a3705; font-weight: 800; font-size: 13px; margin-bottom: 3px;
}
.jg-nivel b { display: block; font-size: 12.5px; color: var(--dorado-1); font-weight: 600; letter-spacing: 1px; }

.jg-aviso { text-align: center; font-size: 14px; color: rgba(255, 255, 255, .7); padding: 22px 10px; }

.jg-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 16px; }
.jg-encab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.jg-encab h3 { font-size: 16px; font-weight: 700; color: #fff; }
.jg-pill { font-size: 10.5px; font-weight: 600; color: #7a4b06; background: var(--dorado-1); padding: 4px 9px; border-radius: 999px; }
.jg-ia { font-size: 10.5px; font-weight: 600; color: var(--dorado-1); background: rgba(245, 158, 11, .14); padding: 4px 9px; border-radius: 999px; }

/* ruleta */
.jg-ruleta-caja { position: relative; width: 240px; height: 240px; margin: 4px auto; }
.jg-puntero {
  position: absolute; top: -3px; left: 50%; transform: translateX(-50%); z-index: 5; width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 18px solid var(--dorado-1);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}
.jg-ruleta {
  width: 240px; height: 240px; border-radius: 50%; position: relative; overflow: hidden; border: 6px solid var(--dorado-2);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .5); transition: transform 4.4s cubic-bezier(.16, .84, .3, 1);
  background: conic-gradient(var(--rojo-medio) 0 45deg, #23100f 45deg 90deg, var(--rojo-medio) 90deg 135deg, #23100f 135deg 180deg,
    var(--rojo-medio) 180deg 225deg, #23100f 225deg 270deg, var(--rojo-medio) 270deg 315deg, #23100f 315deg 360deg);
}
.jg-gajo { position: absolute; inset: 0; pointer-events: none; }
.jg-gajo span {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700;
  color: var(--crema); white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}
.jg-centro {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4; width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff3c9, var(--dorado-2) 72%); border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center; font-family: "Playfair Display", serif; font-weight: 800;
  font-size: 21px; color: var(--rojo-oscuro); box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.jg-btn-oro {
  display: block; width: 100%; margin-top: 8px; padding: 14px; border-radius: 15px; font-size: 15.5px; font-weight: 800;
  letter-spacing: .4px; color: #5a3705; border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, var(--dorado-1), var(--dorado-2)); box-shadow: 0 8px 20px rgba(245, 158, 11, .32);
  transition: transform .12s, filter .12s;
}
.jg-btn-oro:hover { filter: brightness(1.05); }
.jg-btn-oro:active { transform: scale(.97); }
.jg-btn-oro:disabled { filter: grayscale(.5) brightness(.8); opacity: .6; cursor: default; box-shadow: none; }
.jg-nota { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .45); margin-top: 8px; }

/* trivia */
.jg-pregunta { font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 14px; min-height: 44px; }
.jg-opciones { display: flex; flex-direction: column; gap: 9px; }
.jg-opcion {
  text-align: left; padding: 13px 15px; border-radius: 13px; font-size: 14px; font-weight: 500; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .1); font-family: inherit;
  transition: transform .1s, background .15s, border-color .15s;
}
.jg-opcion:hover { background: rgba(255, 255, 255, .09); }
.jg-opcion:active { transform: scale(.98); }
.jg-opcion.bien { background: rgba(22, 101, 52, .35); border-color: var(--verde); color: #d9f5df; }
.jg-opcion.mal { background: rgba(185, 28, 28, .3); border-color: var(--rojo-claro); }
.jg-opcion.bloq { pointer-events: none; }
@keyframes jg-tiemble { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.jg-opcion.sacude { animation: jg-tiemble .3s; }

.jg-cambiar {
  align-self: center; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--dorado-1); cursor: pointer;
  background: none; border: 1px solid rgba(253, 230, 138, .3); border-radius: 999px; padding: 8px 16px; font-family: inherit;
}
.jg-cambiar:hover { background: rgba(253, 230, 138, .1); }

.jg-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); z-index: 200; max-width: 330px;
  background: linear-gradient(135deg, var(--rojo-medio), var(--rojo-oscuro)); border: 1px solid rgba(253, 230, 138, .5);
  border-radius: 15px; padding: 13px 19px; color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); transition: transform .5s cubic-bezier(.2, 1, .3, 1);
}
.jg-toast.ver { transform: translate(-50%, 0); }

/* ============================================================
   MENÚ INFERIOR ANCLADO
   ============================================================ */

body:has(.menu-inferior:not([hidden])) { padding-bottom: 82px; } /* espacio para el menú inferior */

.menu-inferior {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 22px 22px 0 0; /* solo esquinas superiores; pegada a los lados y abajo */
  background: rgba(8, 7, 8, 0.74); /* un poco más oscuro */
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 0.5px solid rgba(255, 210, 110, 0.55); /* borde dorado lo más fino y sutil */
  border-bottom: none;
  box-shadow:
    0 -6px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 5px 12px calc(5px + env(safe-area-inset-bottom));
}

/* reflejo superior sutil, como vidrio */
.menu-inferior::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

/* MODO CATÁLOGO: solo el orbe (sin barra ni iconos), en la MISMA posición fija */
.menu-inferior.solo-orbe {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  pointer-events: none; /* no bloquea el contenido detrás */
}
.menu-inferior.solo-orbe::before { display: none; }
.menu-inferior.solo-orbe .opcion:not(.central) { visibility: hidden; } /* invisibles pero mantienen el alto: el orbe no se mueve */
.menu-inferior.solo-orbe .central { pointer-events: auto; } /* el orbe sigue clicable */

/* mientras se escribe (teclado abierto en móvil), el orbe/menú de abajo se oculta
   para que no flote sobre el teclado ni "salte" */
body.teclado-abierto .menu-inferior { opacity: 0; pointer-events: none; transition: opacity 0.15s; }

.menu-inferior .opcion {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 9px;
  font-weight: 400; /* trazo de letra más fino y delicado */
  letter-spacing: 0.02em;
  color: #ffd23d; /* oro brillante, sin resplandor */
  padding: 4px 2px 3px;
  max-width: 90px;
  border-radius: 12px;
  transition: color 0.2s, transform 0.15s, background 0.2s;
}
.menu-inferior .opcion:hover { color: #ffe27a; }
.menu-inferior .opcion.activa {
  color: #ffe9a0;
  background: rgba(255, 205, 90, 0.12);
}
.menu-inferior .opcion svg:not(.orbe-acc) {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.3; /* trazo más fino */
}

.menu-inferior .globito {
  position: absolute;
  top: -2px;
  right: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* botón central = el ORBE del asistente, flotando por encima de la barra
   (mismo diseño que tenía en la barra de búsqueda) */
.menu-inferior .central {
  position: relative;
  align-self: stretch;
  min-width: 88px;
  max-width: 100px;
  background: none !important;
  box-shadow: none !important;
  z-index: 3;
}
.menu-inferior .orbe-menu {
  position: absolute;
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  overflow: visible;
}
.menu-inferior .orbe-menu:hover { transform: translate(-50%, -50%) scale(1.06); }
.menu-inferior .orbe-menu.apagado:hover { transform: translate(-50%, -50%); }

/* pedidos del cliente */
.linea-pedido {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  text-align: left;
}
.linea-pedido b { font-size: 14px; }
.linea-pedido small { display: block; color: var(--gris); font-size: 12px; margin-top: 3px; }
.estado-pedido {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  margin-top: 6px;
}
.estado-pedido.lista { background: #dcfce7; color: #166534; }
.estado-pedido.entregada { background: #e5e7eb; color: #374151; }

/* ============================================================
   CARRITO Y PEDIDOS (Modo de compra)
   ============================================================ */

.btn-mas-carrito {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--verde);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.btn-mas-carrito:hover { transform: scale(1.12); background: #fff; }

.compra-ficha { display: flex; gap: 12px; margin-top: 18px; align-items: center; }

.contador-cantidad {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 4px;
}
.contador-cantidad button {
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 17px;
  color: var(--tinta);
  display: flex; align-items: center; justify-content: center;
}
.contador-cantidad button:hover { background: #f0e8dc; }
.contador-cantidad span { min-width: 28px; text-align: center; font-weight: 700; font-size: 15px; }

.btn-agregar-carrito {
  flex: 1;
  background: var(--verde);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 16px;
  border-radius: 999px;
  transition: filter 0.15s;
}
.btn-agregar-carrito:hover { filter: brightness(1.1); }

.boton-carrito {
  display: none !important; /* el carrito vive en el menú inferior */
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--verde);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  z-index: 60;
  transition: transform 0.15s ease;
}
.boton-carrito:hover { transform: scale(1.07); }
.cuenta-carrito {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rojo-claro);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

.ficha.carrito .datos h3 { font-size: 20px; }
.linea-carrito {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.linea-carrito img, .linea-carrito .sin-foto {
  width: 44px; height: 44px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  font-size: 20px;
}
.linea-carrito .info { flex: 1; min-width: 0; }
.linea-carrito .info b { font-size: 13.5px; display: block; line-height: 1.3; }
.linea-carrito .info small { color: var(--gris); font-size: 12px; }
.linea-carrito .contador-cantidad { padding: 2px; }
.linea-carrito .contador-cantidad button { width: 26px; height: 26px; font-size: 14px; }
.linea-carrito .contador-cantidad span { min-width: 22px; font-size: 13.5px; }
.linea-carrito .quitar { color: var(--rojo-claro); font-size: 15px; padding: 4px; opacity: 0.7; }
.linea-carrito .quitar:hover { opacity: 1; }

.carrito-vacio { text-align: center; color: var(--gris); padding: 30px 0; font-size: 14.5px; }

.total-carrito {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  padding: 14px 0 4px;
}

.btn-whatsapp {
  display: block;
  width: 100%;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: 999px;
  margin-top: 12px;
  transition: filter 0.15s;
}
.btn-whatsapp:hover { filter: brightness(1.06); }
.btn-vaciar {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  font-size: 13px;
  color: var(--gris);
}
.btn-vaciar:hover { color: var(--rojo-claro); }
.nota-carrito { margin-top: 10px; font-size: 12.5px; color: var(--gris); text-align: center; }

/* móvil */
@media (max-width: 560px) {
  .rejilla { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 20px 14px 50px; }
  .accesos { gap: 20px; }
  .rasgos { gap: 22px; }

  /* los campos de texto a 16px evitan que el iPhone haga zoom al escribir */
  input, select, textarea { font-size: 16px !important; }
}
