/* ============================================================
   Lonas del Carmen — style.css
   ============================================================ */

/* ─── Custom Properties ─────────────────────────────────── */
:root {
  /* Brand colors — institutional wine red */
  --clr-primary:      #8C1B26;   /* wine red (logo) */
  --clr-primary-dk:  #6B1320;   /* deep wine */
  --clr-primary-lt:  #B5263A;   /* ruby */
  --clr-accent:       #C13040;   /* bright crimson — CTAs */
  --clr-accent-dk:   #9E2230;
  --clr-dark:         #1a0e0f;   /* near-black warm */
  --clr-mid:          #2f1e20;   /* dark warm body text */
  --clr-muted:        #7a6465;   /* warm neutral muted */
  --clr-light:        #fdf5f5;   /* off-white with warm tint */
  --clr-white:        #ffffff;
  --clr-whatsapp:     #25d366;
  --clr-whatsapp-dk: #1da851;

  /* Typography */
  --ff-heading: 'Montserrat', sans-serif;
  --ff-body:    'Open Sans', sans-serif;

  /* Spacing */
  --section-py: 6rem;
  --container:  1200px;

  /* Misc */
  --radius:  10px;
  --radius-lg: 18px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --shadow-md: 0 8px 40px rgba(0,0,0,.14);
  --transition: .3s ease;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  color: #2c1a1c;
  background: var(--clr-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
address { font-style: normal; }

/* ─── Utility ────────────────────────────────────────────── */
.container {
  width: 92%;
  max-width: var(--container);
  margin-inline: auto;
}

.section { padding: var(--section-py) 0; }

.section-tag {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: .6rem;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--clr-muted);
  max-width: 660px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: .92rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}
.btn--primary:hover {
  background: var(--clr-primary-dk);
  border-color: var(--clr-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(140,27,38,.40);
}

.btn--whatsapp {
  background: var(--clr-whatsapp);
  color: var(--clr-white);
  border-color: var(--clr-whatsapp);
}
.btn--whatsapp:hover {
  background: var(--clr-whatsapp-dk);
  border-color: var(--clr-whatsapp-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

.btn--nav {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: .5rem 1.2rem;
  font-size: .85rem;
  border: 2px solid transparent;
}
.btn--nav:hover {
  background: var(--clr-primary-dk);
  box-shadow: 0 4px 16px rgba(140,27,38,.35);
}

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

.btn-loader { display: none; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--clr-white);
  box-shadow: 0 2px 20px rgba(0,0,0,.10);
  padding: .65rem 0;
  /* override the gradient once scrolled */
  background-image: none;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-white);
  text-shadow: 0 1px 6px rgba(0,0,0,.65);
  transition: color var(--transition), text-shadow var(--transition);
}
.navbar.scrolled .navbar__brand {
  color: var(--clr-primary);
  text-shadow: none;
}

.brand-icon { font-size: 1.5rem; color: var(--clr-white); }
.navbar.scrolled .brand-icon { color: var(--clr-accent); }

/* not-scrolled: keep accent text white for legibility over video */
.brand-accent { color: var(--clr-white); margin-left: .15rem; }
.navbar.scrolled .brand-accent { color: var(--clr-accent); }

.navbar__nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.navbar__nav a {
  font-family: var(--ff-heading);
  font-size: .88rem;
  font-weight: 600;
  padding: .45rem .8rem;
  border-radius: 6px;
  color: rgba(255,255,255,.9);
  transition: var(--transition);
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--clr-accent);
}

.navbar.scrolled .navbar__nav a {
  color: var(--clr-mid);
}
.navbar.scrolled .navbar__nav a:hover,
.navbar.scrolled .navbar__nav a.active {
  color: var(--clr-primary);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .navbar__toggle span { background: var(--clr-dark); }

.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* fallback bg color while image loads */
  background: var(--clr-primary-dk);
}

/* Background video */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Multi-layer wine overlay — lets photos breathe through */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg,
      rgba(107,19,32,.72) 0%,
      rgba(140,27,38,.55) 40%,
      rgba(107,19,32,.45) 70%,
      rgba(26,14,15,.38)  100%);
  z-index: 1;
}

/* Subtle dot-grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Decorative glowing shapes */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.hero__shape--1 {
  width: 520px; height: 520px;
  top: -160px; right: -100px;
  background: radial-gradient(circle, rgba(181,38,58,.35) 0%, transparent 70%);
  animation: pulse-shape 7s ease-in-out infinite;
}
.hero__shape--2 {
  width: 300px; height: 300px;
  bottom: 80px; left: -80px;
  background: radial-gradient(circle, rgba(181,38,58,.22) 0%, transparent 70%);
  animation: pulse-shape 9s ease-in-out infinite reverse;
}
.hero__shape--3 {
  width: 180px; height: 180px;
  top: 30%; left: 38%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  animation: pulse-shape 11s ease-in-out infinite;
}
@keyframes pulse-shape {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.2); opacity: .7; }
}

/* Layout: two columns */
.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 7rem;
}

/* ── Trust badges row ── */
.hero__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.6rem;
}
.hero__trust-row span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  font-family: var(--ff-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 50px;
}
.hero__trust-row i { font-size: .8rem; opacity: .8; }

/* ── Title ── */
.hero__content { color: var(--clr-white); }

.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--clr-white);
  text-shadow: 0 3px 30px rgba(0,0,0,.35);
}
.hero__title strong {
  display: block;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  letter-spacing: -.02em;
  color: var(--clr-white);
}
.hero__title-line {
  display: inline-block;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,.82);
  position: relative;
  padding-bottom: .3rem;
  margin-top: .2rem;
}
.hero__title-line::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,0));
  border-radius: 2px;
}

/* ── Sub ── */
.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 580px;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}

/* ── CTAs ── */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn--hero-primary {
  background: var(--clr-white);
  color: var(--clr-primary);
  border: 2px solid var(--clr-white);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: .95rem;
  padding: .9rem 2rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
  box-shadow: 0 6px 28px rgba(0,0,0,.22);
}
.btn--hero-primary:hover {
  background: var(--clr-primary-lt);
  color: var(--clr-white);
  border-color: var(--clr-primary-lt);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0,0,0,.30);
}

.btn--hero-outline {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,.55);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: .88rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.btn--hero-outline:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.85);
  transform: translateY(-2px);
}

/* ── Feature chips ── */
.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-family: var(--ff-heading);
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}
.hero__feature:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.30);
}
.hero__feature i { font-size: .85rem; opacity: .8; }

/* ── Right card ── */
.hero__card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  min-width: 230px;
  box-shadow:
    0 8px 32px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.15);
}

/* Brand block inside card (replaces logo img) */
.hero__card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.hero__card-icon {
  font-size: 2.4rem;
  color: rgba(255,255,255,.85);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.hero__card-brandname {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-align: center;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__card-brandname strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: .02em;
}

.hero__card-divider {
  width: 48px; height: 2px;
  background: rgba(255,255,255,.35);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.hero__card-stats {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.hero__card-stats li {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.hero__card-num {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
}
.hero__card-num sup {
  font-size: 1rem;
  font-weight: 700;
  opacity: .75;
}
.hero__card-label {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}

.hero__card-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--clr-white);
  color: var(--clr-primary);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: .82rem;
  padding: .7rem 1.4rem;
  border-radius: 50px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero__card-cta:hover {
  background: var(--clr-primary-lt);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ── Scroll indicator ── */
.hero__scroll {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.hero__scroll a {
  width: 38px; height: 38px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  transition: var(--transition);
  animation: bounce 2.2s ease-in-out infinite;
}
.hero__scroll a:hover {
  border-color: rgba(255,255,255,.9);
  color: var(--clr-white);
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ── Bottom SVG wave divider ── */
.hero__divider {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 4;
  line-height: 0;
}
.hero__divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 9rem;
  }
  .hero__trust-row { justify-content: center; }
  .hero__sub       { margin-inline: auto; }
  .hero__ctas      { justify-content: center; }
  .hero__features  { justify-content: center; }
  .hero__card      { display: none; }
}
@media (max-width: 600px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn,
  .btn--hero-primary,
  .btn--hero-outline { justify-content: center; }
  .hero__title strong { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}



/* ─── Navbar logo ────────────────────────────────────────── */
.navbar__logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.30));
  transition: transform var(--transition);
}
.navbar__brand:hover .navbar__logo { transform: scale(1.05); }

.footer__logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: .25rem;
}

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn .25s ease;
}
.lightbox.active { display: flex; }
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,.7);
  animation: lbZoomIn .28s cubic-bezier(.25,.46,.45,.94);
  cursor: default;
}
@keyframes lbZoomIn {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.lightbox__close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 10000;
}
.lightbox__close:hover { background: var(--clr-primary); }
.lightbox__caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-family: var(--ff-heading);
  font-size: .88rem;
  letter-spacing: .06em;
  background: rgba(0,0,0,.45);
  padding: .4em 1.2em;
  border-radius: 20px;
  pointer-events: none;
}

/* ─── Gallery ───────────────────────────────────────────── */

.gallery {
  background: var(--clr-dark);
  padding: 3rem 0 0;
}

.gallery__header {
  text-align: center;
  padding-bottom: 2.5rem;
  padding-inline: 1rem;
}
.gallery__header .section-tag { color: rgba(255,255,255,.55); }
.gallery__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--clr-white);
  margin-top: .25rem;
}

/*
  Mosaico especial para 5 imágenes:
  ┌──────────────┬──────────┬──────────┐
  │              │    2     │    3     │
  │      1       ├──────────┼──────────┤
  │  (destacado) │    4     │    5     │
  └──────────────┴──────────┴──────────┘
*/
.gallery__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 310px 310px;
  grid-template-areas:
    "feat b c"
    "feat d e";
  gap: 5px;
}

.gallery__item:nth-child(1) { grid-area: feat; }
.gallery__item:nth-child(2) { grid-area: b; }
.gallery__item:nth-child(3) { grid-area: c; }
.gallery__item:nth-child(4) { grid-area: d; }
.gallery__item:nth-child(5) { grid-area: e; }

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .4s ease, box-shadow .4s ease;
  z-index: 1;
}

.gallery__item:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  z-index: 3;
}

/* Borde vino sutil que aparece en hover */
.gallery__item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 0px solid var(--clr-primary-lt);
  transition: border-width .3s ease;
  z-index: 2;
  pointer-events: none;
}
.gallery__item:hover::before { border-width: 3px; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94), filter .5s ease;
  filter: brightness(.68);
  display: block;
}

.gallery__item:hover img {
  transform: scale(1.22);
  filter: brightness(.95);
}

/* Caption siempre visible a 50%, se eleva completa en hover */
.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.2rem .95rem;
  background: linear-gradient(transparent, rgba(107,19,32,.92) 70%);
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transform: translateY(30%);
  opacity: .75;
  transition: transform .38s ease, opacity .38s ease;
  z-index: 1;
}
.gallery__item:hover .gallery__caption {
  transform: translateY(0);
  opacity: 1;
}
.gallery__caption > span { display: flex; align-items: center; gap: .5rem; }
.gallery__caption i { font-size: .88rem; }

/* Etiqueta "Destacado" para item 1 */
.gallery__caption-tag {
  display: inline-block;
  background: var(--clr-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .22em .65em;
  border-radius: 2px;
  align-self: flex-start;
  margin-bottom: .1rem;
}

/* Item destacado: caption con texto más grande */
.gallery__item--featured .gallery__caption > span:last-child {
  font-size: 1.05rem;
}

/* ── Tablet ── */
@media (max-width: 820px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px 240px;
    grid-template-areas:
      "feat feat"
      "b    c"
      "d    e";
  }
}

/* ── Móvil ── */
@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 210px);
    grid-template-areas:
      "feat"
      "b"
      "c"
      "d"
      "e";
  }
  .gallery__caption {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(90deg, var(--clr-primary-dk) 0%, var(--clr-primary) 50%, var(--clr-primary-lt) 100%);
  padding: 3rem 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item { color: var(--clr-white); }

.stat-number {
  display: block;
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
}
.stat-plus, .stat-percent {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.75);
}

.stat-item p {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  margin-top: .4rem;
  font-weight: 500;
}

/* ─── About ──────────────────────────────────────────────── */
.about { background: var(--clr-white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__list {
  margin: .75rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .97rem;
  color: var(--clr-mid);
}

.about__list li i {
  color: var(--clr-primary);
  font-size: .85rem;
  flex-shrink: 0;
}

.about__text p {
  margin-bottom: 1rem;
  color: var(--clr-mid);
}

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.8rem;
}

.about__badges span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(140,27,38,.06);
  color: var(--clr-primary);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: .82rem;
  padding: .4rem .9rem;
  border-radius: 50px;
  border: 1.5px solid rgba(140,27,38,.25);
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about__card i {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.about__card h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.about__card--main {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-lt) 100%);
  color: var(--clr-white);
}
.about__card--main i { color: rgba(255,255,255,.9); }
.about__card--main h3 { color: var(--clr-white); }
.about__card--main p  { color: rgba(255,255,255,.82); }

.about__card--accent {
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-primary-lt) 100%);
  color: var(--clr-white);
}
.about__card--accent i  { color: rgba(255,255,255,.9); }
.about__card--accent h3 { color: var(--clr-white); }
.about__card--accent p  { color: rgba(255,255,255,.85); }

/* ─── Products ───────────────────────────────────────────── */
.products { background: var(--clr-light); }

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
  animation-delay: var(--delay, 0s);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 40px rgba(140,27,38,.15);
  border-top-color: var(--clr-primary);
}

.product-card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-lt) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.35rem;
  color: var(--clr-white);
}

.product-card h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clr-dark);
  margin-bottom: .5rem;
}

.product-card p { font-size: .92rem; color: var(--clr-muted); }

/* ─── Why ────────────────────────────────────────────────── */
.why {
  background: linear-gradient(160deg, var(--clr-primary-dk) 0%, var(--clr-primary) 100%);
  color: var(--clr-white);
}

.why .section-title { color: var(--clr-white); }
.why .section-tag   { color: rgba(255,255,255,.75); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  transition: background var(--transition), transform var(--transition);
}
.why-item:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}

.why-item__icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.30);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.4rem;
  color: var(--clr-white);
  transition: background var(--transition);
}
.why-item:hover .why-item__icon {
  background: rgba(255,255,255,.28);
}

.why-item h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .5rem;
  color: var(--clr-white);
}
.why-item p { font-size: .9rem; color: rgba(255,255,255,.72); }

/* ─── Contact ────────────────────────────────────────────── */
.contact { background: var(--clr-white); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.contact__info .section-title { margin-bottom: .75rem; }
.contact__info > p { color: var(--clr-muted); margin-bottom: 2rem; }

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__list i {
  width: 38px; height: 38px;
  min-width: 38px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  margin-top: .1rem;
}
.contact__list li:first-child i { background: var(--clr-whatsapp); }

.contact__list strong {
  display: block;
  font-family: var(--ff-heading);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-muted);
  margin-bottom: .1rem;
}
.contact__list a {
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 1rem;
}
.contact__list a:hover { color: var(--clr-accent-dk); }
.contact__list address { color: var(--clr-mid); }

/* --- Form --- */
.contact__form-wrap {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-family: var(--ff-heading);
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-mid);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-group label span { color: var(--clr-accent-dk); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--clr-dark);
  padding: .75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--clr-white);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(140,27,38,.12);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ef4444; }

.form-group textarea { resize: vertical; min-height: 130px; }

.form-error {
  font-size: .78rem;
  color: #ef4444;
  margin-top: .25rem;
  min-height: 1rem;
  display: block;
}

.form-alert {
  padding: .9rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: none;
}
.form-alert.success {
  background: #d1fae5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
  display: block;
}
.form-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1.5px solid #fca5a5;
  display: block;
}

/* submitting state */
.btn--submitting .btn-text   { display: none; }
.btn--submitting .btn-loader { display: inline-flex; align-items: center; gap:.4rem; }

/* --- Map --- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: linear-gradient(160deg, #1a0e0f 0%, #2c1215 100%);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer__brand .brand-icon,
.footer__brand .brand-text {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-white);
}
.footer__brand p {
  font-size: .88rem;
  margin-top: .5rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--ff-heading);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}

.footer__links ul li,
.footer__contact ul li {
  margin-bottom: .55rem;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer__contact ul li i { color: rgba(255,255,255,.5); margin-top: .1rem; }
.footer__links a:hover,
.footer__contact a:hover { color: var(--clr-white); }

.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  display: flex;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
}

/* ─── WhatsApp FAB ───────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 900;
  width: 58px; height: 58px;
  background: var(--clr-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.whatsapp-fab:hover .whatsapp-fab__tooltip { opacity: 1; transform: translateX(0); }

.whatsapp-fab__tooltip {
  position: absolute;
  right: calc(100% + .75rem);
  background: #1a0e0f;
  color: var(--clr-white);
  white-space: nowrap;
  font-size: .82rem;
  font-family: var(--ff-heading);
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

/* ─── Back to Top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 44px; height: 44px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--clr-primary-lt); }

/* ─── Scroll animations ──────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate="fade-up"]    { transform: translateY(36px); }
[data-animate="fade-left"]  { transform: translateX(-36px); }
[data-animate="fade-right"] { transform: translateX(36px); }

[data-animate].animated {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0s);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid      { grid-template-columns: repeat(2, 1fr); }
  .about__grid    { gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  /* Navbar mobile */
  .navbar__nav {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--clr-white);
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .navbar__nav.open { transform: translateX(0); }

  .navbar__nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }
  .navbar__nav a { color: var(--clr-mid); font-size: 1rem; display: block; padding: .65rem .8rem; }
  .navbar__nav a:hover,
  .navbar__nav a.active { color: var(--clr-primary); }

  .navbar__toggle { display: flex; z-index: 1001; position: relative; }

  .navbar__brand { color: var(--clr-white); }
  .navbar.scrolled .navbar__brand { color: var(--clr-primary); }

  .about__grid     { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about__visual   { order: -1; flex-direction: row; }
  .about__card     { flex: 1; }
  .products__grid  { grid-template-columns: 1fr; }
  .why__grid       { grid-template-columns: 1fr; }
  .contact__grid   { grid-template-columns: 1fr; }
  .footer__grid    { grid-template-columns: 1fr; gap: 2rem; }
  .form-row        { grid-template-columns: 1fr; }
  .footer__bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .about__visual   { flex-direction: column; }
  .contact__form-wrap { padding: 1.5rem; }
}
