/* ============================================
   FERRETERÍA MIS ABUELOS — styles.css
   Colores: Bandera Alemana (Negro, Rojo, Oro)
   ============================================ */

:root {
  --black:       #1A1A1A;
  --black-soft:  #2C2C2C;
  --red:         #F97316;
  --red-dark:    #C25A0A;
  --red-text:    #B45309; /* orange accesible en fondos claros: 4.97:1 contra #F2F2F2 */
  --gold:        #FFCE00;
  --gold-dark:   #D4A900;
  --white:       #FAFAFA;
  --gray-light:  #F2F2F2;
  --gray-mid:    #888;
  --gray-border: #E0E0E0;
}

/* ─── RESET ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 68px;
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}
.nav-logo span {
  color: #aaa;
  font-weight: 300;
  font-size: .72rem;
  display: block;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

/* ─── HERO ─── */
#inicio {
  min-height: 100vh;
  background-color: #0d0d0d;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.78) 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.88) 100%),
    url('https://images.unsplash.com/photo-1567361808960-dec9cb578182?w=1920&q=85&fm=jpg&fit=crop');
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 6% 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  text-align: left;
  padding: 0;
  max-width: 100%;
  animation: fadeUp .9s ease both;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-weight: 400;
  color: var(--white);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  white-space: nowrap;
}
.hero-title em {
  display: inline;
  color: var(--gold);
  font-style: normal;
}
.hero-title-sub {
  display: block;
  font-size: 0.2em;
  letter-spacing: 10px;
  color: rgba(255,207,0,.6);
  margin-bottom: 0.35em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-desc {
  color: rgba(250,250,250,.5);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  max-width: 48ch;
  margin: 2rem 0 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-p {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--black);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: 14px 36px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-p:hover { background: var(--white); transform: translateY(-2px); }
.btn-s {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: 1px;
  padding: 14px 28px;
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.btn-s:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,207,0,.06); }

.hero-wa-hint {
  margin-top: 1.2rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.hero-wa-hint a {
  color: rgba(255,207,0,.75);
  text-decoration: none;
  transition: color .2s;
}
.hero-wa-hint a:hover { color: var(--gold); }

/* Línea dorada simple — reemplaza tri-div en Categorías y Destacados */
.sec-gold-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* Accesibilidad: oculto visualmente pero legible por screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Stats bar dorada anclada al fondo del hero */
.hero-stats-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--gold);
  display: flex;
  align-items: stretch;
  height: 72px;
  z-index: 10;
}
.hsb-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2.5rem;
  flex: 1;
  gap: 1px;
}
.hsb-item strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: .5px;
}
.hsb-item span {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0,0,0,.5);
  font-weight: 600;
}
.hsb-div {
  width: 1px;
  margin: 14px 0;
  background: rgba(0,0,0,.15);
}
.scroll-hint { display: none; }

/* ─── BUSCADOR ─── */
#buscador-section {
  background: var(--black-soft);
  padding: 10px 5%;
  position: sticky;
  top: 68px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.search-wrap {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 9px 46px 9px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .9rem;
  font-weight: 300;
  border: 2px solid #444;
  background: #111;
  color: var(--white);
  outline: none;
  transition: border-color .2s;
  letter-spacing: .5px;
}
.search-wrap input::placeholder { color: #666; }
.search-wrap input:focus { border-color: var(--gold); }
.search-icon {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
}
.search-icon svg { width: 18px; height: 18px; }
.result-count {
  text-align: center;
  margin-top: 10px;
  font-size: .82rem;
  color: #888;
  letter-spacing: 1px;
  min-height: 18px;
}
.result-count span { color: var(--gold); font-weight: 700; }

/* ─── FILTROS DE CATEGORÍA ─── */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 0 5%;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  padding: 16px 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  color: #999;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.cat-btn:hover { color: var(--black); }
.cat-btn.active { color: var(--black); border-bottom-color: var(--red); }

/* ─── SECCIÓN PRODUCTOS ─── */
#productos { background: var(--gray-light); padding: 60px 5%; }

.no-results { text-align: center; padding: 80px 20px; display: none; }
.no-results.visible { display: block; }
.no-results .nr-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.no-results h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--black);
  margin-bottom: .5rem;
}
.no-results p { color: #999; font-size: .95rem; }

.cat-section { margin-bottom: 60px; }
.cat-section.hidden { display: none; }

.cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-border);
}
.cat-icon-h { font-size: 1.8rem; }
.cat-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
}
.cat-stripe { flex: 1; height: 3px; display: flex; overflow: hidden; }
.cat-stripe div { flex: 1; }
.cat-count {
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 700;
}

/* ─── TARJETAS DE PRODUCTO ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.product-card.hidden { display: none; }

.product-img {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Fondos por categoría */
.ci-herramientas { background: #1A1A1A; }
.ci-fijaciones   { background: #2a2a2a; }
.ci-pinturas     { background: #8b0000; }
.ci-electricidad { background: #1a1a2e; }
.ci-plomeria     { background: #003060; }
.ci-construccion { background: #3a2a00; }
.ci-jardin       { background: #1a3a1a; }
.ci-seguridad    { background: #2a1a00; }

.product-body { padding: .8rem; flex: 1; display: flex; flex-direction: column; }
.product-cat-tag {
  font-size: .62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: .3rem;
}
.product-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: .3rem;
  line-height: 1.2;
}
.product-desc {
  font-size: .78rem;
  color: #777;
  line-height: 1.5;
  font-weight: 300;
  flex: 1;
  margin-bottom: .6rem;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-border);
  padding-top: .6rem;
  margin-top: auto;
}
.product-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.product-price sup {
  font-size: .75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  vertical-align: super;
  color: var(--red);
}
.btn-card {
  background: var(--black);
  color: var(--gold);
  border: none;
  padding: 6px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.btn-card:hover { background: var(--red); color: var(--white); }

/* ─── SOBRE NOSOTROS ─── */
#nosotros {
  background: #0d0d0d;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 520px;
}
.nos-visual {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.nos-year-bg {
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22rem;
  color: rgba(255,207,0,.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 0;
}
.flag-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}
.fb-black { background: #141414; color: rgba(255,207,0,.7); }
.fb-red   { background: var(--red); color: var(--white); }
.fb-gold  { background: var(--gold); color: #111; }
.nos-text {
  flex: 1;
  padding: 70px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sec-label {
  font-size: .72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: .8rem;
}
.sec-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.tri-div { display: flex; width: 60px; height: 4px; margin-bottom: 1.5rem; overflow: hidden; }
.tri-div div { flex: 1; }

.nos-text .sec-title { color: var(--white); }
.nos-text p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.nos-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: 'Source Sans 3', sans-serif;
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .3px;
}
.nos-dot { color: var(--gold); opacity: .5; font-size: 1.1rem; }

/* ─── GALERÍA ─── */
#galeria { background: var(--gray-light); padding: 100px 5%; }
.gal-header { text-align: center; max-width: 560px; margin: 0 auto 4rem; }
.gal-header .tri-div { margin: 0 auto 1.5rem; }
.gal-header .sec-title { color: var(--black); }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}
.gal-item {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: transform .3s;
}
.gal-item:hover { transform: scale(.98); }
.gal-item.large { grid-column: span 2; min-height: 280px; }
.gal-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 2rem;
  text-align: center;
  width: 100%; height: 100%;
}
.gp-icon { font-size: 3rem; }
.gp-label { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; font-weight: 700; }
.gp-sub   { font-size: .8rem; font-weight: 300; }

.gal-item:nth-child(1) .gal-ph { background: #1A1A1A; }
.gal-item:nth-child(1) .gp-label { color: var(--gold); }
.gal-item:nth-child(1) .gp-sub   { color: #888; }
.gal-item:nth-child(2) .gal-ph { background: var(--red); }
.gal-item:nth-child(2) .gp-label { color: var(--white); }
.gal-item:nth-child(2) .gp-sub   { color: rgba(255,255,255,.6); }
.gal-item:nth-child(3) .gal-ph { background: var(--gold); }
.gal-item:nth-child(3) .gp-label { color: var(--black); }
.gal-item:nth-child(3) .gp-sub   { color: #555; }
.gal-item:nth-child(4) .gal-ph { background: #2C2C2C; }
.gal-item:nth-child(4) .gp-label { color: var(--gold); }
.gal-item:nth-child(4) .gp-sub   { color: #888; }
.gal-item:nth-child(5) .gal-ph { background: var(--red-dark); }
.gal-item:nth-child(5) .gp-label { color: var(--white); }
.gal-item:nth-child(5) .gp-sub   { color: rgba(255,255,255,.6); }

/* ─── FOOTER ─── */
footer {
  background: #080808;
  padding: 0;
  border-top: 3px solid var(--gold);
}
.footer-flag { display: none; }
.footer-body {
  padding: 4rem 5% 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 4rem;
  align-items: start;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: .9;
  letter-spacing: 1px;
}
.footer-brand span {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  font-weight: 400;
  margin-top: 8px;
}
.footer-info p {
  color: rgba(255,255,255,.62);
  font-size: .88rem;
  line-height: 2;
}
.footer-info a { color: var(--gold); text-decoration: none; }
.footer-info a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.2);
  font-size: .75rem;
  letter-spacing: 1px;
}

/* ─── ANIMACIONES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ─── MENÚ HAMBURGUESA (mobile nav) ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 250;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 190;
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-overlay.open { display: block; opacity: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  /* Hero mobile */
  #inicio { padding: 100px 6% 88px; }
  .hero-title { white-space: normal; font-size: clamp(3rem, 14vw, 5.5rem); }
  .hero-stats-bar { height: auto; flex-wrap: wrap; }
  .hsb-item { padding: .6rem 1.2rem; min-width: 45%; }
  .hsb-div { display: none; }

  /* Nosotros mobile */
  #nosotros { flex-direction: column; min-height: auto; }
  .nos-visual { flex: none; height: 240px; }
  .nos-year-bg { font-size: 12rem; }
  .nos-text { padding: 50px 6%; }

  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gal-item.large { grid-column: span 2; }

  .btn-s { margin-left: 0; }

  /* Nav: ocultar links, mostrar hamburguesa, menú deslizable desde la derecha */
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    padding: 90px 1.5rem 2rem;
    z-index: 220;
    transition: right .3s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,.4);
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  /* Hero */
  .hero-desc { font-size: .95rem; padding: 0 .5rem; }
  .btn-p, .btn-s { display: block; width: 100%; text-align: center; box-sizing: border-box; }
  .btn-s { margin-top: .8rem; }

  /* Buscador */
  .search-wrap input { font-size: .85rem; }

  /* Grillas de tarjetas */
  .cat-cards-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .dest-grid { gap: 12px; }
  .dest-card { flex: 0 0 160px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

  /* Encabezado de categoría */
  .cat-page-header { padding: 22px 5%; }

  /* Footer */
  .footer-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  /* Botón flotante de presupuesto: subir un poco para no chocar con WhatsApp en pantallas chicas */
  #pres-float { bottom: 92px; right: 18px; width: 52px; height: 52px; }
  .whatsapp-float { bottom: 20px; right: 18px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
  .cat-cards-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dest-card { flex: 0 0 140px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-title { font-size: clamp(4rem, 18vw, 6rem); line-height: .88; }
  #inicio { padding: 90px 5% 80px; }
  #pres-panel { width: 100%; right: -100%; }

  /* Secciones: menos padding vertical */
  #productos { padding: 28px 4%; }
  #categorias, #subcategorias { padding-bottom: 2rem; }

  /* Cat cards: más compactas */
  .cat-card-img { height: 110px; }
  .cat-card:hover .cat-card-img { height: 110px; }
  .cat-card-body { padding: .85rem 1rem 1rem; }
  .cat-card-body h3 { font-size: 1.1rem; margin-bottom: .25rem; }
  .cat-card-desc { display: none; }

  /* Product cards: imagen más chica, desc 2 líneas, botón touch-friendly */
  .product-img { height: 115px; }
  .product-body { padding: .65rem; }
  .product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn-presupuesto { min-height: 40px; padding: .55rem; }
}

/* ─── SECCIÓN CATEGORÍAS (index) ─── */
#categorias, #subcategorias {
  background: #111;
  padding: 2rem 5% 4rem;
}
.sec-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}
.sec-header .tri-div { margin: 0 auto 1rem; }
.sec-title-dark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: .5px;
}
.sec-desc { color: rgba(255,255,255,.62); font-size: .95rem; line-height: 1.6; }

/* Grilla de tarjetas de categoría */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.cat-card {
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  transition: transform .3s cubic-bezier(0.2, 0, 0, 1), box-shadow .3s;
  position: relative;
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0,0,0,.7);
  z-index: 2;
}
.cat-card-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: height .3s cubic-bezier(0.2, 0, 0, 1);
}
.cat-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
.cat-card:hover .cat-card-img { height: 170px; }
.cat-card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.9);
  transition: transform .3s cubic-bezier(0.2, 0, 0, 1);
}
.cat-card-icon svg { width: 80px; height: 80px; }
.cat-card:hover .cat-card-icon { transform: scale(1.12); }
.cat-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
  transition: background .3s;
}
.cat-card:hover .cat-card-img-overlay { background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%); }
.cat-card-body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; }
.cat-card-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
  letter-spacing: .5px;
}
.cat-card-body p { font-size: .84rem; color: rgba(255,255,255,.42); line-height: 1.5; margin-bottom: .5rem; }
.cat-card-desc { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: .4rem !important; font-style: italic; }
.cat-card-count { font-size: .78rem; color: rgba(255,255,255,.38); margin-bottom: .8rem !important; }
.cat-card-link {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  transition: letter-spacing .2s;
}
.cat-card:hover .cat-card-link { letter-spacing: 3px; }
.cat-card-stripe {
  display: flex;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-card-stripe div { flex: 1; }
.cat-card:hover .cat-card-stripe { transform: scaleX(1); }

/* Cat-cards mobile — override aquí (después del base) para ganar la cascada */
@media (max-width: 480px) {
  .cat-cards-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-card-img { height: 110px; }
  .cat-card:hover .cat-card-img { height: 110px; }
  .cat-card-body { padding: .85rem 1rem 1rem; }
  .cat-card-body h3 { font-size: 1.1rem; margin-bottom: .25rem; }
  .cat-card-desc { display: none; }
}

/* ─── ENCABEZADO DE PÁGINA DE CATEGORÍA ─── */
.cat-page-header {
  padding: 28px 5%;
  margin-top: 68px;
  position: relative;
  overflow: hidden;
}
.cat-page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,.08) 0%, transparent 60%);
  pointer-events: none;
}
.cat-page-header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1rem;
  max-width: none;
}
.back-link {
  flex: 0 0 100%;
  display: inline-block;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: 1px;
  margin-bottom: .4rem;
  transition: color .2s;
}
.back-link:hover { color: var(--gold); }
.cat-page-icon {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cat-page-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
}
.cat-page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0;
}
.cat-page-desc {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  font-weight: 300;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,.2);
}
@media (max-width: 600px) {
  .cat-page-desc {
    flex: 0 0 100%;
    border-left: none;
    padding-left: 0;
    padding-top: .3rem;
  }
}

/* ─── LAZY LOADING — tarjetas aparecen al hacer scroll ─── */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.lazy-card {
  opacity: 0;
  transform: translateY(28px);
}
.lazy-card.visible {
  animation: cardReveal 0.5s ease var(--reveal-delay, 0s) both;
}
/* Escalonado por posición */
.lazy-card:nth-child(2)  { --reveal-delay: .06s; }
.lazy-card:nth-child(3)  { --reveal-delay: .12s; }
.lazy-card:nth-child(4)  { --reveal-delay: .18s; }
.lazy-card:nth-child(5)  { --reveal-delay: .24s; }
.lazy-card:nth-child(6)  { --reveal-delay: .30s; }
.lazy-card:nth-child(7)  { --reveal-delay: .36s; }
.lazy-card:nth-child(8)  { --reveal-delay: .42s; }

/* ─── RESULTADOS DE BÚSQUEDA GLOBAL ─── */
#search-results {
  background: var(--gray-light);
  padding: 40px 5%;
}
.sr-hidden { display: none; }
.sr-header { margin-bottom: 1.5rem; }

/* Badge de categoría en tarjeta de resultado */
.product-cat-tag a {
  color: var(--red-text);
  text-decoration: none;
  font-weight: 700;
}
.product-cat-tag a:hover { text-decoration: underline; }

/* ─── REDES SOCIALES EN FOOTER ─── */
.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2a2a2a;
  transition: background .25s, transform .2s;
  text-decoration: none;
}
.footer-social a:hover { transform: translateY(-3px); }
.footer-social a.fb:hover  { background: #1877F2; }
.footer-social a.ig:hover  { background: radial-gradient(circle at 30% 110%, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social a svg { width: 18px; height: 18px; fill: #fff; }

/* ─── BOTÓN FLOTANTE WHATSAPP ─── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: waPulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ─── RESALTADO DE PRODUCTO AL LLEGAR DESDE BUSCADOR ─── */
.product-highlight {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  transition: outline 0.3s ease;
}

/* ─── DROPDOWN DE BÚSQUEDA ─── */
.search-wrap { position: relative; }

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  z-index: 300;
  max-height: 420px;
  overflow-y: auto;
}
.search-dropdown.active { display: block; }

.dd-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid var(--gray-border);
  transition: background .15s;
}
.dd-item:last-child { border-bottom: none; }
.dd-item:hover { background: var(--gray-light); }

.dd-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 4px;
}

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

.dd-nombre {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd-nombre mark {
  background: var(--gold);
  color: var(--black);
  padding: 0 2px;
  border-radius: 2px;
}

.dd-cat {
  font-size: .75rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.dd-precio {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}
.dd-precio sup {
  font-size: .65rem;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--red);
  vertical-align: super;
}

.dd-empty {
  padding: 1.2rem 1.2rem 1rem;
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.dd-wa-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .5px;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  width: fit-content;
  transition: background .2s, transform .15s;
}
.dd-wa-link:hover { background: #1ebe5d; transform: translateY(-1px); }

/* ─── MAPA EN FOOTER ─── */
.footer-map {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
}
.footer-map iframe {
  width: 100%;
  height: 180px;
  display: block;
  filter: grayscale(30%) contrast(1.1);
  transition: filter .3s;
}
.footer-map iframe:hover { filter: grayscale(0%) contrast(1); }

/* ─── CÓDIGO DE PRODUCTO ─── */
.product-codigo {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: .3rem;
}

/* ─── CATEGORÍA VARIOS ─── */
.ci-varios { background: #3a3a3a; }

/* ─── MIGAS DE PAN ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.2rem;
  font-size: .8rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.4); }
.breadcrumb span:last-child { color: var(--gold); font-weight: 700; }

/* ─── DROPDOWN SUBCATEGORÍA ─── */
.dd-subcat {
  font-size: .68rem;
  color: #aaa;
  margin-left: 4px;
}

/* ═══════════════════════════════════════════
   SISTEMA DE PRESUPUESTO
   ═══════════════════════════════════════════ */

/* ─── Botón flotante ─── */
#pres-float {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 58px;
  height: 58px;
  background: var(--black);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s, background .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
#pres-float:hover { transform: scale(1.1); background: #222; }
#pres-float.tiene-items { background: var(--black); border-color: var(--gold); }

.pres-icon { font-size: 1.4rem; }

.pres-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.pres-badge.bounce {
  animation: badgePop .25s ease-out;
}
@keyframes badgePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ─── Overlay ─── */
#pres-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
#pres-overlay.open { display: block; }

/* ─── Panel lateral ─── */
#pres-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 95vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.2);
}
#pres-panel.open { right: 0; }

.pres-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  background: var(--black);
  border-bottom: 3px solid var(--gold);
}
.pres-panel-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
}
.pres-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s;
}
.pres-close:hover { color: var(--gold); }

/* ─── Cuerpo del panel ─── */
.pres-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 0;
}

/* Estado vacío */
.pres-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #aaa;
  gap: 1rem;
}
.pres-empty-icon { font-size: 3rem; }
.pres-empty p { font-size: .9rem; line-height: 1.6; }

/* ─── Items del presupuesto ─── */
.pres-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: .3rem .5rem;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.pres-item:hover { background: #fafafa; }

.pres-item-info { grid-column: 1; }
.pres-item-nombre {
  font-size: .88rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}
.pres-item-cod {
  font-size: .72rem;
  color: #aaa;
  margin-top: 2px;
}
.pres-item-precio {
  font-size: .78rem;
  color: var(--red);
  font-weight: 700;
  margin-top: 3px;
}

.pres-item-controles {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .3rem;
}
.pres-qty-btn {
  width: 26px; height: 26px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.pres-qty-btn:hover { background: var(--red); }
.pres-qty {
  font-size: .9rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.pres-delete {
  background: none;
  border: none;
  font-size: .9rem;
  cursor: pointer;
  padding: 2px 6px;
  color: #ccc;
  transition: color .2s;
  margin-left: 4px;
}
.pres-delete:hover { color: var(--red); }

.pres-item-subtotal {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  text-align: right;
  white-space: nowrap;
}

/* ─── Footer del panel ─── */
.pres-panel-footer {
  padding: 1.2rem 1.4rem;
  background: #fafafa;
  border-top: 1px solid #eee;
}
.pres-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .3rem;
  font-weight: 700;
  font-size: .95rem;
}
.pres-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--black);
}
.pres-aviso {
  font-size: .72rem;
  color: #aaa;
  margin-bottom: 1rem;
  font-style: italic;
}

.pres-nota {
  width: 100%;
  min-height: 64px;
  max-height: 120px;
  padding: .55rem .7rem;
  margin-bottom: .8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .82rem;
  color: #333;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .2s;
}
.pres-nota:focus { outline: none; border-color: var(--gold); }
.pres-nota::placeholder { color: #bbb; }

.pres-btn-wa {
  width: 100%;
  padding: .9rem;
  background: #25D366;
  color: #fff;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: background .2s;
  margin-bottom: .6rem;
}
.pres-btn-wa:hover { background: #1da851; }

.pres-btn-limpiar {
  width: 100%;
  padding: .6rem;
  background: none;
  border: 1px solid #ddd;
  color: #aaa;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
}
.pres-btn-limpiar:hover { border-color: var(--red); color: var(--red); }

/* ─── Botón en tarjetas ─── */
.btn-presupuesto {
  width: 100%;
  padding: .5rem;
  background: none;
  border: 1.5px solid var(--gold);
  color: var(--black);
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .2s;
  margin-top: .4rem;
}
.btn-presupuesto:hover { background: var(--gold); }
.btn-presupuesto.agregado { background: var(--gold); }

/* ═══════════════════════════════════════════
   PRODUCTOS DESTACADOS
   ═══════════════════════════════════════════ */
#destacados {
  background: #0d0d0d;
  padding: 5rem 5% 4rem;
}

.dest-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dest-nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,207,0,.08);
  color: var(--gold);
  border: 1px solid rgba(255,207,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  padding: 0;
  line-height: 1;
}
.dest-nav:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.dest-grid {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: .5rem 0 1rem;
}
.dest-grid::-webkit-scrollbar { display: none; }

.dest-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #161616;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
  transition: transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .3s, border-color .3s;
  border: 1px solid rgba(255,255,255,.07);
  border-top: 3px solid rgba(255,207,0,.25);
  cursor: pointer;
  position: relative;
}
.dest-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.dest-card:hover::after { transform: scaleX(1); }
.dest-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(0,0,0,.8),
              0 0 0 1px rgba(255,207,0,.8),
              0 0 12px 2px rgba(255,207,0,.45),
              0 0 32px 6px rgba(255,207,0,.2);
  border-color: rgba(255,207,0,.9);
  border-top-color: transparent;
}

.dest-card-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  overflow: hidden;
  background: #111;
  position: relative;
}
.dest-card-img::after {
  content: 'VER PRODUCTO →';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: .8rem;
  letter-spacing: 2.5px;
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: background .3s, opacity .3s, transform .3s;
}
.dest-card:hover .dest-card-img::after {
  background: rgba(0,0,0,.3);
  opacity: 1;
  transform: translateY(0);
}
.dest-card-img-foto { background: #f0f0f0; }
.dest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .35s ease;
}
.dest-card:hover .dest-card-img img { transform: scale(1.06); }

.dest-card-body {
  padding: .85rem 1rem;
  border-top: 1px solid rgba(255,255,255,.05);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.dest-codigo {
  font-size: .58rem;
  color: rgba(255,255,255,.25);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.dest-card-body h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dest-card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  color: var(--gold);
  line-height: 1;
  margin-top: .4rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255,207,0,.12);
}
.dest-card-price sup {
  font-size: .75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  vertical-align: super;
  color: rgba(255,207,0,.55);
}

/* ═══════════════════════════════════════════
   CARRUSEL DE PROMOS BANCARIAS
   ═══════════════════════════════════════════ */
.promo-carousel {
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  background: transparent;
  border: none;
  overflow: hidden;
}

.promo-slides {
  position: relative;
  width: 100%;
}

.promo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.promo-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* Dots */
.promo-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.promo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 17px solid transparent; /* área táctil 44px sin cambiar visual */
  box-sizing: content-box;
  background-clip: content-box;
  outline: 1px solid rgba(255,255,255,.6);
  outline-offset: -17px;
  cursor: pointer;
  padding: 0;
  transition: background .25s;
}
.promo-dot.active {
  background: var(--gold);
  background-clip: content-box;
  outline-color: var(--gold);
}

/* Navegación */
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: var(--gold);
  border: 1px solid var(--gold);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  transition: background .2s;
  padding: 0;
  line-height: 1;
}
.promo-nav:hover { background: var(--gold); color: var(--black); }
.promo-prev { left: 14px; }
.promo-next { right: 14px; }

/* Fallback */
.promo-fallback {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  color: #fff;
}
.promo-carousel.sin-promo .promo-slides,
.promo-carousel.sin-promo .promo-dots,
.promo-carousel.sin-promo .promo-nav { display: none; }
.promo-carousel.sin-promo .promo-fallback { display: block; }

.promo-fallback .promo-label {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
}
.promo-fallback h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: .6rem;
}
.promo-fallback p {
  font-size: .9rem;
  color: #aaa;
}
.promo-fallback code {
  background: rgba(255,255,255,.1);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--gold);
  font-family: monospace;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY OVERRIDES — Bebas Neue → Source Sans 3
   Elementos con texto legible mixto no usan Bebas (all-caps display)
   ═══════════════════════════════════════════ */
.product-name,
.cat-card-body h3,
.gp-label,
.hero-sub,
.pres-panel-header h3,
.promo-fallback h3,
.flag-block {
  font-family: 'Source Sans 3', sans-serif;
}

/* Bebas Neue: letter-spacing para impacto en títulos grandes */
.hero-title,
.sec-title,
.sec-title-dark,
.cat-page-title {
  letter-spacing: 0.04em;
}

/* sec-label en fondos claros: override a --red-text para pasar WCAG AA */
#categorias .sec-label,
#destacados .sec-label { color: var(--red-text); }

/* ─── SVG ICONS: search ─── */
.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.search-icon svg { stroke: #888; width: 20px; height: 20px; }

/* ─── SVG ICONS: no-results ─── */
.no-results .nr-icon {
  font-size: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.no-results .nr-icon svg { width: 56px; height: 56px; stroke: #ccc; }

/* ─── product-img-foto: suprimir texto residual cuando hay imagen real ─── */
.product-img-foto { font-size: 0; }

/* Categorías con imágenes de packaging horizontal: cover para llenar el espacio */
.cat-varios .product-img img { object-fit: cover; }

/* ─── TEXT WRAP ─── */
.sec-title, .sec-title-dark, .nos-text h2, .cat-page-title,
.no-results h3, .promo-fallback h3, .dest-card-body h4 {
  text-wrap: balance;
}

/* ─── STATS BAR WA LINK ─── */
.hsb-wa {
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.hsb-wa:hover { background: rgba(0,0,0,.08); }
.hsb-wa strong { color: #1a1a1a; }

/* ─── PROMO LABEL ICON ─── */
.promo-label { display: inline-flex; align-items: center; gap: 6px; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
  .cat-card-stripe { transition: none; }
  .pres-badge.bounce { animation: none; }
  .fadeUp, [data-fadeup] { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-content { animation: none; opacity: 1; transform: none; }
  .lazy-card, .lazy-card.visible { opacity: 1 !important; transform: none !important; animation: none !important; }
  .whatsapp-float { animation: none; }
}
