/* ─── SECTIONS.CSS ─── Track A ─── Landing Andres Herrera ─── */

/* ═══════════════════════════════════════════════
   PRELOADER (conservado exacto — funciona perfecto)
   ═══════════════════════════════════════════════ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--color-bg);
  background-image: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  width: 119.07px;
  height: 39.69px;
  object-fit: contain;
}

.preloader__signature {
  width: 265px;
  height: 184px;
  position: relative;
}

.preloader__signature svg {
  width: 100%;
  height: 100%;
}

.preloader__signature-path {
  fill: none;
  stroke: var(--color-text);
  stroke-width: 3;
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: drawSignature 3s ease forwards;
}

@keyframes drawSignature {
  to {
    stroke-dashoffset: 0;
  }
}

.preloader__counter {
  font-family: var(--font-body);
  font-weight: var(--fw-body-base);
  font-size: var(--fs-preloader-counter);
  line-height: var(--lh-preloader-counter);
  color: #F8BC00;
  letter-spacing: var(--ls-preloader-counter);
}

/* ═══════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) + 3);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  padding: var(--space-topbar);
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: 16px;
  line-height: var(--lh-solid);
  color: #EDE8DE;
  letter-spacing: var(--ls-none);
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
  transition:
    color var(--dur-base) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.topbar.is-hidden:not(.menu-open) {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.topbar__logo {
  justify-self: start;
  display: inline-block;
  position: relative;
  color: #F8BC00;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-book);
  line-height: var(--lh-solid);
  letter-spacing: var(--ls-none);
  text-decoration: none;
}

.topbar__nav {
  display: flex;
  flex-direction: row;
  justify-self: start;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: var(--fw-book);
}

.topbar__nav a {
  display: inline-block;
  position: relative;
  color: #EDE8DE;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-book);
  line-height: var(--lh-solid);
  letter-spacing: var(--ls-none);
  text-decoration: none;
}

.topbar__logo::after,
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.22em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.topbar__logo:hover::after,
.topbar__logo:focus-visible::after,
.topbar__nav a:hover::after,
.topbar__nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar__logo:focus-visible,
.topbar__nav a:focus-visible {
  outline: none;
}

.nav-status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #EDE8DE;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-book);
  line-height: var(--lh-solid);
  letter-spacing: var(--ls-none);
  white-space: nowrap;
}

.nav-weather,
.nav-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-city,
#nav-clock,
#nav-date,
#nav-temp {
  color: #EDE8DE;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-book);
  line-height: var(--lh-solid);
  letter-spacing: var(--ls-none);
  font-variant-numeric: normal;
}

.nav-separator {
  color: #F8BC00;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-book);
  line-height: var(--lh-solid);
  letter-spacing: var(--ls-none);
}

#w-svg {
  width: 18px;
  height: 18px;
  color: currentColor;
  flex: 0 0 auto;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 4px rgba(248, 188, 2, 0.7);
  animation: pulseStatus 2.5s infinite;
}

.status-txt {
  color: #EDE8DE;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-book);
  line-height: var(--lh-solid);
  letter-spacing: var(--ls-none);
}

.topbar__location {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.topbar__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 3px var(--color-accent);
  animation: blink 2s infinite;
}

.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  appearance: none;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  outline: none;
  transform: scale(1.02);
}

.nav-toggle-box {
  position: relative;
  width: 22px;
  height: 18px;
  display: block;
}

.nav-toggle-box span {
  position: absolute;
  left: 0;
  display: block;
  height: 8%;
  min-height: 2.5px;
  border-radius: 999px;
  background: var(--color-text);
  transform-origin: center;
  transition:
    top 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    width 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    right 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    opacity 0.25s ease,
    transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  will-change: top, width, right, opacity, transform;
}

.nav-toggle-box span:nth-child(1) {
  top: 0;
  width: 42%;
  transform: translateY(0) rotate(0deg);
}

.nav-toggle-box span:nth-child(2) {
  top: 50%;
  width: 100%;
  transform: translateY(-50%) scaleX(1);
}

.nav-toggle-box span:nth-child(3) {
  top: 100%;
  left: auto;
  right: 0;
  width: 42%;
  transform: translateY(-100%) rotate(0deg);
}

.topbar.menu-open .nav-toggle-box span:nth-child(1) {
  top: 50%;
  width: 100%;
  transform: translateY(-50%) rotate(45deg);
}

.topbar.menu-open .nav-toggle-box span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.topbar.menu-open .nav-toggle-box span:nth-child(3) {
  top: 50%;
  left: 0;
  right: auto;
  width: 100%;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-nav-mobile-panel);
  background: rgba(20, 20, 20, 0.62);
  color: #EDE8DE;
  pointer-events: none;
  will-change: opacity;
}

.nav-mobile__inner {
  width: min(100%, 300px);
  padding: var(--space-nav-mobile-inner);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  will-change: transform, opacity;
}

.nav-mobile__inner a {
  display: inline-block;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: var(--fs-nav-mobile-link);
  line-height: var(--lh-nav-mobile-link);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-transform: uppercase;
  letter-spacing: var(--ls-nav-mobile-link);
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}

.nav-mobile__inner a:hover,
.nav-mobile__inner a:focus-visible {
  background: transparent;
  border-color: transparent;
  outline: none;
  text-decoration-color: #EDE8DE;
}

.nav-mobile__inner a.active,
.nav-mobile__inner a.is-active,
.nav-mobile__inner a[aria-current] {
  background: transparent;
  border-color: transparent;
  outline: none;
  text-decoration-color: #EDE8DE;
}

.topbar.theme-light {
  color: var(--color-bg);
}

.topbar.theme-light .nav-toggle {
  color: var(--color-bg);
}

.topbar.theme-light .nav-toggle-box span {
  background: var(--color-bg);
}

.nav-mobile.theme-light {
  color: var(--color-bg);
  background: rgba(237, 232, 222, 0.72);
}

.nav-mobile.theme-light .nav-mobile__inner a {
  color: var(--color-bg);
}

.nav-mobile.theme-light .nav-mobile__inner {
  border-color: transparent;
  background: transparent;
}

body.menu-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   DOTS NAV
   ═══════════════════════════════════════════════ */

#dots {
  position: fixed;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: calc(var(--z-nav) + 2);
  display: flex;
  flex-direction: column;
  gap: 3px;
  visibility: hidden;
  pointer-events: none;
  color: #EDE8DE;
  transition: color var(--dur-base) ease;
}

#dots.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.dot-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 24px;
  padding: 6px 0 6px 14px;
  border: 0;
  border-radius: var(--radius-round);
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  text-align: right;
  cursor: pointer;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dot-row:focus-visible {
  outline: var(--line-hairline) solid currentColor;
  outline-offset: 4px;
}

.dot-label {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #EDE8DE;
  opacity: 0;
  white-space: nowrap;
  transform: translateX(4px);
  transition:
    opacity var(--dur-fast) ease,
    transform var(--dur-fast) ease,
    color var(--dur-fast) ease;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7A7A7A;
  box-shadow: none;
  flex-shrink: 0;
  transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.dot-row:hover .dot-label,
.dot-row:focus-visible .dot-label,
.dot-row.active .dot-label {
  color: #F8BC00;
  opacity: 1;
  transform: translateX(0);
}

.dot-row:hover .dot,
.dot-row:focus-visible .dot {
  background: #F8BC00;
}

.dot-row.active .dot {
  background: #F8BC00;
  transform: scale(1.5);
  box-shadow: none;
}

#dots.theme-light {
  color: #EDE8DE;
}

#dots.theme-light .dot {
  background: #7A7A7A;
}

#dots.theme-light .dot-row:hover .dot,
#dots.theme-light .dot-row:focus-visible .dot {
  background: #F8BC00;
}

#dots.theme-light .dot-row.active .dot {
  background: #F8BC00;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes pulseStatus {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* ═══════════════════════════════════════════════
   VIDEO BACKGROUND
   ═══════════════════════════════════════════════ */

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.video-bg__video {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  object-fit: cover;
}

.video-bg__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.1);
}

/* ═══════════════════════════════════════════════
   CONTENT LAYERS (contenedor principal)
   ═══════════════════════════════════════════════ */

.content-layers {
  position: relative;
  z-index: var(--z-content);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.footer {
  position: relative;
  z-index: var(--z-content);
  padding: 0 0 clamp(42px, 5vw, 58px);
  border-top: none;
  background: rgba(20, 20, 20, 0.06);
}

.footer__inner {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 1.5vw, 20px);
  padding-top: clamp(30px, 3.2vw, 42px);
  border-top: none;
}

.footer__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--grid-padding);
  right: var(--grid-padding);
  height: 1px;
  background: #EDE8DE;
  pointer-events: none;
}

.footer__logo {
  width: clamp(65px, 5vw, 82px);
  height: auto;
  opacity: 1;
  transform: none;
  align-self: center;
}

.footer__copy {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(10px, 0.72vw, 11px);
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: #EDE8DE;
  text-transform: none;
  white-space: nowrap;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 18px);
  flex-wrap: nowrap;
  text-transform: none;
}

.footer__tagline {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(10px, 0.72vw, 11px);
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: #EDE8DE;
  text-transform: lowercase;
  white-space: nowrap;
}

.footer__link {
  position: relative;
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(10px, 0.72vw, 11px);
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: #EDE8DE;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 1px;
  background: #EDE8DE;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.footer__link:hover::after,
.footer__link:focus-visible::after {
  transform: scaleX(1);
}

.footer__link:focus-visible {
  outline: none;
}

@media (max-width: 899px) {
  .footer {
    padding: 0 0 38px;
  }

  .footer__inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding-top: 24px;
  }

  .footer__logo {
    transform: none;
  }

  .footer__meta {
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════
   01. HERO INTRO
   ═══════════════════════════════════════════════ */

.section--hero-intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: var(--space-hero-intro);
}

.hero-intro__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-intro__text-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.hero-intro__logo {
  color: var(--color-accent);
}

.hero-intro__headline {
  font-family: var(--font-display);
  font-weight: var(--fw-header);
  font-size: var(--fs-display);
  line-height: var(--lh-header);
  letter-spacing: var(--ls-header);
  color: var(--color-text);
}

.hero-intro__headline .kw {
  font-family: var(--font-body);
  font-weight: var(--fw-body-base);
}

.hero-intro__subtitle {
  font-family: var(--font-body);
  font-weight: var(--fw-body-base);
  font-size: var(--fs-hero-subtitle-fluid);
  line-height: var(--lh-hero-subtitle-fluid);
  letter-spacing: var(--ls-hero-subtitle-fluid);
  color: #EDE8DE;
  max-width: 420px;
}

.hero-intro__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: var(--fs-micro-label);
  line-height: var(--lh-micro-label);
  letter-spacing: var(--ls-micro-label);
  color: #EDE8DE;
  text-transform: lowercase;
}

.hero-intro__mouse {
  width: 100%;
  max-width: 100%;
  height: 31px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-intro__mouse img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  opacity: 1;
}

/* Bloques visuales decorativos */
.hero-intro__visual {
  position: absolute;
  display: block;
  z-index: 1;
  pointer-events: none;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  opacity: 0.22;
}

.hero-intro__visual--1 {
  width: 164px;
  height: 122px;
  top: 58px;
  right: 6px;
}

.hero-intro__visual--2 {
  width: 118px;
  height: 118px;
  top: 356px;
  right: 6px;
}

.hero-intro__visual--3 {
  width: 112px;
  height: 144px;
  top: 368px;
  left: 56px;
}

/* ═══════════════════════════════════════════════
   02. HERO MAIN
   ═══════════════════════════════════════════════ */

.section--hero-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-hero-main);
}

.hero-main__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 19px;
}

.hero-main__headline {
  font-family: var(--font-display);
  font-weight: var(--fw-header);
  font-size: var(--fs-hero-headline-fluid);
  line-height: var(--lh-hero-headline-fluid);
  letter-spacing: var(--ls-hero-headline-fluid);
  color: var(--color-text);
  max-width: 864px;
}

.hero-main__headline .kw {
  font-family: var(--font-body);
  font-weight: var(--fw-body-base);
}

.hero-main__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-24);
  padding: var(--space-hero-cta-shell);
  flex-wrap: wrap;
}

.hero-main__cta-slot {
  display: flex;
  align-items: center;
  width: 280px;
  flex-shrink: 0;
}

.hero-main__cta-slot--outline { justify-content: flex-end; }
.hero-main__cta-slot--text    { justify-content: flex-start; }

.rolling-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
}

.rolling-text__viewport {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.12em;
  line-height: 1.12;
}

.rolling-text__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.rolling-text__line {
  display: block;
  height: 1.12em;
  white-space: nowrap;
  line-height: 1.12;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

a:hover .rolling-text__inner,
button:hover .rolling-text__inner,
a:focus-visible .rolling-text__inner,
button:focus-visible .rolling-text__inner {
  transform: translate3d(0, -1.12em, 0);
}

.rolling-text::after {
  content: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.16em;
  height: 1px;
  background: #EDE8DE;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.btn--text .rolling-text::after,
.reel__link .rolling-text::after {
  content: "";
}

a:hover .rolling-text::after,
button:hover .rolling-text::after,
a:focus-visible .rolling-text::after,
button:focus-visible .rolling-text::after {
  transform: scaleX(1);
}

.btn.has-rolling-text .rolling-text__line--default,
.reel__link.has-rolling-text .rolling-text__line--default {
  font-family: var(--font-body);
}

.btn.has-rolling-text .rolling-text__line--hover {
  font-family: var(--font-display);
}

.reel__link.has-rolling-text .rolling-text__line--hover {
  font-family: var(--font-body);
}

/* Botones */
.btn {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: var(--fs-button);
  line-height: var(--lh-button);
  letter-spacing: var(--ls-derived);
  color: #EDE8DE;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid #EDE8DE;
  border-radius: var(--radius-rect);
  background: transparent;
  text-decoration: none;
  transition:
    border-radius var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.btn:hover {
  border-radius: var(--radius-round);
  border-color: #EDE8DE;
  background: transparent;
  color: #EDE8DE;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 1px solid #EDE8DE;
  outline-offset: 3px;
}

.btn--outline {
  border-width: 1px;
  border-color: #EDE8DE;
  background: transparent;
  border-radius: 0;
  padding: 17px 30px;
  gap: 7px;
}

.btn--outline:hover {
  background: transparent;
  border-color: #EDE8DE;
  font-style: normal;
  border-radius: 0;
  transform: none;
}

.hero-main__cta-slot--outline .btn--outline:hover,
.btn--rolling.btn--outline:hover,
.btn--rolling.btn--outline:focus-visible {
  border-radius: var(--radius-round);
}

.btn--text {
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 0 6px 0;
  color: #EDE8DE;
  gap: 6px;
}

.btn--text::after {
  content: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #EDE8DE;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.btn--text:hover,
.btn--text:focus-visible {
  border-radius: 0;
  background: transparent;
  font-style: normal;
  transform: none;
  color: #EDE8DE;
  outline: none;
}

.btn--text:hover::after,
.btn--text:focus-visible::after {
  transform: none;
}

@keyframes btnUnderlineRedraw {
  0%   { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}

.btn__arrow {
  display: inline-block;
  opacity: 1;
  transition: none;
}

.btn:hover .btn__arrow {
  transform: none;
  opacity: 1;
}

.btn--ai .btn__arrow {
  opacity: 0.78;
  transition: none;
}

.btn--ai:hover .btn__arrow,
.btn--ai:focus-visible .btn__arrow {
  transform: none;
  opacity: 0.78;
}

.hero-main__safety {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(12px, 0.82vw, 13px);
  line-height: var(--lh-label-tight);
  letter-spacing: 0.03em;
  color: #EDE8DE;
  text-transform: lowercase;
}

/* ═══════════════════════════════════════════════
   03. REEL
   ═══════════════════════════════════════════════ */

.section--reel {
  min-height: 112vh;
  display: flex;
  align-items: center;
  background: transparent;
  padding: clamp(140px, 14vw, 188px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.reel__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.reel__video {
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.reel__veil {
  position: absolute;
  inset: 0;
  background: none;
}

.reel__layout {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "left   center"
    ".      center"
    "bottom center";
  column-gap: clamp(32px, 5vw, 84px);
  padding: 0 var(--grid-padding);
  align-items: start;
  min-height: min(860px, 92vh);
}

.reel__left {
  grid-area: left;
  align-self: start;
  padding-top: 8px;
}

.reel__pregunta {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #EDE8DE;
  max-width: none;
  text-transform: lowercase;
}

.reel__center {
  grid-area: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
}

.reel__headline-wrap {
  position: relative;
  display: inline-block;
  max-width: min(980px, 100%);
  padding-right: 0;
}

.reel__copy {
  display: grid;
  gap: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: clamp(50px, 5.2vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.018em;
  color: var(--color-text);
}

.reel__line {
  display: block;
  white-space: nowrap;
  line-height: inherit;
}

.reel__line--with-play {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(4px, 0.55vw, 8px);
}

.reel__copy .kw {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
}

.reel__play {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: clamp(49px, 4vw, 57px);
  height: clamp(38px, 3.2vw, 45px);
  padding: 0;
  margin: 0;
  appearance: none;
  background: none;
  border: 0;
  color: var(--color-accent);
  filter: none;
  overflow: visible;
  cursor: pointer;
  transition:
    transform var(--dur-base) var(--ease-out),
    filter var(--dur-base) var(--ease-out);
  transform: translateY(-2px);
}

.reel__play-graphic {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reel__play-graphic path {
  fill: currentColor;
}

.reel__play-graphic text {
  fill: var(--color-bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.reel__play:hover {
  transform: translateY(-2px) scale(1.03);
  filter: none;
}

.reel__play:focus-visible {
  outline: var(--line-hairline) solid #EDE8DE;
  outline-offset: 8px;
}

.reel__bottom {
  grid-area: bottom;
  align-self: end;
  padding-bottom: 4px;
}

.reel__link {
  position: relative;
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #EDE8DE;
  text-decoration: none;
  padding-bottom: 4px;
  text-transform: lowercase;
}

.reel__link::after {
  content: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #EDE8DE;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.reel__link:hover::after,
.reel__link:focus-visible::after {
  transform: none;
}

.reel__link:focus-visible {
  outline: none;
}

/* ═══════════════════════════════════════════════
   04. SERVICIOS
   ═══════════════════════════════════════════════ */

.section--servicios {
  padding: clamp(148px, 16vw, 220px) 0;
  background: rgba(20, 20, 20, 0.05);
  position: relative;
  z-index: var(--z-content);
}

.servicios__intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: min(760px, 100%);
  margin-bottom: clamp(112px, 12vw, 168px);
}

.servicios__intro-kicker {
  display: none;
  margin: 7px 0 0;
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: var(--ls-label-meta);
  text-transform: none;
  color: #EDE8DE;
}

.servicios__intro-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-header);
  font-size: clamp(21px, 2.15vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: #EDE8DE;
  opacity: 1;
  max-width: 28ch;
  text-wrap: balance;
}

.servicios__list {
  width: 100%;
  border-top: 1px solid #EDE8DE;
  display: flex;
  flex-direction: column;
}

/* Servicio item */
.servicio {
  width: 100%;
  position: relative;
}

.servicio__header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(44px, 5.2vw, 72px) 0 clamp(36px, 4.4vw, 56px);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #EDE8DE;
  opacity: 1;
  gap: clamp(18px, 3vw, 40px);
}

.servicio__header-inner {
  display: grid;
  grid-template-columns: minmax(156px, 210px) minmax(240px, 1fr) minmax(200px, 320px);
  align-items: start;
  gap: clamp(22px, 3.4vw, 58px);
  flex-grow: 1;
}

.servicio__contexto {
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: 14px;
  text-transform: none;
  color: #EDE8DE;
  opacity: 1;
  letter-spacing: var(--ls-label-meta);
  line-height: 1.35;
}

.servicio__titulo {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: #EDE8DE;
  opacity: 1;
  overflow: visible;
  max-width: none;
  text-overflow: clip;
  transition: color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.service-roll {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: none;
  min-width: max-content;
  overflow: visible;
  line-height: 1;
}

.service-roll__viewport {
  position: relative;
  display: grid;
  overflow: hidden;
  width: max-content;
  max-width: none;
  min-width: max-content;
  height: 1.1em;
  line-height: 1.1;
}

.service-roll__line {
  display: block;
  grid-area: 1 / 1;
  width: max-content;
  max-width: none;
  min-width: max-content;
  height: 1.1em;
  line-height: 1.1;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.service-roll__line--default {
  transform: translate3d(0, calc(var(--service-roll-default-y, 0) * 1%), 0);
}

.service-roll__line--hover {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: none;
  min-width: max-content;
  white-space: nowrap;
  transform: translate3d(0, calc(var(--service-roll-hover-y, 110) * 1%), 0);
  pointer-events: none;
}

.service-roll__char {
  display: inline-block;
  white-space: pre;
  transform: translate3d(0, calc(var(--service-roll-char-y, 110) * 1%), 0);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .service-roll__line--default {
    --service-roll-default-y: 0 !important;
  }

  .service-roll__line--hover {
    --service-roll-hover-y: 110 !important;
  }

  .service-roll__char {
    --service-roll-char-y: 110 !important;
  }
}

.servicio__header:hover .servicio__titulo {
  opacity: 1;
}

.servicio.is-open .servicio__titulo {
  opacity: 1;
}

.servicio__oneliner {
  margin: clamp(10px, 1.4vw, 18px) 0 0;
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-synthesis: none;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: #EDE8DE;
  opacity: 1;
  max-width: 32ch;
  transition: color var(--dur-base) var(--ease-out);
}

.servicio__header:hover .servicio__oneliner {
  color: #EDE8DE;
}

.servicio.is-open .servicio__oneliner {
  color: #EDE8DE;
}

.servicio__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-top: 4px;
  border: none;
  background: transparent;
  color: #EDE8DE;
  opacity: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.servicio__icon {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 34px;
  line-height: 1;
  color: #EDE8DE;
  opacity: 1;
  transition: color 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.servicio__header:hover .servicio__icon {
  color: #EDE8DE;
}

.servicio.is-open .servicio__icon-wrap {
  transform: rotate(45deg);
}

.servicio.is-open .servicio__icon {
  color: #EDE8DE;
}

.servicio__body {
  width: 100%;
}

.servicio__body-inner {
  padding: 0 0 clamp(60px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(156px, 210px) minmax(0, 760px);
  gap: clamp(20px, 3.4vw, 58px);
}

.servicio__body-inner::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 13px;
  background: #EDE8DE;
}

.servicio__text {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 56ch;
  color: #EDE8DE;
  opacity: 1;
  margin-bottom: 22px;
}

.servicio__cta {
  align-self: flex-start;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  font-size: 14px;
  line-height: var(--lh-button);
  padding: 0 0 6px 0;
  color: #EDE8DE;
  opacity: 1;
}

.servicio__cta:hover {
  transform: none;
}

.servicio__divider {
  width: 100%;
  height: 1px;
  background: #EDE8DE;
}

/* ═══════════════════════════════════════════════
   05. IMPACT + TRUST
   ═══════════════════════════════════════════════ */

.section--impact {
  background: rgba(20, 20, 20, 0.05);
  position: relative;
  z-index: var(--z-content);
  padding: clamp(148px, 16vw, 220px) 0;
}

.impact__content {
  display: flex;
  flex-direction: column;
  gap: clamp(104px, 10.5vw, 164px);
}

.impact__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  align-items: end;
}

.impact__metric {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
  min-width: 0;
  padding-right: clamp(10px, 1.1vw, 20px);
}

.impact__metric:not(:first-child) {
  border-left: 1px solid #EDE8DE;
  padding-left: clamp(20px, 2.2vw, 34px);
}

.impact__number {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: clamp(86px, 7.6vw, 120px);
  line-height: 0.84;
  letter-spacing: -0.03em;
  color: #EDE8DE;
  opacity: 1;
}

.impact__descriptor {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(16px, 1.18vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  max-width: 17ch;
  color: #EDE8DE;
  opacity: 1;
}

.impact__quote-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-top: clamp(44px, 4.8vw, 70px);
  border-top: 1px solid #EDE8DE;
}

.impact__quote {
  font-family: var(--font-display);
  font-weight: var(--fw-header);
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.014em;
  max-width: 42ch;
  text-wrap: balance;
}

.impact__logos-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(42px, 4vw, 58px);
}

.impact__logos-intro,
.impact__awards-text {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.34;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 48ch;
  color: #EDE8DE;
  opacity: 1;
  white-space: normal;
  text-wrap: balance;
}

.impact__logos-intro {
  margin: 0 auto;
}

.impact__logos-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(22px, 2.1vw, 34px) clamp(22px, 2.2vw, 34px);
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  align-items: center;
}

.impact__logos-grid img {
  width: min(100%, 156px);
  height: clamp(56px, 4vw, 68px);
  object-fit: contain;
  opacity: 1;
  filter: none;
  justify-self: center;
  transition: opacity 0.3s ease;
}

.impact__logos-grid img:hover,
.impact__awards-row img:hover {
  opacity: 1;
  filter: none;
}


.impact__awards-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 2.6vw, 36px);
  padding-top: clamp(40px, 3.8vw, 54px);
  margin-top: 0;
  border-top: 1px solid #EDE8DE;
}

.impact__awards-intro {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(10px, 0.72vw, 11px);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #EDE8DE;
  opacity: 1;
}

.impact__awards-text {
  margin: 0;
}

.impact__awards-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 1.8vw, 24px);
}

.impact__awards-row img {
  width: auto;
  max-width: 124px;
  height: clamp(48px, 3.4vw, 62px);
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: opacity 0.3s ease;
}

.section--servicios .servicios__intro-text,
.section--servicios .servicio__header,
.section--servicios .servicio__contexto,
.section--servicios .servicio__titulo,
.section--servicios .servicio__oneliner,
.section--servicios .servicio__text,
.section--servicios .servicio__cta,
.section--servicios .servicio__icon,
.section--servicios .servicio__icon-wrap,
.section--impact .impact__metrics,
.section--impact .impact__metric,
.section--impact .impact__number,
.section--impact .impact__descriptor,
.section--impact .impact__logos-intro,
.section--impact .impact__awards-text,
.section--impact .impact__awards-intro {
  color: #EDE8DE !important;
  opacity: 1 !important;
}

.section--servicios .servicios__list,
.section--impact .impact__metric,
.section--impact .impact__quote-wrap,
.section--impact .impact__awards-section {
  border-color: #EDE8DE !important;
}

.section--servicios .servicio__divider,
.section--servicios .servicio__body-inner::before {
  background: #EDE8DE !important;
  opacity: 1 !important;
}

.section--impact .impact__logos-grid img,
.section--impact .impact__awards-row img {
  opacity: 1 !important;
  filter: none !important;
}

/* ═══════════════════════════════════════════════
   06. PROCESO
   ═══════════════════════════════════════════════ */

.section--proceso {
  background: rgba(20, 20, 20, 0.05);
  position: relative;
  z-index: var(--z-content);
}

.proceso__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(156px, 17vw, 244px) 0;
  gap: clamp(110px, 11.5vw, 180px);
}

.proceso__headline {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: var(--fs-hero-headline-fluid);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-align: center;
  width: 100%;
  max-width: 14ch;
  margin: 0 auto;
  text-wrap: balance;
}

.proceso__headline .kw {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
}

.proceso__steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 0;
}

.proceso__step {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 3vw, 46px);
  width: 100%;
  border-bottom: 0;
  min-height: clamp(240px, 30vh, 340px);
  padding: clamp(46px, 5.4vw, 84px) 0;
}

.proceso__step-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.proceso__step-num {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #EDE8DE;
  position: relative;
  top: 6px;
}

.proceso__step-verb {
  font-family: var(--font-body);
  font-weight: var(--fw-body-base);
  font-size: clamp(48px, 4.6vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.proceso__step-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
  padding-bottom: clamp(10px, 1vw, 18px);
}

.proceso__step-desc {
  font-family: var(--font-display);
  font-weight: var(--fw-header);
  font-size: clamp(21px, 1.8vw, 27px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-style: normal;
  max-width: 26ch;
  text-align: right;
  color: #EDE8DE;
  margin: 0;
}

.proceso__step-desc-keep {
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   07. CONVERSION
   ═══════════════════════════════════════════════ */

.section--conversion {
  /* Background semi-transparent: el bg-video vive detrás como textura silenciosa */
  background: rgba(20, 20, 20, 0.06);
  position: relative;
  z-index: var(--z-content);
  min-height: 112vh;
  padding: clamp(144px, 15vw, 208px) 0;
}

.conversion__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(56px, 5.6vw, 76px);
}

/* Headline alineado con escala Hero — sin inversión de jerarquía */
.conversion__headline {
  font-family: var(--font-display);
  font-weight: var(--fw-header);
  font-size: var(--fs-hero-headline-fluid);
  line-height: var(--lh-hero-headline-fluid);
  letter-spacing: var(--ls-hero-headline-fluid);
  color: var(--color-text);
  text-align: center;
  max-width: 20ch;
  margin: 0;
  text-wrap: balance;
}

.conversion__headline .kw {
  font-family: var(--font-body);
  font-weight: var(--fw-body-base, var(--fw-book));
}

.conversion__subtitle {
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: clamp(16px, 1.22vw, 19px);
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: #EDE8DE;
  text-align: center;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  text-wrap: nowrap;
}

/* Módulo: contenedor editorial transparente — toggle + card como una sola pieza */
.conversion__module {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.78);
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

.conversion__cards {
  width: 100%;
  padding-top: 0;
  border-top: 0;
}

/* ═══════════════════════════════════════════════
   08. CIERRE
   ═══════════════════════════════════════════════ */

.section--cierre {
  background: rgba(20, 20, 20, 0.08);
  position: relative;
  z-index: var(--z-content);
  padding: clamp(112px, 12vw, 164px) 0 clamp(220px, 22vw, 320px);
}

.cierre__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 3.6vw, 52px);
  text-align: left;
}

.cierre__headline {
  font-family: var(--font-display);
  font-weight: var(--fw-header);
  font-size: var(--fs-closing-headline-fluid);
  line-height: var(--lh-closing-headline-fluid);
  letter-spacing: var(--ls-closing-headline-fluid);
  color: var(--color-text);
  max-width: none;
  margin: 0;
  text-wrap: wrap;
}

.cierre__headline .kw {
  font-family: var(--font-body);
  font-weight: var(--fw-body-base);
}

.cierre__cta {
  align-self: flex-start;
}

.cierre__cta.btn--outline:hover {
  border-radius: var(--radius-round);
}

.servicio__oneliner--marca {
  max-width: 35ch;
}

.servicio__oneliner-keep {
  white-space: nowrap;
}
