/**
 * Archivo principal de estilos de la aplicación Huérfanas.
 * Sigue la metodología BEM (Block Element Modifier), diseño Mobile First,
 * e implementa Custom Properties para el sistema de diseño.
 */

/* ---------- GOOGLE FONTS FALLBACK + LOCAL FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Alte+Haas+Grotesk:wght@400;700&display=swap');

/* American Typewriter fallback stack (si no está instalada, usar Georgia como serif similar) */
/* Para producción, añadir @font-face con la fuente real */

/**
 * 1. VARIABLES CSS
 * Definición de la paleta de colores, tipografías, espaciados base,
 * bordes, sombras y variables estructurales globales.
 */
:root {
  /* --- Colores de marca --- */
  --color-amarillo-salsa: #EAC759;
  --color-oscuro-base: #1C0A0B;
  --color-cafe-cebolla: #513D3B;
  --color-naranja-aji: #FECB37;
  --color-rojo-pasion: #9E1B15;

  /* --- Semánticos (modo oscuro por defecto) --- */
  --bg-primary: var(--color-oscuro-base);
  --bg-secondary: #2A1214;
  --bg-card: #231012;
  --bg-card-hover: #2e1618;
  --bg-nav: rgba(28, 10, 11, 0.92);
  --text-primary: #F4F4F4;
  --text-secondary: #C4B49A;
  --text-muted: #8A7265;
  --border-color: rgba(234, 199, 89, 0.15);
  --border-hover: var(--color-rojo-pasion);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px rgba(234, 199, 89, 0.12);

  /* --- Tipografías --- */
  --font-title: 'American Typewriter', 'Rockwell', Georgia, serif;
  --font-body: 'Alte Haas Grotesk', 'Inter', system-ui, sans-serif;

  /* --- Espaciado base (rem del logo) --- */
  --logo-padding: 0.75em;
  /* aprox. altura de "a" minúscula */

  /* --- Radios y transiciones --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Navbar --- */
  --nav-height: 72px;
}

/**
 * 2. RESET Y ESTILOS BASE
 * Reinicio de estilos por defecto del navegador y configuración global
 * del documento, incluyendo fuentes y comportamiento de scroll.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/**
 * 3. COMPONENTE DE NAVEGACIÓN (NAVBAR)
 * Estilos para la barra superior, incluyendo logotipo, enlaces,
 * botones de acción y menú móvil tipo hamburguesa.
 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  /* border-bottom: 1px solid var(--border-color); Eliminado por lineas blancas feas */
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.navbar__container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo — padding igual a la altura de la "a" minúscula del logo (≈0.75em) */
.navbar__logo {
  display: flex;
  align-items: center;
  padding: var(--logo-padding);
  flex-shrink: 0;
}

.navbar__logo-full {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(234, 199, 89, 0.3));
  transition: filter 0.3s ease;
}

.navbar__logo-iso {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: none;
  filter: drop-shadow(0 0 8px rgba(234, 199, 89, 0.3));
}

.navbar__logo:hover .navbar__logo-full,
.navbar__logo:hover .navbar__logo-iso {
  filter: drop-shadow(0 0 14px rgba(234, 199, 89, 0.6));
}

/* Nav links */
.navbar__nav {
  display: none;
}

.navbar__list {
  display: flex;
  gap: 0.25rem;
}

.navbar__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-amarillo-salsa);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.navbar__link:hover {
  color: var(--color-amarillo-salsa);
}

.navbar__link:hover::after {
  width: 60%;
}

/* Actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-theme {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.btn-theme:hover {
  background: var(--color-amarillo-salsa);
}

.btn-cart {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-rojo-pasion);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(158, 27, 21, 0.4);
}

.btn-cart:hover {
  background: #b31f19;
  transform: scale(1.05);
}

.btn-cart__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: var(--color-amarillo-salsa);
  color: var(--color-oscuro-base);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--bg-primary);
  transition: transform 0.2s ease;
}

.btn-cart__badge.pulse {
  animation: badge-pulse 0.4s ease;
}

@keyframes badge-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

/* Hamburger (mobile) */
.btn-hamburger {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.btn-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.btn-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Open */
.navbar__nav.open {
  display: flex;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  padding: 1.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  animation: slideDown 0.3s ease;
}

.navbar__nav.open .navbar__list {
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.navbar__nav.open .navbar__link {
  font-size: 1.1rem;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**
 * 4. SECCIÓN HERO (INICIO)
 * Imagen protagonista, barra de info pegada al fondo.
 */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

/* Imagen de fondo — casi sin filtro */
.hero__bg {
  position: absolute;
  inset: -4px; /* Fix for edge subpixel bleeding */
  background-image: url('imagenes/logo_page-0001.jpg');
  background-size: cover;
  background-position: center center;
  filter: brightness(0.88) saturate(1.05);
  animation: hero-zoom 2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (max-width: 768px) {
  .hero__bg {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #0b0505;
  }
}

/* Vignette top (para que el navbar se integre) */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(
    to bottom,
    rgba(5, 1, 1, 0.55) 0%,
    transparent 22%
  );
}

/* Vignette bottom (para el contenido) */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(
    to top,
    rgba(5, 1, 1, 0.90) 0%,
    rgba(5, 1, 1, 0.55) 18%,
    transparent 38%
  );
}

@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.01); }
}

/* Barra de info pegada al fondo */
.hero__bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(158, 27, 21, 0.3);
  border: 1px solid rgba(158, 27, 21, 0.55);
  color: var(--color-amarillo-salsa);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.5s ease both;
  width: fit-content;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  animation: fadeInUp 0.5s 0.1s ease both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  animation: fadeInUp 0.5s 0.2s ease both;
}

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

/* Mobile: apila info y botones verticalmente */
@media (max-width: 580px) {
  .hero__bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }
  .hero__cta {
    width: 100%;
  }
  .hero__cta .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* ── Diablito — Carrito vacío ────────────────────────────── */
.cart-empty__diablito {
  width: 100px;
  height: 100px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter:
    sepia(1) saturate(2.5) hue-rotate(10deg) brightness(1.1) drop-shadow(0 2px 10px rgba(234, 199, 89, 0.2));
  animation: diablito-float 3s ease-in-out infinite;
}


/**
 * 5. COMPONENTES DE BOTONES (BUTTONS)
 * Estilos modulares para botones primarios, secundarios y de adición,
 * incluyendo sus variantes, transiciones y efectos hover/pulse.
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-rojo-pasion);
  color: #fff;
  border-color: var(--color-rojo-pasion);
  box-shadow: 0 4px 20px rgba(158, 27, 21, 0.35);
}

.btn--primary:hover {
  background: #b31f19;
  border-color: #b31f19;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(158, 27, 21, 0.5);
}

.btn--secondary {
  background: transparent;
  color: var(--color-amarillo-salsa);
  border-color: var(--color-amarillo-salsa);
}

.btn--secondary:hover {
  background: var(--color-amarillo-salsa);
  color: var(--color-oscuro-base);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.btn--pulse {
  animation: btnPulse 2.5s infinite;
}

@keyframes btnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 199, 89, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(234, 199, 89, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(234, 199, 89, 0);
  }
}

.btn--add {
  background: var(--color-rojo-pasion);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  box-shadow: 0 2px 10px rgba(158, 27, 21, 0.3);
}

.btn--add:hover {
  background: #b31f19;
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(158, 27, 21, 0.5);
}

.btn--add-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.btn--full {
  width: 100%;
}

/**
 * 6. ENCABEZADOS DE SECCIÓN (SECTION HEADER)
 * Títulos y subtítulos estándar utilizados para separar las diferentes
 * secciones de contenido de la página.
 */
.section-header {
  text-align: center;
  padding: 7rem 1.25rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-header__tag {
  display: inline-block;
  background: rgba(234, 199, 89, 0.15);
  border: 1px solid rgba(234, 199, 89, 0.3);
  color: var(--color-amarillo-salsa);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-header__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-header__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/**
 * 7. SECCIONES DEL MENÚ
 * Contenedores y divisiones principales para agrupar los ítems
 * del menú de comida y bebida.
 */
#menu {
  padding-bottom: 4rem;
}

.menu-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.menu-section__title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-section__emoji {
  font-size: 1.4rem;
}

/**
 * 8. GRID DE MENÚ Y TARJETAS DE PRODUCTO (CARDS)
 * Sistema de grillas responsivo y estilos para las tarjetas de producto,
 * animaciones de imagen, badges e inputs de extras.
 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.menu-grid--sides {
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}

/* Card */
.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(158, 27, 21, 0.15), 0 0 0 1px var(--color-rojo-pasion);
  z-index: 1;
}

.menu-card--featured {
  border-color: rgba(234, 199, 89, 0.3);
  box-shadow: 0 0 0 1px rgba(234, 199, 89, 0.2), var(--shadow-glow);
}

.menu-card--featured:hover {
  border-color: var(--color-amarillo-salsa);
  box-shadow: 0 0 0 1px var(--color-amarillo-salsa), var(--shadow-card);
}

/* Image wrapper */
.menu-card__img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.menu-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover .menu-card__img {
  transform: scale(1.08);
}

/* Hover overlay */
.menu-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28, 10, 11, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.menu-card:hover .menu-card__hover-overlay {
  opacity: 1;
}

.menu-card__flame {
  font-size: 1.8rem;
  animation: flicker 1s infinite alternate;
  filter: drop-shadow(0 0 8px rgba(254, 203, 55, 0.8));
}

@keyframes flicker {
  from {
    transform: scale(1) rotate(-3deg);
  }

  to {
    transform: scale(1.1) rotate(3deg);
  }
}

/* Badge */
.menu-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(4px);
}

.menu-card__badge--hot {
  background: var(--color-rojo-pasion);
  color: #fff;
  border-color: var(--color-rojo-pasion);
  box-shadow: 0 2px 12px rgba(158, 27, 21, 0.5);
}

.menu-card__badge--extreme {
  background: linear-gradient(135deg, var(--color-rojo-pasion), #6b0f0b);
  color: #fff;
  border-color: transparent;
}

/* Body */
.menu-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.menu-card__name {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.menu-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

/* Extras (Extra Queso) */
.menu-card__extras {
  margin-top: 0.25rem;
}

.extras-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
  transition: var(--transition);
}

.extras-label:hover {
  border-color: var(--color-amarillo-salsa);
  color: var(--color-amarillo-salsa);
}

.extras-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-amarillo-salsa);
  cursor: pointer;
  flex-shrink: 0;
}

.extras-label__text em {
  color: var(--color-amarillo-salsa);
  font-style: normal;
  font-weight: 700;
}

/* Footer */
.menu-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  gap: 0.75rem;
}

.menu-card__price {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-amarillo-salsa);
}

/* Side cards (bebidas) */
.menu-card--side .menu-card__img-wrapper {
  aspect-ratio: 16 / 9;
}

.menu-card--side .menu-card__name {
  font-size: 1rem;
}

.menu-card--side .menu-card__price {
  font-size: 1.1rem;
}

/* Drinks container */
.drinks-container {
  display: contents;
}

/**
 * 9. INTERFAZ DE ENTREGA (DELIVERY)
 * Componente integrado en el carrito para mostrar el estado del cálculo
 * de distancia, mensajes de error y resumen de costo de envío.
 */

.cart-delivery {
  border-top: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-shrink: 0;
  background: var(--bg-card);
}

.cart-delivery__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Botón geolocalización */
.btn-geo {
  width: 100%;
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--color-amarillo-salsa);
  background: rgba(234, 199, 89, 0.08);
  border: 1.5px solid rgba(234, 199, 89, 0.3);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-geo--outline {
  background: transparent;
  border: 1px solid var(--color-amarillo-salsa);
  color: var(--text-primary);
}

.btn-geo__content,
.btn-geo__spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-geo:hover {
  background: rgba(234, 199, 89, 0.16);
  border-color: var(--color-amarillo-salsa);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(234, 199, 89, 0.12);
}

.btn-geo:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner animado SVG */
.spinner-icon {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
}

.spinner-icon .path {
  stroke: var(--color-amarillo-salsa);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }

  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Panel de estado del delivery */
.delivery-status {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

.delivery-status--ok {
  background: rgba(234, 199, 89, 0.07);
  border: 1.5px solid rgba(234, 199, 89, 0.28);
  color: var(--text-secondary);
}

.delivery-status--error {
  background: rgba(158, 27, 21, 0.1);
  border: 1.5px solid var(--color-rojo-pasion);
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.delivery-status--warn {
  background: rgba(254, 203, 55, 0.08);
  border: 1.5px solid rgba(254, 203, 55, 0.3);
  color: var(--text-secondary);
}

/* Filas dentro del panel OK */
.ds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
}

.ds-row--highlight {
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-color);
}

.ds-cost {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--color-amarillo-salsa);
}

/* Imagen diablote (fuera de rango) */
.ds-diablote {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  animation: devilShake 0.7s ease infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(158, 27, 21, 0.4));
}

@keyframes devilShake {
  from {
    transform: rotate(-5deg);
  }

  to {
    transform: rotate(5deg);
  }
}

@keyframes shakeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  60% {
    transform: scale(1.02);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.delivery-status--error strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-rojo-pasion);
  margin-bottom: 0.3rem;
}

.delivery-status--error p {
  margin-bottom: 0.5rem;
}

/* Botones secundarios dentro del status */
.btn--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  margin-top: 0.35rem;
}

/* Bloqueo del botón WhatsApp si hay out-of-range */
.btn--blocked {
  opacity: 0.4 !important;
  pointer-events: none !important;
  filter: grayscale(0.5);
}

/**
 * 10. PIE DE PÁGINA (FOOTER)
 * Información de contacto, horarios, links a redes sociales y derechos.
 */
.footer {
  background: #0E0506;
}

.footer__top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 10px rgba(234, 199, 89, 0.3));
}

.footer__tagline {
  font-size: 0.9rem;
  color: #8A7265;
}

.footer__section-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--color-amarillo-salsa);
  margin-bottom: 1rem;
}

.footer__text {
  font-size: 0.88rem;
  color: #8A7265;
  line-height: 1.6;
}

.footer__hours {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #8A7265;
}

.footer__contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #C4B49A;
  padding: 0.5rem 0;
  transition: color 0.25s;
}

.footer__contact-link:hover {
  color: var(--color-amarillo-salsa);
}

.footer__contact-link--wa:hover {
  color: #25D366;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: #C4B49A;
  padding: 0.5rem 0;
  transition: color 0.25s;
}

.footer__social-link--ig:hover {
  color: #E1306C;
}

.footer__social-link--tt:hover {
  color: #69C9D0;
}

.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #5A4040;
}

.footer__devil {
  color: #8A5555;
}

/**
 * 11. BOTÓN FLOTANTE DE WHATSAPP
 * Estilos y animaciones del botón persistente de contacto.
 */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/**
 * 12. BARRA LATERAL DEL CARRITO (CART SIDEBAR)
 * Contenedor del carrito de compras off-canvas, incluyendo ítems,
 * datos del cliente, totales e inputs relacionados.
 */
.cart-sidebar {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.cart-sidebar[hidden] {
  display: none;
}

.cart-sidebar__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.cart-sidebar__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.cart-sidebar__title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.cart-sidebar__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-sidebar__close:hover {
  background: var(--color-rojo-pasion);
  color: #fff;
}

.cart-sidebar__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Zona scrollable del carrito (todo entre header y footer) */
.cart-sidebar__scrollable {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.cart-sidebar__items {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 3rem 1rem;
}

.cart-empty__emoji {
  font-size: 3rem;
  animation: devilShake 1.5s ease infinite alternate;
}

/* Cart Item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  animation: fadeInUp 0.2s ease;
}

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cart-item__detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-item__qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.cart-item__qty-btn:hover {
  background: var(--color-rojo-pasion);
  color: #fff;
}

.cart-item__qty {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}

.cart-item__price {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--color-amarillo-salsa);
  min-width: 50px;
  text-align: right;
}

/* Customer Data Inputs */
.cart-customer-data {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-card);
  padding-bottom: 1.25rem;
}

.cart-customer-data__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-customer-data__field label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cart-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
}

.cart-input:focus {
  outline: none;
  border-color: var(--color-amarillo-salsa);
  box-shadow: 0 0 0 2px rgba(234, 199, 89, 0.2);
}

.cart-input::placeholder {
  color: var(--text-muted);
}

/* Footer totals */
.cart-sidebar__footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cart-totals__row--total {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 700;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.cart-order-btn {
  font-size: 0.95rem;
}

/**
 * 13. NOTIFICACIONES EMERGENTES (TOAST)
 * Alertas visuales temporales (ej. producto agregado al carrito).
 */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-cafe-cebolla);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast[hidden] {
  display: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   14. RESPONSIVE — TABLET + DESKTOP
   ============================================================ */
@media (min-width: 640px) {
  .navbar__logo-full {
    height: 48px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-grid--sides {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

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

@media (min-width: 768px) {
  .btn-hamburger {
    display: none;
  }

  .navbar__nav {
    display: flex;
    position: static;
    padding: 0;
    background: none;
    border: none;
    animation: none;
  }

  .navbar__logo-full {
    display: block;
  }

  .navbar__logo-iso {
    display: none;
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* Mobile — only isotipo in navbar */
@media (max-width: 480px) {
  .navbar__logo-full {
    display: none;
  }

  .navbar__logo-iso {
    display: block;
  }
}

/* ============================================================
   15. SCROLLBAR PERSONALIZADA
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-cafe-cebolla);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-rojo-pasion);
}

/* ============================================================
   16. UTILIDADES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* ============================================================
   17. NUEVOS COMPONENTES DEL CARRITO
   ============================================================ */

/* --- Aviso de local cerrado --- */
.cart-closed-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(158, 27, 21, 0.12);
  border: 1.5px solid var(--color-rojo-pasion);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 0.75rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.cart-closed-notice__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cart-closed-notice strong {
  display: block;
  color: var(--color-rojo-pasion);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

/* --- Selector Delivery / Pick-Up --- */
.cart-order-type {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-shrink: 0;
  background: var(--bg-card);
}

.order-type-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.order-type-toggle {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
}

.order-type-btn {
  flex: 1;
  padding: 0.65rem 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.order-type-btn:first-child {
  border-right: 1.5px solid var(--border-color);
}

.order-type-btn--active {
  background: var(--color-rojo-pasion);
  color: #fff;
}

.order-type-btn:hover:not(.order-type-btn--active) {
  background: rgba(234, 199, 89, 0.08);
  color: var(--color-amarillo-salsa);
}

/* --- Aviso pick-up --- */
.pickup-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(234, 199, 89, 0.07);
  border: 1.5px solid rgba(234, 199, 89, 0.28);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.25s ease;
}

.pickup-notice strong {
  display: block;
  color: var(--color-amarillo-salsa);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

/* --- Selector de local para pick-up --- */
.pickup-local-selector {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: fadeInUp 0.25s ease;
}

.pickup-local-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* --- Aviso método de pago --- */
.payment-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: rgba(42, 95, 165, 0.1);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.payment-notice strong {
  color: var(--color-amarillo-salsa);
}

/* --- Nota manual envío --- */
.delivery-manual-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0.25rem;
  line-height: 1.4;
}

/* --- Toggle de factura --- */
.invoice-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.invoice-toggle-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--color-amarillo-salsa);
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Extra queso numérico (doble/triple) --- */
.extras-qty-control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.extras-qty-control:hover {
  border-color: var(--color-amarillo-salsa);
}

.extras-qty-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.extras-qty-label em {
  color: var(--color-amarillo-salsa);
  font-style: normal;
  font-weight: 700;
}

.extras-qty-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.extras-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  line-height: 1;
}

.extras-qty-btn:hover {
  background: var(--color-rojo-pasion);
  color: #fff;
}

.extras-qty-value {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 18px;
  text-align: center;
  color: var(--color-amarillo-salsa);
}

.extras-qty-max {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   18. MODAL DE CONFIRMACIÓN DE PEDIDO
   ============================================================ */

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.order-modal[hidden] {
  display: none !important;
}

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  cursor: pointer;
  animation: fadeIn 0.25s ease;
}

.order-modal__box {
  position: relative;
  width: min(480px, 100%);
  max-height: 90svh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.order-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.order-modal__title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.order-modal__body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  flex: 1;
  min-height: 0;
}

.order-modal__footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* --- Resumen dentro del modal --- */
.confirm-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.confirm-row--type {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-amarillo-salsa);
  padding: 0.5rem 0.75rem;
  background: rgba(234, 199, 89, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(234, 199, 89, 0.2);
}

.confirm-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.confirm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.confirm-item small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.confirm-totals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.confirm-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.confirm-total-row--grand {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 700;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-color);
}

.confirm-payment {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(42, 95, 165, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(42, 95, 165, 0.2);
}

/* ---------- FLOATING CART BAR ---------- */
.floating-cart-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  background-color: #2bd15d;
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(43, 209, 93, 0.35);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.floating-cart-bar[hidden] {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px) scale(0.95);
}

.floating-cart-bar:hover {
  transform: translateX(-50%) scale(1.02);
  background-color: #26bd53;
}

.floating-cart-bar__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.floating-cart-bar__left span:first-child {
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 500;
}

.floating-cart-bar__left span:last-child {
  font-size: 1.15rem;
  font-weight: 800;
}

.floating-cart-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.confirm-payment strong {
  color: var(--color-amarillo-salsa);
}