:root {
  --azul: #071e4c;
  --azul-oscuro: #041230;
  --rojo: #c8102e;
  --rojo-hover: #a50c25;
  --amarillo: #f6c324;
  --verde-wa: #1ebe57;
  --crema: #f7f5f0;
  --blanco: #ffffff;
  --texto: #1e2433;
  --fuente-sans: 'DM Sans', system-ui, sans-serif;
  --fuente-serif: 'Lora', Georgia, serif;
  --fuente-script: 'Satisfy', cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-sans);
  background-color: var(--crema);
  background-image: radial-gradient(rgba(7, 30, 76, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--texto);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HERO Y NAVEGACIÓN ================= */
.hero {
  position: relative;
  min-height: 560px;
  background-color: #1c120c;
  color: var(--blanco);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-fondo {
  position: absolute;
  inset: 0;
  background-image: url('fotos/02-kippe-croquetas-y-empanadillas.jpg');
  background-size: cover;
  background-position: right center;
  z-index: 0;
}

.hero-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(22, 12, 7, 0.92) 0%,
    rgba(28, 15, 9, 0.78) 48%,
    rgba(28, 15, 9, 0.22) 100%
  );
  z-index: 1;
}

.onda-top-izq {
  position: absolute;
  top: 0;
  left: 0;
  width: 460px;
  height: 190px;
  z-index: 2;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.logo-svg-hero {
  width: 310px;
  max-width: 82vw;
  height: auto;
  margin-top: -6px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.topbar nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blanco);
  transition: background 0.2s ease, transform 0.2s ease;
}

.topbar nav a:hover,
.topbar nav a.activo {
  background: var(--rojo);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.45);
}

.hero-contenido {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 28px 125px;
}

.hero-texto {
  max-width: 560px;
}

.hero-texto h1 {
  line-height: 1.02;
  margin-bottom: 14px;
}

.titulo-serif {
  display: block;
  font-family: var(--fuente-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.85rem);
  color: var(--blanco);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}

.titulo-script {
  display: block;
  font-family: var(--fuente-script);
  font-weight: 400;
  font-size: clamp(3.1rem, 6vw, 4.5rem);
  color: var(--amarillo);
  margin-left: 70px;
  margin-top: -6px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
}

.eslogan {
  font-family: var(--fuente-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--blanco);
  margin-bottom: 26px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.eslogan::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--rojo), transparent);
}

.botones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-rojo {
  background: var(--rojo);
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-rojo:hover {
  background: var(--rojo-hover);
}

.btn-oscuro-borde {
  background: rgba(18, 14, 12, 0.72);
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.btn-oscuro-borde:hover {
  background: rgba(255, 255, 255, 0.16);
}

.onda-hero-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 115px;
  z-index: 3;
  pointer-events: none;
}

/* ================= SECCIONES GENERALES ================= */
.seccion {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px;
}

.titulo-decorado {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 6px;
}

.titulo-decorado h2 {
  font-family: var(--fuente-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.55rem);
  font-weight: 700;
  color: var(--azul);
  text-align: center;
}

.linea-azul,
.linea-roja,
.linea-roja-azul {
  height: 3px;
  width: 170px;
  border-radius: 2px;
}

.linea-azul {
  background: var(--azul);
}

.linea-roja {
  background: var(--rojo);
}

.linea-roja-azul {
  background: linear-gradient(90deg, var(--rojo) 0%, var(--rojo) 65%, var(--azul) 65%, var(--azul) 100%);
}

.subtitulo {
  text-align: center;
  color: var(--azul);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 28px;
}

/* ================= CATÁLOGO (3 COLUMNAS PARA TUS 6 FOTOS) ================= */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.producto-card {
  background: var(--blanco);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(7, 30, 76, 0.12);
  border: 2px solid var(--blanco);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(7, 30, 76, 0.18);
}

.producto-foto {
  aspect-ratio: 4 / 3;
  background: #e9e4da;
  overflow: hidden;
  position: relative;
}

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

.foto-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 700;
  color: var(--azul);
  text-align: center;
  padding: 10px;
}

.producto-foto.sin-foto img {
  display: none;
}

.producto-foto.sin-foto .foto-placeholder {
  display: flex;
}

.producto-etiqueta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  color: var(--blanco);
  text-align: center;
  margin-top: -12px;
  border-radius: 14px 14px 16px 16px;
  position: relative;
  z-index: 2;
}

.etiqueta-azul {
  background: var(--azul);
}

.etiqueta-roja {
  background: var(--rojo);
}

.producto-etiqueta strong {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.producto-etiqueta span {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 2px;
}

/* ================= BENEFICIOS ================= */
.beneficios-section {
  padding-top: 14px;
  padding-bottom: 24px;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 16px;
}

.beneficio-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 18px;
  position: relative;
}

.beneficio-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1.5px;
  background: rgba(7, 30, 76, 0.25);
}

.beneficio-icono.azul {
  color: var(--azul);
}

.beneficio-icono.rojo {
  color: var(--rojo);
}

.beneficio-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--azul);
  line-height: 1.2;
}

.beneficio-item p {
  font-size: 0.88rem;
  color: #3a4359;
  margin-top: 2px;
}

/* ================= PROMOCIONES ESPECIALES ================= */
.promo-banner {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(95deg, #061b46 0%, #0b2d6b 48%, #7a1426 100%);
  box-shadow: 0 12px 30px rgba(7, 30, 76, 0.22);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  min-height: 225px;
}

.promo-texto {
  padding: 26px 20px 26px 44px;
  position: relative;
  z-index: 2;
}

.promo-texto h2 {
  line-height: 1;
}

.promo-blanca {
  display: block;
  font-family: var(--fuente-script);
  font-size: clamp(2.5rem, 4.5vw, 3.6rem);
  font-weight: 400;
  color: var(--blanco);
  transform: rotate(-3deg);
}

.promo-amarilla {
  display: block;
  font-family: var(--fuente-script);
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 400;
  color: var(--amarillo);
  margin-left: 58px;
  margin-top: -6px;
  transform: rotate(-3deg);
}

.promo-cinta {
  margin-top: 12px;
  margin-left: 190px;
}

.promo-cinta a {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 9px 26px;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
  transition: transform 0.2s ease, background 0.2s ease;
}

.promo-cinta a:hover {
  background: var(--rojo-hover);
  transform: rotate(-3deg) scale(1.04);
}

.promo-chispas {
  position: absolute;
  left: 41%;
  top: 24%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.promo-chispas span {
  display: block;
  width: 22px;
  height: 5px;
  border-radius: 99px;
  background: var(--amarillo);
}

.promo-chispas span:nth-child(1) { transform: rotate(-28deg); }
.promo-chispas span:nth-child(2) { transform: rotate(-4deg) translateX(5px); }
.promo-chispas span:nth-child(3) { transform: rotate(22deg); }

.promo-imagen {
  height: 100%;
  min-height: 225px;
  position: relative;
}

.promo-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent 0%, black 18%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%);
}

/* ================= GALERÍA / CARRUSEL ================= */
.galeria-section {
  padding-bottom: 42px;
}

.carrusel {
  position: relative;
  display: flex;
  align-items: center;
}

.pista {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 14px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  padding: 6px 2px;
}

.pista::-webkit-scrollbar {
  display: none;
}

.pista > * {
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 6px 16px rgba(7, 30, 76, 0.14);
  border: 2px solid var(--blanco);
  background: #e5dfd3;
}

.pista img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(7, 30, 76, 0.85);
  color: var(--blanco);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.flecha.izq { left: -12px; }
.flecha.der { right: -12px; }

.puntos {
  display: none;
}

/* ================= CTA PEDIDOS + FOOTER ================= */
.cierre-wrapper {
  position: relative;
  margin-top: 10px;
}

.onda-cta-top {
  display: block;
  width: 100%;
  height: 55px;
  margin-bottom: -1px;
}

.cta-pedidos {
  background: var(--azul);
  color: var(--blanco);
  padding: 14px 24px 30px;
}

.cta-contenido {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-texto h2 {
  font-family: var(--fuente-script);
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.cta-texto p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-top: 2px;
}

.cta-accion {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-whatsapp-verde {
  background: var(--verde-wa);
  color: var(--blanco);
  border: 2px solid var(--blanco);
  padding: 13px 28px;
  font-size: 1.08rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp-verde:hover {
  background: #18a84b;
}

.cta-chispas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-chispas span {
  display: block;
  width: 24px;
  height: 5px;
  border-radius: 99px;
  background: var(--amarillo);
}

.cta-chispas span:nth-child(1) { transform: rotate(-28deg); }
.cta-chispas span:nth-child(2) { transform: rotate(0deg) translateX(6px); }
.cta-chispas span:nth-child(3) { transform: rotate(28deg); }

.footer-tricolor {
  position: relative;
  background: var(--rojo);
  color: var(--blanco);
  padding: 18px 28px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  min-height: 78px;
}

.footer-redes {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.footer-redes a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blanco);
  color: var(--rojo);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.footer-redes a:hover {
  transform: scale(1.1);
}

.copyright {
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}

.copyright a:hover {
  text-decoration: underline;
}

.onda-footer-der {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 480px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ================= WHATSAPP FLOTANTE ================= */
.whats-flotante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde-wa);
  color: var(--blanco);
  border: 3px solid var(--blanco);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.whats-flotante:hover {
  transform: scale(1.08);
}

/* ================= ASISTENTE VIRTUAL ================= */
.chat-launcher {
  position: fixed;
  right: 92px;
  bottom: 22px;
  z-index: 50;
  height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--azul);
  color: var(--blanco);
  border: 3px solid var(--blanco);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(7, 30, 76, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.chat-launcher:hover {
  transform: scale(1.05);
  background: var(--rojo);
}

.chat-badge {
  font-family: var(--fuente-sans);
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-widget {
  position: fixed;
  right: 22px;
  left: auto;
  bottom: 92px;
  z-index: 60;
  width: 350px;
  max-width: calc(100vw - 44px);
  height: 470px;
  max-height: calc(100vh - 120px);
  background: var(--crema);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(7, 30, 76, 0.28);
  border: 2px solid var(--blanco);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-widget.abierto {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: linear-gradient(135deg, var(--azul) 0%, #0d2f73 100%);
  color: var(--blanco);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--rojo);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blanco);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.chat-header-info strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.1;
}

.chat-header-info span {
  font-size: 0.78rem;
  opacity: 0.85;
}

.chat-close {
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.4;
  animation: aparecerMsg 0.2s ease;
}

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

.msg.bot {
  align-self: flex-start;
  background: var(--blanco);
  color: var(--texto);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(7, 30, 76, 0.08);
}

.msg.user {
  align-self: flex-end;
  background: var(--azul);
  color: var(--blanco);
  border-bottom-right-radius: 4px;
}

.chat-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.chat-chip {
  background: var(--blanco);
  color: var(--azul);
  border: 1.5px solid var(--azul);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chat-chip:hover {
  background: var(--azul);
  color: var(--blanco);
}

.chat-chip.destacado {
  background: var(--verde-wa);
  border-color: var(--verde-wa);
  color: var(--blanco);
}

.chat-chip.destacado:hover {
  background: #18a84b;
}

.chat-input-area {
  display: flex;
  padding: 10px;
  background: var(--blanco);
  border-top: 1px solid rgba(7, 30, 76, 0.1);
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  border: 1.5px solid #d5dbe6;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--fuente-sans);
  font-size: 0.9rem;
  outline: none;
}

.chat-input-area input:focus {
  border-color: var(--azul);
}

.chat-input-area input:disabled {
  background: #f1f3f7;
}

.chat-input-area button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--rojo);
  color: var(--blanco);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.chat-input-area button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ================= RESEÑAS ================= */
.reviews-section {
  background: #ffffff;
  color: #071e4c;
  padding: 1.75rem 1rem;
  border-top: 3px solid #c8102e;
}

.reviews-container {
  max-width: 600px;
  margin: 0 auto;
}

.reviews-container h2 {
  color: #071e4c;
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}

.reviews-subtitle {
  color: #334155;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.review-form {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #071e4c;
  border-radius: 8px;
  padding: 0.95rem 1rem;
  margin-bottom: 1.35rem;
  display: grid;
  gap: 0.65rem;
}

.review-row {
  display: grid;
  gap: 0.25rem;
}

.review-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #071e4c;
}

.review-row input,
.review-row select,
.review-row textarea {
  width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.92rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  color: #071e4c;
  font-family: inherit;
}

.review-row textarea {
  min-height: 68px;
  resize: vertical;
}

.btn-review-submit {
  background: #c8102e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.52rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  justify-self: start;
}

.btn-review-submit:hover {
  background: #071e4c;
}

.review-status {
  font-size: 0.88rem;
  margin: 0;
}

.review-status.is-success {
  color: #071e4c;
  font-weight: 600;
}

.review-status.is-error {
  color: #c8102e;
  font-weight: 600;
}

.reviews-list {
  display: grid;
  gap: 0.75rem;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #071e4c;
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.review-stars {
  color: #eab308;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.review-comment {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: #1e293b;
}

.review-date {
  font-size: 0.78rem;
  color: #64748b;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .beneficios-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .beneficio-item:not(:last-child)::after {
    display: none;
  }

  .promo-banner {
    grid-template-columns: 1fr;
  }

  .promo-cinta {
    margin-left: 0;
  }

  .promo-chispas {
    display: none;
  }

  .pista {
    grid-auto-columns: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: center;
  }

  .logo-svg-hero {
    width: 240px;
  }

  .titulo-script {
    margin-left: 24px;
  }

  .linea-azul,
  .linea-roja,
  .linea-roja-azul {
    width: 55px;
  }

  .productos-grid {
    grid-template-columns: 1fr;
  }

  .pista {
    grid-auto-columns: 85%;
  }

  .onda-footer-der {
    width: 240px;
  }

  .chat-badge {
    display: none;
  }

  .chat-launcher {
    width: 58px;
    padding: 0;
    justify-content: center;
  }
}
/* ================= MEJORAS ================= */

/* Banner de promociones: altura controlada (antes crecia con la foto) */
.promo-banner { min-height: 0; }
.promo-imagen { height: 290px; min-height: 0; }
.promo-imagen img { height: 100%; object-position: center 40%; }

/* Foco visible para quien navega con teclado */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 2px;
}

/* Avatar del chat con el logo real */
.chat-avatar { overflow: hidden; }
.chat-avatar img { width: 34px; height: 34px; object-fit: contain; }

@media (max-width: 960px) {
  .promo-imagen { height: 230px; }
}

/* Celular */
@media (max-width: 640px) {
  /* Onda decorativa mas pequena para que no tape el logo */
  .onda-top-izq { width: 210px; height: 85px; }

  /* Menu en una sola fila que se desliza, en vez de 3 filas */
  .topbar { padding-top: 14px; gap: 10px; }
  .topbar nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 2px 6px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
            mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: 0 0 auto; padding: 7px 13px; font-size: 0.86rem; white-space: nowrap;
    background: rgba(255, 255, 255, 0.12); }
  .topbar nav a:hover, .topbar nav a.activo { background: var(--rojo); }

  .hero { min-height: 0; }
  .hero-contenido { padding-bottom: 110px; }

  .titulo-decorado { gap: 12px; }
  .titulo-decorado h2 { font-size: 1.65rem; }
  .linea-azul, .linea-roja, .linea-roja-azul { width: 28px; }
  .subtitulo { padding: 0 6px; }
  .cta-contenido { justify-content: center; text-align: center; }
}

/* Respetar a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pista { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Estado del asistente: punto verde en horario, amarillo fuera de horario */
.chat-estado::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #3ddc84;
}
.chat-estado.cerrado::before { background: var(--amarillo); }
