/* ============================================================
   BraKel Cookies — Identidad de marca (self-hosted)
   Fuentes: Fredoka (cuerpo/UI) + Oleo Script (acento) desde brand/fonts.
   Paleta y tokens según Manual de Marca oficial:
     Café #954E3C · Rosa #E870A8 · Naranja galleta #F7BD78
   Incluye modo claro/oscuro (data-theme).
   ============================================================ */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Oleo Script";
  src: url("fonts/OleoScript-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------------- Tokens de color ---------------- */
:root,
[data-theme="light"] {
  /* Colores de marca (oficiales del manual) */
  --brand-brown: #954e3c;
  --brand-pink: #e870a8;
  --brand-orange: #f7bd78;
  --brand-cream: #fad7ac;
  --brand-cheek: #f096bf;

  /* Tokens de UI — modo claro */
  --bg: #faf5ef;
  --surface: #ffffff;
  --text: #3a2a1a;
  --muted: #6b5643;
  --primary: #954e3c;
  --accent: #e870a8;
  --link: #954e3c;
  --border: #ecd9c3;
}

[data-theme="dark"] {
  /* Modo oscuro — aprovecha la versión sobre fondo café del manual */
  --bg: #2c1810;
  --surface: #3a241a;
  --text: #fad7ac;
  --muted: #d9b892;
  --primary: #f7bd78;
  --accent: #f096bf;
  --link: #f7bd78;
  --border: #4a3226;
}

/* ---------------- Tipografía base ---------------- */
:root {
  --font-brand: "Fredoka", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Oleo Script", cursive;
}

/* ---------------- Toggle claro/oscuro ---------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--brand-pink);
}

/* ============================================================
   Modo oscuro — overrides sobre las clases reales de styles.css.
   Se mantiene styles.css intacto; aquí se re-mapean superficies y
   textos a la paleta café/crema del manual cuando data-theme=dark.
   ============================================================ */
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* Header y navegación */
[data-theme="dark"] .header {
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-menu a {
  color: var(--text);
}

[data-theme="dark"] .nav-menu a:hover {
  color: var(--brand-pink);
}

/* Secciones con fondo blanco -> superficie oscura */
[data-theme="dark"] .productos {
  background: var(--bg);
}

[data-theme="dark"] .producto-card {
  background: var(--surface);
}

[data-theme="dark"] .producto-card h3,
[data-theme="dark"] .category-title,
[data-theme="dark"] .productos h2,
[data-theme="dark"] .hero-subtitle {
  color: var(--text);
}

[data-theme="dark"] .producto-card p,
[data-theme="dark"] .category-desc {
  color: var(--muted);
}

[data-theme="dark"] .producto-image {
  background: #2a1a12;
}

/* Nosotros (naranja) — se conserva cálido pero legible */
[data-theme="dark"] .nosotros {
  background: #4a3226;
}

[data-theme="dark"] .nosotros-text h2,
[data-theme="dark"] .nosotros-text p,
[data-theme="dark"] .feature h3,
[data-theme="dark"] .feature h4 {
  color: var(--text);
}

/* (El footer rediseñado define su propio dark mode más abajo.) */

/* Menú móvil translúcido */
@media (max-width: 768px) {
  [data-theme="dark"] .nav-menu {
    background: rgba(44, 24, 16, 0.96);
  }
}

/* ============================================================
   Modo oscuro — panel admin (Bootstrap). Overrides mínimos para
   que el toggle tenga efecto sobre superficies claras del admin.
   ============================================================ */
[data-theme="dark"] .admin-container,
[data-theme="dark"] .table-container {
  background: var(--surface);
  color: var(--text);
}

[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .card,
[data-theme="dark"] .modal-content {
  background: var(--surface);
  color: var(--text);
}

[data-theme="dark"] .table {
  color: var(--text);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background: #2a1a12;
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   Header rediseñado — marca BraKel Cookies
   Sobrescribe el header plano de styles.css con la paleta oficial,
   iconos SVG y navegación limpia. Compatible con claro/oscuro.
   ============================================================ */
.header {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header.scrolled {
  box-shadow: 0 6px 24px rgba(149, 78, 60, 0.12);
}

.header .nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  gap: 1rem;
}

/* Logo */
.header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}

.header .logo-image {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(149, 78, 60, 0.18);
}

.header .logo-text {
  display: flex;
  flex-direction: column;
}

.header .logo-brand {
  font-family: var(--font-script), var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-brown);
  letter-spacing: 0.3px;
}

.header .logo-sub {
  font-family: var(--font-brand);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  /* Antes: --brand-pink (#e870a8) daba 2.87:1 sobre blanco. Marrón de marca = 6.12:1 (AA). */
  color: var(--brand-brown);
  margin-top: 1px;
}

/* Menú */
.header .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.35rem;
  margin: 0;
}

.header .nav-menu>li {
  display: flex;
  align-items: center;
}

.header .nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.header .nav-menu a .nav-ico {
  color: var(--brand-pink);
  transition: color 0.2s ease, transform 0.2s ease;
}

.header .nav-menu a:hover {
  color: var(--brand-brown);
  background: rgba(232, 112, 168, 0.1);
}

.header .nav-menu a:hover .nav-ico {
  color: var(--brand-brown);
  transform: translateY(-1px);
}

/* Botón admin (favicon) */
/* Hamburguesa animada */
.header .menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
}

.header .menu-bars {
  display: block;
  position: relative;
  width: 24px;
  height: 16px;
}

.header .menu-bars span {
  position: absolute;
  left: 0;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--brand-brown);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.header .menu-bars span:nth-child(1) {
  top: 0;
}

.header .menu-bars span:nth-child(2) {
  top: 7px;
}

.header .menu-bars span:nth-child(3) {
  top: 14px;
}

.header .menu-toggle.is-open .menu-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.header .menu-toggle.is-open .menu-bars span:nth-child(2) {
  opacity: 0;
}

.header .menu-toggle.is-open .menu-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* ---------------- Dark mode del header ---------------- */
[data-theme="dark"] .header {
  background: rgba(44, 24, 16, 0.85);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .header.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .header .logo-brand {
  color: var(--brand-orange);
}

[data-theme="dark"] .header .logo-sub {
  color: var(--brand-cheek);
}

[data-theme="dark"] .header .nav-menu a {
  color: var(--text);
}

[data-theme="dark"] .header .nav-menu a:hover {
  color: var(--brand-orange);
  background: rgba(247, 189, 120, 0.12);
}

[data-theme="dark"] .header .nav-menu a .nav-ico {
  color: var(--brand-cheek);
}

[data-theme="dark"] .header .nav-menu a:hover .nav-ico {
  color: var(--brand-orange);
}

[data-theme="dark"] .header .menu-bars span {
  background: var(--brand-orange);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .header .menu-toggle {
    display: block;
  }

  .header .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(149, 78, 60, 0.12);
  }

  .header .nav-menu.active {
    display: flex;
  }

  .header .nav-menu>li {
    width: 100%;
  }

  .header .nav-menu a {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .header .nav-divider {
    display: none;
  }

  [data-theme="dark"] .header .nav-menu {
    background: rgba(44, 24, 16, 0.98);
  }
}

/* ============================================================
   Hero rediseñado — según manual de marca (logo oficial + paleta)
   ============================================================ */
/* Hero v2: fondo crema cálido con un halo rosa de marca a la derecha que
   integra la foto de Emma (en vez de un recuadro flotante sobre durazno). */
.hero {
  background:
    radial-gradient(120% 120% at 100% 50%, rgba(232, 112, 168, 0.22) 0%, rgba(232, 112, 168, 0) 55%),
    linear-gradient(135deg, #fff6ef 0%, var(--brand-cream, #fad7ac) 100%);
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow: keyword de apoyo arriba del gancho (SEO + contexto). */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-pink, #e870a8);
  background: rgba(232, 112, 168, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero .hero-headline {
  font-family: var(--font-brand);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: none;
}

/* Gancho emocional: protagonista visual del hero. */
.hero .hero-headline .hero-headline-magic {
  display: block;
  font-family: var(--font-script), var(--font-brand);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--brand-brown, #954e3c);
  line-height: 1.05;
}

/* Keyword SEO: sub-línea de apoyo, más pequeña, sin competir con el gancho. */
.hero .hero-headline .hero-headline-kw {
  display: block;
  margin-top: 0.6rem;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: #6b4a2f;
  opacity: 0.9;
  line-height: 1.25;
}

[data-theme="dark"] .hero .hero-headline .hero-headline-magic {
  color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .hero .hero-headline .hero-headline-kw {
  color: var(--brand-cream, #fad7ac);
}

/* Eyebrow con más presencia sobre el café oscuro. */
[data-theme="dark"] .hero-eyebrow {
  color: #ffc4de;
  background: rgba(232, 112, 168, 0.22);
}

.hero .hero-subtitle {
  font-family: var(--font-brand);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  color: #6b4a2f;
  font-style: normal;
  font-weight: 500;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* CTA primario reforzado: más peso y presencia (acción de conversión). */
.hero .cta-button {
  background: var(--brand-brown, #954e3c);
  box-shadow: 0 10px 24px rgba(149, 78, 60, 0.35);
  font-size: 1.08rem;
  padding: 15px 34px;
}

.hero .cta-button:hover {
  background: #7d4032;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(149, 78, 60, 0.42);
}

/* Secundario más discreto, para no competir con el primario. */
.hero .cta-button.cta-secondary {
  background: transparent;
  color: var(--brand-brown, #954e3c);
  border: 2px solid rgba(149, 78, 60, 0.35);
  box-shadow: none;
  font-size: 1rem;
  padding: 13px 26px;
}

.hero .cta-button.cta-secondary:hover {
  background: rgba(149, 78, 60, 0.06);
  border-color: var(--brand-brown, #954e3c);
}

/* Foto de Emma a sangre (money shot) con proporción vertical de retrato y la
   etiqueta de inspiración. */
.hero-photo {
  position: relative;
  width: min(440px, 92%);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background-color: var(--brand-pink, #e870a8);
  background-size: cover;
  background-position: center top;
  box-shadow: 0 22px 48px rgba(149, 78, 60, 0.3);
  animation: float 3s ease-in-out infinite;
}

/* Etiqueta "Emma, nuestra inspiración": storytelling de marca. */
.hero-photo-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-brown, #954e3c);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(149, 78, 60, 0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .hero {
  /* Halo rosa más presente sobre el café oscuro: da vida detrás de la foto. */
  background:
    radial-gradient(120% 120% at 100% 45%, rgba(232, 112, 168, 0.30) 0%, rgba(232, 112, 168, 0) 52%),
    linear-gradient(135deg, #3a241a 0%, #4a3226 100%);
}

[data-theme="dark"] .hero .hero-headline {
  color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .hero .hero-subtitle {
  color: var(--brand-cream, #fad7ac);
}

/* En dark, un anillo rosa tenue separa la foto del fondo oscuro (la hace flotar). */
[data-theme="dark"] .hero-photo {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(232, 112, 168, 0.35);
}

/* Animación de entrada del hero (logo + texto) con aparición escalonada. */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes heroPop {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(10px);
  }

  60% {
    opacity: 1;
    transform: scale(1.04) translateY(0);
  }

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

@media (max-width: 768px) {
  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  /* El contenedor directo de la foto es .hero-image (hijo de .hero). El
     reordenamiento en móvil debe ir AQUÍ, no en .hero-photo (que no es hijo
     directo del flex .hero). Este era el bug: la foto no subía y su etiqueta
     absoluta caía sobre los botones. */
  .hero-image {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-photo {
    position: relative;
    margin: 0 auto 1.5rem;
    width: min(360px, 86%);
  }

  /* Etiqueta anclada abajo-centro de la foto en móvil. */
  .hero-photo-tag {
    top: auto;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .hero-eyebrow {
    align-self: center;
  }
}

/* Entrada animada (respeta reduce-motion). La foto "pop", el texto sube
   escalonado. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo {
    animation: float 3s ease-in-out infinite, heroPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-eyebrow {
    animation: heroRise 0.5s ease-out 0.05s both;
  }

  .hero .hero-headline {
    animation: heroRise 0.6s ease-out 0.15s both;
  }

  .hero .hero-subtitle {
    animation: heroRise 0.6s ease-out 0.28s both;
  }

  .hero-cta {
    animation: heroRise 0.6s ease-out 0.4s both;
  }
}

/* ============================================================
   Nosotros — íconos de pilares en badge de marca + Emmita
   ============================================================ */
.nosotros-emmita {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.feature .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  margin-top: 0;
  background: var(--brand-cream, #fad7ac);
  color: var(--brand-brown, #954e3c);
  font-size: 0;
  box-shadow: 0 4px 10px rgba(149, 78, 60, 0.15);
}

.feature {
  gap: 14px;
  align-items: center;
}

[data-theme="dark"] .feature .feature-icon {
  background: #4a3226;
  color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .nosotros-text h2,
[data-theme="dark"] .feature h3 {
  color: var(--brand-cream, #fad7ac);
}

/* ============================================================
   Cards de producto — efecto "antojo": zoom al corte con relleno
   Las fotos ya son de corte; el zoom lento acerca el relleno cremoso.
   ============================================================ */
.producto-image {
  position: relative;
}

.producto-image img {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}

.producto-card:hover .producto-image img {
  transform: scale(1.14) !important;
}

/* Velo cálido inferior que resalta el relleno al hacer hover */
.producto-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(149, 78, 60, 0.22), rgba(149, 78, 60, 0) 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.producto-card:hover .producto-image::after {
  opacity: 1;
}

/* Precio y tipo con acentos de marca */
.producto-card .precio {
  color: var(--brand-brown, #954e3c);
}

.producto-card .producto-type {
  display: inline-block;
  /* Antes: --brand-pink (#e870a8) con texto blanco daba 2.87:1. Rosa oscuro = 5.23:1 (AA). */
  background: #b83f77;
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  align-self: flex-start;
}

/* ============================================================
   Modal de pedido (Oportunidad) — barra de progreso estilo waitlist
   ============================================================ */
.om-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(58, 36, 22, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.om-modal {
  width: 100%;
  max-width: 560px;
  background: var(--surface, #fff);
  color: var(--text, #3a2a1a);
  border: 1px solid var(--border, #ecd9c3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(58, 36, 22, 0.35);
  animation: om-in 0.18s ease-out;
  font-family: var(--font-brand, "Fredoka", "Poppins", sans-serif);
}

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

  to {
    transform: none;
    opacity: 1;
  }
}

.om-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #ecd9c3);
}

.om-title {
  font-size: 15px;
  color: var(--text, #3a2a1a);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.om-title-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 6px rgba(149, 78, 60, 0.2);
}

.om-title-sep {
  color: var(--brand-brown, #954e3c);
  font-weight: 600;
}

[data-theme="dark"] .om-title-sep {
  color: var(--brand-orange, #f7bd78);
}

.om-title strong {
  color: var(--brand-brown, #954e3c);
}

.om-x {
  background: none;
  border: none;
  color: var(--muted, #6b5643);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.om-x:hover {
  color: var(--brand-brown, #954e3c);
}

.om-progress {
  position: relative;
  height: 6px;
  background: var(--border, #ecd9c3);
  overflow: visible;
}

.om-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--brand-orange, #f7bd78), var(--brand-pink, #e870a8));
  transition: width 0.4s cubic-bezier(0.4, 0.1, 0.2, 1);
}

/* Emmita como marcador de avance sobre la barra */
.om-progress-emmita {
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: left 0.4s cubic-bezier(0.4, 0.1, 0.2, 1);
  filter: drop-shadow(0 3px 6px rgba(58, 36, 22, 0.35));
  pointer-events: none;
  z-index: 2;
}

.om-steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted, #6b5643);
}

.om-steps span.on {
  color: var(--brand-brown, #954e3c);
  font-weight: 600;
}

.om-steps .om-pct {
  margin-left: auto;
  color: var(--muted, #6b5643);
}

.om-body {
  padding: 18px 20px 22px;
}

.om-h {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--brand-brown, #954e3c);
}

.om-p {
  font-size: 13.5px;
  color: var(--muted, #6b5643);
  margin: 0 0 14px;
  line-height: 1.55;
}

.om-policy {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border, #ecd9c3);
  border-radius: 12px;
  padding: 14px;
  background: var(--brand-cream, #fad7ac);
  font-size: 12.5px;
  color: #5d4530;
  line-height: 1.6;
  /* Afordancia de scroll: sombra interior inferior que insinúa que hay más
     contenido por desplazar. Desaparece visualmente al llegar al final. */
  position: relative;
  scroll-behavior: smooth;
  box-shadow: inset 0 -18px 16px -16px rgba(149, 78, 60, 0.45);
}

.om-policy strong {
  color: var(--brand-brown, #954e3c);
  display: block;
  margin-bottom: 8px;
}

.om-policy p {
  margin: 0 0 10px;
}

.om-scrollhint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-brown, #954e3c);
  margin: 0 0 10px;
  text-align: center;
}

/* Flecha animada que rebota para dejar claro que hay que desplazarse. */
.om-scrollhint::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Chevron hacia abajo (SVG inline, color marrón de marca). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23954e3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  animation: omBounce 1.2s ease-in-out infinite;
}

@keyframes omBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .om-scrollhint::after {
    animation: none;
  }
}

.om-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text, #3a2a1a);
  cursor: pointer;
}

.om-check.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.om-check input {
  margin-top: 3px;
  accent-color: var(--brand-brown, #954e3c);
}

.om-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.om-actions-split {
  justify-content: space-between;
}

.om-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.15s ease;
}

.om-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.om-btn-primary {
  background: var(--brand-brown, #954e3c);
  color: #fff;
  box-shadow: 0 6px 16px rgba(149, 78, 60, 0.28);
}

.om-btn-primary:not(:disabled):hover {
  background: #7d4032;
  transform: translateY(-1px);
}

.om-btn-ghost {
  background: #fff;
  color: var(--brand-brown, #954e3c);
  border: 2px solid var(--brand-brown, #954e3c);
}

.om-btn-ghost:hover {
  background: var(--brand-cream, #fad7ac);
}

.om-full {
  width: 100%;
}

.om-field {
  display: block;
  margin-bottom: 12px;
}

.om-label {
  display: block;
  font-size: 12px;
  color: var(--muted, #6b5643);
  margin-bottom: 5px;
}

.om-field input,
.om-select,
.om-qty {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #ecd9c3);
  background: #fff;
  color: var(--text, #3a2a1a);
  font-size: 14px;
  font-family: inherit;
}

.om-field input:focus,
.om-select:focus,
.om-qty:focus,
.om-code:focus {
  outline: none;
  border-color: var(--brand-pink, #e870a8);
}

.om-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.om-grid3 {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 1.3fr;
  gap: 12px;
}

.om-hours {
  font-size: 12px;
  color: var(--muted, #6b5643);
  margin: 2px 0 0;
}

.om-orderrow {
  display: flex;
  gap: 8px;
  align-items: center;
}

.om-orderrow .om-select {
  flex: 1 1 auto;
}

.om-orderrow .om-qty {
  width: 72px;
  flex: 0 0 auto;
}

.om-cart {
  margin-top: 14px;
}

.om-empty {
  color: var(--muted, #6b5643);
  font-size: 13px;
  text-align: center;
  padding: 10px 0;
}

.om-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border, #ecd9c3);
}

.om-cart-name {
  font-size: 14px;
  color: var(--text, #3a2a1a);
  flex: 1 1 auto;
}

.om-cart-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-step {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border, #ecd9c3);
  background: #fff;
  color: var(--brand-brown, #954e3c);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.om-step:hover {
  background: var(--brand-cream, #fad7ac);
}

.om-cart-qty {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.om-cart-sub {
  min-width: 78px;
  text-align: right;
  font-size: 13px;
  color: var(--brand-brown, #954e3c);
  font-weight: 600;
}

.om-del {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.om-total {
  text-align: right;
  font-weight: 700;
  color: var(--brand-brown, #954e3c);
  margin-top: 10px;
  font-size: 1.05rem;
}

/* Desglose de total con cupón (subtotal / descuento / total). */
.om-total-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--brand-brown, #954e3c);
  font-size: 0.98rem;
  padding: 2px 0;
}

.om-total-disc {
  color: #2e7d32;
  /* verde: ahorro */
}

.om-total-grand {
  font-weight: 800;
  font-size: 1.12rem;
  border-top: 1px dashed rgba(149, 78, 60, 0.3);
  margin-top: 4px;
  padding-top: 6px;
}

/* Campo de cupón (paso 3). */
.om-coupon {
  margin-top: 12px;
}

.om-coupon-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.om-coupon-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid rgba(149, 78, 60, 0.3);
  border-radius: 10px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.om-coupon-input:focus {
  outline: none;
  border-color: var(--brand-brown, #954e3c);
}

.om-coupon-row .om-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.om-coupon-msg {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.om-coupon-ok {
  color: #2e7d32;
  font-weight: 600;
}

.om-coupon-error {
  color: #c0392b;
  font-weight: 600;
}

.om-coupon-info {
  color: var(--brand-brown, #954e3c);
}

.om-coupon-addmore {
  margin-top: 8px;
}

.om-captcha {
  display: flex;
  justify-content: center;
  min-height: 66px;
  margin: 4px 0 14px;
}

.om-fieldset-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.om-fieldset-fields:disabled {
  opacity: 0.5;
}

.om-otp-status {
  text-align: center;
  color: var(--muted, #6b5643);
  font-size: 14px;
  padding: 10px 0 4px;
}

.om-code {
  width: 100%;
  text-align: center;
  letter-spacing: 10px;
  font-size: 26px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border, #ecd9c3);
  background: #fff;
  color: var(--text, #3a2a1a);
  font-family: ui-monospace, monospace;
}

.om-resend {
  text-align: center;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted, #6b5643);
}

.om-link {
  background: none;
  border: none;
  color: var(--brand-pink, #e870a8);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  font-family: inherit;
}

.om-done {
  text-align: center;
  padding: 10px 0;
}

.om-done .om-actions {
  justify-content: center;
}

.om-done-icon {
  font-size: 46px;
  margin-bottom: 8px;
}

/* Dark mode del modal */
[data-theme="dark"] .om-modal {
  background: var(--surface, #3a241a);
  color: var(--text, #fad7ac);
}

[data-theme="dark"] .om-title strong,
[data-theme="dark"] .om-h,
[data-theme="dark"] .om-steps span.on {
  color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .om-field input,
[data-theme="dark"] .om-select,
[data-theme="dark"] .om-qty,
[data-theme="dark"] .om-code {
  background: #2a1a12;
  color: var(--text, #fad7ac);
  border-color: var(--border, #4a3226);
}

[data-theme="dark"] .om-policy {
  background: #4a3226;
  color: var(--brand-cream, #fad7ac);
}

[data-theme="dark"] .om-btn-ghost {
  background: transparent;
  color: var(--brand-orange, #f7bd78);
  border-color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .om-step {
  background: #2a1a12;
  color: var(--brand-orange, #f7bd78);
}

@media (max-width: 520px) {

  .om-grid2,
  .om-grid3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Sección "¡Haz tu pedido!" — tarjeta crema sobre fondo café
   (corrige el texto oscuro sobre fondo oscuro y le da vida)
   ============================================================ */
.contacto h2 {
  margin-bottom: 0;
}

.order-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-cream, #fad7ac) 140%);
  border-radius: 26px;
  padding: 3rem 1.75rem 2rem;
  box-shadow: 0 22px 50px rgba(58, 36, 22, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.order-emmita {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(58, 36, 22, 0.25));
}

.order-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem) !important;
  font-weight: 700;
  color: var(--brand-brown, #954e3c);
  margin: 0.25rem 0 0.5rem !important;
}

.order-lead {
  color: #6b4a2f;
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 30rem;
  margin: 0 auto 1.4rem;
}

.order-steps {
  list-style: none;
  margin: 0 auto 1.6rem;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
}

.order-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5d4530;
  font-weight: 500;
  font-size: 0.98rem;
}

.order-step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  background: var(--brand-cream, #fad7ac);
  color: var(--brand-brown, #954e3c);
}

.order-btn {
  background: linear-gradient(135deg, var(--brand-pink, #e870a8), var(--brand-brown, #954e3c)) !important;
  color: #fff !important;
  font-size: 1.15rem !important;
  padding: 15px 34px !important;
  box-shadow: 0 10px 24px rgba(232, 112, 168, 0.35) !important;
}

.order-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(232, 112, 168, 0.45) !important;
}

.order-hours {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-brown, #954e3c);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-hours-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.18);
  display: inline-block;
}

[data-theme="dark"] .order-card {
  background: linear-gradient(180deg, #4a3226 0%, #3a241a 140%);
  border-color: rgba(247, 189, 120, 0.25);
}

[data-theme="dark"] .order-title {
  color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .order-lead {
  color: var(--brand-cream, #fad7ac);
}

[data-theme="dark"] .order-steps li {
  color: var(--brand-cream, #fad7ac);
}

[data-theme="dark"] .order-step-ico {
  background: #2a1a12;
  color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .order-hours {
  color: var(--brand-orange, #f7bd78);
}

/* ============================================================
   Tarjeta Mayoristas / Proveedor — refinamiento UI/UX de marca
   ============================================================ */
.proveedor-card {
  background: linear-gradient(135deg, var(--brand-brown, #954e3c) 0%, #7a3e2f 100%) !important;
  border-radius: 24px !important;
  padding: 2.25rem !important;
  gap: 2.25rem !important;
  box-shadow: 0 18px 44px rgba(149, 78, 60, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: float-card 4s ease-in-out infinite !important;
}

/* Suaviza el "shine": más lento y sutil (evita distraer). */
.proveedor-card::before {
  animation: shine 5s ease-in-out infinite !important;
}

.proveedor-badge {
  background: var(--brand-cream, #fad7ac) !important;
  color: var(--brand-brown, #954e3c) !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.3px;
  animation: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.proveedor-discount {
  font-size: 2.6rem !important;
  font-weight: 800 !important;
  line-height: 1.05;
  color: #fff !important;
  text-shadow: none !important;
  animation: none !important;
  margin: 0.75rem 0 0.5rem !important;
}

.proveedor-discount strong {
  color: var(--brand-orange, #f7bd78);
  font-weight: 900;
}

.proveedor-card h3 {
  font-size: 1.35rem !important;
  color: #fff;
  margin: 0 !important;
}

.proveedor-center p {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
  margin-bottom: 1rem !important;
  line-height: 1.5;
}

.proveedor-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.proveedor-pills li {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 500;
}

.proveedor-whatsapp {
  background: #25d366 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 13px 26px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease !important;
}

.proveedor-whatsapp:hover {
  background: #1eb457 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45) !important;
}

.proveedor-whatsapp svg {
  background: transparent !important;
}

.proveedor-cta-note {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Dark mode: aún más cálido/profundo, mismos acentos */
[data-theme="dark"] .proveedor-card {
  background: linear-gradient(135deg, #6f3a2d 0%, #4a3226 100%) !important;
  border-color: rgba(247, 189, 120, 0.2);
}

@media (max-width: 768px) {
  .proveedor-pills {
    justify-content: center;
  }

  .proveedor-cta-note {
    text-align: center;
  }

  /* Logos más grandes y legibles en mobile (feedback de mercadeo). */
  .header .logo-image {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .header .logo-brand {
    font-size: 1.7rem;
  }

  .header .logo-sub {
    font-size: 0.74rem;
  }

  .footer-sello {
    width: 96px;
    height: 96px;
  }
}

/* ============================================================
   Footer rediseñado — marca BraKel (fondo café, coherente con header)
   ============================================================ */
.footer {
  background: var(--brand-brown, #954e3c) !important;
  color: #fff !important;
  padding: 0 !important;
  margin-top: 0;
}

.footer-top {
  /* Borde superior tipo "mordida" de galleta con degradado de marca */
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--brand-orange, #f7bd78), var(--brand-pink, #e870a8)) 1;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-sello {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
  font-family: var(--font-script, "Oleo Script"), var(--font-brand);
  font-size: 1.2rem;
  /* Antes: --brand-cream (#fad7ac) daba 4.48:1 sobre marrón. Crema más clara = 4.92:1 (AA). */
  color: #fbe3c4;
  margin: 0 0 0.35rem;
}

.footer-mini {
  font-size: 0.85rem;
  /* Antes: rgba(255,255,255,0.7) daba 3.90:1. 0.9 de opacidad = 5.29:1 (AA). */
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.footer-h {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  /* Antes: --brand-orange (#f7bd78) daba 3.64:1 sobre marrón. Naranja claro = 4.83:1 (AA). */
  color: #ffe0b3;
  margin: 0 0 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-list li svg {
  color: var(--brand-cheek, #f096bf);
  min-width: 18px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--brand-orange, #f7bd78);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.18);
  padding: 1rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a {
  color: var(--brand-orange, #f7bd78);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-heart {
  color: #ff6b9d;
}

/* Acceso discreto al admin: isotipo en línea, al final del texto del footer
   (después de "xaietic.com"), separadito. Opacidad muy baja (parece decorativo);
   se resalta solo al pasar el cursor. Sin brillo ni animaciones; cursor normal
   salvo justo encima (hover). */
.footer-admin-dot {
  display: inline-flex;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  margin-left: 18px;
  opacity: 0.12;
  cursor: default;
  transition: opacity 0.2s ease;
}

.footer-admin-dot img {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
}

.footer-admin-dot:hover {
  opacity: 0.9;
  cursor: pointer;
}

/* Dark mode: el footer ya es café; sólo afinamos el degradado del borde */
[data-theme="dark"] .footer {
  background: #3a241a !important;
  color: #fff !important;
}

[data-theme="dark"] .footer a {
  color: var(--brand-orange, #f7bd78) !important;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-list li {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============================================================
   Paso de pago Bre-B (QR Nequi) — modal de pedido
   ============================================================ */
.om-pay-qr {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
}

.om-pay-qr-img {
  width: 220px;
  height: auto;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(60, 40, 20, 0.12);
}

/* Llave Bre-B copiable (debajo del QR) */
.om-pay-key {
  text-align: center;
  margin: 2px 0 10px;
}

.om-pay-key-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-brown, #954e3c);
  margin-bottom: 6px;
}

.om-pay-key-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-cream, #fad7ac);
  border: 1px dashed var(--brand-brown, #954e3c);
  border-radius: 10px;
  padding: 8px 10px 8px 14px;
}

.om-pay-key-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand-brown, #954e3c);
}

.om-pay-key-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: var(--brand-brown, #954e3c);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.om-pay-key-copy:hover {
  background: #7d4032;
  transform: translateY(-1px);
}

.om-pay-key-copy.copied {
  background: #1e9e4a;
}

[data-theme="dark"] .om-pay-key-label {
  color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .om-pay-key-row {
  background: rgba(247, 189, 120, 0.12);
  border-color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .om-pay-key-value {
  color: var(--brand-cream, #fad7ac);
}

[data-theme="dark"] .om-pay-key-copy {
  background: var(--brand-orange, #f7bd78);
  color: #3a2a1a;
}

.om-pay-total {
  text-align: center;
  font-size: 1rem;
  margin: 6px 0 10px;
  color: var(--brand-orange, #954e3c);
}

.om-pay-total strong {
  font-size: 1.15rem;
}

.om-pay-hint {
  margin-top: 4px;
}

.om-pay-created {
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 3px solid #28a745;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.om-pay-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

[data-theme="dark"] .om-pay-qr-img {
  background: #fff;
}

/* ============================================================
   Carrito de compras — FAB flotante + drawer + toast
   ============================================================ */
/* Layout del nav con carrito: logo | menú + acciones a la derecha.
   .nav usa space-between (styles.css); empujamos el menú a la derecha para que
   quede junto a las acciones. */
.header .nav-menu {
  margin-left: auto;
}

.header .nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Slot del toggle de tema dentro de las acciones (a la izquierda del carrito). */
.header .nav-actions .nav-theme {
  display: inline-flex;
  align-items: center;
}

/* En desktop el hamburguesa no se muestra; el carrito queda a la derecha del menú. */
@media (min-width: 861px) {
  .header .nav-actions .menu-toggle {
    display: none;
  }
}

/* Ícono de carrito en el header (botón #headerCartBtn del nav). */

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--brand-brown, #954e3c);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-cart:hover {
  background: rgba(149, 78, 60, 0.08);
}

.nav-cart:focus-visible {
  outline: 2px solid var(--brand-brown, #954e3c);
  outline-offset: 2px;
}

.nav-cart.bump {
  animation: cartBump 0.4s ease;
}

@keyframes cartBump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.22);
  }

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

.nav-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-pink, #e870a8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  border: 2px solid #fff;
}

[data-theme="dark"] .nav-cart {
  color: var(--brand-orange, #f7bd78);
}

[data-theme="dark"] .nav-cart:hover {
  background: rgba(247, 189, 120, 0.12);
}

/* Overlay oscuro tras el drawer */
#brakel-cart .cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 18, 10, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1002;
}

#brakel-cart .cart-overlay.on {
  opacity: 1;
}

/* Drawer lateral derecho */
#brakel-cart .cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 90vw);
  background: var(--surface, #fff);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 1003;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#brakel-cart .cart-drawer.on {
  transform: translateX(0);
}

#brakel-cart .cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #ecd9c3);
}

#brakel-cart .cart-drawer-head h3 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  color: var(--brand-brown, #954e3c);
}

#brakel-cart .cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text, #3a2a1a);
  cursor: pointer;
  padding: 0 4px;
}

#brakel-cart .cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 20px;
}

#brakel-cart .cart-empty {
  text-align: center;
  color: var(--muted, #8a7a6a);
  font-size: 0.95rem;
  margin-top: 2rem;
  line-height: 1.6;
}

#brakel-cart .cart-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #f0e4d6);
}

#brakel-cart .cart-item-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

#brakel-cart .cart-item-name {
  font-weight: 600;
  color: var(--text, #3a2a1a);
  font-size: 0.95rem;
}

#brakel-cart .cart-item-price {
  color: var(--muted, #8a7a6a);
  font-size: 0.82rem;
  white-space: nowrap;
}

#brakel-cart .cart-item-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

#brakel-cart .cart-step {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border, #e0cdb6);
  background: var(--brand-cream, #fad7ac);
  color: var(--brand-brown, #954e3c);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

#brakel-cart .cart-item-qty {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--text, #3a2a1a);
}

#brakel-cart .cart-item-sub {
  margin-left: auto;
  font-weight: 700;
  color: var(--brand-brown, #954e3c);
  font-size: 0.92rem;
}

#brakel-cart .cart-del {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted, #b08f72);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

#brakel-cart .cart-del:hover {
  color: #c0392b;
}

#brakel-cart .cart-foot {
  border-top: 1px solid var(--border, #ecd9c3);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface, #fff);
}

#brakel-cart .cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--text, #3a2a1a);
}

#brakel-cart .cart-total-row strong {
  font-size: 1.3rem;
  color: var(--brand-brown, #954e3c);
}

#brakel-cart .cart-checkout {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--brand-brown, #954e3c);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

#brakel-cart .cart-checkout:hover:not(:disabled) {
  background: #7d4032;
  transform: translateY(-1px);
}

#brakel-cart .cart-checkout:disabled {
  background: #d8c7b5;
  cursor: not-allowed;
}

#brakel-cart .cart-clear {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: none;
  background: none;
  color: var(--muted, #8a7a6a);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Toast de "agregado" */
#brakel-cart .cart-toast {
  position: fixed;
  bottom: 90px;
  right: 20px;
  max-width: 260px;
  background: var(--brand-brown, #954e3c);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1004;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#brakel-cart .cart-toast.on {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode */
[data-theme="dark"] #brakel-cart .cart-drawer {
  background: #2a1a12;
}

[data-theme="dark"] #brakel-cart .cart-foot {
  background: #2a1a12;
}

[data-theme="dark"] #brakel-cart .cart-drawer-head h3,
[data-theme="dark"] #brakel-cart .cart-item-name,
[data-theme="dark"] #brakel-cart .cart-item-qty,
[data-theme="dark"] #brakel-cart .cart-total-row {
  color: var(--brand-cream, #fad7ac);
}

[data-theme="dark"] #brakel-cart .cart-close {
  color: var(--brand-cream, #fad7ac);
}

@media (prefers-reduced-motion: reduce) {
  .nav-cart.bump {
    animation: none;
  }

  #brakel-cart .cart-drawer,
  #brakel-cart .cart-overlay,
  #brakel-cart .cart-toast {
    transition: none;
  }
}

/* En pantallas muy pequeñas, el toast va centrado abajo para no tapar el FAB */
@media (max-width: 480px) {
  #brakel-cart .cart-toast {
    left: 16px;
    right: 16px;
    max-width: none;
    text-align: center;
  }
}

/* ============================================================
   Halloween campaign — modal de cupón (BrakelCampaignModal)
   Overrides temáticos sobre el shell .om-* del modal de pedido.
   Se activan con las clases hw-* que añade components/campaign-modal.js.
   El modal reutiliza toda la maquinaria .om-* (overlay, head, progress,
   steps, body, botones); aquí solo tematizamos el acento Halloween y la
   pantalla final del cupón entregado.
   ============================================================ */

/* Acento naranja Halloween en la barra de progreso del modal de campaña. */
.hw-modal .om-progress-bar {
  background: linear-gradient(90deg, #ff7518, #ff9d4d);
}

.hw-modal .om-title-sep {
  color: #c0552b;
}

[data-theme="dark"] .hw-modal .om-title-sep {
  color: #ff9d4d;
}

/* ── Pantalla final: cupón entregado ─────────────────────────── */
.hw-done {
  padding: 6px 0 2px;
}

/* Código del cupón, protagonista. Monoespaciado para legibilidad. */
.hw-coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.6rem, 7vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: #c0552b;
  background: linear-gradient(135deg, #fff3e6 0%, #ffe2c2 100%);
  border: 2px dashed #ff7518;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px auto 12px;
  display: inline-block;
  word-break: break-all;
}

[data-theme="dark"] .hw-coupon-code {
  color: #ff9d4d;
  background: rgba(255, 117, 24, 0.12);
  border-color: #ff9d4d;
}

.hw-coupon-terms-line {
  font-weight: 600;
  color: var(--brand-brown, #954e3c);
  margin: 0 0 6px;
}

[data-theme="dark"] .hw-coupon-terms-line {
  color: var(--brand-orange, #f7bd78);
}

.hw-coupon-note {
  margin: 0 0 14px;
}

/* Nota cuando el cliente ya había participado. */
.hw-already {
  color: #c0552b;
  font-weight: 600;
  margin: 0 0 8px;
}

[data-theme="dark"] .hw-already {
  color: #ff9d4d;
}

/* Botonera de la pantalla final: copiar + pedir ahora. */
.hw-done-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.hw-done-actions .om-btn {
  text-decoration: none;
}

.hw-done-actions .om-btn.copied {
  background: #1e9e4a;
  color: #fff;
  border-color: #1e9e4a;
}

/* Letra pequeña de términos del cupón. */
.hw-terms-fine {
  font-size: 11.5px;
  color: var(--muted, #6b5643);
  margin: 14px 0 0;
  line-height: 1.5;
}

/* ── Popup promocional de campaña en la home (campaign-promo.js) ─────────── */
.cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 10, 30, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cp-overlay.cp-open {
  opacity: 1;
}

.cp-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  text-align: center;
  color: #fdf3e3;
  background:
    radial-gradient(600px 220px at 50% -20%, rgba(255, 117, 24, 0.35), transparent 60%),
    linear-gradient(165deg, #1b1030 0%, #2a1646 50%, #3a1d2a 100%);
  border: 1px solid rgba(255, 160, 103, 0.3);
  border-radius: 20px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

.cp-overlay.cp-open .cp-card {
  transform: translateY(0) scale(1);
}

.cp-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #e3b7df;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.cp-close:hover {
  color: #fff;
}

.cp-emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.cp-badge {
  display: inline-block;
  margin: 0.5rem 0 0.6rem;
  background: #ff7518;
  color: #1b1030;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(255, 117, 24, 0.45);
}

.cp-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff6ea;
}

.cp-text {
  font-size: 0.98rem;
  line-height: 1.45;
  color: #e9d6f3;
  margin: 0 0 1.1rem;
}

.cp-text strong {
  color: #ffb067;
}

.cp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: linear-gradient(135deg, #ff7518, #ff9d4d);
  color: #1b1030;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 117, 24, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 117, 24, 0.55);
}

.cp-cta:focus-visible {
  outline: 3px solid #fff6ea;
  outline-offset: 3px;
}

.cp-later {
  display: block;
  width: 100%;
  margin: 0.6rem 0 0;
  background: none;
  border: none;
  color: #cdb6e0;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.cp-later:hover {
  color: #fff;
}

.cp-fine {
  font-size: 10.5px;
  color: #a98fc4;
  margin: 0.9rem 0 0;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {

  .cp-overlay,
  .cp-card,
  .cp-cta {
    transition: none;
  }
}

/* ── Botón flotante persistente de campaña (esquina inferior izquierda) ──── */
/* WhatsApp flota a la derecha (right:20px, top:50%); este va abajo-izquierda
   para no encimarse. */
.cp-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff7518, #b23cff);
  color: #fff;
  font-family: var(--font-brand, "Fredoka", system-ui, sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(178, 60, 255, 0.4);
  animation: cp-float-pulse 2.4s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(178, 60, 255, 0.55);
}

.cp-float:focus-visible {
  outline: 3px solid #fff6ea;
  outline-offset: 3px;
}

.cp-float-emoji {
  font-size: 1.2rem;
  line-height: 1;
}

@keyframes cp-float-pulse {

  0%,
  100% {
    box-shadow: 0 8px 22px rgba(178, 60, 255, 0.4);
  }

  50% {
    box-shadow: 0 8px 22px rgba(178, 60, 255, 0.4), 0 0 0 8px rgba(255, 117, 24, 0.12);
  }
}

/* En móvil, botón más compacto para no tapar contenido. */
@media (max-width: 480px) {
  .cp-float {
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
    left: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-float {
    animation: none;
  }
}