/* ==========================================================================
   EL CARBONCITO — SISTEMA DE DISEÑO Y HOJA DE ESTILOS V3
   Dirección visual oficial:
   - Negro carbón cálido y profundidad fotográfica.
   - Tipografía ultra-pesada marfil (Anton / Oswald).
   - Rojo intenso (#DC1415) con volumen sutil para acciones.
   - Oro apagado (#E2B042) para precios.
   - Fotografía de producto protagonista, madera oscura y barro.
   ========================================================================== */

:root {
  /* Paleta cromática aprobada */
  --bg-dark: #0B0A09;
  --bg-surface: #141311;
  --bg-surface-elevated: #1B1917;
  --bg-card: #151412;
  --bg-card-hover: #1F1D1A;
  
  --text-ivory: #F5EAD9;
  --text-ivory-dim: #CFC1AD;
  --text-ivory-muted: #8C8274;
  --text-white: #FFFFFF;

  --red-primary: #DC1415;
  --red-primary-hover: #C51011;
  --red-gradient: linear-gradient(180deg, #E61819 0%, #C40E0F 100%);
  --red-glow: rgba(220, 20, 21, 0.4);

  --gold-accent: #E2B042;
  --gold-accent-dim: #C59632;

  --border-subtle: rgba(245, 234, 217, 0.1);
  --border-subtle-hover: rgba(245, 234, 217, 0.22);
  --border-active-red: rgba(220, 20, 21, 0.6);

  /* Tipografías */
  --font-display: 'Anton', sans-serif;
  --font-condensed: 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciados y radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-btn: 0 6px 18px rgba(220, 20, 21, 0.4);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-ivory);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-ivory);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

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

button, input, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   CONTENEDOR GLOBAL Y RESPONSIVE
   ========================================================================== */
.site-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==========================================================================
   CABECERA PRINCIPAL
   ========================================================================== */
.main-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 10, 9, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.header-brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--text-ivory);
  text-transform: uppercase;
}

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s, border-color 0.2s;
}

.header-icon-btn:hover {
  border-color: var(--border-subtle-hover);
  transform: translateY(-1px);
}

.header-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red-primary);
  color: #FFF;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-dark);
}

/* ==========================================================================
   INTRO SPLASH CINEMÁTICO — CORTINILLA OFICIAL
   ========================================================================== */

/* Canvas base carbón: negro puro que coincide 100% con los bordes [0,0,0] del asset */
.splash-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #000000;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.splash-screen-overlay.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Escenario vertical balanceado: estilo app splash, no hero */
.splash-inner-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top, 24px)) 24px max(28px, env(safe-area-inset-bottom, 28px));
  box-sizing: border-box;
}

/* Barra superior: Logo oficial sutil + botón Saltar */
.splash-top-bar {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  opacity: 0;
  animation: splashElementFade 0.5s ease-out 0.15s forwards;
}

.splash-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.splash-brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.9));
}

.splash-skip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(245, 240, 234, 0.85);
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.splash-skip-btn:hover,
.splash-skip-btn:active {
  background: rgba(227, 24, 24, 0.35);
  border-color: #E31818;
  color: #FFFFFF;
}

/* Escenario central: la mascota y el trompo contenidos y enmarcados */
.splash-mascot-stage {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 12px 0;
}

/* Viñeta de fundido exterior: garantiza cero bordes de compresión de video contra el fondo negro */
.splash-mascot-stage::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(ellipse 85% 82% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.9) 92%, #000000 100%);
  pointer-events: none;
  z-index: 5;
}

/*
  Asset / Video contenido en movimiento:
  - max-height acotado (~42-45vh o 340px) para que sea un verdadero splash/cortinilla y no un hero
  - Máscara radial suave en los bordes para fundir al 100% cualquier compresión del video con el canvas #000000
  - Cero marcos, cero cajas, cero saltos de tono
*/
.splash-mascot-video,
.splash-mascot-img {
  position: relative;
  max-height: min(44vh, 340px);
  width: auto;
  max-width: 82vw;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 90% 88% at 50% 50%, black 65%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 88% at 50% 50%, black 65%, transparent 100%);
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.98));
  opacity: 0;
  transform: scale(0.96) translateY(6px);
  animation: splashMascotIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  pointer-events: none;
  background-color: transparent;
}

@keyframes splashMascotIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Pie: Indicador de progreso ultra-fino y lema de marca */
.splash-footer {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  animation: splashElementFade 0.5s ease-out 0.25s forwards;
}

.splash-progress-track {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.splash-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #E31818 0%, #FF8A00 70%, #FFB800 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(227, 24, 24, 0.85);
  animation: splashProgressFill 3.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

@keyframes splashProgressFill {
  0%   { width: 0%;   }
  100% { width: 100%; }
}

.splash-status-text {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: rgba(245, 240, 234, 0.45);
  text-transform: uppercase;
  text-align: center;
}

@keyframes splashElementFade {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen-overlay {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .splash-top-bar,
  .splash-mascot-video,
  .splash-mascot-img,
  .splash-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .splash-progress-fill {
    animation: none !important;
    width: 100% !important;
  }
}



/* ==========================================================================
   PORTADA POSTERIOR AL SPLASH (ESCENA CONTINUA NOCTURNA A PANTALLA COMPLETA)
   ========================================================================== */
.hero-portal-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: max(26px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.90) 0%, rgba(8, 7, 6, 0.65) 24%, rgba(8, 7, 6, 0.10) 48%, rgba(8, 7, 6, 0.72) 82%, #080706 100%),
              url('assets/brand/portada_bg.jpg') center bottom / cover no-repeat;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}

.hero-ambient-glow {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220, 20, 21, 0.22) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.hero-top-group {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  z-index: 2;
}

/* Ajuste de escala: Logo +10% (126px) */
.hero-logo-wrap {
  position: relative;
  width: 126px;
  max-width: 126px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.85));
}

.hero-official-logo {
  width: 100%;
  height: auto;
  max-width: 126px;
  object-fit: contain;
}

.hero-headline-wrap {
  position: relative;
  margin-bottom: 8px;
}

/* Ajuste de escala: Titular +8% */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(37px, 10vw, 52px);
  line-height: 1.02;
  letter-spacing: 0.03em;
  color: var(--text-ivory);
  text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.95);
}

.hero-red-accent-line {
  width: 44px;
  height: 3px;
  background: var(--red-primary);
  margin: 12px auto 0;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(220, 20, 21, 0.8);
}

.hero-bottom-stage {
  position: relative;
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  z-index: 5;
}

.hero-cta-container {
  position: relative;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  z-index: 5;
}

.hero-main-cta {
  width: 100%;
  height: 54px;
  min-height: 54px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #D41417 0%, #940A0C 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85), 0 0 24px rgba(212, 20, 23, 0.5);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.05em;
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.hero-main-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 28px rgba(212, 20, 23, 0.65);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 24px;
  background: var(--red-gradient);
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(220, 20, 21, 0.45);
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(220, 20, 21, 0.55);
}

.btn-primary:active {
  transform: translateY(1px);
}

.hero-neutral-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.hero-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-ivory-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.15s;
}

.hero-link-btn:hover {
  color: var(--text-ivory);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle-hover);
}

/* ==========================================================================
   ESTADOS DE VISTA: PORTADA vs CATÁLOGO
   ========================================================================== */
body:not(.catalog-active) .main-site-header,
body:not(.catalog-active) .catalog-nav-section,
body:not(.catalog-active) .catalog-content-section,
body:not(.catalog-active) .floating-cart-bar,
body:not(.catalog-active) .floating-help-btn {
  display: none !important;
}

body.catalog-active #inicioSection {
  display: none !important;
}

/* ==========================================================================
   SECCIÓN DE NAVEGACIÓN Y BÚSQUEDA DEL CATÁLOGO
   ========================================================================== */
.catalog-nav-section {
  position: sticky;
  top: 52px;
  z-index: 40;
  background: rgba(8, 7, 6, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.search-bar-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-input {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0 40px 0 42px;
  color: var(--text-ivory);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

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

.search-input:focus {
  border-color: rgba(220, 20, 21, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-ivory-muted);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-ivory);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.category-pills-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-pills-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-ivory-dim);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-ivory);
}

.cat-pill.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--red-glow);
}

.more-cats-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(226, 176, 66, 0.35);
  color: var(--gold-accent);
}

/* ==========================================================================
   CATÁLOGO Y TARJETAS DE PRODUCTO
   ========================================================================== */
.catalog-content-section {
  padding: 20px 16px 120px;
  flex: 1;
}

.category-block {
  margin-bottom: 36px;
  scroll-margin-top: 150px;
}

.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 234, 217, 0.08);
}

.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-header-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.category-block-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 30px);
  color: var(--text-ivory);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.category-block-desc {
  font-size: 13px;
  color: var(--text-ivory-muted);
  margin-top: 2px;
}

.category-count-badge {
  font-family: var(--font-condensed);
  font-size: 12px;
  color: var(--gold-accent);
  background: rgba(226, 176, 66, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 176, 66, 0.2);
  white-space: nowrap;
}

/* GRID DE PRODUCTOS */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Desktop & Tablet adaptation */
@media (min-width: 680px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* SLOTS DE CATEGORÍA: DESTACADO + LISTA COMPACTA */
.category-block {
  margin-bottom: 44px;
}

.category-featured-slot {
  margin-bottom: 12px;
}

.category-compact-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.card-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  min-height: 74px;
  border-bottom: 1px solid rgba(245, 234, 217, 0.07);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}

.card-compact-row:last-child {
  border-bottom: none;
}

.card-compact-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.compact-row-info {
  flex: 1;
  min-width: 0;
  padding-right: 14px;
}

.compact-row-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--text-ivory);
  line-height: 1.2;
  margin-bottom: 3px;
}

.compact-row-desc {
  font-size: 12px;
  color: var(--text-ivory-dim);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-row-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.compact-row-price {
  font-family: var(--font-display);
  color: var(--gold-accent);
  font-size: 20px;
  letter-spacing: 0.02em;
  text-align: right;
}

.compact-row-chevron {
  color: var(--text-ivory-muted);
  display: flex;
  align-items: center;
  transition: transform 0.15s, color 0.15s;
}

.card-compact-row:hover .compact-row-chevron {
  color: var(--red-primary);
  transform: translateX(2px);
}

/* TARJETA DESTACADA */
.card-featured {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-featured:hover {
  transform: translateY(-2px);
  border-color: var(--border-subtle-hover);
}

.card-featured-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.card-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.06);
  transition: transform 0.35s ease;
}

.card-featured:hover .card-featured-img {
  transform: scale(1.12);
}

.card-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.08) 0%, rgba(8, 7, 6, 0.40) 45%, rgba(18, 17, 15, 0.98) 100%);
}

/* Packshots de bebidas empaquetadas sobre carbón plano #0A0908 */
.card-featured.is-packshot {
  background: #0A0908 !important;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.card-featured.is-packshot .card-featured-image-wrap {
  background: #0A0908;
}

.card-featured.is-packshot .card-featured-img {
  object-fit: contain;
  object-position: center center;
  transform: none;
  background: #0A0908;
}

.card-featured.is-packshot:hover .card-featured-img {
  transform: scale(1.03);
}

.card-featured.is-packshot .card-image-gradient {
  display: none;
}

.custom-hero-media.is-packshot {
  background: #0A0908 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

.custom-hero-media.is-packshot .custom-hero-img {
  object-fit: contain;
  background: #0A0908;
  max-height: 100%;
}

.custom-hero-media.is-packshot .custom-hero-overlay {
  display: none;
}

.modal-sheet-dialog:has(.custom-hero-media.is-packshot) {
  background: #0A0908;
}

.card-featured-content {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
}

.card-featured-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.card-featured-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.03em;
  color: var(--text-white);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.card-price-tag {
  text-align: right;
  flex-shrink: 0;
}

.card-price-tag .price-prefix {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-ivory-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.card-price-tag .price-amount {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-accent);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.card-featured-desc {
  font-size: 13px;
  color: var(--text-ivory-dim);
  line-height: 1.4;
  margin-bottom: 0;
}

.card-price-tag {
  font-family: var(--font-display);
  color: var(--gold-accent);
  letter-spacing: 0.02em;
}

.price-prefix {
  font-family: var(--font-condensed);
  font-size: 14px;
  color: var(--text-ivory-muted);
  font-weight: 400;
}

.price-amount {
  font-size: 26px;
}

.card-action-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--red-gradient);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s;
}

.card-featured:hover .card-action-btn {
  transform: scale(1.08);
}

/* TARJETA COMPACTA (FILA CON FOTO) */
.card-compact {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
}

.card-compact:hover {
  transform: translateY(-2px);
  border-color: var(--border-subtle-hover);
}

.card-compact-media {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.card-compact-info {
  flex: 1;
  min-width: 0;
}

.card-compact-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-compact-desc {
  font-size: 12px;
  color: var(--text-ivory-dim);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.card-compact-price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-accent);
}

.card-action-btn-compact {
  color: var(--text-ivory-muted);
  padding: 8px;
  transition: transform 0.15s, color 0.15s;
}

.card-compact:hover .card-action-btn-compact {
  color: var(--red-primary);
  transform: translateX(3px);
}

/* TARJETA SIN FOTO */
.card-no-photo {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s, border-color 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-no-photo:hover {
  transform: translateY(-2px);
  border-color: var(--border-subtle-hover);
}

.card-no-photo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dish-flame-icon {
  font-size: 18px;
  opacity: 0.8;
}

.card-no-photo-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 6px;
}

.card-no-photo-desc {
  font-size: 13px;
  color: var(--text-ivory-dim);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.card-no-photo-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 234, 217, 0.06);
  color: var(--text-ivory-muted);
  font-family: var(--font-condensed);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.card-no-photo:hover .card-no-photo-action {
  color: var(--gold-accent);
}

/* ==========================================================================
   BARRA FLOTANTE "MI PEDIDO" (CÁPSULA CARBÓN OPACA INDEPENDIENTE)
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 16px; /* Elevada 16px del borde inferior */
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 90;
  pointer-events: none;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  padding: 0;
  background: transparent;
}

.floating-cart-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cart-capsule-btn {
  width: 100%;
  height: 60px;
  background: #141210; /* Carbón opaco sólido */
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.94), 0 2px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 6px 8px;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cart-capsule-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 168, 64, 0.4);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.98), 0 0 18px rgba(220, 20, 21, 0.25);
}

.cart-capsule-btn:active {
  transform: scale(0.98);
}

/* Izquierda: Círculo oscuro con carrito + badge rojo */
.cart-capsule-left {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: #201D1A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FBF7F0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-capsule-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--red-primary);
  color: #FFFFFF;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #141210;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Centro en dos niveles */
.cart-capsule-center {
  flex: 1;
  min-width: 0;
  margin: 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-capsule-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text-ivory); /* Marfil compacto y contundente */
  line-height: 1.1;
  text-transform: uppercase;
}

.cart-capsule-sub {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-accent); /* Oro */
  line-height: 1.2;
  margin-top: 2px;
}

/* Derecha: Botón circular rojo con flecha blanca */
.cart-capsule-action {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--red-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(220, 20, 21, 0.45);
  transition: transform 0.18s ease;
}

.cart-capsule-btn:hover .cart-capsule-action {
  transform: translateX(2px);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE AYUDA (MASCOTA 3D POLISHED WAX)
   ========================================================================== */
.floating-help-btn {
  position: fixed;
  bottom: 84px;
  right: 14px;
  z-index: 95;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.22s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(184, 41, 43, 0.35));
  animation: floatingMascotBob 3.6s ease-in-out infinite alternate;
}

.floating-help-btn:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 14px rgba(229, 168, 64, 0.5));
}

.floating-help-btn:active {
  transform: scale(0.95);
}

.help-mascot-thumb {
  width: 52px;
  height: 68px;
  object-fit: contain;
  display: block;
}

@keyframes floatingMascotBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* ==========================================================================
   MODAL DE PERSONALIZACIÓN Y DRAWERS GLOBALES
   ========================================================================== */
.modal-backdrop-layer {
  position: fixed;
  inset: 0;
  background: rgba(7, 6, 5, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop-layer.active {
  display: block;
  opacity: 1;
}

.modal-container {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: none;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

.modal-container.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Control estricto de visibilidad para que la portada nunca atraviese modales ni búsqueda */
body.modal-open {
  overflow: hidden;
}

body.modal-open #inicioSection {
  visibility: hidden !important;
}

body.is-searching #inicioSection,
body.catalog-active #inicioSection {
  display: none !important;
}

.modal-sheet-dialog {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.85);
  animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-drag-handle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 10px auto 4px;
}

.modal-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-bottom: 1px solid rgba(245, 234, 217, 0.08);
}

.modal-back-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-ivory);
}

.modal-screen-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--text-white);
  text-transform: uppercase;
}

.modal-header-placeholder {
  width: 38px;
}

.custom-scrollable-content {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}

.custom-hero-media {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

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

.custom-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 19, 17, 0.9) 100%);
}

.custom-info-header {
  margin-bottom: 20px;
}

.custom-item-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.custom-item-desc {
  font-size: 14px;
  color: var(--text-ivory-dim);
  line-height: 1.4;
}

.custom-section {
  margin-bottom: 22px;
}

.custom-section-title {
  font-family: var(--font-condensed);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}

/* GRUPO DE RADIOS PORCIONES */
.portion-selector-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portion-radio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.portion-radio-card input {
  display: none;
}

.portion-radio-card.selected {
  border-color: var(--red-primary);
  background: rgba(220, 20, 21, 0.1);
}

.portion-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-ivory);
}

.portion-price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-accent);
}

/* SELECTOR DE TORTILLAS */
.tortilla-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tortilla-radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.tortilla-radio-card input {
  display: none;
}

.tortilla-radio-card.selected {
  border-color: var(--red-primary);
  background: rgba(220, 20, 21, 0.1);
}

.tortilla-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-ivory);
  margin-bottom: 2px;
}

.tortilla-price {
  font-family: var(--font-condensed);
  font-size: 13px;
  color: var(--gold-accent);
}

.included-tag {
  font-size: 11px;
  color: var(--text-ivory-muted);
}

/* LISTA DE INGREDIENTES INCLUIDOS */
.ingredients-list {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.ingredient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(245, 234, 217, 0.05);
}

.ingredient-row:last-child {
  border-bottom: none;
}

.ingredient-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ingredient-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ingredient-bullet {
  color: var(--gold-accent);
  font-weight: 800;
}

.ingredient-name {
  font-size: 14px;
  color: var(--text-ivory);
}

.ingredient-status {
  font-size: 12px;
  color: var(--text-ivory-muted);
  font-family: var(--font-condensed);
  text-transform: uppercase;
}

/* EXTRAS */
.extras-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extra-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.extra-item-card input {
  accent-color: var(--red-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.extra-item-card.checked {
  border-color: var(--red-primary);
  background: rgba(220, 20, 21, 0.08);
}

.extra-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.extra-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.extra-name {
  font-size: 14px;
  color: var(--text-ivory);
}

.extra-price {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-accent);
}

/* NOTAS */
.custom-notes-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-ivory);
  font-size: 13px;
  resize: none;
}

.custom-notes-input:focus {
  border-color: var(--gold-accent-dim);
}

.custom-space-buffer {
  height: 30px;
}

/* FOOTER DEL MODAL */
.custom-modal-footer {
  padding: 10px 16px 16px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-footer-notice {
  font-size: 11px;
  color: var(--gold-accent);
  font-style: italic;
  text-align: center;
  letter-spacing: 0.02em;
}

.custom-footer-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ingredient-bullet-svg {
  color: #4CAF50;
  display: inline-flex;
  align-items: center;
}

.empty-icon-svg {
  color: var(--text-ivory-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.wa-avatar-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-full);
}

.quantity-stepper-control {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  flex-shrink: 0;
}

.step-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-ivory);
  font-size: 18px;
  font-weight: 700;
  transition: background 0.15s;
}

.step-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-display {
  font-family: var(--font-display);
  font-size: 19px;
  min-width: 32px;
  text-align: center;
  color: var(--text-white);
}

.add-order-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.cta-text {
  font-size: 18px;
}

.cta-price {
  font-family: var(--font-display);
  font-size: 21px;
}

/* ==========================================================================
   DRAWER DEL CARRITO DE COMPRAS
   ========================================================================== */
.cart-drawer-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.85);
  animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-items-container {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 2px;
}

.cart-item-details {
  font-size: 12px;
  color: var(--text-ivory-dim);
  line-height: 1.35;
  margin-bottom: 4px;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-accent);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  border: 1px solid var(--border-subtle);
}

.cart-step-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-ivory);
}

.cart-step-qty {
  font-family: var(--font-display);
  font-size: 16px;
  min-width: 24px;
  text-align: center;
  color: var(--text-white);
}

.cart-remove-btn {
  color: var(--text-ivory-muted);
  padding: 6px;
  transition: color 0.15s;
}

.cart-remove-btn:hover {
  color: var(--red-primary);
}

/* CIERRE DEL PEDIDO — MASCOTA 3D "¿SE TE ANTOJA ALGO MÁS?" */
.cart-upsell-mascot-card {
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(26, 24, 22, 0.96) 0%, rgba(16, 15, 14, 0.98) 100%);
  border: 1px solid rgba(229, 168, 64, 0.22);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cart-upsell-mascot-visual {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-upsell-mascot-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(184, 41, 43, 0.42) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cart-upsell-mascot-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85));
  animation: mascotGentleWave 4s ease-in-out infinite alternate;
}

@keyframes mascotGentleWave {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.02); }
}

.cart-upsell-content {
  flex: 1;
  min-width: 0;
}

.cart-upsell-tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cart-upsell-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.cart-upsell-desc {
  font-size: 11.5px;
  color: var(--text-ivory-dim);
  line-height: 1.35;
  margin-bottom: 10px;
}

.cart-upsell-btn {
  background: rgba(184, 41, 43, 0.15);
  border: 1px solid rgba(229, 168, 64, 0.35);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-ivory);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-upsell-btn:hover {
  background: var(--red-primary);
  border-color: var(--gold-accent);
  color: #fff;
  transform: translateY(-1px);
}

.cart-empty-box {
  text-align: center;
  padding: 48px 24px;
}

.cart-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.cart-empty-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-ivory);
  margin-bottom: 6px;
}

.cart-empty-sub {
  font-size: 13px;
  color: var(--text-ivory-muted);
  margin-bottom: 20px;
}

.cart-drawer-footer {
  padding: 16px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}

.cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-summary-label {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-ivory-dim);
  text-transform: uppercase;
}

.cart-summary-total {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-accent);
}

.cart-notice-badge {
  background: rgba(226, 176, 66, 0.08);
  border: 1px solid rgba(226, 176, 66, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--gold-accent-dim);
  text-align: center;
  margin-bottom: 14px;
}

.whatsapp-checkout-btn {
  width: 100%;
  min-height: 56px;
  background: #25D366;
  background: linear-gradient(180deg, #27DE6B 0%, #1FB858 100%);
  color: #FFF;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s, filter 0.15s;
}

.whatsapp-checkout-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* ==========================================================================
   MODAL DE ASISTENTE POLISHED WAX 3D (ESCENA DE AYUDA CON MASCOTA 3D REAL)
   ========================================================================== */
.assistant-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  max-height: 86vh;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9);
  animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.no-modal-anim .modal-sheet-dialog,
body.no-modal-anim .cart-drawer-sheet,
body.no-modal-anim .assistant-sheet {
  animation: none !important;
  transform: translateY(0) !important;
}

/* Modo viewport fijado para capturas de auditoría precisas y emulaciones */
body.fixed-viewport-mode {
  width: var(--mobile-viewport-width, 390px) !important;
  max-width: var(--mobile-viewport-width, 390px) !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

body.fixed-viewport-mode .site-wrapper,
body.fixed-viewport-mode .splash-screen-overlay,
body.fixed-viewport-mode #premiumSplashScreen,
body.fixed-viewport-mode .modal-backdrop-layer,
body.fixed-viewport-mode .modal-container {
  width: var(--mobile-viewport-width, 390px) !important;
  max-width: var(--mobile-viewport-width, 390px) !important;
  left: 0 !important;
  right: auto !important;
}

body.fixed-viewport-mode .assistant-sheet,
body.fixed-viewport-mode .modal-sheet-dialog,
body.fixed-viewport-mode .cart-drawer-sheet {
  width: 100% !important;
  max-width: 100% !important;
}

body.fixed-viewport-mode .floating-help-btn {
  position: fixed !important;
  left: calc(var(--mobile-viewport-width, 390px) - 66px) !important;
  right: auto !important;
  bottom: 84px !important;
  z-index: 95 !important;
}

.assistant-hero-stage {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 10px 0 18px;
  background: radial-gradient(circle at 82% 45%, rgba(175, 20, 22, 0.46) 0%, rgba(14, 13, 11, 0.98) 72%);
  border-bottom: 1px solid rgba(245, 234, 217, 0.1);
  overflow: hidden;
  min-height: 175px;
}

.assistant-hero-glow {
  position: absolute;
  right: 15px;
  bottom: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 21, 0.38) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(28px);
}

.assistant-hero-info {
  position: relative;
  flex: 1 1 auto;
  max-width: calc(100% - 150px);
  min-width: 0;
  padding-right: 6px;
  padding-bottom: 16px;
  z-index: 2;
  box-sizing: border-box;
}

.assistant-hero-heading {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-ivory);
  line-height: 1.15;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.assistant-hero-desc {
  font-size: 13px;
  color: var(--text-ivory-dim);
  line-height: 1.35;
}

.assistant-hero-mascot-wrap {
  position: relative;
  flex: 0 0 145px;
  width: 145px;
  height: 175px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  margin-bottom: -2px;
  box-sizing: border-box;
}

.assistant-hero-mascot-img {
  width: auto;
  height: 175px;
  max-width: 145px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 20px rgba(220, 20, 21, 0.35));
  animation: assistantMascotPulse 3s ease-in-out infinite alternate;
}

@keyframes assistantMascotPulse {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-4px);
  }
}

.assistant-stage-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-ivory-dim);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.assistant-stage-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.assistant-dialogue-area {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.assistant-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.4;
}

.bot-bubble {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-ivory);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-bubble {
  background: var(--red-primary);
  color: #FFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bubble-greeting {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 4px;
}

.bubble-instruction {
  font-size: 13px;
  color: var(--text-ivory-dim);
}

.assistant-action-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--red-primary);
  color: #FFF;
  border-radius: var(--radius-full);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: opacity 0.15s;
}

.assistant-action-link:hover {
  opacity: 0.9;
}

.assistant-options-grid {
  padding: 12px 16px 20px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.assistant-option-chip {
  padding: 10px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-ivory);
  font-size: 13px;
  text-align: left;
  transition: all 0.15s;
}

.assistant-option-chip:hover {
  border-color: var(--gold-accent-dim);
  background: #22201D;
}

/* ==========================================================================
   MODAL DE MÁS CATEGORÍAS
   ========================================================================== */
.more-cats-grid {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
}

.more-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.more-cat-card:hover {
  border-color: var(--border-subtle-hover);
  background: #201E1B;
}

.more-cat-card.active {
  border-color: var(--red-primary);
  background: rgba(220, 20, 21, 0.1);
}

.more-cat-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.more-cat-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.more-cat-text {
  flex: 1;
}

.more-cat-name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 2px;
}

.more-cat-desc {
  display: block;
  font-size: 12px;
  color: var(--text-ivory-muted);
}

.more-cat-chevron {
  color: var(--text-ivory-muted);
}

/* ==========================================================================
   MODAL DE INFORMACIÓN Y UBICACIÓN
   ========================================================================== */
.info-modal-content {
  padding: 20px 16px 28px;
  text-align: center;
}

.info-badge-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.info-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-white);
  margin-bottom: 12px;
}

.info-card-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 18px;
  font-size: 14px;
}

.info-row {
  margin-bottom: 10px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  display: block;
  font-family: var(--font-condensed);
  font-size: 11px;
  color: var(--gold-accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.info-val {
  color: var(--text-ivory);
}

/* ==========================================================================
   PULSE EFFECT PARA FEEDBACK VISUAL
   ========================================================================== */
@keyframes pulseHighlight {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse-highlight {
  animation: pulseHighlight 0.45s ease;
}

/* ==========================================================================
   ESTILOS DE VISTA PREVIA DE MENSAJE WHATSAPP
   ========================================================================== */
.whatsapp-preview-sheet {
  background: #0B141A;
  border-color: rgba(255, 255, 255, 0.1);
}

.whatsapp-preview-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 75vh;
}

.wa-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #1F2C34;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-contact-avatar {
  font-size: 24px;
}

.wa-contact-name {
  display: block;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  color: #E9EDEF;
}

.wa-contact-phone {
  font-size: 12px;
  color: #8696A0;
}

.wa-chat-bubble {
  background: #005C4B;
  color: #E9EDEF;
  border-radius: var(--radius-md);
  border-top-left-radius: 2px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  font-family: var(--font-body);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.wa-action-footer {
  margin-top: 6px;
}

/* ==========================================================================
   FASE 1: ESTILOS DE CHECKOUT MULTI-PASO (ENTREGA · PAGO · REVISIÓN)
   Conserva la superficie oscura y tokens aprobados:
   --bg-dark (#0B0A09), --bg-surface (#141311), --bg-surface-elevated (#1B1917)
   --text-ivory (#F5EAD9), --red-primary (#DC1415), --gold-accent (#E2B042)
   ========================================================================== */

body.checkout-modal-open {
  overflow: hidden;
}

body.checkout-modal-open .floating-help-btn,
body.checkout-modal-open #floatingHelpBtn,
body.checkout-modal-open .floating-cart-bar {
  display: none !important;
  pointer-events: none !important;
}

.checkout-modal-sheet {
  position: relative;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  height: 94vh;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
}

/* Barra de progreso de pasos */
.checkout-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.step-pill {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-ivory-muted);
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.step-pill.active {
  color: var(--text-ivory);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-accent);
}

.step-pill.completed {
  color: var(--gold-accent);
}

.step-divider {
  color: var(--border-subtle);
  font-size: 14px;
}

/* Cuerpo con scroll */
.checkout-step-scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px calc(var(--checkout-footer-height, 185px) + env(safe-area-inset-bottom, 0px) + 24px);
  scroll-padding-bottom: calc(var(--checkout-footer-height, 185px) + env(safe-area-inset-bottom, 0px) + 24px);
}

.checkout-section-headline {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-ivory);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* Selector Modalidad: Domicilio vs Sucursal */
.fulfillment-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.fulfillment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-dark);
  color: var(--text-ivory-dim);
  border: 1.5px solid var(--border-subtle);
  padding: 12px 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.2s ease;
}

.fulfillment-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-ivory);
  border-color: var(--red-primary);
  box-shadow: 0 0 14px var(--red-glow);
}

/* Campos de Formulario */
.checkout-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-ivory-dim);
  text-transform: uppercase;
}

.form-label .req {
  color: var(--red-primary);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bg-dark);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-ivory);
  font-family: var(--font-body);
  font-size: 15px; /* previene desbordamientos en pantallas pequeñas */
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  min-height: 46px;
  transition: border-color 0.2s ease;
  text-overflow: ellipsis;
}

.form-input::placeholder {
  color: var(--text-ivory-muted);
  opacity: 0.65;
  text-overflow: ellipsis;
}

.form-input:focus {
  border-color: var(--gold-accent);
  background: #0f0e0d;
}

.form-row-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-row-2col > .form-group {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-checkbox-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-ivory-dim);
  margin-top: 4px;
  cursor: pointer;
  white-space: normal;
  line-height: 1.25;
}

.form-checkbox-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--red-primary);
}

/* Mapa de Entrega Leaflet */
.checkout-map-wrap {
  position: relative;
  margin: 18px 0 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-dark);
}

.checkout-map {
  width: 100%;
  height: 240px;
  background: #1a1a1a;
  z-index: 1;
}

.btn-geo-locate {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: var(--bg-surface-elevated);
  color: var(--text-ivory);
  border: 1px solid var(--gold-accent);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.map-caption-note {
  font-size: 12px;
  color: var(--text-ivory-muted);
  text-align: center;
  margin-top: 4px;
}

/* Caja de Feedback de Cobertura */
.coverage-feedback-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.4;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coverage-feedback-box.loading {
  background: var(--bg-dark);
  border: 1px dashed var(--border-subtle);
  color: var(--text-ivory-dim);
}

.coverage-feedback-box.success {
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid #2e7d32;
  color: #a5d6a7;
}

.coverage-feedback-box.below_minimum {
  background: rgba(226, 176, 66, 0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
}

.coverage-feedback-box.out_of_coverage,
.coverage-feedback-box.error {
  background: rgba(220, 20, 21, 0.15);
  border: 1px solid var(--red-primary);
  color: #ff8a80;
}

.btn-inline-pickup {
  background: transparent;
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  align-self: flex-start;
}

/* Caja Aviso Recogida en Sucursal */
.pickup-store-box {
  background: var(--bg-dark);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.pickup-store-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-ivory);
}

.pickup-store-address {
  font-size: 14px;
  color: var(--text-ivory-dim);
  line-height: 1.4;
}

.pickup-fee-badge {
  display: inline-flex;
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid #2e7d32;
  color: #a5d6a7;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 4px;
}

/* Formas de Pago */
.payment-methods-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.payment-method-card {
  background: var(--bg-dark);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:has(input:checked) {
  border-color: var(--gold-accent);
  background: var(--bg-surface-elevated);
}

.payment-radio-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-radio-header input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-accent);
}

.payment-title-box {
  display: flex;
  flex-direction: column;
}

.payment-method-title {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-ivory);
}

.payment-method-subtitle {
  font-size: 12.5px;
  color: var(--text-ivory-muted);
}

.payment-expanded-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.bank-details-card {
  background: #0d0c0b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-row span {
  color: var(--text-ivory-muted);
}

.bank-row strong {
  color: var(--text-ivory);
  font-family: monospace;
}

.btn-copy-field {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--gold-accent);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: 8px;
}

.payment-transfer-notice {
  font-size: 12px;
  color: var(--gold-accent);
  margin-top: 8px;
  font-style: italic;
}

/* Pantalla de Revisión */
.review-card {
  background: var(--bg-dark);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-card-title {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-ivory-dim);
  text-transform: uppercase;
}

.btn-edit-step {
  background: transparent;
  border: none;
  color: var(--gold-accent);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.review-item-row {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(245, 234, 217, 0.06);
}

.review-item-row:last-child {
  border-bottom: none;
}

.review-item-col-qty {
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-accent);
  width: 28px;
}

.review-item-col-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-ivory);
}

.review-sub {
  font-size: 12px;
  color: var(--text-ivory-muted);
}

.review-item-col-price {
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-ivory);
}

.review-breakdown-box {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breakdown-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-ivory-dim);
}

.breakdown-line.total-line {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-ivory);
}

.breakdown-line.total-line strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-accent);
}

/* Footer Fijo del Checkout */
.checkout-sticky-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.checkout-footer-totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-ivory-dim);
}

.checkout-footer-total-amount {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-accent);
}

.btn-checkout-primary {
  width: 100%;
  min-height: 50px;
  background: var(--red-gradient);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s ease;
}

.btn-checkout-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-checkout-whatsapp {
  width: 100%;
  min-height: 52px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
}

.btn-checkout-whatsapp:hover {
  background: #20BA5A;
}

.whatsapp-auxiliary-text {
  font-size: 12px;
  color: var(--text-ivory-muted);
  text-align: center;
  line-height: 1.35;
}

.checkout-sent-notice-banner {
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid #2e7d32;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #a5d6a7;
  font-size: 13.5px;
  line-height: 1.4;
  margin-top: 14px;
}

/* Aviso de Cuenta Bancaria DEMO / Pendiente de Confirmación */
.bank-demo-notice-card {
  background: rgba(226, 176, 66, 0.08);
  border: 1px dashed var(--gold-accent);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-notice-badge {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--gold-accent);
  text-transform: uppercase;
}

.bank-notice-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-ivory);
  letter-spacing: 0.5px;
}

.bank-notice-desc {
  font-size: 12.5px;
  color: var(--text-ivory-dim);
  line-height: 1.4;
}

.bank-notice-instruction {
  font-size: 12px;
  color: var(--gold-accent);
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.35;
}

/* Banner de Modo DEMO en Revisión */
.checkout-demo-status-banner {
  background: rgba(226, 176, 66, 0.08);
  border: 1px solid rgba(226, 176, 66, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.demo-status-header {
  margin-bottom: 4px;
}

.demo-status-badge {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold-accent);
  text-transform: uppercase;
}

.demo-status-text {
  font-size: 12px;
  color: var(--text-ivory-dim);
  line-height: 1.35;
}

/* =========================================================================
   CALIBRACIÓN RESPONSIVA CHECKOUT (360px · 390px · 430px)
   ========================================================================= */
@media (max-width: 430px) {
  .checkout-modal-sheet {
    max-width: 100vw;
  }
}

@media (max-width: 390px) {
  .checkout-step-scroll-area {
    padding: 16px 14px calc(var(--checkout-footer-height, 190px) + env(safe-area-inset-bottom, 0px) + 20px);
    scroll-padding-bottom: calc(var(--checkout-footer-height, 190px) + env(safe-area-inset-bottom, 0px) + 20px);
  }
  .form-row-2col {
    gap: 8px;
  }
  .form-input {
    padding: 10px 11px;
    font-size: 14.5px;
    min-height: 44px;
  }
  .form-checkbox-inline {
    font-size: 11.5px;
  }
}

@media (max-width: 360px) {
  .checkout-step-scroll-area {
    padding: 14px 10px calc(var(--checkout-footer-height, 200px) + env(safe-area-inset-bottom, 0px) + 20px);
    scroll-padding-bottom: calc(var(--checkout-footer-height, 200px) + env(safe-area-inset-bottom, 0px) + 20px);
  }
  .checkout-section-headline {
    font-size: 22px;
  }
  .form-row-2col {
    gap: 6px;
  }
  .form-input {
    padding: 9px 8px;
    font-size: 13.5px;
    min-height: 42px;
  }
  .fulfillment-btn {
    font-size: 13px;
    padding: 9px 6px;
  }
  .step-pill {
    font-size: 11px;
    padding: 3px 5px;
  }
  .form-label {
    font-size: 11.5px;
  }
  .btn-checkout-primary,
  .btn-checkout-whatsapp {
    min-height: 48px;
    font-size: 17px;
  }
}

/* =========================================================================
   MERCADO PAGO CHECKOUT PRO & TEST SIMULATOR (Fase 2)
   ========================================================================= */

.badge-tag-mp {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-condensed);
  letter-spacing: 0.5px;
}

.btn-checkout-mp {
  background: linear-gradient(135deg, #009ee3 0%, #007eb5 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 158, 227, 0.35) !important;
}

.btn-checkout-mp:hover {
  filter: brightness(1.08);
}

.mp-status-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  animation: fadeInDown 0.3s ease-out;
}

.mp-status-card.approved {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.mp-status-card.rejected {
  background: rgba(220, 20, 21, 0.1);
  border: 1px solid rgba(220, 20, 21, 0.4);
}

.mp-status-card.pending {
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.mp-status-card.verifying {
  background: rgba(0, 158, 227, 0.1);
  border: 1px solid rgba(0, 158, 227, 0.4);
}

.mp-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mp-status-badge {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.approved .mp-status-badge {
  background: #25d366;
  color: #030304;
}

.rejected .mp-status-badge {
  background: #dc1415;
  color: #ffffff;
}

.pending .mp-status-badge {
  background: #f5a623;
  color: #030304;
}

.verifying .mp-status-badge {
  background: #009ee3;
  color: #ffffff;
}

.mp-status-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-ivory-bright);
}

.mp-status-desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-ivory-soft);
  margin-top: 4px;
}

.mp-status-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
}

.mp-status-details-grid span {
  color: var(--text-ivory-muted);
}

.mp-status-details-grid strong {
  color: var(--text-ivory-bright);
}

.mp-action-alert-box {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.35;
}

/* Modal simulador */
.mp-simulator-sheet {
  max-width: 440px;
  background: #141416;
  border: 1px solid rgba(0, 158, 227, 0.35);
  border-radius: var(--radius-lg);
}

.mp-sim-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
}

.mp-sim-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-choice-card:hover,
.mp-choice-card.active {
  background: rgba(0, 158, 227, 0.08);
  border-color: rgba(0, 158, 227, 0.4);
}

.mp-choice-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #009ee3;
}

.mp-choice-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-choice-title {
  font-size: 13px;
  font-weight: 700;
}

.mp-choice-desc {
  font-size: 11px;
  color: var(--text-ivory-muted);
  line-height: 1.3;
}

.btn-mp-pay {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #009ee3 0%, #007eb5 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 158, 227, 0.3);
}

.btn-mp-pay:hover {
  filter: brightness(1.1);
}



