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

:root {
  --nav-height: 68px;

  --rojo:        #B8232A;
  --rojo-oscuro: #8B1A1E;
  --rojo-pale:   rgba(184,35,42,0.08);

  --fondo:       #F5EDE8;
  --fondo-alt:   #EDE3DC;
  --fondo-card:  #FAF5F2;
  --fondo-oscuro:#1A1210;
  --borde:       #D9CBBF;
  --borde-fuerte:#C4B2A2;
  --texto:       #1A1210;
  --texto-medio: #5A4A42;
  --texto-suave: #9A8880;
  --texto-on-accent: #FAF5F2;

  --font-display:'Saira Condensed', sans-serif;
  --font-body:   'IBM Plex Sans', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 1rem); }
body {
  background: var(--fondo); color: var(--texto); font-family: var(--font-body); font-weight: 400; overflow-x: hidden; min-width: 320px;
  display: flex; flex-direction: column; min-height: 100vh;
}
body.scroll-locked { overflow: hidden; }
main { flex: 1; }
html.theme-dark body {
  --rojo:         #C12C33;
  --rojo-oscuro:  #981F24;
  --rojo-pale:    rgba(193,44,51,0.18);
  --fondo:        #181110;
  --fondo-alt:    #201715;
  --fondo-card:   #261C19;
  --fondo-oscuro: #120C0B;
  --borde:        #3E2D28;
  --borde-fuerte: #5D443B;
  --texto:        #F5EDE8;
  --texto-medio:  #D2C0B6;
  --texto-suave:  #A18D84;
  --texto-on-accent: #F5EDE8;

  color-scheme: dark;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0.75rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 100;
  height: var(--nav-height);
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 3rem;
  background: rgba(200,185,172,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(180,165,152,0.6);
  box-shadow: 0 4px 28px rgba(26,18,16,0.18), 0 2px 8px rgba(26,18,16,0.10), 0 0 0 1px rgba(26,18,16,0.05);
  white-space: nowrap;
  width: max-content;
  max-width: calc(100vw - clamp(1.25rem, 5vw, 4rem) * 2);
}
.nav-logo {
  text-decoration: none; display:flex; align-items:center; justify-content: flex-start;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
  max-width: 50vw;
  transform: translateY(0);
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-logo.nav-logo-hidden {
  max-width: 0;
  opacity: 0;
  transform: translateY(-14px);
}


.nav-logo img {
  height: clamp(32px, 4.5vw, 44px);
  width: auto;
  max-width: 100%;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links-center { justify-content: center; }
.nav-links a { color: var(--texto-medio); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s; font-weight: 500; }
.nav-links a:hover,
.nav-links a.active { color: var(--texto); }
.nav-links a.active { color: var(--rojo); }
.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.85rem;
}
.nav-mobile-actions {
  display: none;
}
.nav-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  background: none;
  color: var(--texto-medio);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s, box-shadow 0.2s;
}
.nav-theme-toggle:hover {
  color: var(--texto);
  box-shadow: 0 2px 8px rgba(26,18,16,0.15);
}
.toggle-icon {
  position: absolute;
  width: 17px;
  height: 17px;
  transition: opacity 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.toggle-moon {
  opacity: 0;
  transform: rotate(-18deg) scale(0.88);
}
.toggle-sun {
  opacity: 1;
  color: var(--texto);
  transform: rotate(0deg) scale(1);
}
.nav-theme-toggle[aria-pressed="true"] .toggle-moon {
  opacity: 1;
  color: var(--texto);
  transform: rotate(0deg) scale(1);
}
.nav-theme-toggle[aria-pressed="true"] .toggle-sun {
  opacity: 0;
  transform: rotate(18deg) scale(0.88);
}
.nav-cta { background: var(--rojo) !important; color: var(--texto-on-accent) !important; padding: 0.5rem 1.4rem; border-radius: 999px; transition: background 0.2s !important; border: none; cursor: pointer; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; text-decoration: none; display: inline-block; }
.nav-cta:hover { background: var(--rojo-oscuro) !important; }

/* Hamburger — sólo móvil */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
  border-radius: 50%;
  transition: box-shadow 0.2s;
}
.nav-hamburger:hover {
  box-shadow: 0 2px 8px rgba(26,18,16,0.15);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--texto); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil desplegable */
.nav-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 98;
  background: var(--fondo);
  display: flex; flex-direction: column;
  padding: 0 2rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}
.nav-mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
/* Pseudo-elementos desactivados — la línea roja va en el HTML */
.nav-mobile-menu::before,
.nav-mobile-menu::after { display: none; }

.nav-mobile-menu-spacer {
  height: var(--nav-height);
  flex-shrink: 0;
}
.nav-mobile-menu-accent {
  width: 40px; height: 3px;
  background: var(--rojo);
  margin: 0 0 1.5rem;
  flex-shrink: 0;
}
.nav-mobile-menu li { list-style: none; }
.nav-mobile-menu a,
.nav-mobile-menu button:not(.nav-cta) {
  display: block; width: 100%;
  padding: 1.1rem 0;
  border: none; background: none; cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--borde);
  color: var(--texto); text-decoration: none;
  font-family: var(--font-display); font-size: 2rem;
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
  transition: color 0.2s, padding-left 0.2s;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu button:not(.nav-cta):hover { color: var(--rojo); padding-left: 0.4rem; }
.nav-mobile-menu li:nth-child(1) a, .nav-mobile-menu li:nth-child(1) button { transition-delay: 0.05s; }
.nav-mobile-menu li:nth-child(2) a, .nav-mobile-menu li:nth-child(2) button { transition-delay: 0.10s; }
.nav-mobile-menu li:nth-child(3) a, .nav-mobile-menu li:nth-child(3) button { transition-delay: 0.15s; }
.nav-mobile-menu li:nth-child(4) a, .nav-mobile-menu li:nth-child(4) button { transition-delay: 0.20s; }
.nav-mobile-menu-footer {
  margin-top: auto;
  padding: 2rem 0 max(2rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nav-mobile-menu .nav-cta {
  display: block; width: 100%; text-align: center;
  background: var(--rojo) !important; color: var(--texto-on-accent) !important;
  padding: 1rem 1.4rem; border-radius: 2px; border: none;
  font-family: var(--font-body); font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  cursor: pointer;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */

.hero-layout {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(150deg, #1A1210 0%, #17100E 55%, #120c0b 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(180,60,30,0.12) 0%, transparent 70%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2L28 0z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M28 32.3l28 16.2v32.3L28 97 0 80.8V48.5l28-16.2z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}

.hero-overlay-x,
.hero-overlay-y { display: none; }

.hero-flashlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3.75rem) 2.5rem 3rem;
  max-width: 52rem;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.75rem;
}

.hero-eyebrow-line {
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--rojo);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.hero-title-accent {
  color: var(--rojo);
  font-style: normal;
}

.hero-description {
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
}

.hero-btn {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

.hero-btn-primary {
  background: var(--rojo);
  color: #fff;
}

.hero-btn-primary:hover {
  background: var(--rojo-oscuro);
}

.hero-btn-outline {
  border: 2px solid rgba(255,255,255,0.40);
  color: #fff;
  background: transparent;
}

.hero-btn-outline:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-first {
  padding-right: 2rem;
}

.hero-stat-mid {
  padding: 0 2rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-last {
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  margin-top: 0.375rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero-brands {
  position: relative;
  z-index: 10;
  margin-top: auto;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.hero-brands-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 10;
  pointer-events: none;
}

.hero-brands-fade-left {
  left: 0;
}

.hero-brands-fade-right {
  right: 0;
}

.hero-brands-title {
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
}

.hero-brands-scroll {
  overflow: hidden;
  width: 100%;
}

.marca-item {
  flex-shrink: 0;
  padding: 0 2.5rem;
}

.hero-brand-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.hero-brand-logo:hover {
  opacity: 0.7;
}

.hero-brand-logo--color {
  filter: none;
  opacity: 0.6;
}
.hero-brand-logo--color:hover {
  opacity: 0.85;
}
html.theme-dark .hero-brand-logo--color {
  filter: brightness(0) invert(1);
  opacity: 0.4;
}
html.theme-dark .hero-brand-logo--color:hover {
  opacity: 0.7;
}

/* Imagen de fondo: el JS de main.js añade .hero-image-ready */
[data-theme-hero-image] { 
  opacity: 0; 
  transition: opacity 1.5s ease;
  will-change: transform, opacity;
}
[data-theme-hero-image].hero-image-ready { opacity: 0.5; }

/* Resplandor ambiental centrado detrás del texto (antes: linterna solo en hover sin JS que la moviera) */
.hero-flashlight {
  background: radial-gradient(
    ellipse 60% 50% at 50% 40%,
    rgba(184,35,42,0.16) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  opacity: 1;
  mix-blend-mode: screen;
}

/* Dark mode navbar */
html.theme-dark nav { background: rgba(35,28,25,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(140,110,85,0.3); box-shadow: 0 4px 28px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.25); }
html.theme-dark .nav-logo img { filter: brightness(0) invert(1); opacity: 0.95; }
html.theme-dark .nav-search-btn,
html.theme-dark .nav-cart-btn { color: #fff; }
html.theme-dark .nav-search-btn:hover,
html.theme-dark .nav-theme-toggle:hover,
html.theme-dark .nav-whatsapp:hover,
html.theme-dark .nav-cart-btn:hover,
html.theme-dark .nav-hamburger:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

/* Animaciones entrada */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.hero-anim-1 { animation: fadeUp 0.65s ease both 0.1s; }
.hero-anim-2 { animation: fadeUp 0.65s ease both 0.25s; }
.hero-anim-3 { animation: fadeUp 0.65s ease both 0.4s; }
.hero-anim-4 { animation: fadeUp 0.65s ease both 0.52s; }
.hero-anim-5 { animation: fadeIn 0.9s ease both 0.68s; }

/* Botones globales usados fuera del hero */
.btn-primary {
  background: var(--rojo); color: var(--texto-on-accent);
  padding: 0.85rem 2rem; text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; transition: background 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--rojo-oscuro); }
.btn-outline {
  border: 2px solid var(--texto); color: var(--texto);
  padding: 0.85rem 2rem; text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; transition: border-color 0.2s, color 0.2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--rojo); color: var(--rojo); }


/* ═══════════════════════════════════════
   SEPARADOR DIAGONAL
═══════════════════════════════════════ */
.sep-diagonal {
  height: 60px; overflow: hidden;
  position: relative; background: var(--fondo);
}
.sep-diagonal::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 120px;
  background: var(--fondo-alt);
  clip-path: polygon(0 40px, 100% 0, 100% 120px, 0 120px);
}
.sep-diagonal.inv { background: var(--fondo-alt); }
.sep-diagonal.inv::after { background: var(--fondo); clip-path: polygon(0 0, 100% 40px, 100% 120px, 0 120px); }
.sep-diagonal.dark::after { background: var(--fondo-oscuro); }

/* ═══════════════════════════════════════
   SECCIÓN GENÉRICA
═══════════════════════════════════════ */
section:not(#hero) { padding: 6rem clamp(1.25rem, 5vw, 4rem); }
.section-tag { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rojo); margin-bottom: 0.8rem; }
.section-num { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.15em; color: var(--borde-fuerte); margin-bottom: 0.4rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.8rem); letter-spacing: 0.03em; line-height: 1; margin-bottom: 1.2rem; color: var(--texto); }
.section-subtitle { font-size: 1rem; color: var(--texto); line-height: 1.7; max-width: 560px; font-weight: 400; }


/* ═══════════════════════════════════════
   MARCAS TRACK — dentro del hero
   (scroll animado vía JS)
═══════════════════════════════════════ */
.marcas-track {
  display: flex;
  align-items: center;
  will-change: transform;
  pointer-events: none;
}

.contact-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.contact-actions-separator {
  color: rgba(245,237,232,0.5);
  font-size: 0.95rem;
}


/* ═══════════════════════════════════════
   SOBRE NOSOTROS
═══════════════════════════════════════ */
#sobre {
  background: var(--fondo);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.sobre-visual { position: relative; }
.sobre-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--texto);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
.sobre-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--rojo); color: var(--texto-on-accent);
  padding: 1.5rem; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.sobre-badge strong { font-family: var(--font-display); font-size: 2.5rem; display: block; line-height: 1; }
.sobre-badge small  { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }

.sobre-lista { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.sobre-lista li {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.95rem; color: var(--texto); font-weight: 400;
}
.sobre-lista li::before {
  content: ''; flex-shrink: 0;
  width: 18px; height: 2px; background: var(--rojo);
}

/* ═══════════════════════════════════════
   MARCAS DESTACADAS
═══════════════════════════════════════ */
#marcas-destacadas { background: var(--fondo-alt); }

.marcas-destacadas-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1.5rem;
}
.md-header-subtitle {
  font-size: 0.88rem; color: var(--texto-medio);
  max-width: 280px; line-height: 1.6; text-align: right;
}

/* Filtros */
.md-filter-row {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.md-chip {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid var(--borde);
  background: none; color: var(--texto-medio);
  cursor: pointer; font-family: var(--font-body);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  border-radius: 2px;
}
.md-chip:hover { color: var(--rojo); border-color: var(--rojo); background: var(--rojo-pale); }
.md-chip.active { background: var(--rojo); color: var(--texto-on-accent); border-color: var(--rojo); }

/* Grid */
.md-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5px;
  background: var(--borde);
  border: 1.5px solid var(--borde);
  border-radius: 2px;
  overflow: hidden;
}
.md-card {
  background: var(--fondo-card);
  display: flex; flex-direction: column;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}
.md-card:hover { background: var(--fondo); }
.md-card.hidden { display: none; }

/* Imagen */
.md-card-img {
  aspect-ratio: 4/3;
  background: var(--fondo-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  border-bottom: 1px solid var(--borde);
}
.md-card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.md-card-photo[src=""], .md-card-photo:not([src]) { display: none; }
.md-card-img-placeholder {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.15;
}
.md-card-img-placeholder svg { width: 100%; height: 100%; stroke: var(--texto); }
.md-card:has(.md-card-photo[src]:not([src=""])) .md-card-img-placeholder { display: none; }

/* Badges sobre imagen */
.md-brand-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 2px; padding: 3px 8px;
}
.md-brand-badge span {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--texto);
}
.md-new-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--rojo); border-radius: 2px; padding: 3px 8px;
}
.md-new-badge span {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
}

/* Cuerpo tarjeta */
.md-card-body {
  padding: 1rem 1.1rem 1.1rem;
  flex: 1; display: flex; flex-direction: column;
}
.md-cat {
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rojo); margin-bottom: 0.3rem;
}
.md-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--texto); line-height: 1.15; margin-bottom: 0.5rem;
}
.md-desc {
  font-size: 0.78rem; color: var(--texto-medio);
  line-height: 1.55; flex: 1; margin-bottom: 0.8rem;
}
.md-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--borde); padding-top: 0.7rem; margin-top: auto;
}
.md-brand-pill {
  font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--texto-suave);
}
.md-arrow {
  width: 26px; height: 26px;
  border: 1px solid var(--borde); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.md-card:hover .md-arrow { background: var(--rojo); border-color: var(--rojo); }
.md-arrow svg { width: 12px; height: 12px; stroke: var(--texto-suave); transition: stroke 0.2s; }
.md-card:hover .md-arrow svg { stroke: #fff; }

/* Fila de marcas */
.md-brands-row {
  margin-top: 2.5rem;
  border-top: 1px solid var(--borde); padding-top: 1.5rem;
}
.md-brands-label {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--texto-suave); margin-bottom: 1rem;
}
.md-brands-list {
  display: flex; gap: 0;
  border: 1px solid var(--borde); border-radius: 2px; overflow: hidden;
}
.md-brand-item {
  flex: 1; padding: 0.9rem 1rem;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--borde);
  background: var(--fondo-card); cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.md-brand-item:last-child { border-right: none; }
.md-brand-item:hover { background: var(--fondo); }
.md-brand-name {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--texto-suave); transition: color 0.15s;
}
.md-brand-item:hover .md-brand-name { color: var(--rojo); }
.md-brand-logo { display: block; max-height: 24px; width: auto; opacity: 0.55; transition: opacity 0.15s; filter: grayscale(100%); }
.md-brand-item:hover .md-brand-logo { opacity: 1; filter: grayscale(0%); }

/* Footer */
/* Carrusel */
.pc-carousel {
  display: flex; align-items: stretch; gap: 1rem;
  margin: 2rem 0;
  position: relative;
}
.pc-arrow {
  flex-shrink: 0;
  width: 40px;
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 2px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.pc-arrow:hover { background: var(--rojo); border-color: var(--rojo); }
.pc-arrow svg { width: 22px; height: 22px; stroke: var(--texto-suave); transition: stroke 0.15s; }
.pc-arrow:hover svg { stroke: #fff; }
.pc-arrow:disabled { opacity: 0.3; cursor: default; background: var(--fondo-card); border-color: var(--borde); }
.pc-arrow:disabled svg { stroke: var(--texto-suave); }

.pc-track-wrap {
  flex: 1; overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: 2px;
}
.pc-track {
  display: flex; gap: 1.5px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.pc-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--fondo-card);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid var(--borde);
  border-radius: 2px;
  transition: background 0.2s, border-color 0.15s;
}
.pc-card:hover { background: var(--fondo); border-color: var(--borde-fuerte); }

.pc-card-img {
  aspect-ratio: 1/1;
  background: var(--fondo-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  border-bottom: 1px solid var(--borde);
}
.pc-card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.pc-card-photo[src=""], .pc-card-photo:not([src]) { display: none; }
.pc-card:has(.pc-card-photo[src]:not([src=""])) .pc-card-placeholder { display: none; }
.pc-card-placeholder {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.12;
}
.pc-card-placeholder svg { width: 100%; height: 100%; stroke: var(--texto); }

.pc-card-nuevo {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--rojo); border-radius: 2px; padding: 3px 8px;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
}
.pc-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 2px;
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--texto);
}

.pc-card-body {
  padding: 0.85rem 1rem 1rem;
  flex: 1; display: flex; flex-direction: column;
}
.pc-card-cat {
  font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rojo); margin-bottom: 0.25rem;
}
.pc-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--texto); line-height: 1.15; margin-bottom: 0.4rem;
  flex: 1;
}
.pc-card-code {
  font-size: 0.68rem; color: var(--texto-suave);
  letter-spacing: 0.04em;
}

.marcas-destacadas-footer { text-align: center; margin-top: 3rem; }

/* Responsive */
@media (max-width: 768px) {
  .md-header-subtitle { text-align: left; max-width: 100%; }
  .md-brands-list { flex-wrap: wrap; }
  .md-brand-item { flex: 1 1 33%; border-bottom: 1px solid var(--borde); }
  .pc-arrow { display: none; }
  .pc-card { width: 260px; }
  .pc-track { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .pc-card { scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .pc-card { width: 220px; }
  .md-brand-item { flex: 1 1 50%; }
}
/* ═══════════════════════════════════════
   ¿POR QUÉ ELEGIRNOS?
═══════════════════════════════════════ */
#por-que {
  background: var(--fondo);
}
.porq-header { text-align: center; margin-bottom: 4rem; }
.porq-header .section-subtitle { margin: 0 auto; }
.porq-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  border: 1.5px solid var(--borde); border-radius: 2px; overflow: hidden;
}
.porq-item {
  padding: 2.5rem 2rem;
  border-right: 1.5px solid var(--borde);
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.porq-item:last-child { border-right: none; }
.porq-item:hover { background: var(--fondo-alt); }

.porq-line {
  width: 36px; height: 3px;
  background: var(--rojo); margin-bottom: 1.5rem;
  transition: width 0.3s;
}
.porq-item:hover .porq-line { width: 60px; }

.porq-item h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  letter-spacing: 0.04em; margin-bottom: 0.7rem; color: var(--texto);
}
.porq-item p { font-size: 0.88rem; color: var(--texto); line-height: 1.65; font-weight: 400; }
.porq-big-num {
  position: absolute; bottom: -0.5rem; right: 0.8rem;
  font-family: var(--font-display); font-size: 6rem;
  color: var(--borde); line-height: 1; letter-spacing: 0;
  pointer-events: none; transition: color 0.25s;
}
.porq-item:hover .porq-big-num { color: rgba(184,35,42,0.10); }

/* ═══════════════════════════════════════
   BANNER PROFESIONALES
═══════════════════════════════════════ */
#banner-pro {
  background: var(--fondo-oscuro);
  padding: 5rem 4rem;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 3rem;
}
/* Textura de chapa: líneas diagonales muy sutiles */
#banner-pro::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px, transparent 3px,
    rgba(255,255,255,0.015) 3px, rgba(255,255,255,0.015) 4px
  );
}
/* Acento rojo lateral */
#banner-pro::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--rojo);
}
.banner-text { position: relative; z-index: 1; }
.banner-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.banner-eyebrow::before { content:''; width:24px; height:1.5px; background:var(--rojo); flex-shrink:0; }
.banner-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: 0.03em; line-height: 1;
  color: #F5EDE8; margin-bottom: 1rem;
}
.banner-title em { font-style: normal; color: var(--rojo); }
.banner-desc { font-size: 0.95rem; color: rgba(245,237,232,0.85); line-height: 1.7; max-width: 520px; font-weight: 400; }

.banner-action { position: relative; z-index: 1; flex-shrink: 0; text-align: center; }
.banner-action .btn-primary {
  font-size: 0.82rem; padding: 1rem 2.2rem; white-space: nowrap;
}
.banner-ventajas {
  margin-top: 1.2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.banner-ventajas span {
  font-size: 0.78rem; color: rgba(245,237,232,0.80);
  display: flex; align-items: center; gap: 0.5rem;
}
.banner-ventajas span::before { content:'✓'; color: var(--rojo); font-size: 0.8rem; }

/* ═══════════════════════════════════════
   UBICACIÓN
═══════════════════════════════════════ */
#ubicacion {
  background: var(--fondo-alt);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.ubicacion-info { padding-top: 1rem; }
.map-wrap { position: relative; }
.map-overlay {
  position: absolute; inset: 0; z-index: 1;
  cursor: pointer;
}
.map-wrap:hover .map-overlay,
.map-wrap:focus-within .map-overlay { display: none; }
.info-block { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.8rem; }
.info-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.info-item-icon {
  width: 40px; height: 40px;
  background: rgba(184,35,42,0.07);
  border: 1px solid rgba(184,35,42,0.18);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-item-icon svg { width: 18px; height: 18px; stroke: var(--rojo); fill: none; stroke-width: 1.5; }
.info-item-text label { display: block; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rojo); margin-bottom: 0.3rem; }
.info-item-text p { font-size: 0.95rem; color: var(--texto); line-height: 1.6; font-weight: 400; }
.horario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; font-size: 0.88rem; color: var(--texto); margin-top: 0.4rem; font-weight: 400; }
.horario-grid strong { color: var(--texto); font-weight: 400; }
.horario-detallado { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.2rem; }
.h-row { display: grid; grid-template-columns: 85px 1fr auto; gap: 0.5rem; align-items: center; font-size: 0.8rem; padding: 0.2rem 0; border-bottom: 1px solid var(--borde); }
.h-row:last-child { border-bottom: none; }
.h-dia { font-weight: 500; color: var(--texto); }
.h-row--today { background: var(--rojo-pale); border-radius: 4px; margin: 0 -0.5rem; padding: 0.2rem 0.5rem; }
.h-row--today .h-dia { color: var(--rojo); font-weight: 600; }
.h-horas { color: var(--texto-medio); font-size: 0.78rem; }
.h-status { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; }
.h-abierto { color: #16a34a; }
.h-cerrado { color: #dc2626; }

/* ── LIVE HORARIO "EN DIRECTO" — nuevo diseño ── */
.mf-live-card {
  border-radius: 3px;
  padding: 0.85rem 1rem;
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: background 0.3s, border-color 0.3s;
}
.mf-live-card.estado-abierto {
  background: rgba(22, 163, 74, 0.07);
  border: 1.5px solid rgba(22, 163, 74, 0.22);
}
.mf-live-card.estado-cerrado {
  background: rgba(220, 38, 38, 0.05);
  border: 1.5px solid rgba(220, 38, 38, 0.18);
}
.mf-live-card.estado-cargando {
  background: var(--fondo-card);
  border: 1.5px solid var(--borde);
}
.mf-live-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mf-live-card.estado-abierto  .mf-live-icon-wrap { background: rgba(22, 163, 74, 0.12); }
.mf-live-card.estado-cerrado  .mf-live-icon-wrap { background: rgba(220, 38, 38, 0.09); }
.mf-live-card.estado-cargando .mf-live-icon-wrap { background: var(--fondo-alt); }
.mf-live-dot-big {
  width: 13px; height: 13px;
  border-radius: 50%;
  transition: background 0.3s;
}
.mf-live-card.estado-abierto  .mf-live-dot-big {
  background: #16a34a;
  animation: mf-pulse-green 2s ease-in-out infinite;
}
.mf-live-card.estado-cerrado  .mf-live-dot-big { background: #dc2626; }
.mf-live-card.estado-cargando .mf-live-dot-big {
  background: var(--borde-fuerte);
  animation: mf-pulse-gray 1.4s ease-in-out infinite;
}
@keyframes mf-pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
@keyframes mf-pulse-gray {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.mf-live-info { flex: 1; min-width: 0; }
.mf-live-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-suave);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.mf-live-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 0;
}
.mf-live-card.estado-abierto  .mf-live-label { color: #16a34a; }
.mf-live-card.estado-cerrado  .mf-live-label { color: #dc2626; }
.mf-live-card.estado-cargando .mf-live-label { color: var(--texto-medio); }
.mf-live-sub {
  font-size: 0.76rem;
  color: var(--texto-medio);
  margin-top: 0.2rem;
  margin-bottom: 0;
}

/* Tabla semanal — ajustes sobre los estilos .h-row existentes */
.h-row--today .h-status {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
.h-row--today .h-status.h-abierto-now {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}
.h-row--today .h-status.h-cerrado {
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.mapa-placeholder {
  width: 100%; aspect-ratio: 4/3.5;
  background: var(--fondo-card); border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem; border: 1px solid var(--borde);
  color: var(--texto-suave); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.mapa-placeholder svg { width: 32px; height: 32px; stroke: var(--borde); fill: none; stroke-width: 1; }

/* ═══════════════════════════════════════
   CONTACTO
═══════════════════════════════════════ */
#contacto { background: var(--fondo); }
.contacto-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.contacto-inner .section-subtitle { margin: 0 auto 2.5rem; }
.contacto-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-medio); }
.form-group input, .form-group textarea {
  background: var(--fondo-card); border: 1px solid var(--borde);
  border-radius: 2px; color: var(--texto); font-family: var(--font-body);
  font-size: 0.95rem; padding: 0.75rem 1rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--rojo); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  margin-top: 0.5rem; background: var(--rojo); color: var(--texto-on-accent);
  border: none; padding: 0.9rem 2rem; font-family: var(--font-body);
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; border-radius: 2px; cursor: pointer;
  transition: background 0.2s; align-self: flex-start;
}
.form-submit:hover { background: var(--rojo-oscuro); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--fondo-oscuro);
  padding: 3rem 4rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.06em; color: var(--fondo); font-weight: 700; }
.footer-logo span { color: var(--rojo); }
footer p { font-size: 0.8rem; color: rgba(245,237,232,0.60); font-weight: 400; }
.footer-socials { display: flex; gap: 0.9rem; }
.footer-socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245,237,232,0.28);
  border-radius: 50%;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.footer-socials a img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-socials a:hover {
  border-color: var(--rojo);
  background: rgba(184,35,42,0.15);
  transform: translateY(-1px);
}
.footer-legal {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  height: auto;
  margin-inline: 0;
  background: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  white-space: normal;
  width: auto;
  max-width: none;
  padding: 0;
  border-radius: 0;
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
}
.footer-legal a {
  color: rgba(245,237,232,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--rojo);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   RESPONSIVE ≤ 960px — TABLET
═══════════════════════════════════════ */
@media (max-width: 960px) {
  /* — Navbar — */
  nav { padding: 0 1.2rem; top: 0.5rem; left: clamp(0.75rem, 5vw, 1.5rem); right: clamp(0.75rem, 5vw, 1.5rem); margin-inline: 0; display: flex; justify-content: space-between; align-items: center; white-space: nowrap; width: auto; max-width: none; border-radius: 10px; background: rgba(200,185,172,0.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(180,165,152,0.6); box-shadow: 0 4px 28px rgba(26,18,16,0.18), 0 2px 8px rgba(26,18,16,0.10); }
  .nav-links-center { display: none; }
  .nav-actions { display: none; }
  .nav-logo { padding: 0; flex: 1 1 auto; min-width: 0; }
  .nav-mobile-actions { display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-mobile-actions .nav-theme-toggle { width: 34px; height: 34px; min-width: 34px; }


  /* — Hero — */
  .hero-content {
    padding-top: calc(var(--nav-height) + 3.25rem);
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 2.75rem;
  }
  .hero-stat-first { padding-right: 3.5rem; }
  .hero-stat-mid { padding-left: 3.5rem; padding-right: 3.5rem; }
  .hero-stat-last { padding-left: 3.5rem; }

  /* — Secciones genéricas — */
  section:not(#hero) { padding: 4rem clamp(1.25rem, 5vw, 4rem); }
  #por-que { padding: 4rem clamp(1.25rem, 5vw, 4rem); }

  /* — Grids a columna única — */
  #sobre    { grid-template-columns: 1fr; gap: 3rem; padding: 4rem clamp(1.25rem, 5vw, 4rem); }
  #ubicacion{ grid-template-columns: 1fr; gap: 3rem; padding: 4rem clamp(1.25rem, 5vw, 4rem); }
  #banner-pro { grid-template-columns: 1fr; padding: 4rem clamp(1.25rem, 5vw, 4rem); }
  .servicios-grid { grid-template-columns: 1fr; }
  .porq-grid { grid-template-columns: 1fr 1fr; }

  /* — Tienda & Producto — */
  .tienda-listado-page,
  .producto-page {
    padding-top: calc(var(--nav-height) + 3.25rem);
  }

  /* — Misc — */
  footer { flex-direction: column; text-align: center; padding: 2rem clamp(1.25rem, 5vw, 4rem); }
  .footer-legal { justify-content: center; }
  .sobre-badge { bottom: 0.5rem; right: 0.5rem; padding: 1rem; }
  .sobre-badge strong { font-size: 1.75rem; }
  .sobre-badge small { font-size: 0.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .sep-diagonal { height: 36px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE ≤ 600px — MÓVIL
═══════════════════════════════════════ */
@media (max-width: 600px) {
  /* — Hero móvil — */
  .hero-content {
    padding-top: calc(var(--nav-height) + 2.75rem);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2.25rem;
  }
  .hero-actions {
    margin-bottom: 2.5rem;
  }
  .hero-stat-first,
  .hero-stat-mid,
  .hero-stat-last {
    padding: 0;
    border-left: none;
    width: 100%;
    margin-bottom: 1.25rem;
  }
  .hero-pattern { opacity: 0.5; }
  .hero-glow { opacity: 0.6; }

  /* — Grids — */
  .porq-grid { grid-template-columns: 1fr; }

  /* — Secciones — */
  section:not(#hero) { padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem); }
  #por-que  { padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem); }
  #sobre    { padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem); }
  #ubicacion{ padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem); }
  #banner-pro { padding: 3.5rem clamp(1.25rem, 5vw, 2.5rem); }

}

/* ═══════════════════════════════════════
   RESPONSIVE ≤ 390px — MÓVIL PEQUEÑO
   (Samsung S8+, iPhone SE…)
═══════════════════════════════════════ */
@media (max-width: 390px) {
  nav { padding: 0 0.75rem; }
  .nav-mobile-actions { gap: 0.25rem; }
  .nav-mobile-actions .nav-theme-toggle,
  .nav-mobile-actions .nav-whatsapp,
  .nav-hamburger { width: 32px; height: 32px; min-width: 32px; }
  .nav-mobile-actions .nav-whatsapp img { width: 19px; height: 19px; }
  .hero-btn { font-size: 0.68rem; padding: 0.8rem 1.4rem; }
}

@media (max-width: 380px) {
  nav { padding: 0 0.6rem; }
  .nav-mobile-actions { gap: 0.2rem; }
  .nav-mobile-actions .toggle-icon { width: 15px; height: 15px; }
  .nav-mobile-actions .nav-whatsapp img { width: 18px; height: 18px; }
  .hero-title { line-height: 0.95; }
  .hero-btn { width: 100%; text-align: center; }
}

/* ── FIN ESTILOS HERO ── */
/* ═══════════════════════════════════════
   MODAL AVISO TIENDA
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,18,16,0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.modal-box {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 3px;
  width: 100%; max-width: 480px;
  max-height: min(88svh, 720px);
  overflow: auto;
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(26,18,16,0.18);
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--texto-suave);
  font-size: 1.2rem; line-height: 1;
  transition: color 0.2s;
  border-radius: 2px;
}
.modal-close:hover { color: var(--rojo); }
.modal-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rojo); border-left: 3px solid var(--rojo);
  padding-left: 0.7rem; margin-bottom: 0.7rem; display: block;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.9rem; letter-spacing: 0.03em; line-height: 1;
  color: var(--texto); margin-bottom: 0.5rem;
}
.modal-desc {
  font-size: 0.88rem; color: var(--texto-medio);
  line-height: 1.6; margin-bottom: 1.6rem; font-weight: 400;
}
.modal-form { display: flex; flex-direction: column; gap: 0.85rem; }
.modal-form .form-group label { color: var(--texto-medio); }
.modal-form .form-group input,
.modal-form .form-group textarea {
  background: var(--fondo); border-color: var(--borde);
}
.modal-submit {
  background: var(--rojo); color: var(--texto-on-accent);
  border: none; padding: 0.85rem 1.5rem;
  font-family: var(--font-body); font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border-radius: 2px; cursor: pointer;
  transition: background 0.2s; width: 100%; margin-top: 0.3rem;
}
.modal-submit:hover { background: var(--rojo-oscuro); }
.modal-footer-note {
  margin-top: 1rem;
  font-size: 0.74rem;
  color: var(--texto-suave);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.modal-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #25D366;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.modal-whatsapp-link:hover {
  transform: scale(1.05);
}
.modal-whatsapp-link img {
  width: 16px;
  height: 16px;
  display: block;
}

/* Ajustes finales del modal para móviles pequeños */
@media (max-width: 600px) {
  .modal-overlay { padding: 1rem; align-items: center; justify-content: center; }
  .modal-box { max-height: calc(100svh - 2rem); padding: 1.9rem 1.5rem 1.5rem; }
  .modal-close { top: 0.75rem; right: 0.75rem; }
  .modal-eyebrow { font-size: 0.66rem; margin-bottom: 0.6rem; }
  .modal-title { font-size: 1.6rem; line-height: 1; margin-bottom: 0.45rem; }
  .modal-desc { font-size: 0.86rem; line-height: 1.55; margin-bottom: 1.1rem; }
  .modal-form { gap: 0.75rem; }
  .modal-form .form-group input,
  .modal-form .form-group textarea { padding: 0.72rem 0.85rem; font-size: 0.86rem; }
  .modal-form .form-group textarea { min-height: 88px !important; }
  .modal-submit { padding: 0.82rem 1.15rem; font-size: 0.77rem; letter-spacing: 0.11em; margin-top: 0.2rem; }
  .modal-footer-note { margin-top: 0.85rem; font-size: 0.72rem; gap: 0.45rem; }
  .modal-whatsapp-link { font-size: 0.76rem; }
  .modal-whatsapp-link img { width: 14px; height: 14px; }
  .modal-form > div[style] { grid-template-columns: 1fr !important; }
}

@media (max-width: 390px) {
  .modal-overlay { padding: 0.8rem; }
  .modal-box { max-height: calc(100svh - 1.6rem); padding: 1.7rem 1.2rem 1.3rem; }
  .modal-title { font-size: 1.46rem; }
  .modal-desc { font-size: 0.82rem; }
  .modal-submit { font-size: 0.74rem; }
  .modal-whatsapp-link { font-size: 0.74rem; }
}

@media (max-width: 380px) {
  .modal-box { max-height: calc(100svh - 1.4rem); padding: 1.6rem 1.05rem 1.2rem; }
}

/* ═══════════════════════════════════════
   BLOG — índice y post individual
   Añadir al final de main.css
═══════════════════════════════════════ */

/* ── ÍNDICE DEL BLOG ── */
section.blog-index {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 180px !important; /* Aseguramos espacio suficiente en píxeles absolutos */
  padding-right: clamp(1.25rem, 5vw, 4rem);
  padding-left: clamp(1.25rem, 5vw, 4rem);
  padding-bottom: 6rem;
}

.blog-index-header {
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blog-index-header .section-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
.blog-index-header .section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--rojo);
}

.blog-index-header .section-subtitle {
  max-width: 600px;
  font-size: 1.1rem;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto-medio);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--borde);
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 1.5rem;
}
.blog-back-link:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

/* Post Destacado */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--borde);
}
@media (min-width: 800px) {
  .blog-featured { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; }
}
.blog-featured-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--fondo-alt);
  border-radius: 2px;
}
.blog-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.03); }
.blog-featured-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 1rem 0;
}
.blog-featured-title a { color: var(--texto); text-decoration: none; }
.blog-featured-title a:hover { color: var(--rojo); }
.blog-featured-resumen {
  font-size: 1.05rem;
  color: var(--texto-medio);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Grid Minimalista */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3.5rem 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--fondo-alt);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.blog-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.04); }

.blog-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
}
.blog-card-img-placeholder span {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--texto-medio); opacity: 0.3;
}

.blog-card-body {
  display: flex; flex-direction: column; flex: 1; gap: 0.6rem;
}

.blog-tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rojo);
  border-left: 2px solid var(--rojo); padding-left: 0.5rem;
}

.blog-card-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  line-height: 1.2; color: var(--texto); margin-bottom: 0.2rem;
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--rojo); }

.blog-card-meta {
  font-size: 0.75rem; color: var(--texto-medio); opacity: 0.7; margin-top: auto;
}

.blog-vacio {
  grid-column: 1 / -1; text-align: center; color: var(--texto-medio);
  padding: 4rem 0; font-size: 1rem;
}

/* Paginación */
.blog-pagination {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--borde);
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}
.blog-pagination-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: max-content;
}
.blog-page-nav {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.9rem;
  border: 1px solid color-mix(in srgb, var(--borde) 72%, var(--texto) 28%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--fondo-card) 88%, white 12%);
  color: var(--texto);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.blog-page-nav:hover {
  transform: translateY(-1px);
  border-color: var(--rojo);
  color: var(--rojo);
  box-shadow: 0 6px 14px rgba(26,18,16,0.1);
}
.blog-page-nav:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 2px;
}
.blog-page-nav-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.blog-page-nav.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}
.blog-page-link {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  border: 1px solid color-mix(in srgb, var(--borde) 72%, var(--texto) 28%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--fondo-card) 88%, white 12%);
  color: var(--texto);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.blog-page-link:hover {
  transform: translateY(-1px);
  border-color: var(--rojo);
  color: var(--rojo);
  box-shadow: 0 6px 14px rgba(26,18,16,0.1);
}
.blog-page-link:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 2px;
}
.blog-page-link.is-active {
  background: var(--rojo);
  border-color: var(--rojo);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(178,48,48,0.28);
}

/* ── POST INDIVIDUAL ── */
article.blog-post {
  max-width: 1100px;
  margin: 0 auto;
  padding: 180px clamp(1.25rem, 5vw, 4rem) 6rem !important;
}

.blog-post-top-nav {
  margin-bottom: 2rem;
}

.blog-post-header {
  margin-bottom: 3rem;
  text-align: center;
}

.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--texto);
  margin: 1.5rem 0 1.25rem;
}

.blog-post-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.75rem 1.5rem; font-size: 0.85rem; color: var(--texto-medio); opacity: 0.8;
}

.blog-post-imagen {
  margin-bottom: 3.5rem;
  border-radius: 2px;
  overflow: hidden;
}
.blog-post-imagen img {
  width: 100%; display: block; object-fit: cover; max-height: 520px;
}

/* Tipografía del cuerpo del post */
.blog-post-body {
  font-size: 1.1rem; line-height: 1.85; color: var(--texto);
}
.blog-post-body h2 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--texto); margin: 3rem 0 1.2rem;
}
.blog-post-body h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--texto); margin: 2.2rem 0 0.8rem;
}
.blog-post-body p { margin-bottom: 1.5rem; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.blog-post-body li { margin-bottom: 0.5rem; }
.blog-post-body strong { color: var(--texto); font-weight: 600; }
.blog-post-body a { color: var(--rojo); text-decoration: underline; }
.blog-post-body a:hover { color: var(--rojo-oscuro); }
.blog-post-body hr { border: none; border-top: 1px solid var(--borde); margin: 3rem 0; }
.blog-post-body blockquote {
  border-left: 3px solid var(--rojo); padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--texto-medio); font-style: italic; font-size: 1.15rem; margin: 2rem 0;
}
.blog-post-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.9rem; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden;
}
.blog-post-body th, .blog-post-body td {
  padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--borde);
  min-width: 0; overflow-wrap: break-word; word-break: break-word;
}
.blog-post-body th { background: var(--fondo-alt, var(--fondo)); font-weight: 700; }
.blog-post-body td { background: var(--fondo); }
.blog-post-body tr:last-child td, .blog-post-body tr:last-child th { border-bottom: none; }
.blog-post-body .comparativa { margin: 1.5rem 0; }
.blog-post-body .comparativa ul { padding-left: 1.25rem; margin: 0; }
.blog-post-body .comparativa li { margin-bottom: 0.4rem; }

/* Pie del post */
.blog-post-footer {
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--borde);
  display: flex; flex-direction: column; gap: 2rem;
}

.blog-post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blog-post-tag {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--fondo-alt); color: var(--texto-medio); padding: 0.3rem 0.7rem;
}

.blog-post-share p {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--texto-suave); margin-bottom: 1rem;
}
.share-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--texto);
  text-decoration: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fondo-card) 84%, white 16%), var(--fondo-card));
  border: 1px solid color-mix(in srgb, var(--borde) 76%, var(--texto) 24%);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.share-link img {
  width: 17px;
  height: 17px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.share-link:hover {
  transform: translateY(-1px);
  border-color: var(--rojo);
  color: var(--rojo);
  box-shadow: 0 8px 18px rgba(26,18,16,0.09);
}
.share-link:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 2px;
}
.share-facebook:hover { color: #1877f2; border-color: #1877f2; }
.share-instagram:hover { color: #d62976; border-color: #d62976; }
.share-x:hover { color: color-mix(in srgb, var(--texto) 92%, #000 8%); }
html.theme-dark .share-link {
  background: color-mix(in srgb, var(--fondo-card) 84%, #2e2320 16%);
  border-color: color-mix(in srgb, var(--borde) 70%, white 30%);
}
html.theme-dark .share-link img {
  filter: brightness(0) invert(1);
}
html.theme-dark .share-link:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
html.theme-dark .share-link:hover img {
  filter: none;
}

/* Últimas publicaciones */
.blog-recent-posts {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 4px solid var(--fondo-alt);
}
.blog-recent-posts h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--texto);
}
.recent-posts-grid,
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.recent-post-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: var(--texto);
}
.recent-post-img {
  aspect-ratio: 16/10;
  background: var(--fondo-alt);
  overflow: hidden;
  border-radius: 2px;
}
.recent-post-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.recent-post-card:hover .recent-post-img img { transform: scale(1.05); }
.recent-post-info h4 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-top: 0.4rem;
  font-weight: 600;
  transition: color 0.2s;
}
.recent-post-card:hover .recent-post-info h4 { color: var(--rojo); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  section.blog-index { padding-top: 140px !important; }
  article.blog-post { padding-top: 140px !important; }
  .blog-grid, .recent-posts-grid, .home-blog-grid { grid-template-columns: 1fr; }
  .blog-post-title { font-size: 2rem; }
  .blog-pagination { margin-top: 3rem; padding-top: 2rem; }
  .blog-pagination-numbers { gap: 0.5rem; }
  .blog-page-nav {
    min-width: 40px;
    height: 40px;
    padding: 0 0.7rem;
    border-radius: 9px;
  }
  .blog-page-nav-label { display: none; }
  .blog-page-nav-icon { font-size: 1rem; }
  .blog-page-link {
    min-width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 0.85rem;
    padding: 0 0.65rem;
  }
  .share-links { grid-template-columns: 1fr; }
}

/* ── NAV WHATSAPP ── */
.nav-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #25D366;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(26,18,16,0.15);
}

/* ── PAGINAS DE ERROR ── */
.error-page {
  min-height: calc(100svh - 260px);
  display: grid;
  place-items: center;
  padding: 120px clamp(1.25rem, 5vw, 4rem) 5rem !important;
}
.error-shell {
  width: min(860px, 100%);
  background:
    radial-gradient(120% 120% at 15% 10%, color-mix(in srgb, var(--rojo) 8%, transparent) 0%, transparent 65%),
    color-mix(in srgb, var(--fondo-card) 88%, white 12%);
  border: 1px solid color-mix(in srgb, var(--borde) 75%, var(--texto) 25%);
  border-radius: 18px;
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: 0 18px 36px rgba(20, 14, 12, 0.08);
  text-align: center;
}
.error-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 0.8rem;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 0.95;
  color: var(--rojo);
  margin: 0 0 0.75rem;
}
.error-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
}
.error-text {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--texto-medio);
  line-height: 1.65;
}
.error-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .error-page {
    min-height: auto;
    padding: 90px 1.1rem 3.5rem !important;
    align-content: center;
  }
  .error-shell {
    border-radius: 14px;
    padding: 1.5rem 1.1rem;
  }
  .error-eyebrow {
    font-size: 0.64rem;
    margin-bottom: 0.6rem;
  }
  .error-code {
    font-size: clamp(3.5rem, 18vw, 5rem);
    margin: 0 0 0.5rem;
  }
  .error-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin: 0 0 0.6rem;
  }
  .error-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .error-actions {
    margin-top: 1.5rem;
    flex-direction: column;
    gap: 0.65rem;
  }
  .error-actions .btn-primary,
  .error-actions .btn-outline {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 390px) {
  .error-page {
    padding: 85px 0.9rem 3rem !important;
  }
  .error-shell {
    padding: 1.2rem 0.9rem;
    border-radius: 12px;
  }
  .error-code {
    font-size: 3.2rem;
  }
  .error-title {
    font-size: 1.35rem;
  }
  .error-text {
    font-size: 0.9rem;
  }
  .error-actions .btn-primary,
  .error-actions .btn-outline {
    padding: 0.8rem 1.2rem;
    font-size: 0.75rem;
  }
}
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  background: none;
  color: #111B21;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, box-shadow 0.2s;
}
.nav-search-btn:hover {
  color: #111B21;
  box-shadow: 0 2px 8px rgba(26,18,16,0.15);
}

.nav-whatsapp:hover img {
  opacity: 0.7;
}
.nav-whatsapp img {
  width: 22px;
  height: 22px;
  display: block;
}
html.theme-dark .nav-whatsapp img {
  filter: brightness(0) invert(1);
}
html.theme-dark .nav-whatsapp:hover img {
  filter: brightness(0) saturate(100%) invert(56%) sepia(97%) saturate(415%) hue-rotate(85deg) brightness(97%) contrast(93%);
}

/* ── HERO WHATSAPP BTN ── */
.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 2px solid rgba(37, 211, 102, 0.5);
  color: #25D366;
  width: 48px;
  height: 48px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.28s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-whatsapp-hero:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  width: 152px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.22);
}
.btn-whatsapp-hero:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
  width: 152px;
}
.btn-whatsapp-hero img {
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(56%) sepia(97%) saturate(415%) hue-rotate(85deg) brightness(97%) contrast(93%);
}
.btn-whatsapp-hero-text {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, max-width 0.28s ease, margin-left 0.28s ease, transform 0.22s ease;
}
.btn-whatsapp-hero:hover .btn-whatsapp-hero-text,
.btn-whatsapp-hero:focus-visible .btn-whatsapp-hero-text {
  opacity: 1;
  max-width: 90px;
  margin-left: 0.45rem;
  transform: translateX(0);
}
@media (pointer: coarse) {
  .btn-whatsapp-hero { width: auto; padding: 0 1.25rem 0 0.75rem; gap: 0.45rem; }
  .btn-whatsapp-hero .btn-whatsapp-hero-text {
    opacity: 1; max-width: 90px; margin-left: 0; transform: translateX(0);
  }
}

/* ── SERVICIOS WHATSAPP CTA ── */
.servicios-whatsapp-cta {
  margin-top: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.servicios-whatsapp-cta p {
  font-size: 0.9rem;
  color: var(--texto-medio);
}
.btn-whatsapp-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid #25D366;
  color: #25D366;
  padding: 0.85rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-whatsapp-outline:hover {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp-outline img {
  flex-shrink: 0;
  transition: filter 0.2s;
}
.btn-whatsapp-outline:hover img {
}

/* ── CONTACTO WHATSAPP ── */
.contacto-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.contacto-whatsapp-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.6;
}
.btn-whatsapp-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 2px solid rgba(37, 211, 102, 0.5);
  color: #25D366;
  width: 48px;
  height: 48px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.28s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-whatsapp-solid:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  width: 152px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.22);
}
.btn-whatsapp-solid:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
  width: 152px;
}
.btn-whatsapp-solid img {
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(56%) sepia(97%) saturate(415%) hue-rotate(85deg) brightness(97%) contrast(93%);
}
.btn-whatsapp-solid-text {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, max-width 0.28s ease, margin-left 0.28s ease, transform 0.22s ease;
}
.btn-whatsapp-solid:hover .btn-whatsapp-solid-text,
.btn-whatsapp-solid:focus-visible .btn-whatsapp-solid-text {
  opacity: 1;
  max-width: 90px;
  margin-left: 0.45rem;
  transform: translateX(0);
}

/* ── FOOTER WHATSAPP ── */
.footer-whatsapp-link:hover img {
  opacity: 1;
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.whatsapp-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.whatsapp-fab.dismissed {
  display: none;
}
.whatsapp-fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab-btn:hover {
  background: #1da851;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-fab-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.6rem;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 2px;
  transition: background 0.2s;
}
.whatsapp-fab-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Móvil: respetar safe area de iOS */
@media (max-width: 600px) {
  .whatsapp-fab {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    right: 1.25rem;
  }
  .whatsapp-fab-btn {
    width: 46px;
    height: 46px;
  }
  .whatsapp-fab-btn img {
    width: 24px;
    height: 24px;
  }
}

/* ═══════════════════════════════════════
   TIENDA — LISTADO
═══════════════════════════════════════ */
.tienda-listado-page {
  padding: calc(var(--nav-height) + 3.75rem) 1.25rem 4rem;
}
.tienda-listado-container {
  max-width: 1200px;
  margin: 0 auto;
}
.tienda-listado-header {
  text-align: center;
  margin-bottom: 4rem;
}
.tienda-listado-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rojo);
  border-left: 3px solid var(--rojo);
  padding-left: 0.8rem;
  margin-bottom: 1.5rem;
}
.tienda-listado-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--texto);
  margin-bottom: 1.2rem;
}
.tienda-listado-title em {
  font-style: normal;
  color: var(--rojo);
}
.tienda-listado-desc {
  max-width: 580px;
  margin: 0 auto;
  color: var(--texto-medio);
  font-size: 1rem;
  line-height: 1.75;
}
/* ── Tienda brand filter bar ── */
.tienda-marcas-bar {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--borde);
}
.tienda-marcas-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 1rem;
}
.tienda-marcas-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tienda-marca-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--borde);
  border-radius: 100px;
  background: var(--fondo-card);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--texto-medio);
}
.tienda-marca-chip:hover {
  border-color: var(--rojo);
  box-shadow: 0 2px 8px rgba(26,18,16,0.08);
}
.tienda-marca-chip.active {
  border-color: var(--rojo);
  background: var(--rojo);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184,35,42,0.2);
}
.tienda-marca-chip-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.tienda-marca-chip-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tienda-marca-chip.active .tienda-marca-chip-icon img {
  filter: brightness(0) invert(1);
}
.tienda-marca-chip-icon img[src*="gala-gar-welding"] {
  filter: brightness(0) saturate(100%) invert(17%) sepia(93%) saturate(2799%) hue-rotate(346deg) brightness(97%) contrast(110%);
}
html.theme-dark .tienda-marca-chip-icon img[src*="gala-gar-welding"] {
  filter: brightness(0) invert(1);
}
.tienda-marca-chip-name {
  font-weight: 500;
  white-space: nowrap;
}
html.theme-dark .tienda-marca-chip {
  background: var(--fondo-alt);
}
html.theme-dark .tienda-marca-chip:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tienda-categoria {
  margin-bottom: 3.5rem;
}
.tienda-categoria-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--texto);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--borde);
  margin-bottom: 1.8rem;
}
.tienda-productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}
.tienda-card {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.tienda-card:hover {
  border-color: var(--rojo);
  box-shadow: 0 6px 14px rgba(26,18,16,0.1);
}
html.theme-dark .tienda-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
.tienda-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tienda-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--fondo-alt);
}
.tienda-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.tienda-card:hover .tienda-card-img img {
  transform: scale(1.05);
}
.tienda-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  font-size: 0.82rem;
}
.tienda-card-body {
  padding: 1.2rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.tienda-card-brand {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 500;
}
.tienda-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--texto);
  margin: 0;
}
.tienda-card-code {
  font-size: 0.82rem;
  color: var(--texto-suave);
  margin-top: 0.2rem;
}
.tienda-card-cta {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rojo);
  transition: letter-spacing 0.2s;
}
.tienda-card:hover .tienda-card-cta {
  letter-spacing: 0.14em;
}
.tienda-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--texto-medio);
}
.tienda-empty p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════
   TIENDA — PÁGINA DE PRODUCTO
═══════════════════════════════════════ */
.producto-page {
  padding: calc(var(--nav-height) + 3.75rem) 1.25rem 4rem;
}
.producto-container {
  max-width: 1200px;
  margin: 0 auto;
}
.producto-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid var(--borde);
  width: auto;
  max-width: none;
  height: auto;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  white-space: normal;
  left: auto;
  top: auto;
  transform: none;
  z-index: auto;
  min-height: 42px;
}
.producto-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto-medio);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--borde);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.producto-nav-back:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}
.producto-nav-path {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  color: var(--texto-suave);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  white-space: nowrap;
}
.producto-nav-path a {
  color: var(--texto-medio);
  text-decoration: none;
  transition: color 0.2s;
}
.producto-nav-path a:hover {
  color: var(--rojo);
}
.producto-nav-sep {
  color: var(--borde-fuerte);
}
@media (max-width: 740px) {
  .producto-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    min-height: auto;
  }
  .producto-nav-path {
    position: static;
    left: auto;
    transform: none;
    white-space: normal;
  }
}
.producto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.producto-gallery {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
.producto-main-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--fondo-alt);
  border: 1px solid var(--borde);
  cursor: zoom-in;
}
.producto-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.producto-main-img:hover img {
  transform: scale(1.03);
}
.producto-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--texto-suave);
  font-size: 0.85rem;
  user-select: none;
}
.producto-img-zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10,8,7,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.producto-main-img:hover .producto-img-zoom-icon {
  opacity: 1;
}
.producto-img-zoom-icon svg {
  width: 20px;
  height: 20px;
}
.producto-img-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #fff;
  background: rgba(10,8,7,0.6);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.producto-main-img:hover .producto-img-hint {
  opacity: 1;
}
@media (pointer: coarse) {
  .producto-img-hint {
    opacity: 1;
  }
  .producto-img-zoom-icon {
    opacity: 1;
  }
  .producto-main-img:hover img {
    transform: none;
  }
}
/* Lightbox */
.producto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 8, 7, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
  padding: 2rem;
}
.producto-lightbox.open {
  opacity: 1;
  visibility: visible;
}
.producto-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.producto-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}
.producto-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: default;
}
@media (max-width: 600px) {
  .producto-lightbox {
    padding: 1rem;
  }
  .producto-lightbox img {
    max-width: 100vw;
    max-height: 85vh;
  }
}
.producto-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.producto-thumb {
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid var(--borde);
  background: var(--fondo-alt);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.producto-thumb.active,
.producto-thumb:hover {
  border-color: var(--rojo);
}
.producto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.producto-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.producto-eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}
.producto-eyebrow-logo {
  height: 28px;
  width: auto;
  display: block;
}
html.theme-dark .producto-eyebrow-logo {
  filter: brightness(0) invert(1);
}
.producto-eyebrow-logo[src*="gala-gar-welding"] {
  filter: brightness(0) saturate(100%) invert(17%) sepia(93%) saturate(2799%) hue-rotate(346deg) brightness(97%) contrast(110%);
}
html.theme-dark .producto-eyebrow-logo[src*="gala-gar-welding"] {
  filter: brightness(0) invert(1);
}
.producto-eyebrow-logo[src*="dogher"] {
  filter: brightness(0);
}
html.theme-dark .producto-eyebrow-logo[src*="dogher"] {
  filter: brightness(0) invert(1);
}
.producto-rel-logo[src*="dogher"] {
  filter: brightness(0);
  opacity: 1;
}
html.theme-dark .producto-rel-logo[src*="dogher"] {
  filter: brightness(0) invert(1);
}
.producto-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--texto);
  margin: 0;
}
.producto-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.producto-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.producto-meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-suave);
  font-weight: 500;
}
.producto-meta-value {
  font-size: 0.92rem;
  color: var(--texto);
}
.producto-divider {
  border: none;
  border-top: 1px solid var(--borde);
  margin: 0.5rem 0;
}

/* Atributos configurables */
.producto-atributos-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--texto);
}
.producto-atributo {
  margin-bottom: 1.2rem;
}
.producto-atributo-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--texto);
}
.producto-atributo-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.producto-atributo-option {
  position: relative;
  display: flex;
  cursor: pointer;
}
.producto-atributo-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.producto-atributo-option span {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border: 1px solid var(--borde);
  background: var(--fondo-card);
  color: var(--texto);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}
.producto-atributo-option:hover span {
  border-color: var(--borde-fuerte);
}
.producto-atributo-option.selected span,
.producto-atributo-option input:checked + span {
  border-color: var(--rojo);
  background: var(--rojo-pale);
  color: var(--rojo);
  font-weight: 500;
}

/* Acción: cantidad + añadir */
.producto-action {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.producto-qty label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--texto);
}
.producto-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--borde);
  overflow: hidden;
}
.producto-qty-control button {
  width: 40px;
  height: 42px;
  border: none;
  background: var(--fondo-card);
  color: var(--texto);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.producto-qty-control button:hover {
  background: var(--rojo-pale);
  color: var(--rojo);
}
.producto-qty-control input {
  width: 56px;
  height: 42px;
  border: none;
  border-left: 1px solid var(--borde);
  border-right: 1px solid var(--borde);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  background: var(--fondo-card);
  color: var(--texto);
  -moz-appearance: textfield;
}
.producto-qty-control input::-webkit-outer-spin-button,
.producto-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.producto-add-btn {
  padding: 0.5rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  border-radius: 999px;
  border: none;
  outline: none;
  white-space: nowrap;
}
.producto-desc {
  color: var(--texto-medio);
  line-height: 1.75;
  font-size: 0.95rem;
}
.producto-desc h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 0.6rem;
}
.producto-whatsapp {
  padding-top: 0.5rem;
}
.producto-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #25D366;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s, gap 0.2s;
}
.producto-whatsapp-link:hover {
  color: #1da851;
  gap: 0.65rem;
}

/* Producto responsive */
@media (max-width: 860px) {
  .producto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .producto-gallery {
    position: static;
  }
  .producto-meta {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .producto-page {
    padding: calc(var(--nav-height) + 2.75rem) 1rem 3rem;
  }
  .producto-meta {
    grid-template-columns: 1fr;
  }
  .producto-action {
    flex-direction: column;
    align-items: stretch;
  }
  .producto-add-btn {
    width: 100%;
    text-align: center;
  }
  .tienda-listado-page {
    padding: calc(var(--nav-height) + 2.75rem) 1rem 3rem;
  }
  .tienda-productos-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode: tienda */
html.theme-dark .tienda-card {
  background: var(--fondo-card);
  border-color: var(--borde);
}
html.theme-dark .tienda-card:hover {
  border-color: var(--rojo);
}
html.theme-dark .producto-main-img {
  background: var(--fondo-oscuro);
}
html.theme-dark .producto-atributo-option span {
  background: var(--fondo-card);
  border-color: var(--borde);
}
html.theme-dark .producto-atributo-option.selected span,
html.theme-dark .producto-atributo-option input:checked + span {
  border-color: var(--rojo);
  background: var(--rojo-pale);
}
html.theme-dark .producto-qty-control button,
html.theme-dark .producto-qty-control input {
  background: var(--fondo-card);
  color: var(--texto);
}

/* ═══════════════════════════════════════
   CART SIDEBAR
═══════════════════════════════════════ */
.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #111B21;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s, box-shadow 0.2s;
}
.nav-cart-btn:hover {
  color: #111B21;
  box-shadow: 0 2px 8px rgba(26,18,16,0.15);
}
.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--rojo);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}
.nav-cart-badge.pop {
  animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgePop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,8,7,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Panel */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: 420px;
  max-width: 100vw;
  background: var(--fondo);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(10,8,7,0.15);
}
.cart-panel.open {
  transform: translateX(0);
}

/* Header */
.cart-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--borde);
  flex-shrink: 0;
}
.cart-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--texto);
  margin: 0;
  flex: 1;
}
.cart-count {
  font-size: 0.82rem;
  color: var(--texto-suave);
  background: var(--fondo-card);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 500;
}
.cart-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--fondo-card);
  color: var(--texto-medio);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cart-close:hover {
  background: var(--rojo-pale);
  color: var(--rojo);
}

/* Body */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.92rem;
}
.cart-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  background: var(--rojo);
  color: var(--texto-on-accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.cart-empty-btn:hover {
  background: var(--rojo-oscuro);
  color: var(--texto-on-accent);
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: flex;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borde);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--fondo-alt);
  border: 1px solid var(--borde);
}
.cart-item-body {
  flex: 1;
  min-width: 0;
}
.cart-item-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--texto);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}
.cart-item-code {
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-bottom: 0.3rem;
}
.cart-item-attrs {
  font-size: 0.75rem;
  color: var(--texto-medio);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.cart-item-attrs em {
  font-style: normal;
  color: var(--texto-suave);
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--borde);
}
.cart-item-qty button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--fondo-card);
  color: var(--texto);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cart-item-qty button:hover {
  background: var(--rojo-pale);
  color: var(--rojo);
}
.cart-item-qty span {
  width: 36px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto);
  border-left: 1px solid var(--borde);
  border-right: 1px solid var(--borde);
  line-height: 30px;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--texto-suave);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.cart-item-remove:hover {
  color: var(--rojo);
}

/* Footer / Form */
.cart-footer {
  flex-shrink: 0;
  padding: 1.2rem 1.5rem 1.5rem;
  border-top: 1px solid var(--borde);
  background: var(--fondo-alt);
}
.cart-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cart-form .form-group {
  margin: 0;
}

/* Dark mode */
html.theme-dark .cart-panel {
  background: var(--fondo);
}
html.theme-dark .cart-footer {
  background: var(--fondo-alt);
}
html.theme-dark .cart-item {
  border-color: var(--borde);
}
html.theme-dark .cart-item-qty button,
html.theme-dark .cart-item-qty span {
  background: var(--fondo-card);
  color: var(--texto);
  border-color: var(--borde);
}
html.theme-dark .cart-close {
  background: var(--fondo-card);
  color: var(--texto-medio);
}
html.theme-dark .cart-count {
  background: var(--fondo-card);
}

/* Cart responsive */
@media (max-width: 480px) {
  .cart-panel {
    width: 100vw;
  }
  .cart-header {
    padding: 1rem 1rem 0.8rem;
  }
  .cart-body {
    padding: 0.8rem 1rem;
  }
  .cart-footer {
    padding: 1rem;
  }
}

/* Toast notification */
#cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  z-index: 10000;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s;
  opacity: 0;
  pointer-events: none;
}
#cart-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
html.theme-dark #cart-toast {
  background: #333;
  color: #eee;
}

/* ═══════════════════════════════════════
   SEARCH MODAL
═══════════════════════════════════════ */
.search-modal-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(26,18,16,0.65);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5rem 1.5rem 1.5rem;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.search-modal-box {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 3px;
  width: 100%; max-width: 580px;
  max-height: min(85svh, 620px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 1.2rem;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(26,18,16,0.18);
}
.search-modal-overlay.open .search-modal-box {
  transform: translateY(0);
}
.search-modal-close {
  position: absolute; top: 1rem; right: 1rem;
}
.search-input-wrap {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.search-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-suave);
  pointer-events: none;
  width: 20px;
  height: 20px;
}
.search-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  background: var(--fondo);
  border: 2px solid var(--borde);
  border-radius: 2px;
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--rojo);
}
.search-input::placeholder {
  color: var(--texto-suave);
}
.search-loading {
  display: none;
  justify-content: center;
  padding: 2rem 0;
}
.search-loading.visible {
  display: flex;
}
.search-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--borde);
  border-top-color: var(--rojo);
  border-radius: 50%;
  animation: searchSpin 0.7s linear infinite;
}
@keyframes searchSpin {
  to { transform: rotate(360deg); }
}

.search-results {
  flex: 1;
  overflow-y: auto;
  margin: 0 -0.5rem;
  padding: 0.5rem 0.5rem 0;
  min-height: 0;
}
.search-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.search-brands-label,
.search-products-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-suave);
  padding: 0 0.3rem;
}
.search-brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem 0.4rem 0.65rem;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 999px;
  text-decoration: none;
  color: var(--texto);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  cursor: pointer;
}
.search-brand-chip svg {
  flex-shrink: 0;
  color: var(--rojo);
}
.search-brand-chip:hover,
.search-brand-chip.highlighted {
  border-color: var(--rojo);
  background: var(--rojo-pale);
  color: var(--rojo);
}
.search-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.search-product-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 2px;
  text-decoration: none;
  color: var(--texto);
  cursor: pointer;
  transition: background 0.15s;
}
.search-product-item:hover,
.search-product-item.highlighted {
  background: var(--rojo-pale);
}
.search-product-img-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  border: 1px solid var(--borde);
  overflow: hidden;
  background: linear-gradient(90deg, var(--fondo-alt) 25%, var(--fondo-card) 50%, var(--fondo-alt) 75%);
  background-size: 200% 100%;
  animation: search-shimmer 1.2s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-product-img-wrap--loaded {
  animation: none !important;
  background: #fff !important;
}
.search-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.search-product-img.loaded {
  opacity: 1;
}
.search-product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  opacity: 0.5;
}
.search-product-body {
  flex: 1;
  min-width: 0;
}
.search-product-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--texto);
}
.search-product-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--texto-suave);
  margin-top: 0.1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.search-empty {
  text-align: center;
  padding: 2rem 1rem 1rem;
  color: var(--texto-suave);
  font-size: 0.9rem;
}
.search-empty.hidden {
  display: none;
}
.search-footer-note {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--borde);
  text-align: center;
}
.search-footer-hint {
  font-size: 0.68rem;
  color: var(--texto-suave);
}
.search-footer-hint kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-size: 0.6rem;
  font-family: var(--font-body);
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 2px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
  color: var(--texto-medio);
}
.search-no-results {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--texto-medio);
}
.search-no-results p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.search-no-results small {
  font-size: 0.8rem;
  color: var(--texto-suave);
}

@media (max-width: 600px) {
  .search-modal-overlay {
    padding: 3.5rem 1rem 1rem;
    align-items: flex-start;
  }
  .search-modal-box {
    max-height: calc(100svh - 4.5rem);
    padding: 1.5rem 1.2rem 1rem;
  }
  .search-input {
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    font-size: 0.95rem;
  }
  .search-input-icon {
    left: 0.8rem;
    width: 18px;
    height: 18px;
  }
  .search-product-title {
    font-size: 0.82rem;
  }
  .search-footer-hint {
    font-size: 0.62rem;
  }
}
@media (max-width: 390px) {
  .search-modal-overlay {
    padding: 3rem 0.8rem 0.8rem;
  }
  .search-modal-box {
    padding: 1.2rem 1rem 0.8rem;
  }
  .search-input {
    padding: 0.75rem 0.7rem 0.75rem 2.2rem;
    font-size: 0.9rem;
  }
}

/* ── SEARCH MODAL: "Ver todos" link ── */
.search-view-all-wrap {
  padding: 0.5rem 0.3rem 0.2rem;
  border-top: 1px solid var(--borde);
  margin-top: 0.5rem;
  text-align: center;
}
.search-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--rojo);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  transition: background 0.15s;
}
.search-view-all:hover {
  background: var(--rojo-pale);
}
.search-view-all-arrow {
  font-size: 1rem;
  transition: transform 0.15s;
}
.search-view-all:hover .search-view-all-arrow {
  transform: translateX(3px);
}

/* ── SEARCH RESULTS PAGE ── */
.buscar-page {
  min-height: 60vh;
}

.buscar-hero {
  background: var(--fondo-alt);
  border-bottom: 1px solid var(--borde);
  padding: calc(var(--nav-height) + 3rem) 1.5rem 2.5rem;
}
.buscar-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.buscar-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--texto);
}
.buscar-input-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.buscar-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-suave);
  pointer-events: none;
}
.buscar-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--fondo-card);
  border: 2px solid var(--borde);
  border-radius: 3px;
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s;
}
.buscar-input:focus {
  border-color: var(--rojo);
}
.buscar-input::placeholder {
  color: var(--texto-suave);
}
.buscar-count {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.buscar-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.buscar-loading {
  display: none;
  justify-content: center;
  padding: 3rem 0;
}
.buscar-loading.visible {
  display: flex;
}

.buscar-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--texto-suave);
}
.buscar-empty.hidden {
  display: none;
}
.buscar-empty-icon {
  display: inline-block;
  margin-bottom: 1rem;
  opacity: 0.3;
}
.buscar-empty p {
  font-size: 0.95rem;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.5;
}

.search-page-no-results {
  text-align: center;
  padding: 3rem 1rem;
}
.search-page-no-results-icon {
  display: inline-block;
  margin-bottom: 1rem;
  opacity: 0.25;
}
.search-page-no-results p {
  font-size: 1.05rem;
  color: var(--texto-medio);
  margin: 0 0 0.3rem;
}
.search-page-no-results-hint {
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.search-page-section {
  margin-bottom: 2.5rem;
}
.search-page-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-page-section-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--texto-suave);
  background: var(--fondo-alt);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.search-page-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-page-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  background: var(--fondo-alt);
  border: 1px solid var(--borde);
  border-radius: 999px;
  text-decoration: none;
  color: var(--texto);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.search-page-brand-chip svg {
  flex-shrink: 0;
  color: var(--rojo);
}
.search-page-brand-chip:hover {
  border-color: var(--rojo);
  background: var(--rojo-pale);
  color: var(--rojo);
}

.search-page-products {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.search-page-product-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 3px;
  text-decoration: none;
  color: var(--texto);
  transition: background 0.15s;
}
.search-page-product-item:hover {
  background: var(--rojo-pale);
}
.search-page-product-img-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 3px;
  border: 1px solid var(--borde);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-page-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.search-page-product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  opacity: 0.5;
}
.search-page-product-body {
  flex: 1;
  min-width: 0;
}
.search-page-product-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--texto);
}
.search-page-product-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-top: 0.15rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* ── SEARCH PAGE: Shimmer & animations ── */
@keyframes search-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes buscar-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-page-product-img-wrap {
  background: linear-gradient(90deg, var(--fondo-alt) 25%, var(--fondo-card) 50%, var(--fondo-alt) 75%);
  background-size: 200% 100%;
  animation: search-shimmer 1.2s ease infinite;
}
.search-page-product-img-wrap--loaded {
  animation: none !important;
  background: #fff !important;
}
.search-page-product-img {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.search-page-product-img.loaded {
  opacity: 1;
}

.search-page-product-item {
  animation: buscar-fade-in 0.3s ease both;
}
.search-page-product-item:nth-child(2) { animation-delay: 0.03s; }
.search-page-product-item:nth-child(3) { animation-delay: 0.06s; }
.search-page-product-item:nth-child(4) { animation-delay: 0.09s; }
.search-page-product-item:nth-child(5) { animation-delay: 0.12s; }
.search-page-product-item:nth-child(6) { animation-delay: 0.15s; }
.search-page-product-item:nth-child(7) { animation-delay: 0.18s; }
.search-page-product-item:nth-child(8) { animation-delay: 0.21s; }
.search-page-product-item:nth-child(9) { animation-delay: 0.24s; }
.search-page-product-item:nth-child(10) { animation-delay: 0.27s; }
.search-page-product-item:nth-child(11) { animation-delay: 0.30s; }
.search-page-product-item:nth-child(12) { animation-delay: 0.33s; }
.search-page-product-item:nth-child(n+13) { animation-delay: 0.36s; }

/* ── SEARCH PAGE: Pagination ── */
.buscar-pag-section {
  margin: 2rem 0;
}
.buscar-pag-section .tienda-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.buscar-pag-section .tienda-pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--borde);
  background: var(--fondo-card);
  color: var(--texto-medio);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  line-height: 1;
}
.buscar-pag-section .tienda-pag-btn:hover:not(:disabled) {
  border-color: var(--rojo);
  color: var(--rojo);
  background: var(--rojo-pale);
}
.buscar-pag-section .tienda-pag-btn.active {
  border-color: var(--rojo);
  background: var(--rojo);
  color: #fff;
}
.buscar-pag-section .tienda-pag-btn.is-disabled,
.buscar-pag-section .tienda-pag-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.buscar-pag-section .tienda-pag-ellipsis {
  color: var(--texto-suave);
  font-size: 0.85rem;
  padding: 0 0.2rem;
  user-select: none;
}
.buscar-pag-section .tienda-pag-info {
  font-size: 0.78rem;
  color: var(--texto-suave);
  text-align: center;
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .buscar-hero {
    padding: calc(var(--nav-height) + 2rem) 1rem 1.5rem;
  }
  .buscar-title {
    font-size: 1.4rem;
  }
  .buscar-input {
    padding: 0.85rem 0.85rem 0.85rem 2.6rem;
    font-size: 1rem;
  }
  .buscar-body {
    padding: 1.5rem 1rem 3rem;
  }
  .search-page-product-img-wrap {
    width: 44px;
    height: 44px;
  }
  .search-page-product-title {
    font-size: 0.85rem;
  }
}
