/* =======================================================
   CSS Optimizado (organizado, sin perder funcionalidades)
   ======================================================= */

/* 0) VARIABLES (Unificadas y alineadas) */
:root {
  --color-primary: #FF6600;
  --color-primary-light: #FF9933;
  --color-secondary: #151310;
  --color-cta: #D95300;
  --color-cta-darker: #A64000;
  --color-accent: #7C5CFF;
  --color-accent-dark: #5B3DE0;
  --color-link: #64748B;
  --color-background: #F5F6F8;
  --color-bg-light: var(--color-background);
  --color-white: #ffffff;

  --color-text-dark: #23262B;
  --color-text-muted: #666B73;
  --color-border-light: #E6E8EC;

  --color-whatsapp: #25D366;
  --color-secondary-btn: #4a4a4a;
  --color-secondary-btn-hover: #2e2e2e;
  --color-danger: #DC2626;
  --color-success: #16A34A;

  --radius-md: 10px;
  --shadow-elevation: 0 4px 10px rgba(0,0,0,.10);
  --ease-smooth: cubic-bezier(.16,1,.3,1);
}

/* =======================================================
   1) BASE, RESET Y LAYOUT GLOBAL
   ======================================================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

::selection { background: var(--color-primary); color: #fff; }

body {
  display: flex;
  flex-direction: row;
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-dark);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* Contenedor principal (permite scroll vertical) */
.content-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  min-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Contenido Principal */
.main-content {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
  padding: 40px 40px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Enlaces de título de producto */
.product-title-link { text-decoration: none; color: inherit; }
.product-title-link:hover .product-title { color: var(--color-link); }

/* Botón WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  width: 60px; height: 60px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  bottom: 30px; right: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.45), 0 0 0 1px rgba(255,255,255,.15) inset;
  z-index: 1000;
  backdrop-filter: blur(4px);
  transition: background-color .2s, transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
  animation: float-pulse 2.8s ease-in-out infinite;
}
.whatsapp-float:hover { background-color: #128C7E; transform: scale(1.1); box-shadow: 0 8px 22px rgba(37,211,102,.55); animation-play-state: paused; }
.whatsapp-float:active { transform: scale(.96); }

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 22px rgba(37,211,102,.75); }
}

/* =======================================================
   2) SIDEBAR
   ======================================================= */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #202020 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: 28px 24px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
}

.sidebar h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.sidebar h2 a { color: var(--color-white); text-decoration: none; }
.sidebar h2 a span { color: var(--color-primary); }
.sidebar-divider {
  height: 1px;
  margin: 0 4px 32px;
  background: linear-gradient(90deg, transparent, rgba(255,102,0,.5), transparent);
}

/* Regla única para enlaces del menú (reemplaza duplicados) */
.sidebar .menu-principal a {
  color: #c7c7c7;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .2s, background-color .2s, transform .15s;
  margin-bottom: 4px;
}
.sidebar .menu-principal a:hover { color: var(--color-white); background-color: rgba(255,255,255,.06); transform: translateX(2px); }

.sidebar .menu-principal a.active {
  color: var(--color-white);
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(255,102,0,.18), rgba(255,102,0,0));
  border-left: 3px solid var(--color-primary);
  padding-left: 17px;
}

.sidebar .info-contacto {
  margin-top: auto;
  font-size: 13px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar .info-contacto-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cta-darker));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.sidebar .info-contacto p { margin: 0; }
.sidebar .info-contacto p:first-of-type { color: #9a9a9a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sidebar .info-contacto p a {
  color: var(--color-white); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: color .2s;
}
.sidebar .info-contacto p a:hover { color: var(--color-primary); }

/* =======================================================
   3) HERO / BANNER
   ======================================================= */
.banner {
  background-image: linear-gradient(90deg, var(--color-primary) 0%, #FF9933 100%);
  color: var(--color-white);
  padding: 100px 50px;
  text-align: center;
}
.banner h1 { font-size: 42px; margin: 0; }

.boton-banner {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color .2s;
}
.boton-banner:hover { background-color: #eee; }

.boton-banner-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color .2s, color .2s;
}
.boton-banner-outline:hover { background-color: var(--color-primary); color: var(--color-white); }

.error-404-page {
  text-align: center;
  padding: 80px 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.04);
}
.error-404-code {
  font-size: 90px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), #e05500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Solo el icono grande de la antena, no los de los botones */
.error-404-page > i { font-size: 40px; color: var(--color-border-light); margin: 12px 0 20px; display: block; }
.error-404-actions a i { font-size: inherit; margin-right: 7px; }
.error-404-page h1 { margin: 0 0 10px; color: var(--color-text-dark); font-size: 26px; }
.error-404-page p { margin: 0 0 10px; color: var(--color-secondary); }
.error-404-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.error-404-actions .boton-banner, .error-404-actions .boton-banner-outline { margin-top: 26px; }
/* En la tarjeta blanca, el boton blanco no se veia: lo dejamos naranja */
.error-404-actions .boton-banner {
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-darker));
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(217,83,0,.25);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.error-404-actions .boton-banner:hover {
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-darker));
  filter: brightness(1.06); transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(217,83,0,.35);
}

/* Hero animado adicional */
@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #14101c 0%, #2b1400 50%, #FF6600 100%);
  background-size: 200% 200%;
  animation: gradient-animation 12s ease infinite;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.25);
  padding: 50px 20px; border-radius: 0 0 28px 28px;
  overflow: hidden;
  isolation: isolate;
}
.hero-section::before,
.hero-section::after {
  content: ''; position: absolute; border-radius: 50%; z-index: -1;
  filter: blur(60px); opacity: .5;
}
.hero-section::before {
  width: 380px; height: 380px; background: var(--color-primary-light);
  top: -120px; right: -80px;
}
.hero-section::after {
  width: 340px; height: 340px; background: var(--color-cta-darker);
  bottom: -150px; left: -70px; opacity: .35;
}
.hero-section h1 {
  font-size: 3.3em; font-weight: 900; letter-spacing: -0.035em;
  margin-bottom: 14px; max-width: 760px;
  background: linear-gradient(90deg, #ffffff, #ffe0c2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle {
  font-size: 1.1em; font-weight: 500; color: rgba(255,255,255,.85);
  max-width: 520px; margin: 0 0 28px; text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.hero-trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
  margin-top: 26px;
}
.hero-trust-badges span {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}
.hero-trust-badges i { color: var(--color-primary-light); font-size: 14px; }
.hero-section .btn-cta {
  background-color: #fff; color: var(--color-cta); border: none;
  padding: 17px 36px; border-radius: 50px; font-size: 1.1em; font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth), background-color .25s ease;
}
.hero-section .btn-cta:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 34px rgba(0,0,0,.32); background-color: #fff8f2; }
.hero-section .btn-cta:active { transform: translateY(-1px) scale(.98); }

/* =======================================================
   4) SECCIÓN DE PRODUCTOS, GRID Y TARJETAS
   ======================================================= */
.productos, .cart-page-content, .checkout-content {
  padding: 40px;
  background-color: var(--color-background);
}

.productos h1, .productos h2, .productos h3,
.cart-page-content h1, .checkout-content h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 0 0 24px;
  position: relative;
  padding-left: 14px;
}
.productos h1::before, .productos h2::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 4px;
  background: var(--color-border-light);
}

/* Filtros */
.filter-controls { margin-bottom: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border-light);
  padding: 10px 18px; border-radius: 30px; cursor: pointer;
  font-weight: 700; font-size: 13.5px;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-1px); }
.filter-btn.active { background-color: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); box-shadow: 0 4px 10px rgba(255,102,0,.28); }

/* Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.product-grid .product-card {
  animation: card-in .6s var(--ease-smooth) backwards;
}
.product-grid .product-card:nth-child(1) { animation-delay: .03s; }
.product-grid .product-card:nth-child(2) { animation-delay: .08s; }
.product-grid .product-card:nth-child(3) { animation-delay: .13s; }
.product-grid .product-card:nth-child(4) { animation-delay: .18s; }
.product-grid .product-card:nth-child(5) { animation-delay: .23s; }
.product-grid .product-card:nth-child(6) { animation-delay: .28s; }
.product-grid .product-card:nth-child(7) { animation-delay: .33s; }
.product-grid .product-card:nth-child(8) { animation-delay: .38s; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .product-grid .product-card { animation: none; }
}

/* Placeholders animados de carga (skeletons) */
@keyframes skeleton-shine {
  0% { background-position: -280px 0; }
  100% { background-position: 280px 0; }
}
.skeleton {
  background: #ececec;
  background-image: linear-gradient(90deg, #ececec 0%, #f6f6f6 45%, #ececec 90%);
  background-size: 280px 100%;
  background-repeat: no-repeat;
  animation: skeleton-shine 1.3s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-card {
  background: var(--color-white);
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
  min-height: 350px; display: flex; flex-direction: column;
}
.skeleton-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 0; }
.skeleton-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.skeleton-line { height: 13px; width: 100%; }
.skeleton-line.short { width: 55%; margin: 0 auto; }
.skeleton-btn { height: 40px; width: 100%; border-radius: 9px; margin-top: auto; }
.skeleton-combo { flex: 0 0 260px; height: 300px; border-radius: 16px; }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* Tarjeta de producto (consolidada) */
.product-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 350px;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .35s var(--ease-smooth), box-shadow .35s var(--ease-smooth), border-color .35s var(--ease-smooth);
}
.product-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, #34D07A, var(--color-success) 85%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease-smooth); pointer-events: none;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12), 0 8px 20px rgba(22,163,74,.20);
  border-color: transparent;
}
.product-card:hover::after { opacity: 1; }

/* Agotado: el borde y el resplandor pasan a rojo */
.product-card.sold-out::after {
  background: linear-gradient(135deg, #F87171, var(--color-danger) 85%);
}
.product-card.sold-out:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,.12), 0 8px 20px rgba(220,38,38,.20);
}

.product-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  display: block; background: #f2f2f2;
  transition: transform .5s ease;
}
.product-card:hover img { transform: scale(1.06); }

.product-card .product-info {
  padding: 16px 18px 20px; text-align: center; flex-grow: 1;
  display: flex; flex-direction: column;
}

/* Oculta categoría si es el primer <p> */
.product-card .product-info .product-category { display: none; margin: 0; padding: 0; }
.product-card .product-info p:first-child { display: none; margin: 0; padding: 0; }

.product-card .product-title {
  font-size: 15.5px; font-weight: 700; color: #1c1c1c; margin: 4px 0;
  line-height: 1.35;
}
.product-card .product-price {
  font-size: 19px; font-weight: 800; color: var(--color-cta); margin: 8px 0 14px;
}

/* Botón comprar */
.product-card .btn-comprar {
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-darker));
  color: var(--color-white);
  text-decoration: none; padding: 12px 0; border-radius: 9px;
  font-weight: 800; font-size: 13.5px; letter-spacing: .03em; margin-top: auto;
  box-shadow: 0 4px 10px rgba(217,83,0,.25);
  transition: transform .2s var(--ease-smooth), box-shadow .25s var(--ease-smooth), filter .2s ease; display: block;
}
.product-card .btn-comprar:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(217,83,0,.35); }
.product-card .btn-comprar:active { transform: translateY(0) scale(.97); }

/* Badges & estados (consolidados) */
.product-card.sold-out img { filter: grayscale(.5); opacity: .82; }
.product-card .soldout-badge,
.product-card .available-badge{
  position: absolute; top: 4px; left: 4px;
  padding: 4px 8px; font-size: 11px; font-weight: 800;
  color: #fff; border-radius: 6px; z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  pointer-events: none;
}
.product-card .soldout-badge { background: var(--color-danger); }
.product-card .available-badge { background: var(--color-success); }

.product-card .btn-comprar.disabled,
.combo-card .btn-comprar.disabled,
#product-detail-button.disabled{
  background:#9a9a9a !important;
  cursor:not-allowed; pointer-events:none; opacity:.8;
}

/* =======================================================
   4b) COMBOS CON DESCUENTO
   ======================================================= */
.combos-section { padding-bottom: 10px; }

.catalogo-section {
  margin-top: 10px;
  padding-top: 34px;
  border-top: 2px dashed var(--color-border-light);
}

.combos-viewport {
  position: relative;
}

.combos-swipe-hint {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cta-darker));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(255, 102, 0, .45);
  pointer-events: none;
  z-index: 5;
  animation: combos-hint-bounce 1.3s ease-in-out infinite;
  transition: opacity .4s ease;
}
.combos-swipe-hint.is-hidden { opacity: 0; }

@keyframes combos-hint-bounce {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 1; }
  50% { transform: translateY(-50%) translateX(8px); opacity: .55; }
}

.combos-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 4px 4px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #cfd3d9 transparent;
  touch-action: pan-x pan-y;
  cursor: grab;
}
.combos-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.combos-grid img, .combos-grid a { -webkit-user-drag: none; user-select: none; }
.combos-grid::-webkit-scrollbar { height: 8px; }
.combos-grid::-webkit-scrollbar-thumb { background: #cfd3d9; border-radius: 10px; }
.combos-grid::-webkit-scrollbar-track { background: transparent; }

.combo-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  position: relative;
  background: linear-gradient(160deg, var(--color-white) 0%, #fff7f0 100%);
  border: 1px solid rgba(255,102,0,.2);
  border-radius: 16px;
  padding: 46px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: 0 10px 24px rgba(255,102,0,.08);
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth), border-color .3s var(--ease-smooth);
}
/* Mismo borde de color que las tarjetas de producto al pasar por encima */
.combo-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: linear-gradient(135deg, #34D07A, var(--color-success) 85%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease-smooth); pointer-events: none;
}
.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(22,163,74,.22);
  border-color: transparent;
}
.combo-card:hover::after { opacity: 1; }

/* Combo agotado: rojo */
.combo-card.sold-out::after {
  background: linear-gradient(135deg, #F87171, var(--color-danger) 85%);
}
.combo-card.sold-out:hover { box-shadow: 0 16px 34px rgba(220,38,38,.22); }
.combo-card.sold-out .combo-images img { filter: grayscale(.5); opacity: .82; }
.combo-card .soldout-badge,
.combo-card .available-badge {
  position: absolute; top: 14px; right: 14px; left: auto;
  color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  padding: 5px 11px; border-radius: 20px;
  pointer-events: none; z-index: 2;
}
.combo-card .soldout-badge {
  background: var(--color-danger);
  box-shadow: 0 4px 10px rgba(220,38,38,.35);
}
.combo-card .available-badge {
  background: var(--color-success);
  box-shadow: 0 4px 10px rgba(22,163,74,.35);
}

.combo-badge {
  position: absolute; top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cta-darker));
  color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 20px;
  box-shadow: 0 4px 10px rgba(217,83,0,.35);
  z-index: 2;
}

.combo-images {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 10px;
}
.combo-images img {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.combo-plus {
  font-size: 22px; font-weight: 900; color: var(--color-primary);
}

.combo-info { width: 100%; }
.combo-title {
  font-size: 15px; font-weight: 800; color: var(--color-text-dark);
  margin: 0 0 10px;
}
.combo-price {
  display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.combo-price-old {
  font-size: 14px; color: var(--color-text-muted); text-decoration: line-through;
}
.combo-price-new {
  font-size: 20px; font-weight: 900; color: var(--color-cta);
}
.combo-card .btn-comprar-combo {
  display: block; width: 100%; box-sizing: border-box;
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-darker));
  color: var(--color-white) !important;
  text-decoration: none; padding: 12px 0; border-radius: 9px;
  font-weight: 800; font-size: 13.5px; letter-spacing: .03em; text-align: center;
  box-shadow: 0 4px 10px rgba(217,83,0,.25);
  transition: transform .2s var(--ease-smooth), box-shadow .25s var(--ease-smooth), filter .2s ease;
}
.combo-card .btn-comprar-combo:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(217,83,0,.35); }
.combo-card .btn-comprar-combo:active { transform: translateY(0) scale(.97); }

/* =======================================================
   5) DETALLE DE PRODUCTO
   ======================================================= */
.product-detail-section { max-width: 1000px; margin: 0 auto; }

.breadcrumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 24px auto 0; font-size: 13px; font-weight: 700; color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; transition: color .15s ease; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb i { font-size: 9px; color: #ccc; }
.breadcrumb span { color: var(--color-text-dark); }

.product-detail-container {
  display: flex; max-width: 1000px; margin: 20px auto 40px; gap: 48px;
  background: var(--color-white);
  padding: 36px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.04);
}
.product-image-column { flex-basis: 40%; flex-shrink: 0; position: relative; }
#product-detail-image {
  width: 100%; height: auto; max-width: 400px; display: block; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  transition: transform .3s var(--ease-smooth);
}
.product-image-column:hover #product-detail-image { transform: scale(1.02); }
.product-detail-duration {
  display: none; align-items: center; gap: 7px;
  margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--color-text-muted);
  justify-content: center;
}
.product-detail-duration i { color: var(--color-primary); }

.product-info-column { flex-basis: 60%; text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.product-detail-category {
  display: inline-block; background: rgba(255,102,0,.1); color: var(--color-cta-darker);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
}
.product-info-column #product-detail-title { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.product-info-column #product-detail-price { font-size: 26px; font-weight: 800; color: var(--color-cta); }
.product-info-column #product-detail-description { color: var(--color-text-muted); line-height: 1.7; text-align: left; }
#product-detail-button {
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-darker)); color: var(--color-white);
  text-decoration: none; padding: 14px 34px; border-radius: 10px;
  font-weight: 800; font-size: 15px; letter-spacing: .03em; display: inline-block;
  margin-top: 24px; box-shadow: 0 6px 16px rgba(217,83,0,.3);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
#product-detail-button:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(217,83,0,.36); }

.product-trust-badges {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--color-border-light);
  width: 100%;
}
.trust-badge {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--color-text-muted);
}
.trust-badge i { color: var(--color-success); font-size: 13px; }

/* =======================================================
   6) CARRITO (tabla y resumen)
   ======================================================= */
#checkout-container {
  max-width: 1000px; margin: 40px auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: 20px;
}

.cart-items-container {
  display: flex; flex-direction: column; width: 100%; margin-top: 10px;
  background: var(--color-white);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.04);
}

.cart-header {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr .5fr;
  font-weight: bold; padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-secondary); text-align: center;
  margin-bottom: 15px; font-size: 14px; letter-spacing: .5px;
}
.cart-header .header-name { text-align: left; padding-left: 10px; }

.cart-item {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr .5fr;
  padding: 18px 10px; border-bottom: 1px solid #f0f0f0;
  align-items: center; text-align: center; font-size: 15px;
  border-radius: 10px; transition: background-color .2s;
}
.cart-item:hover { background-color: #fafafa; }
.cart-item:last-child { border-bottom: none; }

.cart-item .item-name {
  text-align: left; font-weight: 600; padding-left: 10px; color: var(--color-text-dark);
  display: flex; align-items: center; gap: 12px;
}
.cart-item .item-thumb {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  border: 1px solid rgba(0,0,0,.06); background: var(--color-white); flex-shrink: 0;
}
.cart-item .item-name span { overflow-wrap: anywhere; }
.cart-item .item-price, .cart-item .item-subtotal {
  font-weight: bold; color: var(--color-secondary);
}

/* Cantidad */
.cart-item .item-quantity {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin: 0 auto;
}
.cart-item .item-quantity button {
  background: linear-gradient(135deg, var(--color-primary), #e05500);
  color: var(--color-white); border: none; width: 28px; height: 28px;
  cursor: pointer; font-size: 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s; box-shadow: 0 3px 8px rgba(255,110,10,.25);
}
.cart-item .item-quantity button:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(255,110,10,.35); }
.cart-item .item-quantity span {
  font-size: 15px; font-weight: 700; min-width: 22px; text-align: center;
}

/* Eliminar */
.btn-remove {
  background-color: rgba(220,53,69,.1); color: var(--color-cta);
  border: none; width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s; margin: 0 auto;
}
.btn-remove:hover { background-color: var(--color-cta); color: var(--color-white); }

/* Estado vacío */
.cart-empty-state {
  text-align: center; padding: 60px 20px; display: none;
  background: var(--color-white);
  border-radius: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.04);
}
.cart-empty-state i {
  font-size: 48px; color: var(--color-border-light); margin-bottom: 16px; display: block;
}
.cart-empty-state h3 { margin: 0 0 6px; color: var(--color-text-dark); }
.cart-empty-state p { margin: 0 0 18px; color: var(--color-secondary); }

/* Resumen */
.cart-summary {
  display: flex; flex-direction: column; align-items: flex-end;
  margin-top: 30px; padding: 24px 30px;
  background: var(--color-white);
  border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.06);
  border: 1px solid var(--color-border-light);
  width: 380px; margin-left: auto;
}
.cart-summary .summary-line {
  display: flex; justify-content: space-between; width: 100%;
  padding: 8px 0; font-size: 16px; color: #444;
}
.cart-summary .discount-line { color: #28a745; font-weight: bold; }
.cart-summary .total-line {
  font-size: 28px; font-weight: 800; color: var(--color-cta);
  border-top: 2px solid var(--color-border-light);
  padding-top: 15px; margin-top: 15px;
}

/* CTA checkout (consolidado) */
.btn-checkout {
  display: inline-block; width: 100%;
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-darker)); color: var(--color-white);
  padding: 16px 35px; font-weight: 800; border-radius: 10px;
  cursor: pointer; text-decoration: none; margin-top: 25px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  font-size: 17px; letter-spacing: .03em;
  box-shadow: 0 6px 16px rgba(217,83,0,.3);
}
.btn-checkout:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(217,83,0,.36);
}

/* =======================================================
   7) CHECKOUT (página)
   ======================================================= */
.checkout-box {
  max-width: 600px; margin: 40px auto; background: var(--color-white);
  padding: 40px; border-radius: 16px; box-shadow: var(--shadow-elevation);
  border: 1px solid var(--color-border-light);
}
.checkout-box h1 {
  color: var(--color-secondary);
  text-align: center; font-size: 30px; margin-bottom: 30px;
}

.checkout-summary {
  background: linear-gradient(135deg, #fff3e6, #ffe8d1);
  border: 1px solid rgba(255,102,0,.25);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(255,102,0,.08);
}
.checkout-summary h2 {
  color: var(--color-primary);
  font-size: 34px;
  font-weight: 700;
  margin: 10px 0 0 0;
}
#final-total { font-size: 44px; font-weight: 900; letter-spacing: -0.02em; color: var(--color-primary); margin-top: 8px; }

.payment-instructions { margin-top: 20px; }
.payment-instructions h2 {
  margin-top: 30px; margin-bottom: 14px; font-size: 18px;
  border-bottom: 2px solid #eee; padding-bottom: 6px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.payment-method {
  background: var(--color-white); border: 1px solid #eee;
  border-radius: 10px; padding: 10px 12px;
  border-left: 4px solid var(--color-primary);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.payment-method:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.06); background: #fff; }
.payment-method h4 {
  margin: 0 0 3px; color: var(--color-secondary); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.payment-method-logo {
  height: 22px; width: auto; max-width: 44px;
  border-radius: 5px; object-fit: contain; flex-shrink: 0;
}
.payment-method-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
}
.payment-method p { margin: 0; font-size: 13px; font-weight: 800; color: var(--color-cta); letter-spacing: 0; white-space: nowrap; }

.btn-copy-account {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
  background: #fff; border: 1px solid #e0d5cb; color: var(--color-cta);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px;
  transition: background-color .2s, color .2s, transform .15s;
}
.btn-copy-account:hover { background: var(--color-cta); color: #fff; }
.btn-copy-account:active { transform: scale(.92); }
.btn-copy-account.copied { background: var(--color-success); border-color: var(--color-success); color: #fff; }

@media (max-width: 420px) {
  .payment-methods-grid { gap: 8px; }
  .payment-method { padding: 8px 10px; }
  .payment-method h4 { font-size: 10.5px; }
  .payment-method p { font-size: 12.5px; }
}

.use-wallet-section {
  padding: 20px; border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md); margin-bottom: 25px; background-color: #fcfcfc;
}
.use-wallet-section label { font-weight: 600; color: var(--color-text-dark); margin: 0; }

.final-step {
  text-align: center; font-weight: bold; color: var(--color-cta);
  margin-top: 30px; font-size: 16px; font-style: italic;
  color: var(--color-text-muted); padding-top: 20px; border-top: 1px solid var(--color-border-light);
}

#whatsapp-order-btn { width: 100%; display: block; text-align: center; }

/* ---- Checkout v2 (rediseño) ---- */
.checkout-box-v2 { position: relative; padding-top: 20px; }
.checkout-status-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-success), #1f9d52);
  color: #fff; font-size: 24px;
  box-shadow: 0 8px 20px rgba(40,167,69,.35);
}
.checkout-box-v2 h1 { margin-bottom: 6px; }
.checkout-box-v2 > p { color: var(--color-text-muted); font-size: 15px; margin-bottom: 28px; }

.checkout-summary-v2 { position: relative; overflow: hidden; }
.checkout-summary-v2::after {
  content: ''; position: absolute; top: -30%; right: -10%; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,102,0,.14), transparent 70%);
  pointer-events: none;
}
.checkout-summary-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-cta-darker); opacity: .8;
}
.checkout-summary-label i { font-size: 13px; }

.use-wallet-section-v2 { background: var(--color-white); text-align: left; }
.wallet-toggle-row { display: flex; align-items: center; gap: 14px; }
.wallet-toggle-text { flex-grow: 1; display: flex; flex-direction: column; gap: 3px; }
.wallet-toggle-text strong { font-size: 15px; color: var(--color-text-dark); }
.wallet-toggle-text .muted { font-size: 13px; }
.wallet-toggle-icon { font-size: 20px; color: var(--color-primary); opacity: .7; flex-shrink: 0; }

.wallet-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.wallet-switch input { opacity: 0; width: 0; height: 0; }
.wallet-switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background-color: #ddd; border-radius: 999px; transition: background-color .2s ease;
}
.wallet-switch-slider::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background-color: #fff; border-radius: 50%; transition: transform .2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.wallet-switch input:checked + .wallet-switch-slider { background-color: var(--color-primary); }
.wallet-switch input:checked + .wallet-switch-slider::before { transform: translateX(18px); }

.wallet-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 16px 0 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.5;
}
.wallet-note i { margin-top: 2px; color: var(--color-primary); }

.checkout-secure-note {
  text-align: center; margin: 14px 0 0; font-size: 12.5px; font-weight: 700;
  color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.checkout-secure-note i { color: var(--color-success); }

/* Mensajes */
.msg {
  margin-top: 15px; padding: 12px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; display: none;
}
.msg.ok { background: #e8f8ee; color: #2d7a46; border: 1px solid #9dd2a6; }
.msg.err { background: #fdecec; color: #a33a3a; border: 1px solid #e8a1a1; }

/* Layout horizontal opcional */
.checkout-layout { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 30px; }
.order-summary-block { flex: 1; min-width: 300px; }
.payment-instructions-block { flex: 1.5; min-width: 350px; }

/* =======================================================
   8) FOOTER
   ======================================================= */
.main-footer {
  background: linear-gradient(180deg, #1f1f1f, var(--color-secondary)); color: #c7c7c7;
  padding: 48px 40px 0;
  border-top: 3px solid var(--color-primary);
}
.footer-top {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding-bottom: 36px;
}
.footer-section { flex: 1 1 220px; min-width: 0; }
.main-footer h4 {
  color: var(--color-white); font-size: 15px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; margin: 0 0 18px;
}
.main-footer p, .main-footer li { font-size: 13.5px; line-height: 1.9; margin: 0; }
.main-footer ul { list-style: none; padding: 0; margin: 0; }
.main-footer a { color: #c7c7c7; text-decoration: none; transition: color .2s, transform .2s; display: inline-flex; align-items: center; gap: 8px; }
.main-footer a:hover { color: var(--color-primary); transform: translateX(3px); }
.main-footer a i { font-size: 11px; opacity: .7; }

/* Columna de marca */
.footer-brand { flex: 1 1 300px; }
.footer-logo {
  font-size: 20px !important; text-transform: none !important; letter-spacing: -0.02em !important;
  margin-bottom: 12px !important;
}
.footer-logo span { color: var(--color-primary); }
.footer-tagline { color: #9a9a9a; max-width: 300px; margin-bottom: 18px !important; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-badges span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 6px 13px; font-size: 12px; font-weight: 700; color: #d8d8d8;
}
.footer-badges i { color: #9a9a9a; font-size: 12px; }

/* Contacto */
.footer-contact li { margin-bottom: 6px; }
.footer-contact a i { font-size: 14px; opacity: 1; color: #9a9a9a; width: 16px; }
.footer-hours { display: flex; align-items: center; gap: 8px; color: #9a9a9a; }
.footer-hours i { font-size: 13px; color: #9a9a9a; opacity: .7; width: 16px; }

/* Franja inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0 22px;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
/* Deja espacio para que el botón flotante de WhatsApp no tape el texto */
.footer-secure { margin-right: 70px; }
.footer-bottom p { font-size: 12.5px; color: #8a8a8a; }
.footer-secure { display: flex; align-items: center; gap: 7px; }
.footer-secure i { color: var(--color-success); }

/* =======================================================
   9) BADGE DEL CARRITO
   ======================================================= */
#sidebar-balance-link #sidebar-balance { color: var(--color-primary); font-weight: 800; }

.cart-badge {
  background-color: var(--color-cta); color: var(--color-white);
  border-radius: 50%; padding: 3px 7px; font-size: 10px; font-weight: 900; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; margin-left: 8px; transition: transform .2s ease-out;
}
.cart-badge.pulse { animation: badge-pulse .5s; }
@keyframes badge-pulse { 0%{transform:scale(1)} 50%{transform:scale(1.2)} 100%{transform:scale(1)} }

/* =======================================================
   10) CARRITO FLOTANTE (panel lateral)
   ======================================================= */
.floating-cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 1001; opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.floating-cart-container {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100%;
  background: var(--color-white); box-shadow: -5px 0 15px rgba(0,0,0,.15); z-index: 1002;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease-in-out;
}
body.cart-is-open .floating-cart-overlay { opacity: 1; visibility: visible; }
body.cart-is-open .floating-cart-container { transform: translateX(0); }

.floating-cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid var(--color-border-light);
}
.floating-cart-header h3 { margin: 0; font-size: 20px; color: var(--color-text-dark); }
.floating-cart-header .close-btn {
  background: none; border: none; font-size: 28px; color: var(--color-text-muted); cursor: pointer;
}

.floating-cart-items { flex-grow: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.floating-cart-items .empty-message { text-align: center; color: var(--color-text-muted); margin-top: 40px; }

.f-cart-item {
  display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border-light); padding-bottom: 20px;
}
.f-cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.f-cart-item-info { flex-grow: 1; }
.f-cart-item-info h5 { margin: 0 0 5px; font-size: 15px; }
.f-cart-item-info .price { font-size: 14px; color: var(--color-link); }
.f-cart-item-info .qty { font-size: 13px; color: var(--color-text-muted); }
.f-cart-item-qty {
  display: flex; align-items: center; gap: 10px; margin: 4px 0;
}
.f-cart-item-qty span { font-size: 13px; font-weight: 700; min-width: 14px; text-align: center; }
.f-btn-quantity {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--color-border-light);
  background: var(--color-white); color: var(--color-text-dark);
  font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.f-btn-quantity:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.f-cart-item-remove {
  background: none; border: none; font-size: 14px; color: var(--color-danger);
  cursor: pointer; font-weight: 700;
}

.floating-cart-recommend {
  padding: 0 20px 20px;
  border-top: 1px solid var(--color-border-light);
}
.floating-cart-recommend:empty { display: none; }
.floating-cart-recommend .recommend-title {
  font-size: 13px; font-weight: 800; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin: 16px 0 12px; display: flex; align-items: center; gap: 6px;
}
.floating-cart-recommend .recommend-title i { color: var(--color-primary); }
.recommend-grid { display: flex; gap: 10px; }
.recommend-card {
  flex: 0 0 110px; width: 110px;
  background: var(--color-white);
  border: 1px solid rgba(255,102,0,.15); border-radius: 10px;
  padding: 8px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.recommend-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(255,102,0,.15); }
.recommend-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 7px; margin-bottom: 6px;
}
.recommend-card p {
  margin: 0; font-size: 11.5px; font-weight: 700; color: var(--color-text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recommend-card .recommend-price { display: block; font-size: 12.5px; font-weight: 800; color: var(--color-cta); margin-top: 2px; }
.recommend-card .recommend-stock { display: block; font-size: 10px; font-weight: 700; color: var(--color-text-muted); margin-top: 2px; }
.recommend-card .recommend-stock.soldout { color: var(--color-danger); }
.recommend-card .btn-recommend-add {
  display: block; width: 100%; margin-top: 6px;
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-darker)); color: #fff;
  border: none; border-radius: 6px; padding: 5px 0;
  font-size: 11px; font-weight: 800; cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.recommend-card .btn-recommend-add:hover { filter: brightness(1.06); }
.recommend-card .btn-recommend-add:active { transform: scale(.96); }
.recommend-card .btn-recommend-add:disabled { background: #ccc; cursor: not-allowed; }

.floating-cart-footer {
  padding: 20px; border-top: 2px solid var(--color-border-light); background: #fdfdfd;
}
.btn-seguir-comprando {
  display: block; width: 100%; text-align: center; background: none; border: none;
  color: var(--color-text-muted); font-size: 13.5px; font-weight: 700;
  margin-top: 12px; cursor: pointer; text-decoration: underline;
}
.btn-seguir-comprando:hover { color: var(--color-primary); }
.floating-cart-subtotal {
  display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 20px;
}
.floating-cart-subtotal span:last-child { color: var(--color-primary); }
.floating-cart-subtotal.floating-cart-line-subtotal,
.floating-cart-subtotal.floating-cart-line-discount {
  font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--color-text-muted);
}
.floating-cart-subtotal.floating-cart-line-subtotal span:last-child { color: var(--color-text-dark); }
.floating-cart-subtotal.floating-cart-line-discount span:last-child { color: #28a745; }
.floating-cart-footer .btn-checkout { display: block; width: 100%; text-align: center; text-decoration: none; }

/* =======================================================
   11) BOTÓN CARRITO FLOTANTE
   ======================================================= */
.cart-float {
  position: fixed; width: 60px; height: 60px; bottom: 100px; right: 30px;
  background-color: var(--color-primary); color: var(--color-white); border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 24px; text-decoration: none; box-shadow: 2px 2px 10px rgba(0,0,0,.2);
  z-index: 999; transition: background-color .2s, transform .2s; transform: scale(.8);
}
.cart-float.visible { display: flex; transform: scale(1); }
.cart-float:hover { background-color: var(--color-cta); }
.cart-float .cart-badge-float {
  position: absolute; top: -5px; right: -5px;
  background-color: var(--color-cta); color: #fff; border-radius: 50%;
  padding: 4px 8px; font-size: 12px; font-weight: 900; line-height: 1; border: 2px solid var(--color-white);
}

/* =======================================================
   12) CUENTA (cuenta.html)
   ======================================================= */
.account-card{
  max-width: 560px; margin: 40px auto; background: var(--color-white);
  border: 1px solid var(--color-border-light); border-radius: 18px;
  box-shadow: 0 14px 32px rgba(0,0,0,.08); padding: 32px; text-align: left;
}
.account-card h1{ margin: 0 0 8px 0; color: var(--color-text-dark); font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
#account-status{ font-size: 13px; color: #666; margin-bottom: 8px; }
#account-status.ok{ color: #2e7d32; font-weight: 700; }

.tabs{ display: flex; gap: 10px; margin: 16px 0 18px; }
.tabs button{
  flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid #ddd;
  background: #f7f7f7; color: var(--color-text-dark); font-weight: 800; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .05s;
}
.tabs button:hover{ background: #f0f0f0; }
.tabs button:active{ transform: translateY(1px); }
.tabs button.active{ background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); box-shadow: 0 4px 10px rgba(255,102,0,.28); }
#tab-login, #tab-register{ margin-top: 4px; }

.account-card form{ display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.account-card label{ font-size: 13px; color: #666; }
.account-card input{
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.account-card input:focus{ border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,102,0,.12); }

.account-card .btn{
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-darker)); color: var(--color-white); border: none; border-radius: 10px;
  padding: 13px 14px; font-weight: 800; letter-spacing: .3px; cursor: pointer; text-align: center;
  box-shadow: 0 4px 12px rgba(217,83,0,.25);
  transition: filter .2s, transform .05s, box-shadow .2s;
}
.account-card .btn:hover{ filter: brightness(1.06); box-shadow: 0 8px 18px rgba(217,83,0,.32); }
.account-card .btn:active{ transform: translateY(1px); }
#btn-logout{ margin-top: 6px; background: #444; }
#btn-logout:hover{ background: #222; }

.account-card .muted{ color: #777; font-size: 13px; line-height: 1.6; }
.form-note{ font-size: 12px; color: #777; }
.form-error{
  background: #ffefef; color: #b00020; border: 1px solid #ffd2d2; padding: 10px 12px; border-radius: 8px; font-size: 13px;
}
.form-success{
  background: #ecffef; color: #1b5e20; border: 1px solid #c8f0cc; padding: 10px 12px; border-radius: 8px; font-size: 13px;
}

.input-group{ position: relative; }
.input-group i{
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: #999;
}
.input-group input{ padding-left: 36px; }

/* Contraste con esquema oscuro del sistema (mantenemos carta clara) */
@media (prefers-color-scheme: dark){
  .account-card{ background: #fff; }
}

/* =======================================================
   13) UTILIDADES / EXTRAS
   ======================================================= */
.license-box {
  display: block; white-space: pre-wrap; font-family: ui-monospace, monospace;
  background: #fff; border: 1px dashed #dcdcdc; border-radius: 10px;
  padding: 10px 12px; color: #222; margin-top: 4px;
}
.license-title { font-weight: bold; font-size: 14px; margin-top: 10px; color: #333; }
.license-box code { white-space: inherit; display: block; }

.admin-separator { margin-top: 15px; border-top: 1px solid #444; padding-top: 15px; }
.admin-separator h5 { color: #FF9900; font-size: 13px; margin: 0 0 10px; padding-left: 5px; }

/* Enlaces útiles */
.logo-link a { color: #fff; text-decoration: none; }

/* El contador del carrito lo muestra JS (oculto por defecto) */
.cart-badge { display: none; }


/* =======================================================
   13b) NOTIFICACIÓN FLOTANTE (TOAST)
   ======================================================= */
.mingle-toast-overlay {
  position: fixed; inset: 0; z-index: 1999;
  background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease-smooth), visibility .25s var(--ease-smooth);
}
.mingle-toast-overlay.show { opacity: 1; visibility: visible; }

.mingle-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.95);
  z-index: 2000;
  width: min(90vw, 380px);
  background: var(--color-white);
  color: var(--color-text-dark);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  padding: 28px 26px;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,.3);
  border-top: 4px solid var(--color-danger);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-smooth), transform .25s var(--ease-smooth);
}
.mingle-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mingle-toast.success { border-top-color: var(--color-success); }

/* =======================================================
   13c) AVISO DE SALDO (fijo arriba a la derecha, no se auto-cierra)
   ======================================================= */
.mingle-wallet-notice {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2001;
  max-width: min(90vw, 360px);
  background: var(--color-white);
  border-radius: 14px;
  border-left: 4px solid var(--color-success);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .25s var(--ease-smooth), transform .25s var(--ease-smooth), visibility .25s var(--ease-smooth);
}
.mingle-wallet-notice.show { opacity: 1; visibility: visible; transform: translateY(0); }
.mingle-wallet-notice.danger { border-left-color: var(--color-danger); }
.mingle-wallet-notice-icon {
  font-size: 20px; color: var(--color-success);
}
.mingle-wallet-notice.danger .mingle-wallet-notice-icon { color: var(--color-danger); }
.mingle-wallet-notice-text {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--color-text-dark); line-height: 1.5;
}
.mingle-wallet-notice-btn {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cta-darker));
  color: #fff; border: none; border-radius: 8px;
  padding: 8px 18px; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: filter .15s ease;
}
.mingle-wallet-notice-btn:hover { filter: brightness(1.06); }

@media (max-width: 480px) {
  .mingle-wallet-notice { top: 12px; right: 12px; left: 12px; max-width: none; }
}

/* =======================================================
   14) RESPONSIVE
   ======================================================= */
@media (max-width: 768px) {
  /* Layout principal */
  body { flex-direction: column; }
  .content-wrapper { height: auto; overflow-y: visible; }

  /* Sidebar horizontal sticky */
  .sidebar {
    width: 100%; height: auto; flex-direction: row; justify-content: center;
    padding: 15px 20px; background-color: var(--color-secondary);
    position: sticky; top: 0; z-index: 10;
  }
  .sidebar h2, .sidebar .info-contacto { display: none; }

  .sidebar .menu-principal ul{
    display: flex; gap: 10px 15px; flex-wrap: wrap; justify-content: center;
    padding: 0; margin: 0; list-style: none; width: 100%;
  }
  .sidebar .menu-principal a { padding: 5px; font-size: 13px; position: relative; }

  /* Badge menor en enlaces */
  .cart-badge { position: absolute; top: 2px; right: -10px; }

  /* Hero/Banner */
  .banner { padding: 60px 20px; }
  .banner h1 { font-size: 32px; }

  /* Secciones */
  .productos, .cart-page-content, .checkout-content { padding: 20px; }

  /* Grid productos: 2 por fila */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  /* Carrito: columnas apiladas */
  .cart-header, .cart-item { grid-template-columns: 1fr 1fr; row-gap: 5px; padding: 10px 0; }
  .cart-header div:nth-child(2),
  .cart-header div:nth-child(3),
  .cart-header div:nth-child(4),
  .cart-header div:nth-child(5) { display: none; }

  .cart-item .item-name { grid-column: 1 / 3; text-align: left; }
  .cart-item .item-price { grid-column: 1; text-align: left; font-weight: bold; }
  .cart-item .item-quantity {
    grid-column: 2; justify-content: flex-end; width: auto; margin: 0; border: none;
  }
  .cart-item .item-quantity span { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
  .cart-item .item-subtotal { display: none; }
  .btn-remove { grid-column: 2; grid-row: 1; margin: 0; justify-self: flex-end; }

  /* Footer */
  .main-footer { padding: 32px 20px 0; }
  .footer-top { flex-direction: column; gap: 30px; padding-bottom: 26px; }
  .footer-section { flex: 0 0 auto; }
  .footer-tagline { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 0 20px; }
  .footer-secure { margin-right: 0; }

  /* Resumen carrito */
  .cart-summary { width: 100%; margin: 20px auto; padding: 20px; }
  .cart-summary .summary-line { width: 100%; }
  .cart-summary .total-line { font-size: 20px; }

  /* Detalle de producto */
  .breadcrumb { margin: 16px 16px 0; }
  .product-detail-container { flex-direction: column; max-width: 100%; margin: 20px; padding: 20px; }
  .product-image-column { width: 100% !important; flex-basis: 100% !important; padding: 0; margin: 0; text-align: center; flex-basis: auto; }
  #product-detail-image { width: 100% !important; max-width: 100% !important; height: auto; display: block; }
  .product-info-column { align-items: center; text-align: center; }
  .product-info-column #product-detail-description { text-align: center; }
  .product-trust-badges { justify-content: center; }

  /* Checkout adaptado */
  .checkout-layout { flex-direction: column; gap: 30px; }
  .order-summary-block, .payment-instructions-block { min-width: unset; width: 100%; }
  .checkout-box { padding: 30px 20px; }
  .checkout-box > p { font-size: 16px; }
  #final-total { font-size: 38px; }
  .btn-checkout { padding: 15px 20px; font-size: 16px; }
  .payment-instructions { margin-top: 0; }
}

@media (max-width: 500px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-box { margin: 20px; }
  /* Badges más pequeños */
  .product-card .soldout-badge,
  .product-card .available-badge{
    top: 4px; left: 4px; padding: 3px 7px; font-size: 10px;
  }
}

@media (max-width: 576px) {
  .main-content { padding: 20px 10px; }
  .checkout-box { padding: 20px; border-radius: 12px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  #final-total { font-size: 36px; }
  .payment-method { padding: 12px 15px; }
}
