/* ==========================================================================
   SISTEMA DE DISEÑO "CHISPA NOCTURNA" — PLANTILLA MADRE PIROTECNIA
   --------------------------------------------------------------------------
   Para adaptar la identidad visual a un nuevo cliente en menos de 2 minutos,
   edita únicamente las variables de :root (5 a 10 valores) o des-comenta
   alguno de los presets alternativos incluidos más abajo.
   ========================================================================== */

:root {
  /* --- PRESET ACTIVO: CHISPA NOCTURNA (Grafito + Naranja Chispa + Dorado) --- */
  --bg-base: #0E0B1A;
  --bg-surface: #17132B;
  --bg-surface-hover: #211B3D;
  --border-subtle: rgba(255, 255, 255, 0.10);
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --color-accent: #F97316;         /* Naranja chispa: CTAs y foco principal */
  --color-accent-hover: #FB923C;   /* Hover de botones principales */
  --color-gold: #FACC15;           /* Dorado destello: precios y badges técnicos */
  --font-title: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-card: 16px;
  --radius-pill: 999px;

  /* Medidas internas de layout */
  --header-h: 68px;
  --container-max: 1200px;
  --shadow-glow: 0 0 28px rgba(249, 115, 22, 0.16);
}

/* --------------------------------------------------------------------------
   PRESET ALTERNATIVO 1: "FERIA TRADICIONAL" (Azul Noche + Magenta / Dorado)
   Des-comenta este bloque y reemplaza las variables homónimas en :root
   --------------------------------------------------------------------------
   --bg-base: #070B19;
   --bg-surface: #0F172A;
   --bg-surface-hover: #17213B;
   --border-subtle: rgba(148, 163, 184, 0.16);
   --color-accent: #EC4899;
   --color-accent-hover: #F472B6;
   --color-gold: #FBBF24;
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   PRESET ALTERNATIVO 2: "BODEGA MAYORISTA" (Carbón + Rojo Pólvora)
   Des-comenta este bloque y reemplaza las variables homónimas en :root
   --------------------------------------------------------------------------
   --bg-base: #0C0A09;
   --bg-surface: #181413;
   --bg-surface-hover: #241E1C;
   --border-subtle: rgba(255, 255, 255, 0.11);
   --color-accent: #EF4444;
   --color-accent-hover: #F87171;
   --color-gold: #FDE047;
   -------------------------------------------------------------------------- */

/* ==========================================================================
   RESET BASE Y ACCESIBILIDAD
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* Mantiene position: sticky operativo sin desbordes */
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--bg-base);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 16px;
}

.muted {
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section {
  padding-block: 56px;
  scroll-margin-top: calc(var(--header-h) + 64px);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 8px 0 0;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* ==========================================================================
   BOTONES Y COMPONENTES REUTILIZABLES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 140ms ease, color 180ms ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--bg-base);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-accent-hover);
}

.btn-whatsapp {
  background-color: #16A34A;
  color: #FFFFFF;
}

.btn-whatsapp:hover:not(:disabled) {
  background-color: #15803D;
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.84rem;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-full {
  width: 100%;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--bg-surface-hover);
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.text-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

/* ==========================================================================
   1. HEADER STICKY
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--color-accent);
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.header-nav a:hover {
  color: var(--text-primary);
}

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

.header-search-wrap {
  position: relative;
  display: none;
}

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

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

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

.search-input:focus {
  border-color: var(--color-accent);
  background: var(--bg-surface-hover);
  outline: none;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--color-accent);
  color: var(--bg-base);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 160ms ease;
}

.cart-trigger:hover {
  background: var(--color-accent-hover);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-base);
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-badge.is-popping {
  animation: badge-pop 320ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

@keyframes badge-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.32); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   2. HERO COMPACTO (CHISPA EN PURO CSS)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 42px 38px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 460px;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 48%, rgba(249, 115, 22, 0.22), transparent 52%),
    radial-gradient(circle at 76% 32%, rgba(250, 204, 21, 0.13), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.42);
  color: var(--color-accent-hover);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-rating {
  font-size: 0.88rem;
  color: var(--color-gold);
}

.hero-rating strong {
  color: var(--text-primary);
}

.hero-title {
  margin: 0;
  max-width: 19ch;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ==========================================================================
   3. BARRA DE FILTROS STICKY + REGLA DE SCROLLBARS
   ========================================================================== */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 10px;
}

.filter-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;

  /* Regla de scrollbars en escritorio: línea delgada oscura/ámbar sin flechas */
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.5) var(--bg-surface);
}

.category-pills::-webkit-scrollbar {
  height: 4px;
}

.category-pills::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
}

.category-pills::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  border-radius: var(--radius-pill);
}

.category-pills::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 768px) {
  /* Regla de scrollbars en móvil: ocultar visualmente manteniendo deslizamiento táctil */
  .category-pills {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0;
  }

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

.filter-pill {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.filter-pill:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.filter-pill.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--bg-base);
  font-weight: 700;
}

.filter-search-wrap {
  position: relative;
  width: 100%;
}

/* ==========================================================================
   4. GRID DE PRODUCTOS
   ========================================================================== */
.catalog-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #101014;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 11, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--color-gold);
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tech-badge--review {
  background: rgba(153, 27, 27, 0.92);
  border-color: rgba(252, 165, 165, 0.55);
  color: #FEF2F2;
}

.photo-switch-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: rgba(14, 11, 26, 0.88);
  color: var(--color-gold);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.92);
  color: #FAFAFA;
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 700;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 16px;
}

.product-cat {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.product-title {
  margin: 2px 0 0;
  font-family: var(--font-title);
  font-size: 1.08rem;
  line-height: 1.25;
}

.presentation-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.toggle-btn {
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.toggle-btn.is-selected {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.toggle-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-qty-control {
  flex-shrink: 0;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-amount {
  font-family: var(--font-title);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
}

.price-unit {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.add-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--color-accent);
  color: var(--bg-base);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 120ms ease;
}

.add-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.add-btn.is-added {
  background: var(--color-gold);
  color: var(--bg-base);
}

.add-btn:disabled {
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-card);
}

/* ==========================================================================
   5. PAQUETES ARMADOS (COMBOS DE 1 CLIC)
   ========================================================================== */
.combos-section {
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.35), transparent);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.combos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.combo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

/* Borde degradado animado en puro CSS para combo featured: true */
.combo-card--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(120deg, var(--color-accent), var(--color-gold), var(--color-accent)) border-box;
  border: 2px solid transparent;
  background-size: 100% 100%, 220% 220%;
  animation: combo-border-shift 4.5s linear infinite;
  box-shadow: var(--shadow-glow);
}

@keyframes combo-border-shift {
  0% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0% 50%; }
}

.combo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.combo-badge {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.42);
  color: var(--color-gold);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
}

.combo-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.3rem;
}

.combo-subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.combo-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.combo-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.combo-items li::before {
  content: '✦';
  color: var(--color-accent);
  font-size: 0.85rem;
  line-height: 1.5;
}

.combo-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.combo-price {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* ==========================================================================
   6. CASTILLOS Y EVENTOS (.optional)
   ========================================================================== */
.events-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.events-media {
  margin-top: 18px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.services-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.service-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.service-item strong {
  display: block;
  font-family: var(--font-title);
}

.service-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.events-form-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.card-heading {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 1.25rem;
}

.quote-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.86rem;
  font-weight: 600;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  color: var(--text-primary);
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--color-accent);
  outline: none;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
  font-size: 0.88rem;
}

.quote-result {
  padding: 12px;
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.35);
  display: grid;
  gap: 10px;
}

.quote-result p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-gold);
  font-weight: 600;
}

/* ==========================================================================
   7. SEGURIDAD Y UBICACIÓN
   ========================================================================== */
.safety-banner {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.safety-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.safety-item {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.safety-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-title);
  color: var(--color-gold);
}

.safety-item span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.location-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.contact-list {
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.contact-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.contact-list dd {
  margin: 3px 0 0;
  font-weight: 600;
}

.inline-link {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-actions {
  margin-top: 22px;
}

.map-shell {
  min-height: 320px;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
}

.map-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.10), transparent 60%),
    var(--bg-surface);
}

.map-placeholder-content {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 34ch;
}

.map-placeholder-content h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.map-placeholder-content p {
  margin: 0;
  font-size: 0.9rem;
}

.map-iframe {
  width: 100%;
  min-height: 320px;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 28px 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand p,
.footer-copy {
  margin: 4px 0 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   9. BARRA FLOTANTE MÓVIL + CARRITO LATERAL (SLIDE-OVER DRAWER)
   ========================================================================== */
.mobile-cart-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--bg-base);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), visibility 240ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.2rem;
}

.cart-subtitle {
  margin: 2px 0 0;
  font-size: 0.84rem;
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.cart-empty {
  padding: 32px 12px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.cart-empty p {
  margin: 0;
}

.cart-items-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cart-item-name {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.98rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cart-remove-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 6px;
}

.cart-remove-btn:hover {
  color: #FCA5A5;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
}

.qty-btn:hover {
  color: var(--color-accent);
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-subtotal {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-gold);
}

.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: grid;
  gap: 14px;
}

.delivery-selector {
  margin: 0;
  padding: 0;
  border: 0;
}

.delivery-selector legend {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.delivery-pill {
  position: relative;
  cursor: pointer;
}

.delivery-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.delivery-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
}

.delivery-pill input:checked + span {
  border-color: var(--color-accent);
  background: rgba(249, 115, 22, 0.14);
  color: var(--text-primary);
}

.delivery-pill input:focus-visible + span {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart-total-price {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--color-gold);
}

/* ==========================================================================
   MEDIA QUERIES (MOBILE-FIRST -> TABLET -> ESCRITORIO)
   ========================================================================== */
@media (max-width: 768px) {
  body.has-mobile-cart-bar .site-footer {
    padding-bottom: 84px;
  }
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

@media (min-width: 769px) {
  .mobile-cart-bar {
    display: none !important;
  }

  .header-search-wrap {
    display: block;
    width: 240px;
  }

  .filter-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .filter-search-wrap {
    width: 240px;
    flex-shrink: 0;
  }

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

  .events-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .location-layout {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .safety-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* ==========================================================================
   RAMSES — LOGO OFICIAL, HERO SHOWCASE, DESCRIPCIÓN Y LOCALES
   ========================================================================== */
.brand {
  gap: 10px;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.brand-main {
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-showcase {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
}

.hero-logo-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: #0E0B1A;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 36px rgba(249, 115, 22, 0.16);
}

.hero-logo-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.footer-emblem {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.product-desc {
  margin: 6px 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.locals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .locals-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.local-card-mini {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-base);
  border: 1px solid rgba(250, 204, 21, 0.24);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.local-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.42);
  color: var(--color-gold);
  font-family: var(--font-title);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.local-card-mini strong {
  font-family: var(--font-title);
  font-size: 0.98rem;
  color: var(--text-primary);
}

.local-card-mini span {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 639px) {
  .product-body {
    padding: 10px;
    gap: 8px;
  }

  .product-cat {
    font-size: 0.7rem;
  }

  .product-title {
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .product-desc {
    font-size: 0.76rem;
  }

  .tech-badge {
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    font-size: 0.64rem;
  }

  .product-price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .price-amount {
    font-size: 1.08rem;
  }

  .card-qty-control {
    width: 100%;
    justify-content: space-between;
  }

  .card-qty-control .qty-btn {
    flex: 1;
    height: 32px;
  }

  .add-btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
