/* El Circuit — stage cinematográfico. Tokens de :root / launch.css. */

body.cx-on main > div > section:not(.video-hero),
body.cx-on main > section:not(.video-hero):not(.cx-sec) {
  display: none !important;
}

body.cx-on .video-hero {
  height: calc(100dvh - var(--header-h, 7.65rem));
  min-height: calc(100dvh - var(--header-h, 7.65rem));
  max-height: calc(100dvh - var(--header-h, 7.65rem));
  background: #050505 !important;
}

body.cx-on .video-hero video,
body.cx-on .video-hero .cx-hero__reel {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  background: transparent;
}

body.cx-on .video-hero.cx-hero-photo {
  position: relative;
  overflow: hidden;
}

body.cx-on .cx-hero-still {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}

body.cx-on .video-hero.cx-hero-ready .cx-hero-still {
  opacity: 0;
  pointer-events: none;
}

body.cx-on .video-hero img:not(.cx-hero-still) {
  display: none !important;
}

body.cx-on .video-hero.cx-hero-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.16) 38%, transparent 68%);
}

body.cx-on .video-hero__copy,
body.cx-on .hero-audio {
  display: none !important;
}

.cx-hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: min(80rem, calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 1.15rem 0 0;
  pointer-events: none;
  color: #fff;
}

.cx-hud a,
.cx-hud button {
  pointer-events: auto;
}

.cx-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
}

.cx-kicker:before {
  content: "";
  width: 2.6rem;
  height: 3px;
  background: currentColor;
  transform: skew(-24deg);
}

.cx-hud h1 {
  margin: 0.12em 0 0;
  font-family: var(--font-display), Impact, sans-serif;
  font-style: italic;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  font-size: max(3.4rem, min(16vw, 8.4rem));
  color: #fff !important;
  text-shadow: 0 10px 28px #000000b8, 0 18px 48px #00000080;
}

.cx-alt {
  margin: 0.85rem 0 0;
  font-family: var(--font-display), Impact, sans-serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-size: clamp(1.08rem, 1.55vw, 1.62rem);
  color: var(--accent);
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 14px #000000c7, 0 0 24px #5ec4f06b;
}

.cx-hud .cx-sub {
  margin: 0.4rem 0 0;
  max-width: 34rem;
  font-family: var(--font-display), Impact, sans-serif;
  font-size: max(0.98rem, min(1.05vw + 0.72rem, 1.32rem));
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 16px #000c;
}

.cx-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  margin-top: 1.35rem;
  min-height: 3.1rem;
  padding: 0 1.55rem;
  background: var(--accent);
  color: #041018 !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0.7rem 0, 100% 0, calc(100% - 0.7rem) 100%, 0 100%);
}

.cx-cta:hover {
  filter: brightness(1.08);
}

#cx-hub {
  position: relative;
  background: #050505;
  color: #fff;
}

.cx-sec {
  position: relative;
  overflow: hidden;
}

.cx-wrap {
  width: min(80rem, calc(100% - 2.2rem));
  margin: 0 auto;
}

.cx-intro {
  background: #fff !important;
  color: #050505 !important;
  padding: 4.4rem 0 4.6rem;
}

.cx-intro .cx-kicker {
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.cx-intro h2,
.cx-fac h2,
.cx-plan h2 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display), Impact, sans-serif;
  font-style: italic;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  color: #050505;
}

/* Room for display accents (MÉS, etc.) so they do not clip the kicker */
.cx-intro h2 {
  margin-top: 0.95rem;
  padding-top: 0.22em;
  line-height: 0.94;
}

.cx-intro .cx-lead,
.cx-intro .cx-more {
  margin: 1.15rem 0 0;
  max-width: 46rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #3a3a3a;
}

.cx-compare {
  position: relative;
  margin-top: 2.4rem;
  min-height: min(62vh, 38rem);
  overflow: hidden;
  background: #111;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  container-type: inline-size;
}

.cx-compare__base,
.cx-compare__top img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
}

.cx-compare__top {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  z-index: 1;
}

.cx-compare__top img {
  inset: 0 auto 0 0;
  width: 100cqw !important;
  height: 100% !important;
  max-width: none !important;
}

.cx-compare__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.cx-compare__bar:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.4rem;
  height: 2.4rem;
  margin: -1.2rem 0 0 -1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.cx-compare__bar:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin: -0.35rem 0 0 -0.35rem;
  border-left: 2px solid #050505;
  border-right: 2px solid #050505;
  transform: scaleX(1.4);
}

.cx-compare__range {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cx-compare__tag {
  position: absolute;
  bottom: 1rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.cx-compare__tag--w {
  left: 1rem;
}

.cx-compare__tag--s {
  right: 1rem;
}

.cx-stats {
  background: #050505 !important;
  color: #fff !important;
  padding: 4.2rem 0 4.4rem;
}

.cx-stats .cx-kicker,
.cx-split .cx-kicker,
.cx-plat .cx-kicker,
.cx-tree .cx-kicker {
  color: var(--accent);
}

.cx-stats h2,
.cx-plat h2,
.cx-tree h2,
.cx-split h2 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display), Impact, sans-serif;
  font-style: italic;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  color: #fff;
}

.cx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 2.2rem;
}

.cx-stat {
  padding: 1.35rem 1.2rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.72);
}

.cx-stat b {
  display: block;
  font-family: var(--font-display), Impact, sans-serif;
  font-style: italic;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.cx-stat span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cx-seasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.cx-seasons p {
  margin: 0;
  padding: 1rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cx-seasons p:first-child {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.cx-seasons p:last-child {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(92vh, 52rem);
  background: #050505;
}

.cx-panel {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
}

.cx-panel video,
.cx-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cx-panel:after {
  display: none;
}

.cx-panel__copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(1.6rem, 4vw, 3.2rem);
}

.cx-panel h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.cx-panel p:last-child {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Gel / asfalt: misma columna de texto en ambdues meitats */
.cx-split .cx-kicker {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  max-width: 28rem;
}

.cx-split .cx-kicker:before {
  width: min(8.4rem, 52%);
  margin: 0;
}

.cx-split .cx-panel h2 {
  margin: 0.12rem 0 0;
  width: 100%;
  max-width: 28rem;
  min-height: 1.72em;
  line-height: 0.86;
}

.cx-split .cx-panel p:last-child {
  width: 100%;
  min-height: 6.4em;
}

.cx-plat {
  position: relative;
  min-height: min(88vh, 48rem);
  display: flex;
  align-items: flex-end;
  background: #050505;
}

.cx-plat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx-plat:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.1) 0%, rgba(5, 5, 5, 0.35) 48%, #050505 100%),
    radial-gradient(60% 50% at 80% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%);
}

.cx-plat .cx-wrap {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.4rem;
}

.cx-plat .cx-lead,
.cx-tree .cx-lead {
  margin: 1.05rem 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.65;
}

.cx-fac {
  background: #050505 !important;
  color: #fff !important;
  padding: 0 0 0.45rem;
}

.cx-fac__stage {
  position: relative;
  min-height: min(86vh, 52rem);
  overflow: hidden;
  background: #050505;
}

.cx-fac__hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 48% 58%;
  display: block;
  animation: none;
  transform: none;
  filter: none;
}

.cx-fac__veil,
.cx-fac__veil:after {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

.cx-fac__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(86vh, 52rem);
  width: min(80rem, calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 3.2rem 0 3.4rem;
}

.cx-fac .cx-kicker {
  color: var(--accent);
}

.cx-fac h2 {
  margin: 0.12em 0 0;
  max-width: 16ch;
  color: #fff !important;
  text-shadow: 0 10px 28px #000000b8, 0 18px 48px #00000080;
}

.cx-fac .cx-lead {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.55;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.cx-fac__reel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.4rem;
  background: #050505;
}

.cx-shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #0b0d11;
  min-height: 18rem;
}

.cx-shot:nth-child(1) {
  grid-column: span 7;
  min-height: min(42vh, 28rem);
}

.cx-shot:nth-child(2) {
  grid-column: span 5;
  min-height: min(42vh, 28rem);
}

.cx-shot:nth-child(3),
.cx-shot:nth-child(4),
.cx-shot:nth-child(5) {
  grid-column: span 4;
  min-height: min(32vh, 22rem);
}

.cx-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cx-shot:hover img {
  transform: scale(1.07);
}

.cx-plan {
  background: #fff !important;
  color: #050505 !important;
  padding: 4.2rem 0 4.8rem;
}

.cx-plan .cx-kicker {
  color: var(--accent);
}

.cx-plan .cx-lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: #3a3a3a;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cx-planol {
  margin-top: 1.8rem;
  background: #0b0d11;
  padding: clamp(1rem, 3vw, 2rem);
}

.cx-planol img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  max-height: 36rem;
  object-fit: contain;
}

.cx-plat,
.cx-map,
.cx-on iframe[src*="maps.google"]:not(.contact-map__frame),
.cx-on div:has(> iframe[src*="maps.google"]):not(.contact-map) {
  display: none !important;
}

.contact-map iframe.contact-map__frame,
iframe.contact-map__frame[src*="maps.google"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.cx-map {
  margin-top: 0.7rem;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border: 1px solid rgba(5, 5, 5, 0.12);
}

.cx-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: none;
}

.cx-tree {
  background: #050505 !important;
  color: #fff !important;
  padding: 4.2rem 0 5rem;
}

.cx-shots {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.55rem;
  margin-top: 2rem;
}

.cx-shots figure {
  margin: 0;
  overflow: hidden;
  min-height: 16rem;
  position: relative;
}

.cx-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.cx-tree .cx-cta {
  margin-top: 1.8rem;
}

#cx-hub video {
  display: block !important;
  max-width: none;
}

#cx-hub .cx-stats,
#cx-hub .cx-split,
#cx-hub .cx-plat,
#cx-hub .cx-tree {
  background: #050505 !important;
}

#cx-hub .cx-stats h2,
#cx-hub .cx-split h2,
#cx-hub .cx-plat h2,
#cx-hub .cx-tree h2,
#cx-hub .cx-panel p:last-child,
#cx-hub .cx-plat .cx-lead,
#cx-hub .cx-tree .cx-lead,
#cx-hub .cx-seasons p:last-child {
  color: #fff !important;
}

#cx-hub .cx-intro,
#cx-hub .cx-plan {
  background: #fff !important;
}

#cx-hub .cx-fac {
  background: #050505 !important;
}

#cx-hub .cx-intro h2,
#cx-hub .cx-plan h2 {
  color: #050505 !important;
}

#cx-hub .cx-fac h2 {
  color: #fff !important;
}

@media (max-width: 980px) {
  .cx-grid,
  .cx-seasons,
  .cx-split,
  .cx-shots {
    grid-template-columns: 1fr;
  }

  .cx-compare {
    min-height: 22rem;
  }

  .cx-hud h1 {
    font-size: clamp(2.8rem, 14vw, 5.2rem);
  }

  .cx-alt {
    font-size: clamp(1.02rem, 4.2vw, 1.4rem);
  }

  .cx-panel,
  .cx-plat {
    min-height: 22rem;
  }

  .cx-fac__stage,
  .cx-fac__copy {
    min-height: 78vh;
  }

  .cx-fac__reel {
    grid-template-columns: 1fr;
  }

  .cx-shot:nth-child(n) {
    grid-column: span 1;
    min-height: 16rem;
  }
}
