/* =========================================================================
   Distribuciones del Caribe — Landing corporativa
   Composición inspirada en una experiencia editorial premium.
   Construida sobre las foundations del design system (colors_and_type.css).
   ========================================================================= */

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-1);
  overflow-x: hidden;
}

/* Lenis smooth-scroll plumbing */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clipped; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--dc-blue-200); color: var(--dc-ink); }

:focus-visible {
  outline: 2px solid var(--dc-blue-500);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Reveal-on-scroll primitive. Driven by a requestAnimationFrame loop in
   app.js (the only trigger that reliably fires across embeds — IO and
   scroll-timelines don't always deliver here). Falls back to visible if JS
   is disabled via the html.no-js guard. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.in { opacity: 1; transform: none; }

html.no-js .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   HEADER  — transparente sobre el hero → píldora oscura compacta al scroll
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 26px 40px;
  transition: transform 0.45s var(--ease-out), padding 0.45s var(--ease-out);
}
.site-header.hide { transform: translateY(-140%); }

.header-inner {
  width: 100%;
  max-width: 1280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 14px 10px 4px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: max-width 0.5s var(--ease-out),
              background 0.45s var(--ease-out),
              padding 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out),
              backdrop-filter 0.45s var(--ease-out);
}

/* compact state */
.site-header.compact .header-inner {
  max-width: 720px;
  background: rgba(15, 27, 34, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
  padding: 8px 10px 8px 18px;
  box-shadow: var(--shadow-lg);
}

.brand-logo { height: 40px; width: auto; transition: opacity 0.4s var(--ease-out); }
.brand-mark { height: 34px; width: auto; display: none; }
.site-header.compact .brand-logo { display: none; }
.site-header.compact .brand-mark { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-snug);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.open {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}
.nav-link .chev { transition: transform 0.3s var(--ease-out); }
.nav-link.open .chev { transform: rotate(180deg); }
.nav-link svg { width: 16px; height: 16px; }

/* dropdown */
.has-menu { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: 10px;
  background: rgba(15, 27, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0 round 14px);
  transition: opacity 0.36s var(--ease-out), transform 0.36s var(--ease-out),
              clip-path 0.42s var(--ease-out), visibility 0.36s;
}
.has-menu:hover .dropdown,
.has-menu.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  clip-path: inset(0 0 0 0 round 14px);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  transition: background 0.25s var(--ease-out);
}
.dropdown a:hover { background: rgba(255, 255, 255, 0.08); }
.dropdown .d-title {
  font-size: 15px; font-weight: var(--w-semibold);
  color: #fff;
}
.dropdown .d-sub {
  font-size: 13px; color: rgba(255, 255, 255, 0.55);
}

/* mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: var(--w-semibold);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  padding: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: hidden;
  background: var(--dc-blue-900);
}
.hero-media image-slot { width: 100%; height: 100%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,27,34,0.30) 0%, rgba(15,27,34,0.05) 32%, rgba(15,27,34,0.78) 100%);
  pointer-events: none;
  z-index: 2;
}
/* oversized isotipo motif cropped into hero */
.hero-motif {
  position: absolute;
  right: -6%;
  top: 8%;
  width: 46%;
  max-width: 620px;
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 7vh;
  max-width: 1280px;
  margin: 0 auto;
  left: 0; right: 0;
}
.hero-title {
  margin: 0;
  color: #fff;
  font-weight: var(--w-black);
  font-size: clamp(58px, 11.5vw, 188px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.hero-title span { display: block; }

/* =========================================================================
   HERO CTA → tarjeta unificada (imagen + botón) anclable
   En la portada: imagen (carrusel) unida directamente al botón "Request a
   quote", todo como una sola pieza, situada abajo a la derecha. Al hacer
   scroll, la imagen se colapsa y queda solo el botón anclado en la esquina.
   ========================================================================= */
.hero-cta-dock {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* hero (top) state — empujado un poco hacia abajo */
  transform: translateY(calc(-26vh + 50% + 28px));
  transition: transform 0.55s var(--ease-out);
}

.hero-cta-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: clamp(248px, 21vw, 296px);
  text-decoration: none;
  /* glassy frame — mismo lenguaje que el botón del hero */
  padding: 10px;
  border-radius: var(--r-xl);
  background: rgba(15, 27, 34, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(15, 27, 34, 0.22);
  transition: width 0.5s var(--ease-out),
              padding 0.45s var(--ease-out),
              gap 0.45s var(--ease-out),
              background 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out);
}

/* imagen (carrusel) unida arriba */
.hc-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 2px solid var(--accent);
  transition: aspect-ratio 0.5s var(--ease-out),
              max-height 0.5s var(--ease-out),
              opacity 0.4s var(--ease-out),
              border-width 0.45s var(--ease-out),
              margin 0.45s var(--ease-out);
}
.hero-cta-card .hc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.hero-cta-card .hc-slide.is-active { opacity: 1; }

/* etiqueta del botón, unida abajo */
.hc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: var(--w-semibold);
  font-size: 17px;
  letter-spacing: var(--ls-snug);
  color: #fff;
  white-space: nowrap;
  transition: padding 0.4s var(--ease-out), font-size 0.4s var(--ease-out);
}
.hc-label svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out);
}
.hero-cta-card:hover { background: rgba(15, 27, 34, 0.5); }

/* docked (scrolled) — la imagen se colapsa y queda solo el botón en la esquina */
.hero-cta-dock.docked { transform: translateY(0); }
.hero-cta-dock.docked .hero-cta-card {
  width: auto;
  gap: 0;
  padding: 0;
  background: var(--accent);
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-blue);
  border-radius: var(--r-pill);
}
.hero-cta-dock.docked .hero-cta-card:hover { background: var(--accent-hover); }
.hero-cta-dock.docked .hc-media {
  max-height: 0;
  aspect-ratio: auto;
  opacity: 0;
  border-width: 0;
  margin: 0;
  pointer-events: none;
}
.hero-cta-dock.docked .hc-label { padding: 14px 22px; font-size: 15px; }
.hero-cta-dock.docked .hc-label svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .hero-cta-dock, .hero-cta-card, .hc-media, .hc-label { transition: none; }
}

.hero-card {
  position: absolute;
  right: 40px;
  bottom: 9vh;
  z-index: 4;
  width: 300px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(15, 27, 34, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.hero-card:hover { transform: translateY(-3px); }
.hero-card image-slot { width: 100%; height: 168px; }
.hero-card-body { padding: 16px 18px 20px; }
.hero-card .eyebrow-light {
  font-size: 11px; font-weight: var(--w-semibold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-card-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-top: 10px;
}
.hero-card h3 {
  margin: 0; color: #fff; font-size: 20px; font-weight: var(--w-bold);
  line-height: 1.15; letter-spacing: var(--ls-snug);
}
.hero-card .ext { color: rgba(255,255,255,0.85); flex: 0 0 auto; }
.hero-card .ext svg { width: 20px; height: 20px; }

/* =========================================================================
   INTRO — texto grande alineado a la derecha
   ========================================================================= */
.section { padding: clamp(80px, 12vh, 150px) 0; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.intro-text { grid-column: 2; }
.intro-media {
  grid-column: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  align-self: center;
}
.intro-media image-slot,
.intro-media .fixed-slot-image { width: 100%; height: 100%; display: block; }
.intro-media .fixed-slot-image { object-fit: cover; }
.intro-text .lead {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: var(--w-semibold);
  line-height: 1.18;
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
}
.intro-text .lead em { font-style: normal; color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-snug);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
.btn-soft {
  background: var(--dc-fog);
  color: var(--fg-1);
}
.btn-soft:hover { background: var(--dc-blue-50); transform: translateY(-1px); }
.btn-dark {
  background: var(--dc-ink);
  color: #fff;
}
.btn-dark:hover { background: var(--dc-graphite); transform: translateY(-1px); }
.btn-blue {
  background: var(--accent);
  color: #fff;
}
.btn-blue:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost-light {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }
.intro-cta { margin-top: 36px; }

/* =========================================================================
   GALAXY — titular gigante con imágenes flotantes
   ========================================================================= */
.galaxy {
  position: relative;
  padding: clamp(60px, 9vh, 120px) 0 clamp(40px, 6vh, 90px);
  overflow: hidden;
}
.galaxy-stage {
  position: relative;
  min-height: 118vh;
}
.galaxy-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-weight: var(--w-black);
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg-1);
  text-align: center;
  pointer-events: none;
  padding-top: 28vh;
}
.galaxy-title span { display: block; }
.galaxy-title .line-2 { text-align: right; padding-right: 4vw; }
.galaxy-title .line-1 { text-align: left; padding-left: 4vw; }

.float {
  position: absolute;
  z-index: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  will-change: transform;
}
.float image-slot { width: 100%; height: 100%; }

.galaxy-cta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-top: -6vh;
}

/* =========================================================================
   REPORTE — imagen izquierda + panel oscuro derecha
   ========================================================================= */
.report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--dc-ink);
  min-height: 460px;
}
.report-media { position: relative; }
.report-media image-slot { width: 100%; height: 100%; min-height: 460px; }
.report-panel {
  position: relative;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.report-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: var(--w-bold);
  line-height: 1.0;
  letter-spacing: var(--ls-tight);
}
.report-panel .desc {
  margin: 28px 0 0;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
}
.report-doc {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 0;
}
.report-doc .doc-type {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  color: rgba(255,255,255,0.5);
}
.report-doc a {
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; font-weight: var(--w-bold); color: #fff;
}
.report-doc a:hover .doc-label { text-decoration: underline; }
.report-doc svg { width: 22px; height: 22px; }

/* =========================================================================
   CULTURA — dos columnas sobre crema
   ========================================================================= */
.culture { background: var(--bg-cream); }
.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.culture-grid h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: var(--w-bold);
  line-height: 1.06;
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
}
.culture-left { display: flex; flex-direction: column; gap: 40px; }
.culture-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.culture-media image-slot,
.culture-media .fixed-slot-image { width: 100%; height: 100%; display: block; }
.culture-media .fixed-slot-image { object-fit: cover; object-position: center 63%; }
.culture-grid .body {
  margin: 0;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: var(--w-medium);
  line-height: 1.2;
  letter-spacing: var(--ls-snug);
  color: var(--fg-1);
}

/* =========================================================================
   SNAPSHOT operativo — número gigante + líneas finas
   ========================================================================= */
.snapshot-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.snapshot-head h2 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: var(--w-bold); }
.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  padding-top: 48px;
}
.snapshot-left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.snapshot-left .org { font-size: 16px; color: var(--fg-3); }
.snapshot-figure {
  display: flex; flex-direction: column;
}
.snapshot-figure .topline {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 16px; color: var(--fg-3);
}
.snapshot-number {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 12px;
  margin: 14px 0 36px;
}
.snapshot-number .big {
  font-size: clamp(80px, 12vw, 188px);
  font-weight: var(--w-black);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg-1);
}
.snapshot-number .unit { font-size: 22px; color: var(--fg-4); font-weight: var(--w-semibold); }
.snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.metric .k {
  font-size: 11px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--fg-4); font-weight: var(--w-semibold);
}
.metric .v {
  margin-top: 8px; font-size: 20px; font-weight: var(--w-semibold); color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   MARCAS — brand showcase
   ========================================================================= */
.brands {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}
/* liquid-chrome shader wallpaper */
#brandsShader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
/* soft cream veil to keep heading + marquee crisp over the shader */
.brands::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.80) 0%,
    rgba(255, 255, 255, 0.42) 22%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0.48) 78%,
    rgba(255, 255, 255, 0.84) 100%
  );
}
.brands > .wrap { position: relative; z-index: 2; }
.brands-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vh, 60px);
  text-align: center;
}
.brands-head h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 4.4vw, 66px);
  font-weight: var(--w-bold);
  line-height: 1.02;
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
}
.brands-head .brands-lede {
  margin: 22px auto 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* showcase: preview persistente + carrusel de logos */
.brand-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, 4.5vh, 52px);
}

/* tarjeta de vista previa — siempre visible */
.brand-preview {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 600px;
  margin: 0;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.brand-preview-media {
  position: relative;
  flex: 0 0 46%;
  align-self: stretch;
  min-height: 320px;
  background: var(--bg-3);
}
.bp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.bp-img.is-shown { opacity: 1; }
.brand-preview-cap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 32px clamp(28px, 4vw, 44px);
}
.bp-cat {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--dc-blue-500);
}
.bp-name {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: var(--w-bold);
  line-height: 1.04;
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
}
.bp-desc {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 34ch;
  text-wrap: pretty;
}

/* carrusel de logos */
.brand-marquee {
  position: relative;
  width: 100%;
  height: 92px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.brand-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding: 0 32px;
  will-change: transform;
  animation: brand-scroll 60s linear infinite;
}
.brand-marquee:hover .brand-track { animation-play-state: paused; }
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.bm-item {
  flex: 0 0 auto;
  width: 150px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.bm-logo {
  width: auto;
  height: auto;
  max-height: 42px;
  max-width: 128px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.42;
  transition: filter 0.3s var(--ease-out), opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.bm-item:hover .bm-logo,
.bm-item.is-active .bm-logo { filter: none; opacity: 1; }
.bm-item:hover .bm-logo { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
}

/* =========================================================================
   FORMULARIO — solicitar una cotización
   ========================================================================= */
.form-section { background: var(--bg-2); }
.eyebrow-blue {
  font-size: 12px;
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.form-copy { display: flex; flex-direction: column; }
.form-copy h2 {
  margin: 16px 0 0;
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: var(--w-bold);
  line-height: 1.04;
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
  max-width: 14ch;
}
.form-copy .form-lede {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 46ch;
}
.form-contact {
  list-style: none;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-contact li {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: baseline;
  gap: 16px;
}
.form-contact .k {
  font-size: 11px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--w-semibold);
  color: var(--fg-4);
}
.form-contact li a,
.form-contact li span:last-child {
  font-size: 16px;
  color: var(--fg-1);
  font-weight: var(--w-medium);
}
.form-contact li a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: var(--w-semibold);
  color: var(--fg-1);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--fg-1);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--dc-blue-100);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-note { font-size: 14px; color: var(--fg-4); }

/* estado enviado */
.quote-form.sent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-height: 280px;
}
.quote-form.sent .sent-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--success-bg);
  color: var(--success);
}
.quote-form.sent .sent-icon svg { width: 26px; height: 26px; }
.quote-form.sent h3 {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: var(--w-bold);
  color: var(--fg-1);
  letter-spacing: var(--ls-snug);
}
.quote-form.sent p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 44ch;
}

/* =========================================================================
   CTA final oscuro
   ========================================================================= */
.cta {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 40px;
}
.cta-media { position: absolute; inset: 0; }
.cta-media image-slot { width: 100%; height: 100%; }
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,27,34,0.55), rgba(15,27,34,0.78));
  z-index: 1;
}
.cta-content { position: relative; z-index: 2; text-align: center; padding: 60px 24px; }
.cta-content h2 {
  margin: 0;
  color: #fff;
  font-weight: var(--w-black);
  font-size: clamp(52px, 9vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.cta-content h2 span { display: block; }
.cta-pill { margin-top: 40px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--dc-ink);
  color: #fff;
  padding: 52px 0 32px;
  margin-top: 0;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px 56px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer-mark { width: 72px; height: auto; }
.footer-blurb {
  margin: 0;
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
  padding-top: 4px;
}
.footer-nav a {
  font-size: 15px;
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-snug);
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.footer-nav a:hover { color: var(--dc-blue-sky); }
.footer-base {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.footer-base a { color: rgba(255,255,255,0.8); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .site-header { padding: 14px 16px; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(15, 27, 34, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
  }
  .site-header.menu-open .nav { display: flex; }
  .nav-link { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav-link:hover, .nav-link:active { background: rgba(255, 255, 255, 0.08); }
  .menu-toggle { display: inline-flex; }
  .menu-toggle svg { transition: transform 0.3s var(--ease-out); }
  .site-header.menu-open .menu-toggle svg { transform: rotate(45deg); }
  .site-header.compact .header-inner { max-width: 100%; }

  .hero-content { justify-content: flex-start; padding: clamp(104px, 16vh, 168px) 22px 0; }
  .hero-cta-dock { right: 16px; bottom: 16px; }
  .hero-cta-card { width: clamp(200px, 56vw, 264px); }
  .hc-label { padding: 12px 18px; font-size: 15px; }
  .hero-cta-dock.docked .hc-label { padding: 12px 18px; font-size: 14px; }
  .hero-card { position: static; width: auto; margin: 18px 22px 0; }
  .hero { height: auto; min-height: 0; }
  .hero-media { position: relative; height: 86svh; }
  .hero-content { position: absolute; }

  .intro-grid { grid-template-columns: 1fr; }
  .intro-text { grid-column: 1; }
  .intro-media { grid-column: 1; aspect-ratio: 16 / 10; }

  .report { grid-template-columns: 1fr; }
  .report-media image-slot { min-height: 320px; }

  .culture-grid { grid-template-columns: 1fr; gap: 36px; }

  .brands-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .form-grid { grid-template-columns: 1fr; gap: 44px; }
  .quote-form { grid-template-columns: 1fr; padding: 28px; }
  .form-contact li { grid-template-columns: 1fr; gap: 4px; }

  .snapshot-grid { grid-template-columns: 1fr; gap: 36px; }
  .snapshot-number { justify-content: flex-start; }
  .snapshot-metrics { grid-template-columns: 1fr 1fr; gap: 28px; }

  .galaxy-title { font-size: clamp(46px, 16vw, 96px); padding-top: 16vh; }
  .galaxy-stage { min-height: 96vh; }
  .float { transform: scale(0.7); }

  .footer-main { flex-direction: column; gap: 28px; }
  .cta { margin: 0 22px; }
}

@media (max-width: 560px) {
  .snapshot-metrics { grid-template-columns: 1fr 1fr; }
  .brands-grid { grid-template-columns: 1fr; }
  .brand-preview { flex-direction: column; max-width: 380px; }
  .brand-preview-media { flex: none; width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .brand-preview-cap { padding: 22px 24px 26px; gap: 8px; }
  .brand-marquee { height: 80px; }
  .brand-track { gap: 12px; height: 80px; }
  .bm-item { width: 116px; height: 80px; }
  .bm-logo { max-height: 34px; max-width: 100px; }
}

@media (max-width: 480px) {
  .section { padding: clamp(56px, 10vh, 100px) 0; }
  .hero-title { font-size: clamp(46px, 15vw, 88px); }
  .cta-content { padding: 48px 20px; }
  .cta-content h2 { font-size: clamp(38px, 12vw, 72px); }
  .cta-pill { margin-top: 28px; }
  .footer-base { flex-direction: column; gap: 6px; }
  .footer-nav { gap: 10px 22px; }
  .brands-head h2 { font-size: clamp(30px, 8.5vw, 44px); }
}
