/* ============================================================
   Borrego & Co. landing page
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --bg:        #fafaf7;
  --bg-alt:    #f5f0e8;
  --dark:      #1a1a1a;
  --gold:      #8b6914;
  --text:      #1a1a1a;
  --muted:     #6b6560;
  --border:    #e8e2d8;

  --serif: 'Playfair Display', serif;
  --sans:  'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
}

.nav.scrolled {
  background: rgba(250, 250, 247, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

.nav__brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav__crest { height: 46px; width: auto; }

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.35s;
}

.nav.scrolled .nav__name { color: var(--text); }

.nav__est {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 3px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}

.nav.scrolled .nav__link { color: var(--muted); }
.nav__link:hover { color: var(--gold) !important; }

.nav__cta {
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.nav__cta:hover { background: var(--gold); }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s, top 0.3s, background 0.3s;
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 25px; }
.nav.scrolled .nav__toggle span { background: var(--text); }
.nav.is-open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ============================================================
   Shared section helpers
   ============================================================ */
.section { padding: 6.5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.eyebrow {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.section-lead {
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.85;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* WhatsApp button (filled dark) */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-wa:hover { background: var(--gold); }
.btn-wa--sm { padding: 0.7rem 1.3rem; font-size: 0.72rem; }

/* Ghost button (on dark backgrounds) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.6) 55%, rgba(10,10,10,0.3) 100%),
    url('https://images.unsplash.com/photo-1582552938357-32b906df40cb?w=1920&q=85&fit=crop') center / cover no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 2.5rem 0 clamp(2rem, 8vw, 9rem);
}

.hero__crest { height: 120px; width: auto; margin-bottom: 2rem; }

.hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.hero__lead {
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ============================================================
   Photo strip (marquee under the hero)
   ============================================================ */
.strip {
  background: var(--dark);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(139, 105, 20, 0.35);
}

.strip__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }

.strip__track img {
  height: 180px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  filter: saturate(0.9);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Productos
   ============================================================ */
.productos { background: var(--bg); }
.productos__head { text-align: center; }
.productos__lead { margin: 0 auto 2.25rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.75rem;
}

.filter {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { border-color: var(--gold); color: var(--text); }
.filter.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.35s, transform 0.35s;
}
.product-card:hover {
  box-shadow: 0 18px 40px rgba(26, 23, 20, 0.12);
  transform: translateY(-4px);
}

.product-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-alt);
  cursor: zoom-in;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__count {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(20, 18, 16, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.4rem;
}

.product-card__tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.45rem;
}

.product-card__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.product-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s;
}
.product-card__cta svg { color: var(--gold); }
.product-card__cta:hover { color: var(--gold); }

/* ============================================================
   Materiales
   ============================================================ */
.materiales { background: var(--bg-alt); }
.materiales__head { max-width: 560px; margin-bottom: 3.5rem; }

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.material-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
}

.material-card__icon {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--gold);
}

.material-card__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.material-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   Historia
   ============================================================ */
.historia { background: var(--bg); }

.hist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hist-figure { position: relative; }

.hist-figure__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  filter: sepia(0.12) contrast(1.03);
}

.hist-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 3px solid var(--gold);
}

.hist-badge__year {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
}

.hist-badge__place {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.hist-body .section-title { margin-bottom: 0; }
.hist-body .rule { width: 42px; margin: 1.2rem 0; }

.hist-body p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}
.hist-body p:last-child { margin-bottom: 0; }

/* ============================================================
   Por qué (dark)
   ============================================================ */
.porque { background: var(--dark); }
.porque__head { text-align: center; }
.porque .section-title { color: #fff; }
.porque__lead {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 auto 3.5rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pillar {
  padding: 2rem 0;
  border-top: 1px solid rgba(139, 105, 20, 0.4);
}

.pillar__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.pillar__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.6rem;
}

.pillar__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.75;
}

/* ============================================================
   Cobertura
   ============================================================ */
.cobertura { background: var(--bg-alt); }
.cobertura .container { text-align: center; }
.cobertura__lead { margin: 0 auto 2.5rem; }

.city-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.city-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
}

.cov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.cov-stat__num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cov-stat__label { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   Mayoristas banner (gold)
   ============================================================ */
.mayoristas {
  background: var(--gold);
  padding: 4.5rem 2rem;
  text-align: center;
}

.mayoristas__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.mayoristas__lead {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
}

.btn-wa--inverse {
  background: #fff;
  color: var(--dark);
  padding: 0.9rem 2.2rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-wa--inverse:hover { background: var(--dark); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark);
  padding: 3rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.footer__crest { height: 66px; width: auto; margin: 0 auto 1.5rem; }

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem 1.75rem;
  margin-bottom: 1.75rem;
}

.footer__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__icon { color: var(--gold); flex-shrink: 0; transition: color 0.2s; }

/* WhatsApp / Instagram are clickable; location is plain text */
.footer__link { font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.footer__link:hover { color: #fff; }
.footer__link:hover .footer__icon { color: #fff; }

.footer__sub {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  margin-left: 0.15rem;
}
.footer__link:hover .footer__sub { color: rgba(255, 255, 255, 0.7); }

.footer__legal {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__legal p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Sin Página credit: pill in the same family as .filter / .city-chip, tuned for the dark footer */
.footer__badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.4rem;
  margin-top: 0.6rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer__badge-cta { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
/* Lighter gold than --gold: small text on --dark needs the extra contrast */
.footer__badge-brand { color: #c9a24a; font-weight: 500; transition: color 0.2s; }
.footer__badge svg { color: #c9a24a; transition: transform 0.2s, color 0.2s; }
.footer__badge:hover { border-color: var(--gold); color: rgba(255, 255, 255, 0.85); background: rgba(139, 105, 20, 0.12); }
.footer__badge:hover .footer__badge-brand,
.footer__badge:hover svg { color: #fff; }
.footer__badge:hover svg { transform: translateX(2px); }
.footer__badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================================
   404 page
   ============================================================ */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.not-found__crest img { height: 96px; width: auto; margin-bottom: 2rem; }
.not-found .rule { margin: 0.5rem auto 1.5rem; }
.not-found .section-lead { margin: 0 auto 2.25rem; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.75rem; }
.not-found__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
}
.not-found__link svg { color: var(--gold); }
.not-found__link:hover { color: var(--gold); }

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: wapulse 2.8s ease-in-out infinite;
}

@keyframes wapulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 0 rgba(139,105,20,0.35); }
  50%      { box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 0 0 10px rgba(139,105,20,0); }
}

/* ============================================================
   Gallery lightbox
   ============================================================ */
html.lb-open { overflow: hidden; }

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 13, 12, 0.96);
  color: #fff;
  display: none;
  flex-direction: column;
}
.lightbox[open] { display: flex; animation: lbfade 0.25s ease; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }

@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
}
.lightbox__bar > div { flex: 1; min-width: 0; }

.lightbox__tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a24a;
}

.lightbox__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
}

.lightbox__counter {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.lightbox__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.1); }

.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4.5rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem 1.25rem;
}

.lightbox__thumbs {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.lightbox__thumbs::-webkit-scrollbar { display: none; }

.lightbox__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: 0.9; }
.lightbox__thumb.is-active { opacity: 1; border-color: #c9a24a; }

.lightbox .btn-wa { background: #fff; color: var(--dark); flex-shrink: 0; }
.lightbox .btn-wa:hover { background: #c9a24a; color: #fff; }

.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__thumbs,
.lightbox.is-single .lightbox__counter { visibility: hidden; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* staggered delays for grid children */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
  .strip__track { animation: none; }
  .product-card__img { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .nav { padding: 0 1.25rem; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(250, 250, 247, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(26, 23, 20, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu .nav__link {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.82rem;
  }
  .nav__menu .nav__cta { display: block; text-align: center; margin-top: 1rem; padding: 0.85rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .strip__track img { height: 140px; }
  .lightbox__stage { padding: 0 0.75rem; }
  .lightbox__nav { display: none; }
  .hist-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pillar-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cov-grid { gap: 1.5rem; }
  .hist-badge { right: 1rem; bottom: 1rem; }
}

/* Phones: tighten vertical rhythm so the page is less of a long scroll */
@media (max-width: 560px) {
  .section { padding: 4rem 1.25rem; }
  .productos__lead { margin-bottom: 2.25rem; }
  .materiales__head { margin-bottom: 2.25rem; }
  .porque__lead { margin-bottom: 2.25rem; }
  .product-grid { gap: 0.75rem; }
  .product-card__body { padding: 0.9rem 0.9rem 1.1rem; }
  .product-card__title { font-size: 0.98rem; }
  .product-card__desc { font-size: 0.76rem; margin-bottom: 0.9rem; }
  .product-card__tag { font-size: 0.55rem; letter-spacing: 0.12em; }
  .product-card__cta { font-size: 0.64rem; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -1.25rem 2rem; padding: 0 1.25rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .strip { padding: 10px 0; }
  .strip__track { gap: 10px; }
  .strip__track img { height: 110px; }
  .lightbox__bar { padding: 0.75rem 1rem; }
  .lightbox__foot { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.75rem 1rem 1rem; }
  .lightbox__foot .btn-wa { justify-content: center; }
  .lightbox__thumb { width: 48px; height: 48px; }
  .material-grid { gap: 1rem; }
  .hist-grid { gap: 2.5rem; }
  .city-list { margin-bottom: 2rem; }

  /* Two pillars/stats per row read tighter than a tall single column */
  .pillar-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
  .pillar { padding: 1.25rem 0; }
  .pillar:last-child { grid-column: 1 / -1; }

  .mayoristas { padding: 3.25rem 1.25rem; }
  .footer { padding: 2.5rem 1.25rem 1.75rem; }
  .footer__crest { height: 58px; margin-bottom: 1.25rem; }
  .footer__contact { flex-direction: column; gap: 0.85rem; margin-bottom: 1.5rem; }
  /* Clear the floating WhatsApp button so it never covers the Sin Página pill */
  .footer { padding-bottom: 5.5rem; }
  .footer__badge { font-size: 0.7rem; padding: 0.45rem 0.95rem; }
}
