/* ============================================================
   SISTEMA DE PEDIDOS — MAIN CSS v2
   Modelo: categorías > grupos > presentaciones > sabores
   ============================================================ */

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

:root {
  --negro:       #6B0020;
  --bordo:       #6B0020;
  --bordo-mid:   #8C1035;
  --bordo-light: #A85070;
  --blanco:      #ffffff;
  --beige:       #F9F0F3;
  --beige-dark:  #F0DDE4;
  --gris:        #f7f2f4;
  --gris-mid:    #e8d8dd;
  --gris-text:   #9A7080;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --transition:  0.22s ease;
  --max-w:       900px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--blanco); color: var(--negro); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }
a    { text-decoration: none; color: inherit; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 58px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.navbar.scrolled { border-bottom-color: rgba(0,0,0,0.09); }
.navbar__logo { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 400; color: var(--bordo); }
.navbar__links { display: flex; gap: 28px; }
.navbar__link { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gris-text); transition: color var(--transition); }
.navbar__link:hover { color: var(--negro); }
.navbar__cart { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; background: none; border: none; cursor: pointer; color: var(--negro); }
.navbar__cart:hover { opacity: 0.6; }
.cart-count { background: var(--bordo); color: var(--blanco); border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--negro);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
.hero__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%); }
.hero__overlay { position: absolute; inset: 0; }
.hero__content { position: relative; z-index: 2; text-align: center; color: var(--blanco); padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero__eyebrow { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.hero__title { font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 6rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.hero__sub { font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,0.55); max-width: 480px; }
.hero__ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  border-radius: 2px; cursor: pointer; transition: all var(--transition);
  font-family: var(--font-sans); font-weight: 400; border: 1px solid; white-space: nowrap;
}
.btn--filled  { background: var(--blanco); color: var(--negro); border-color: var(--blanco); }
.btn--filled:hover { background: var(--beige); }
.btn--outline { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--dark    { background: var(--bordo); color: var(--blanco); border-color: var(--bordo); }
.btn--dark:hover { background: var(--bordo-mid); border-color: var(--bordo-mid); opacity: 1; }
.btn--dark:disabled { opacity: 0.25; cursor: not-allowed; }
.btn--ghost   { background: transparent; color: var(--negro); border-color: rgba(0,0,0,0.2); }
.btn--ghost:hover { background: var(--gris); }
.btn--wsp     { background: transparent; color: var(--gris-text); border-color: rgba(0,0,0,0.15); font-size: 10px; }
.btn--wsp:hover { background: var(--gris); }
.btn--full    { width: 100%; }

/* ============================================================
   CATEGORÍA CARDS
   ============================================================ */
.categories__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; }
.category-card { position: relative; aspect-ratio: 16/9; overflow: hidden; display: flex; align-items: flex-end; padding: 32px; cursor: pointer; background: #1a1a1a; }
.category-card img { position: absolute; inset: 0; transition: transform 0.5s ease; }
.category-card:hover img { transform: scale(1.04); }
.category-card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #2a2a2a, #111); }
.category-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 65%); }
.category-card__text { position: relative; z-index: 2; color: var(--blanco); }
.category-card__text h3 { font-family: var(--font-serif); font-size: 32px; font-weight: 300; line-height: 1; margin-bottom: 4px; }
.category-card__text p { font-size: 12px; letter-spacing: 0.5px; color: rgba(255,255,255,0.6); }

/* ============================================================
   SECCIÓN DE CATEGORÍA
   ============================================================ */
.cat-section { max-width: var(--max-w); margin: 0 auto; padding: 72px 24px 0; }
.cat-section__header { margin-bottom: 48px; }
.cat-section__title { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; line-height: 1; margin-bottom: 10px; }
.cat-section__desc { font-size: 13px; color: var(--gris-text); }

/* ============================================================
   GRUPO
   ============================================================ */
.grupo { margin-bottom: 64px; }
.grupo__header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gris-mid); }
.grupo__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 300; margin-bottom: 6px; }
.grupo__desc { font-size: 12px; color: var(--gris-text); line-height: 1.6; }

/* ============================================================
   PRESENTACIÓN
   ============================================================ */
.presentacion {
  margin-bottom: 48px;
  border: 1px solid var(--gris-mid);
  border-radius: 3px;
  overflow: hidden;
}
.presentacion__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 24px;
  background: var(--gris);
  border-bottom: 1px solid var(--gris-mid);
}
.presentacion__nombre {
  font-size: 15px; font-weight: 500; margin-bottom: 4px;
}
.presentacion__desc { font-size: 12px; color: var(--gris-text); line-height: 1.55; }
.presentacion__precio {
  font-family: var(--font-serif); font-size: 22px; font-weight: 300;
  white-space: nowrap; flex-shrink: 0; color: var(--negro);
}

/* ============================================================
   PROGRESS BAR — unidades seleccionadas
   ============================================================ */
.sabores-progress {
  padding: 16px 24px 0;
  display: flex; align-items: center; gap: 14px;
}
.sabores-progress__bar {
  flex: 1; height: 3px; background: var(--gris-mid); border-radius: 2px; overflow: hidden;
}
.sabores-progress__fill {
  height: 100%; background: var(--bordo);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.sabores-progress__fill.complete { background: #2e7d32; }
.sabores-progress__text {
  font-size: 11px; color: var(--gris-text); white-space: nowrap; flex-shrink: 0;
}
.sabores-progress__text.complete { color: #2e7d32; }

/* ============================================================
   LISTA DE SABORES — idéntica al DPOP
   ============================================================ */
.sabores-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sabor-item {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--gris-mid);
  transition: background var(--transition);
}
.sabor-item:last-child { border-bottom: none; }
.sabor-item:hover:not(.sabor-item--out) { background: #fafaf8; }
.sabor-item--out { opacity: 0.5; }

/* Imagen grande del sabor */
.sabor-item__img {
  width: 96px; height: 96px; flex-shrink: 0;
  background: var(--beige); overflow: hidden;
}
.sabor-item__img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--beige), var(--beige-dark)); }

/* Body del sabor */
.sabor-item__body {
  flex: 1; padding: 16px 20px; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.sabor-item__icono { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; margin-bottom: 4px; }
.sabor-item__nombre { font-size: 14px; font-weight: 500; line-height: 1.2; }
.sabor-item__desc { font-size: 12px; color: var(--gris-text); line-height: 1.5; }
.sabor-item__stock { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gris-text); }

/* Control de cantidad del sabor */
.sabor-item__ctrl { padding: 16px 20px; flex-shrink: 0; }

/* ============================================================
   CANTIDAD CONTROL
   ============================================================ */
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--gris-mid); background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; border-radius: 2px;
  color: var(--negro); transition: all var(--transition); line-height: 1;
  -webkit-appearance: none; user-select: none;
}
.qty-btn:hover:not(:disabled) { border-color: var(--bordo); }
.qty-btn:active:not(:disabled) { transform: scale(0.9); }
.qty-value { font-size: 14px; font-weight: 500; min-width: 20px; text-align: center; }

/* ============================================================
   BOTÓN AGREGAR CAJA + HINT
   ============================================================ */
.sabores-actions {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--gris-mid);
  background: var(--gris);
}
.sabores-actions__hint { font-size: 11px; color: var(--gris-text); letter-spacing: 0.5px; }
.sabores-actions__hint.complete { color: #2e7d32; font-weight: 500; }

/* ============================================================
   PRODUCTO FIJO
   ============================================================ */
.producto-fijo {
  padding: 20px 24px;
  display: flex; justify-content: flex-end;
}
.qty-control--fijo { gap: 12px; }

/* ============================================================
   CARRITO SIDEBAR
   ============================================================ */
.cart-sidebar {
  position: fixed; top: 0; right: 0;
  width: min(100vw, 400px); height: 100dvh;
  background: var(--blanco); z-index: 200;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--gris-mid);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gris-mid); }
.cart-sidebar__header h2 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; }
.cart-sidebar__close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gris-text); line-height: 1; }
.cart-sidebar__items { flex: 1; overflow-y: auto; }
.cart-empty { padding: 40px 24px; font-size: 13px; color: var(--gris-text); text-align: center; }

/* Ítem del carrito */
.cart-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--gris-mid); }
.cart-item__img { width: 52px; height: 52px; background: var(--beige); border-radius: 2px; flex-shrink: 0; overflow: hidden; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cart-item__sabores { font-size: 11px; color: var(--gris-text); line-height: 1.6; margin-bottom: 4px; }
.cart-item__price { font-size: 13px; color: var(--gris-text); }
.cart-item__remove { background: none; border: none; cursor: pointer; color: var(--gris-text); font-size: 18px; flex-shrink: 0; margin-top: -2px; }
.cart-item__remove:hover { color: var(--negro); }

.cart-sidebar__footer { padding: 20px 24px; border-top: 1px solid var(--gris-mid); display: flex; flex-direction: column; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cart-total span:first-child { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gris-text); }
.cart-total span:last-child { font-size: 22px; font-weight: 300; font-family: var(--font-serif); }

.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.33s; }
.cart-backdrop.visible { opacity: 1; pointer-events: all; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bordo); color: rgba(255,255,255,0.75); margin-top: 100px; padding: 60px 32px 0; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer__name { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--blanco); margin-bottom: 8px; }
.footer__sub { font-size: 12px; line-height: 1.6; }
.footer__info, .footer__social { font-size: 12px; line-height: 2.2; display: flex; flex-direction: column; }
.footer__social a:hover { color: var(--blanco); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 11px; max-width: var(--max-w); margin: 0 auto; }

/* WhatsApp FAB */
.wsp-fab { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 52px; height: 52px; background: #25D366; color: var(--blanco); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(37,211,102,0.4); transition: transform var(--transition); }
.wsp-fab:hover { transform: scale(1.08); }

/* ============================================================
   ADMIN — estilos reutilizados del v1
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--bordo); color: rgba(255,255,255,0.85); display: flex; flex-direction: column; flex-shrink: 0; }
.admin-sidebar__logo { padding: 24px 24px 20px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--blanco); border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar__sub { font-size: 9px; color: rgba(255,255,255,0.4); margin-top: 3px; letter-spacing: 1px; }
.admin-nav { flex: 1; padding: 16px 0; }
.admin-nav__item { display: flex; align-items: center; gap: 10px; padding: 10px 24px; font-size: 12px; color: rgba(255,255,255,0.65); cursor: pointer; transition: all var(--transition); border-left: 2px solid transparent; }
.admin-nav__item:hover, .admin-nav__item.active { background: rgba(255,255,255,0.06); color: var(--blanco); border-left-color: var(--blanco); }
.admin-main { flex: 1; background: #f8f8f6; overflow-y: auto; }
.admin-topbar { background: var(--blanco); border-bottom: 1px solid var(--gris-mid); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar__title { font-size: 14px; font-weight: 500; }
.admin-content { padding: 32px; }
.admin-card { background: var(--blanco); border-radius: 4px; border: 1px solid var(--gris-mid); padding: 24px; margin-bottom: 24px; }
.admin-card__title { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gris-text); margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 14px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gris-text); border-bottom: 1px solid var(--gris-mid); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--gris-mid); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gris); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 2px; }
.badge--pending { background: #fff8e1; color: #e65100; }
.badge--ok      { background: #e8f5e9; color: #2e7d32; }
.badge--prep    { background: #e3f2fd; color: #1565c0; }
.badge--cancel  { background: #fce4ec; color: #ad1457; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gris-text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid var(--gris-mid); border-radius: 2px; font-size: 14px; font-family: var(--font-sans); color: var(--negro); background: var(--blanco); transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--negro); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar__links { display: none; }
  .cat-section { padding: 48px 16px 0; }
  .presentacion__header { flex-direction: column; gap: 6px; }
  .sabor-item__img { width: 72px; height: 72px; }
  .sabores-progress { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sabores-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sabores-actions .btn { width: 100%; }
  .admin-sidebar { display: none; }
}
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; width: 100%; max-width: 240px; }
  .sabor-item__img { width: 60px; height: 60px; }
  .sabor-item__body { padding: 12px 14px; }
  .sabor-item__ctrl { padding: 12px 14px; }
}

/* ============================================================
   HOME — DOS CARDS GRANDES
   ============================================================ */
.home-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 55vh;
}
.home-cat-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.home-cat-card img {
  position: absolute; inset: 0;
  transition: transform 0.6s ease;
}
.home-cat-card__placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #8C1035, #4A0015);
}
.home-cat-card:nth-child(2) .home-cat-card__placeholder {
  background: linear-gradient(135deg, #6B0020, #3A0010);
}
.home-cat-card:hover img { transform: scale(1.05); }
.home-cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  transition: opacity 0.3s;
}
.home-cat-card:hover .home-cat-card__overlay { opacity: 0.85; }
.home-cat-card__text {
  position: relative; z-index: 2;
  color: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.home-cat-card__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1;
}
.home-cat-card__text p {
  font-size: 12px; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6); line-height: 1.5;
  max-width: 280px;
}
.home-cat-card__cta {
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  transition: color 0.2s;
}
.home-cat-card:hover .home-cat-card__cta { color: #fff; }

/* ============================================================
   HERO DE CATEGORÍA (dulce.php / salado.php)
   ============================================================ */
.cat-hero {
  position: relative;
  height: 42vh; min-height: 260px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: #111;
  margin-top: 58px; /* altura navbar */
}
.cat-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.6;
}
.cat-hero__placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #8C1035, #4A0015);
}
.cat-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 60%);
}
.cat-hero__content {
  position: relative; z-index: 2;
  padding: 0 40px 36px;
  color: #fff;
}
.cat-hero__eyebrow {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.cat-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300; line-height: 1;
  margin-bottom: 8px;
}
.cat-hero__desc {
  font-size: 13px; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  max-width: 480px; line-height: 1.6;
}
.cat-hero__breadcrumb {
  position: absolute; top: 20px; left: 40px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}
.cat-hero__breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.cat-hero__breadcrumb a:hover { color: #fff; }

/* ============================================================
   NAV DE GRUPOS (sticky dentro de la página de categoría)
   ============================================================ */
.grupos-nav {
  position: sticky; top: 58px; z-index: 80;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-mid);
}
.grupos-nav__inner {
  display: flex; gap: 0;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.grupos-nav__inner::-webkit-scrollbar { display: none; }
.grupos-nav__link {
  padding: 14px 0;
  margin-right: 28px;
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gris-text);
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: all var(--transition);
}
.grupos-nav__link:hover { color: var(--bordo); }
.grupos-nav__link.active { color: var(--bordo); border-bottom-color: var(--bordo); }

/* ============================================================
   PÁGINA DE CATEGORÍA — catalog-page
   ============================================================ */
.catalog-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Navbar link activo */
.navbar__link--active {
  color: var(--bordo) !important;
  border-bottom: 1px solid var(--bordo);
}

/* ============================================================
   RESPONSIVE ADICIONAL
   ============================================================ */
@media (max-width: 640px) {
  .home-categories { grid-template-columns: 1fr; min-height: auto; }
  .home-cat-card { min-height: 240px; padding: 28px; }
  .cat-hero { height: 36vh; }
  .cat-hero__content { padding: 0 20px 28px; }
  .cat-hero__breadcrumb { left: 20px; }
  .catalog-page { padding: 32px 16px 60px; }
  .grupos-nav__inner { padding: 0 16px; }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.checkout-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 28px;
}
.form-section {
  margin: 32px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gris-mid);
}
.form-section-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-text);
  margin-bottom: 20px;
}
.radio-group { display: flex; flex-direction: column; gap: 12px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  color: var(--negro);
}
.radio-option input[type="radio"] { accent-color: var(--negro); width: 16px; height: 16px; }

@media (max-width: 600px) {
  .checkout-wrap { padding: 70px 20px 60px; }
}

/* ============================================================
   ESTILO DPOP — Grupos, Acordeón, Grid Sabores
   ============================================================ */

/* Página catálogo sin padding top extra */
.catalog-page {
  max-width: 680px;
  margin: 58px auto 0;
  padding: 0 0 80px;
}

/* GRUPO — header bordo oscuro */
.grupo2 { margin-bottom: 0; }

.grupo2__header {
  background: var(--bordo);
  color: #fff;
  padding: 14px 20px;
  text-align: center;
}
.grupo2__title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.grupo2__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ACORDEÓN */
.acordeon { border-bottom: 1px solid var(--gris-mid); }

.acordeon-item { border-top: 1px solid var(--gris-mid); }

.acordeon-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--beige);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.acordeon-trigger:hover { background: var(--beige-dark); }
.acordeon-item--open .acordeon-trigger { background: var(--beige-dark); }

.acordeon-trigger__nombre {
  font-size: 13px;
  font-weight: 500;
  color: var(--negro);
  flex: 1;
}
.acordeon-trigger__precio {
  font-size: 13px;
  font-weight: 600;
  color: var(--bordo);
  white-space: nowrap;
}
.acordeon-trigger__icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--bordo);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.acordeon-item--open .acordeon-trigger__icon { transform: none; }

/* PANEL DEL ACORDEÓN */
.acordeon-panel {
  padding: 0 16px 20px;
  background: #fff;
}
.acordeon-panel__desc {
  font-size: 12px;
  color: var(--gris-text);
  line-height: 1.6;
  padding: 14px 4px 8px;
  border-bottom: 1px solid var(--gris-mid);
  margin-bottom: 16px;
  text-align: center;
}

/* PROGRESS BAR */
.dpop-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
}
.dpop-progress__bar {
  flex: 1;
  height: 4px;
  background: var(--gris-mid);
  border-radius: 2px;
  overflow: hidden;
}
.dpop-progress__fill {
  height: 100%;
  background: var(--bordo);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.dpop-progress__fill--complete { background: #2e7d32; }
.dpop-progress__text {
  font-size: 11px;
  color: var(--gris-text);
  white-space: nowrap;
  flex-shrink: 0;
}
.dpop-progress__text.complete { color: #2e7d32; font-weight: 500; }

/* GRID DE SABORES — 3 columnas */
.sabores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gris-mid);
  margin: 0 -16px;
}

.sabor-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 14px;
}
.sabor-card--out { opacity: 0.5; pointer-events: none; }

/* Imagen del sabor */
.sabor-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--beige);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sabor-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sabor-card:hover .sabor-card__img img { transform: scale(1.04); }
.sabor-card__img-empty {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--beige), var(--beige-dark));
}
.sabor-card__out-badge {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}

/* Info del sabor */
.sabor-card__info {
  padding: 10px 8px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.sabor-card__emoji { font-size: 16px; line-height: 1; }
.sabor-card__nombre {
  font-size: 13px;
  font-weight: 500;
  color: var(--negro);
  line-height: 1.2;
}
.sabor-card__desc {
  font-size: 11px;
  color: var(--gris-text);
  line-height: 1.4;
}
.sabor-card__stock-txt {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gris-text);
}

/* Control cantidad en sabor-card */
.sabor-card__ctrl {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}
.sabor-card .qty-control { gap: 8px; }
.sabor-card .qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gris-mid);
  font-size: 16px;
}
.sabor-card .qty-btn:hover { border-color: var(--bordo); color: var(--bordo); }
.sabor-card .qty-value { font-size: 14px; font-weight: 500; min-width: 20px; }

/* Botón agregar */
.dpop-agregar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px 0;
  margin-top: 16px;
  border-top: 1px solid var(--gris-mid);
}
.dpop-agregar__hint {
  font-size: 11px;
  color: var(--gris-text);
}
.dpop-agregar__hint.complete { color: #2e7d32; font-weight: 500; }

/* ============================================================
   RESPONSIVE DPOP
   ============================================================ */
@media (max-width: 480px) {
  .catalog-page { max-width: 100%; }
  .sabores-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .sabor-card__nombre { font-size: 11px; }
  .sabor-card__desc { display: none; }
  .sabor-card__info { padding: 6px 4px 6px; }
  .acordeon-trigger { padding: 12px 16px; }
  .acordeon-panel { padding: 0 12px 16px; }
  .sabores-grid { margin: 0 -12px; }
  .dpop-agregar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dpop-agregar .btn { width: 100%; }
}

/* ============================================================
   PRODUCTO FIJO — imagen + ctrl
   ============================================================ */
.producto-fijo {
  display: flex;
  flex-direction: column;
}
.pres-fijo__img {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 14px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pres-fijo__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pres-fijo__desc {
  font-size: 13px;
  color: var(--gris-text);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pres-fijo__ctrl {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gris-mid);
  flex-wrap: wrap;
}


/* ============================================================
   FOOTER — columna dpop integrada
   ============================================================ */
.footer__dpop-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer__dpop-btn {
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
  width: 100%;
}
.footer__dpop-btn:first-child { border-top: none; }
.footer__dpop-btn:hover { color: #fff; }
.footer__dpop-btn--link {
  text-decoration: none;
  display: block;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.footer__dpop-answer {
  display: none;
  padding: 0 0 10px;
}
.footer__dpop-answer.open { display: block; }
.footer__dpop-answer p {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Hero picture/img responsive */
.hero__picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

/* ============================================================
   FOOTER HOME — versión lineal centrada
   ============================================================ */
.footer--home {
  background: var(--bordo);
  color: rgba(255,255,255,0.75);
  padding: 48px 32px 0;
  margin-top: 0;
}
.footer-home__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-home__brand {
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.footer-home__name {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
}
.footer-home__sep { color: rgba(255,255,255,0.3); }
.footer-home__desc { color: rgba(255,255,255,0.65); font-size: 12px; }

.footer-home__info {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.footer-home__contact {
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.footer-home__contact a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-home__contact a:hover { color: #fff; }
.footer-home__dot { color: rgba(255,255,255,0.3); }

.footer-home__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-home__bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-home__bottom a:hover { color: #fff; }

@media (max-width: 600px) {
  .footer-home__info .footer-home__dot { display: none; }
  .footer-home__info { flex-direction: column; gap: 4px; }
}

/* Footer páginas categoría — solo secciones dpop + copyright */
.footer--cat { padding-top: 0; }
.footer__inner--cat {
  grid-template-columns: 1fr;
  max-width: var(--max-w);
  padding: 0 24px 8px;
}

/* Imagen general de presentación con_sabores */
.pres-img-general {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
  background: var(--beige);
}
.pres-img-general img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
