/* ============================================================
   DECO BILLY — STYLES.CSS
   Índice:
   1. Tokens (color, tipografía, espaciado)
   2. Reset base
   3. Utilidades y layout
   4. Header / navegación
   5. Hero
   6. Quiénes somos
   7. Carrusel
   8. Catálogo / tarjetas de producto
   9. Experiencia de clientes
   10. Contacto / redes
   11. Footer
   12. Responsive
============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* color: base en grises con temperatura violeta, acentos morado/azul/rosa */
  --ink: #1c1b24;
  --ink-soft: #322f40;
  --paper: #faf9fc;
  --paper-dim: #f0edf6;
  --charcoal: #232130;
  --charcoal-2: #2c2939;
  --line: #ded9ea;
  --line-dark: #423f52;
  --muted: #6d6879;
  --muted-light: #b9b2cc;
  --violet: #5b21b6;
  --blue: #4a6fe0;
  --pink: #ec5f9b;
  --accent: #5b21b6;
  --accent-strong: #4c1d95;
  --fuchsia-dark: #7a1657;
  --lilac: #7b4fe0;
  --accent-grad: linear-gradient(120deg, var(--violet) 0%, var(--blue) 50%, var(--pink) 100%);

  /* type */
  --font-display: "ABeeZee", "Helvetica Neue", Arial, sans-serif;
  --font-body: "ABeeZee", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --wrap: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 40px -20px rgba(28, 27, 36, 0.35);
}

/* ---------- 2. RESET ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.08; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 3. UTILIDADES / LAYOUT ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}
/* Contenedores más angostos que el estándar, para secciones puntuales */
.wrap--contact { max-width: calc(var(--wrap) * 0.8); }
.section { padding: 97px 0; }
/* Estas tres secciones van un 20% menos altas que el resto */
#quienes-somos, #experiencia, #contacto { padding: 78px 0; }
.section--soft { background: var(--paper-dim); }
.section--dark { background: var(--charcoal); color: var(--paper); }
.section--contact { background: var(--ink); color: var(--paper); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.eyebrow--light { color: var(--muted-light); }

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 720px;
  margin-bottom: 18px;
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 44px;
  font-size: 1.02rem;
}
.section--dark .section-sub,
.section--dark .eyebrow { color: var(--muted-light); }

/* Título en lila sólido (sin degradado) */
.grad-title,
.grad-text {
  color: var(--lilac);
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  box-shadow: 0 14px 30px -10px rgba(236, 95, 155, 0.55);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(236, 95, 155, 0.7); }
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 8px 18px -6px rgba(122, 22, 87, 0.65);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-strong); color: var(--paper); }
.btn-primary:active { background: var(--fuchsia-dark); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline:active { background: var(--fuchsia-dark); border-color: var(--fuchsia-dark); color: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:active { background: var(--fuchsia-dark); border-color: var(--fuchsia-dark); color: var(--paper); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  border-bottom: 2px solid var(--line);
}
.header-media { position: absolute; inset: 0; z-index: 0; }
.header-media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(250, 249, 246, 0.92), rgba(250, 249, 246, 0.92));
  backdrop-filter: blur(1px);
}
.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  border-radius: 50%;
}
.logo-img { height: 52px; width: auto; object-fit: contain; display: block; }
.logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.logo-text em { font-style: normal; color: var(--accent); }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.main-nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(91, 33, 182, 0.12),
    0 10px 20px -8px rgba(91, 33, 182, 0.45),
    0 12px 26px -10px rgba(74, 111, 224, 0.35),
    0 12px 30px -12px rgba(236, 95, 155, 0.4);
}
.main-nav a:active {
  color: var(--fuchsia-dark);
  transform: translateY(0) scale(0.97);
  box-shadow: 0 6px 16px -6px rgba(122, 22, 87, 0.55);
}

.header-cta {
  display: inline-block;
  white-space: nowrap;
  padding: 9.8px 21px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 0.665rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 22px -10px rgba(236, 95, 155, 0.55);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.header-cta:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -8px rgba(236, 95, 155, 0.7);
}
.header-cta:active {
  background: var(--fuchsia-dark);
  transform: translateY(0) scale(0.97);
  box-shadow: 0 6px 14px -6px rgba(122, 22, 87, 0.6);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 61px 0 43px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* ajusta el % vertical/horizontal */
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(250, 249, 246, 0) 0%,
    rgba(250, 249, 246, 0) 35%,
    rgba(250, 249, 246, 0) 65%,
    rgba(250, 249, 246, 0) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 10px 0 24px;
}
.hero-sub { color: var(--muted); max-width: 460px; font-size: 1.05rem; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
/*
.hero-visual {
  position: relative;
  height: 302px;
}
.hero-visual {
  position: relative;
  height: 302px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}*/

/* ---------- 5b. BANNER DE VIDEO ---------- */
.video-banner {
  position: relative;
  width: 100%;
  height: 518px;
  overflow: hidden;
  background: linear-gradient(125deg, var(--charcoal), var(--ink) 60%, var(--accent-strong));
}
.video-banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-banner.no-media .video-banner-media { display: none; }

.video-banner-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted-light);
  text-align: center;
}
.video-banner.no-media .video-banner-placeholder { display: flex; }
.play-icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  font-size: 1.3rem;
  color: var(--paper);
}

.video-banner-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 44px;
  background: linear-gradient(to top, rgba(20, 18, 28, 0.75), transparent);
  color: var(--paper);
}
.video-banner-caption .eyebrow { color: var(--muted-light); }
.video-banner-caption .section-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0;
  color: var(--paper);
}

/* Banner secundario: mismo lenguaje visual, 60% más pequeño */
.media-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  height: auto;
  overflow: hidden;
  background: linear-gradient(125deg, var(--charcoal-2), var(--ink));
}

.media-banner-media {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.media-banner-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted-light);
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- 6. QUIÉNES SOMOS ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
/*.about-media-block {
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--paper-dim), var(--muted-light) 120%);
  border-radius: var(--radius-lg);
}*/
.about-media-block {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--paper-dim), var(--muted-light) 120%);
}
.about-copy p { color: var(--muted-light); margin-bottom: 18px; max-width: 520px; }
.about-copy .section-title { color: var(--paper); }
.about-stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--pink); }
.stat-label { font-size: 0.82rem; color: var(--muted-light); }

/* ---------- 7. CARRUSEL ---------- */
.carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}
.carousel-track-wrap { overflow: hidden; flex: 1; }
.carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 0.45s cubic-bezier(.22,.7,.24,1);
}
.carousel-slide {
  flex: 0 0 calc((100% - 2 * 22px) / 3);
  min-width: 0;
}
.carousel-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.4rem;
  display: grid; place-items: center;
}
.carousel-btn:hover { background: var(--ink); color: var(--paper); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: var(--line);
}
.carousel-dots button[aria-current="true"] { background: var(--accent); width: 22px; border-radius: 999px; }

/* ---------- 8. CATÁLOGO ---------- */
.filter-tabs { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-tab {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
}
.filter-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-height: 648px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--line);
}
.product-grid::-webkit-scrollbar { width: 8px; }
.product-grid::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.product-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.product-card, .carousel-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-media {
  aspect-ratio: 1/1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--paper-dim), #ded6ef);
  overflow: hidden;
  cursor: pointer;
}
.card-media:hover img { transform: scale(1.04); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.card-media .placeholder-mark {
  display: none;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--paper);
  font-size: 0.7rem; padding: 4px 10px; border-radius: 999px;
}
.gallery-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(19, 18, 16, 0.72);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 0.72rem; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; }
.card-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; }
.card-price { color: var(--muted); font-size: 0.92rem; margin-top: auto; }
.card-buy {
  margin-top: 10px;
  text-align: center;
  padding: 8px 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 600;
}
.card-buy:hover { background: var(--accent); color: var(--paper); }
.card-buy:active { background: var(--fuchsia-dark); color: var(--paper); transform: scale(0.98); }

/* ---------- 9. EXPERIENCIA DE CLIENTES ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  padding: 30px 26px;
  border-radius: var(--radius);
}
.testimonial-stars { color: var(--pink); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-quote { color: var(--paper); margin-bottom: 18px; font-size: 0.98rem; }
.testimonial-name { font-weight: 600; }
.testimonial-city { color: var(--muted-light); font-size: 0.85rem; }

/* ---------- 10. CONTACTO / REDES ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}
.contact-copy p { color: var(--muted-light); max-width: 460px; margin-bottom: 28px; }
.contact-copy .btn { margin-bottom: 34px; }
.contact-details { display: flex; flex-direction: column; gap: 10px; }
.contact-details li { display: flex; gap: 10px; font-size: 0.95rem; }
.contact-details span { color: var(--muted-light); min-width: 90px; font-size: 0.85rem; }

.contact-social { border-left: 1px solid var(--line-dark); padding-left: 48px; }
.social-links { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.social-link {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 1rem;
}
.social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
}
.social-link:hover .social-icon { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.social-handle { color: var(--muted-light); font-size: 0.9rem; }

/* ---------- 11. FOOTER ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, var(--charcoal), var(--ink));
  color: var(--muted-light);
  padding: 58px 0 25px;
  overflow: hidden;
}
.footer-media { position: absolute; inset: 0; z-index: 0; }
.footer-media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(15, 14, 20, 0.88), rgba(15, 14, 20, 0.7));
}
.footer-content { position: relative; z-index: 2; }
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 32px;
}
.footer-tagline { max-width: 480px; font-size: 0.95rem; color: var(--muted-light); }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 20px;
}
.footer-nav a { font-size: 0.9rem; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { text-align: center; }
.footer-logo .logo-mark { background: var(--paper); color: var(--ink); }
.footer-bottom p { font-size: 0.85rem; }

/* ---------- 11b. CARRITO DE COMPRAS ---------- */
.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.05rem;
}
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--fuchsia-dark);
  color: var(--paper);
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.card-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions .card-buy { flex: 1; margin-top: 0; }
.card-add-cart {
  flex: 1;
  padding: 8px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.card-add-cart:hover { border-color: var(--accent); color: var(--accent); }
.card-add-cart:active { transform: scale(0.97); }
.card-add-cart:disabled { opacity: 0.7; }

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.cart-modal.is-open { visibility: visible; opacity: 1; }
.cart-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 20, 0.55);
}
.cart-modal-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--paper);
  box-shadow: -20px 0 50px -20px rgba(15, 14, 20, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-modal.is-open .cart-modal-panel { transform: translateX(0); }
.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-modal-header h3 { font-family: var(--font-display); font-size: 1.2rem; }
.cart-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
}
.cart-modal-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { color: var(--muted); font-size: 0.92rem; }
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-info { display: flex; flex-direction: column; gap: 4px; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; }
.cart-item-meta { font-size: 0.8rem; color: var(--muted); }
.cart-item-remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.cart-item-remove:hover { background: var(--fuchsia-dark); color: var(--paper); border-color: var(--fuchsia-dark); }
.cart-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
}
.cart-modal-actions {
  display: flex;
  gap: 10px;
}
.cart-modal-actions .btn {
  flex: 1;
  text-align: center;
}

/* ---------- 11c. LIGHTBOX / GALERÍA DE IMÁGENES ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 20, 0.86);
}
.lightbox-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(720px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}
.lightbox.is-open .lightbox-content { transform: translate(-50%, -50%) scale(1); }
.lightbox-image {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  background: var(--paper);
}
.lightbox-close {
  position: absolute;
  top: -18px; right: -18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
}
.lightbox-close:hover { background: var(--fuchsia-dark); color: var(--paper); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(250, 249, 246, 0.9);
  color: var(--ink);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); color: var(--paper); }
.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }
.lightbox-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-size: 0.85rem;
}
.lightbox-counter {
  background: rgba(250, 249, 246, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- 12. RESPONSIVE ---------- */
@media (max-width: 720px) {
  .hero {
    min-height: 0;
    padding: 0;
    display: block;
  }
  .hero-bg {
    position: relative;   /* deja de estar absoluta */
    inset: auto;
    width: 100%;
    height: auto;         /* respeta la proporción original */
    object-fit: contain;
  }
  .hero-inner {
    display: none;        /* está vacío, solo ocupa espacio */
  }
}
@media (max-width: 980px) {
  .video-banner { height: 373px; }
  .media-banner { height: auto; aspect-ratio: 16 / 5;}
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 216px; order: -1; }
  .about-media { order: -1; }
  .contact-social { border-left: none; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); max-height: 558px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .carousel-slide { flex: 0 0 calc((100% - 22px) / 2); }
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
  }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    z-index: 99;

    flex-direction: column;
    gap: 18px;

    padding: 20px 28px 28px;

    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
}


@media (max-width: 720px) {
  .video-banner { height: 275px; }
  .media-banner { height: auto; aspect-ratio: 16 / 5; }
  .video-banner-caption { padding: 22px 24px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-inner { height: 96px; }
  .section { padding: 65px 0; }
  #quienes-somos, #experiencia, #contacto { padding: 52px 0; }
  .wrap--contact { max-width: 100%; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; max-height: 468px; }
  .carousel-slide { flex: 0 0 100%; }
  .site-footer { padding: 40px 0 22px; }
  .footer-nav { gap: 10px 18px; }
  .cart-modal-panel { width: 100%; }
  .lightbox-content { width: 94vw; }
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.2rem; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; max-height: 414px; }
  .card-actions { gap: 6px; }
  .card-add-cart { font-size: 0.6rem; padding: 8px 4px; }
}

/* Menú móvil abierto */

.main-nav.is-open {
  display: flex;
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  background: var(--paper);
  flex-direction: column;
  padding: 20px 28px 28px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  z-index: 49;
}
@media (max-width: 720px) {
  .main-nav.is-open a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
}
html, body {
  overflow-x: clip;   /* corta el desbordamiento lateral sin romper el header sticky */
  max-width: 100%;
}