/* ===================================================
   ALTAVIZA — Cocinas & Espacios
   =================================================== */

:root {
  --bg: #FDFAF5;
  --bg-alt: #F3EEE2;
  --text: #2A2825;
  --text-soft: #4A473F;
  --muted: #867E6A;
  --accent: #C9A96E;
  --dark: #211F1B;
  --dark-alt: #2C2822;
  --dark-text-soft: #B8B2A4;
  --line: #E7E0D2;
  --line-dark: rgba(253, 250, 245, 0.15);
  --max: 1140px;
  --gap-section: clamp(64px, 9vw, 110px);
}

* { box-sizing: border-box; min-width: 0; }

html { scroll-behavior: smooth; }

/* overflow-x:hidden alone would silently turn overflow-y into "auto"
   on the same element and break every position:sticky on the page —
   clip avoids that while still stopping horizontal scroll */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  width: 100%;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #a9895a; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-solid {
  background: var(--accent);
  color: #211F1B;
}
.btn-solid:hover { background: var(--text); color: var(--bg); }

.btn-outline {
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { background: var(--text); color: var(--bg); }

.btn-outline-light {
  border: 1px solid var(--bg);
  color: var(--bg);
  background: transparent;
}
.btn-outline-light:hover { background: var(--bg); color: var(--text); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-inner { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-scroll-cue { animation: none !important; }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 4vw, 64px);
  background: transparent;
  transition: background-color 0.3s ease;
}
.nav.is-scrolled { background: var(--bg); border-bottom: 1px solid var(--accent); }
.nav .wrap { width: 100%; max-width: none; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { position: relative; display: inline-block; width: 169px; height: 30px; flex-shrink: 0; }
.nav-logo-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.3s ease;
}
.nav-logo .logo-dark { opacity: 0; }
.nav.is-scrolled .nav-logo .logo-light { opacity: 0; }
.nav.is-scrolled .nav-logo .logo-dark { opacity: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav.is-scrolled .nav-links a { color: var(--text); }
.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  color: var(--bg);
  transition: color 0.3s ease;
}
.nav-social a { display: flex; }
.nav-social a:hover { color: var(--accent); }
.nav.is-scrolled .nav-social { color: var(--text); }
.mobile-menu-social { color: var(--bg); margin-top: 24px; }
.nav.is-scrolled .nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--accent);
  color: #211F1B;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { display: block; stroke: var(--bg); transition: stroke 0.3s ease; }

/* El menú de escritorio necesita más ancho que el resto de breakpoints
   "móviles" del sitio porque ahora tiene 6 links + redes + CTA. */
@media (max-width: 1320px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
.nav.is-scrolled .nav-toggle svg { stroke: var(--text); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--dark);
  padding: 24px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu img { height: 24px; }
.mobile-menu-close { background: none; border: none; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 28px; margin-top: 56px; }
.mobile-menu nav a { color: var(--bg); font-size: 22px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.mobile-menu .btn { margin-top: 40px; align-self: flex-start; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: 980px;
}
/* La imagen queda fija al viewport (no se mueve ni recorta con el
   parallax) y las secciones siguientes suben y la van cubriendo al
   hacer scroll, como un fondo fijo clásico. z-index:-1 la mantiene
   detrás del contenido normal de la página. */
.hero-slides {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: -1;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: bottom;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7s ease-out;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-slides::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,18,15,0.88) 0%, rgba(20,18,15,0.62) 40%, rgba(20,18,15,0.18) 70%, rgba(20,18,15,0.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
}
.hero-inner {
  max-width: 620px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 26px;
  will-change: opacity;
}
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--bg);
  opacity: 0.75;
  animation: hero-cue-bounce 2.2s ease-in-out infinite;
}
.hero-scroll-cue span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@keyframes hero-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.hero-inner h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.06;
  color: var(--bg);
}
.hero-inner p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: #E9E4D8;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--accent);
  overflow: hidden;
  padding: 28px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
}
.marquee-group span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
}
.marquee-group .star { flex-shrink: 0; }

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

/* ---------- CROSSFADE ---------- */
.crossfade { position: relative; height: 250vh; background: var(--bg); }
.crossfade-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.crossfade-layout {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 48px;
}
.crossfade-visual {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 898 / 737;
}
.crossfade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.crossfade-img.is-active { opacity: 1; }
.crossfade-text { flex: 1; max-width: 460px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.crossfade-text h2 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.05; }
.crossfade-text p { font-size: 18px; font-weight: 300; line-height: 1.65; color: var(--text-soft); }
.crossfade-text .crossfade-callout {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}


/* ---------- PROCESO ---------- */
.proceso { position: relative; height: 280vh; background: var(--bg); }
.proceso-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.proceso-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}
.proceso-visual {
  flex: 0 0 auto;
  width: 100%;
  max-width: 340px;
}
.proceso-numbers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.proceso-num {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: var(--line);
  opacity: 0.6;
  transform: scale(1);
  transition: color 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}
.proceso-num.is-active { color: var(--accent); opacity: 1; transform: scale(1.55); }
.proceso-content { flex: 1; display: flex; flex-direction: column; }
.proceso-stage {
  position: relative;
  height: 350px;
  max-width: 700px;
  margin-top: 48px;
}
.proceso-step-big {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.proceso-step-big.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.proceso-step-big h3 { font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; font-weight: 700; line-height: 1.1; }
.proceso-step-big p { font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; line-height: 1.6; color: var(--text-soft); max-width: 600px; }

/* ---------- GALERIA (acordeón horizontal controlado por scroll) ---------- */
.galeria { position: relative; height: 320vh; background: var(--bg-alt); }
.galeria-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.galeria-track {
  display: flex;
  width: 100%;
  height: 78%;
  gap: 4px;
  padding: 0 4px;
}
.galeria-panel {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  transition: flex-grow 0.7s cubic-bezier(0.65, 0, 0.35, 1), flex-basis 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}
.galeria-panel img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), filter 0.7s ease;
  filter: grayscale(60%) brightness(0.75);
}
.galeria-panel.is-active { flex-grow: 9; }
.galeria-panel.is-active img { transform: scale(1); filter: grayscale(0%) brightness(1); }

/* ---------- VIDEOS ---------- */
.videos { background: var(--bg-alt); padding: var(--gap-section) 0; }
.videos-head { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; margin-bottom: 52px; }
.videos-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; }
.videos-head p { font-size: 16px; font-weight: 300; color: var(--text-soft); max-width: 560px; }

.videos-viewport { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.videos-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: none;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(33, 31, 27, 0.18);
  transition: background-color 0.2s ease;
}
.videos-arrow:hover { background: var(--accent); }

.videos-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.videos-item {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--dark);
  flex-shrink: 0;
  cursor: pointer;
}
.videos-poster { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.videos-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(33, 31, 27, 0.55);
  color: var(--bg);
  pointer-events: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.videos-play svg { margin-left: 3px; }
.videos-item:hover .videos-play { background: var(--accent); color: #211F1B; transform: scale(1.08); }

/* ---------- VIDEO MODAL ---------- */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(33, 31, 27, 0.92);
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal video {
  max-width: 90vw;
  max-height: 88vh;
  aspect-ratio: 9 / 16;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- PROVEEDORES ---------- */
.proveedores {
  background: var(--bg-alt);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}
.proveedores-marquee { display: flex; flex-direction: column; gap: 72px; width: 100%; }
.proveedores-row { overflow: hidden; }
.proveedores-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.proveedores-group {
  display: flex;
  align-items: center;
  gap: 110px;
  padding-right: 110px;
  flex-shrink: 0;
}
.proveedores-group img {
  height: 74px;
  width: auto;
  flex-shrink: 0;
}

/* ---------- DIFERENCIADORES ---------- */
.diferenciadores { display: flex; align-items: stretch; min-height: 100vh; }
.diferenciadores-half {
  display: flex;
  align-items: center;
  padding: 60px clamp(24px, 5vw, 80px);
}
.diferenciadores-half-left { flex: 0 0 38%; background: var(--dark); }
.diferenciadores-half-right { flex: 1; background: var(--dark-alt); }
.diferenciadores-col { display: flex; flex-direction: column; gap: 22px; width: 100%; }
.diferenciadores-intro h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; color: var(--bg); }
.diferenciadores-intro .diferenciadores-lead {
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--bg);
}
.diferenciadores-intro .diferenciadores-lead .text-accent { color: var(--accent); }
.diferenciadores-body { flex: 1; padding-top: 6px; }
.diferenciadores-body p { font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--dark-text-soft); }
.diferenciadores-body p.diferenciadores-strong { font-weight: 700; color: var(--bg); }
.diferenciadores-body p.diferenciadores-signature {
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bg);
}

/* ---------- LINEAS (tabla comparativa) ---------- */
.lineas { background: var(--bg); padding: var(--gap-section) 0; }
.lineas .wrap { max-width: 1100px; display: flex; flex-direction: column; gap: 52px; }
.lineas-head { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.lineas-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; }
.lineas-head p { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--text-soft); max-width: 560px; }

.lineas-tabs { display: none; }

.lineas-table-wrap { overflow-x: auto; }
.lineas-table {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(150px, 1.15fr));
  min-width: 760px;
}
.lineas-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}
.lineas-label {
  justify-content: flex-start;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  position: sticky;
  left: 0;
  background: var(--bg);
  z-index: 1;
}
.lineas-col-head {
  flex-direction: column;
  gap: 8px;
  padding-top: 26px;
  padding-bottom: 22px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  border-bottom: 2px solid var(--text);
}
.lineas-col-desc {
  text-transform: none;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.45;
  color: var(--muted);
  max-width: 190px;
}
.lineas-badge {
  display: inline-block;
  background: var(--accent);
  color: #211F1B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.lineas-dash { color: var(--muted); font-weight: 300; }
.lineas-cell.is-featured {
  background: var(--dark);
  color: var(--dark-text-soft);
  font-weight: 500;
}
.lineas-cell.is-featured .lineas-col-desc { color: var(--dark-text-soft); }
.lineas-cell.is-featured.lineas-col-head {
  color: var(--bg);
  border-bottom: 2px solid var(--accent);
  border-top: 3px solid var(--accent);
}
.lineas-cell.is-featured.lineas-dash { color: rgba(184, 178, 164, 0.45); }

.lineas-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.lineas-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.lineas-footer svg { flex-shrink: 0; }

/* ---------- CTA + CONTACTO ---------- */
.contacto { background: var(--bg-alt); padding: 140px 0; }
.contacto .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: stretch; }
.contacto-text { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.contacto-text h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; }
.contacto-text p { font-size: 19px; font-weight: 300; line-height: 1.7; color: var(--text-soft); max-width: 460px; }
.contacto-card { display: flex; flex-direction: column; padding: 12px 44px; background: var(--dark); }
.contacto-row { display: flex; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.contacto-row:last-child { border-bottom: none; }
.contacto-row svg { flex-shrink: 0; }
.contacto-row .label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-text-soft); }
.contacto-row .value { font-size: 17px; font-weight: 600; margin-top: 6px; color: var(--bg); }

/* ---------- FOOTER ---------- */
footer { background: var(--bg-alt); padding: 64px 0 36px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 24px;
}
.footer-top img { height: 40px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 16px; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom span { font-size: 12px; color: var(--muted); }
.footer-made-with { display: inline-flex; align-items: center; gap: 5px; }
.footer-made-with svg { flex-shrink: 0; }
.nowrap { white-space: nowrap; }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  width: 58px; height: 58px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.wa-float:hover { background: var(--text); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20,18,15,0.94);
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  padding: 12px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 640px) {
  .lightbox-nav { padding: 8px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .contacto .wrap { grid-template-columns: 1fr; gap: 48px; }
  .crossfade-sticky { height: auto; min-height: 100vh; overflow: visible; }
  .crossfade-layout { flex-direction: column; justify-content: center; gap: 32px; text-align: center; padding: 110px 24px 40px; }
  .crossfade-visual { max-width: 300px; }
  .crossfade-text { max-width: 480px; align-items: center; }
  .proceso-inner { flex-direction: column; align-items: stretch; gap: 24px; text-align: center; }
  .proceso-content { flex: none; }
  .proceso-visual { max-width: 320px; margin: 0 auto; }
  .proceso-numbers { flex-direction: row; justify-content: center; gap: 22px; }
  .proceso-num { font-size: 22px; }
  .proceso-num.is-active { transform: scale(1.4); }
  .proceso-step-big { align-items: center; }
  .proceso-stage { height: 320px; }
  .galeria { height: 260vh; }
  .galeria-track { gap: 0; padding: 0; }
  .galeria-panel { flex: 0 0 0%; opacity: 0; }
  .galeria-panel.is-active { flex: 1 0 100%; opacity: 1; }
  .proveedores-group { gap: 72px; padding-right: 72px; }
  .proveedores-group img { height: 52px; }
  .diferenciadores { flex-direction: column; }
  .diferenciadores-half { padding: 64px clamp(24px, 6vw, 60px); text-align: center; }
  .diferenciadores-col { align-items: center; }
}

/* Tabla de líneas en mobile: en vez de una tabla angosta con scroll
   horizontal difícil de descubrir, se navega por pestañas y se ve
   una sola columna completa a la vez. */
@media (max-width: 760px) {
  .lineas-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .lineas-tab {
    flex: 1;
    padding: 12px 8px;
    background: var(--bg-alt);
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-soft);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
  }
  .lineas-tab.is-active { background: var(--dark); color: var(--bg); }

  .lineas-table-wrap { overflow-x: visible; }
  .lineas-table {
    grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.4fr);
    min-width: 0;
  }
  .lineas-label { position: static; }
  .lineas-table > .lineas-cell:nth-child(4n+2),
  .lineas-table > .lineas-cell:nth-child(4n+3),
  .lineas-table > .lineas-cell:nth-child(4n+4) {
    display: none;
  }
  .lineas-table[data-active="essencial"] > .lineas-cell:nth-child(4n+2) { display: flex; }
  .lineas-table[data-active="select"] > .lineas-cell:nth-child(4n+3) { display: flex; }
  .lineas-table[data-active="prestige"] > .lineas-cell:nth-child(4n+4) { display: flex; }

  /* Videos: carrusel con la activa centrada y las vecinas asomando */
  .videos-viewport { padding: 0; overflow: hidden; }
  .videos-arrow { display: flex; }
  .videos-arrow-prev { left: 12px; }
  .videos-arrow-next { right: 12px; }
  .videos-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
  }
  .videos-item { flex: 0 0 68%; }
}

@media (max-width: 640px) {
  .hero { height: 92vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .proceso-visual { max-width: 260px; margin: 0 auto; }
  .proceso-numbers { gap: 14px; }
  .proceso-num { font-size: 18px; }
  .proceso-stage { height: 400px; }
  .galeria { height: 220vh; }
  .galeria-track { height: 65%; }
  .proveedores { padding: 100px 0; }
  .proveedores-marquee { gap: 48px; }
  .proveedores-group { gap: 48px; padding-right: 48px; }
  .proveedores-group img { height: 40px; }
  .lineas-cell { padding: 14px 16px; font-size: 13px; }
  .contacto-card { padding: 28px; }
  .footer-top { flex-direction: column; }
  .diferenciadores-half { padding: 56px 24px; }
  .error-404-number { font-size: clamp(90px, 32vw, 160px); }
}

/* ---------- ERROR 404 ---------- */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
}
.error-404-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 80px;
}
.error-404-number {
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.error-404-inner h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; color: var(--bg); }
.error-404-inner p { font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--dark-text-soft); max-width: 480px; }
.error-404-inner .hero-actions { margin-top: 10px; }
