/* ==========================================================================
   HOME PAGE — front-page.php
   Loaded async. Requires tokens.css (inlined) + base.css + components.css.
   ========================================================================== */

/* ── Home Hero (nuevo, referencia tipo VIVRE) ────────────────────────────────
   100svh, fondo de video/imagen (pendiente) + degradado para legibilidad,
   contenido anclado abajo a la izquierda. Sin texto todavía — eyebrow y
   headline se agregan cuando haya copy real. El .mv-hero de abajo es el
   diseño anterior (centrado, con palmeras) — se deja sin usar por ahora,
   no se borra por si se retoma más adelante. ── */

.mv-home-hero {
  position: relative;
  height: 100vh;
  min-height: 100svh; /* respaldo por si vh se queda corto en algún navegador/emulación */
  overflow: hidden;
  background-color: var(--mv-dark); /* placeholder mientras no hay video */
}

.mv-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 3 videos en secuencia con crossfade (ver home.js) — dos <video> se turnan,
   nunca 3 a la vez, el que no está activo precarga el siguiente clip. */
.mv-home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Un poco más grande que su caja (recortada por overflow:hidden en
     .mv-home-hero) — empuja la marca de agua de Runway (esquina) fuera
     del área visible, sin tener que editar el archivo de video. */
  transform: scale(1.22);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo);
}

.mv-home-hero__video.is-active {
  opacity: 1;
}

/* Oscurece arriba (donde va el nav: logo/enlaces/botón) Y abajo (donde va
   el texto del hero), dejando el centro más despejado para que el video
   respire — así nada se pierde sin importar qué tan clara sea la escena. */
.mv-home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(24, 24, 24, 0.6) 0%,
      rgba(24, 24, 24, 0.15) 22%,
      rgba(24, 24, 24, 0.15) 55%,
      rgba(24, 24, 24, 0) 100%
    ),
    rgba(24, 24, 24, 0.2);
}

.mv-home-hero__content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  /* Full-bleed, igual que el nav en Home y el footer — solo el gutter
     como padding, sin max-width centrado. */
  padding: 0 var(--gutter) var(--space-2xl);
}

.mv-home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem; /* 14px fijo — igual en todos los breakpoints, como la referencia */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.mv-home-hero__eyebrow::after {
  content: '';
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.mv-home-hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem); /* 32px → 80px, igual a la referencia */
  line-height: 1.2;
  letter-spacing: 0;
  color: #fff;
  max-width: 16ch;
}

.mv-home-hero__headline em {
  font-style: normal;
  font-weight: 400;
}

/* ── Responsive: eyebrow + headline ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .mv-home-hero__content {
    padding-bottom: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .mv-home-hero__content {
    padding-bottom: 4.5rem;
  }

  .mv-home-hero__eyebrow {
    gap: 0.5rem;
  }

  .mv-home-hero__eyebrow::after {
    width: 36px;
  }

  .mv-home-hero__headline {
    max-width: 18ch;
  }
}

/* ── Hero (diseño anterior, sin usar por ahora) ──────────────────────────── */

.mv-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mv-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mv-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-cinematic) var(--ease-out-expo);
}

.mv-hero__video.is-loaded {
  opacity: 1;
}

.mv-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(24, 24, 24, 0.55) 0%,
    rgba(24, 24, 24, 0.25) 45%,
    rgba(24, 24, 24, 0.75) 100%
  );
}

/* Palms */
.mv-hero__palms {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mv-hero__palm {
  position: absolute;
  bottom: 0;
  height: 75vh;
  width: auto;
  max-width: none;
}

.mv-hero__palm--ll {
  left: -1%;
  transform-origin: bottom center;
  animation: mv-palm-sway 8s ease-in-out infinite;
}

.mv-hero__palm--ls {
  left: 9%;
  transform-origin: bottom center;
  animation: mv-palm-sway 10.5s ease-in-out infinite reverse;
}

.mv-hero__palm--rs {
  right: 9%;
  transform-origin: bottom center;
  animation: mv-palm-sway 9s ease-in-out infinite;
}

.mv-hero__palm--rl {
  right: -1%;
  transform-origin: bottom center;
  animation: mv-palm-sway 7.5s ease-in-out infinite reverse;
}

@keyframes mv-palm-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50%       { transform: rotate(1.5deg); }
}

/* Content */
.mv-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--gutter);
  max-width: 960px;
  width: 100%;
}

.mv-hero__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mv-red);
  margin-bottom: 1.5rem;
}

.mv-hero__title {
  display: block;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.mv-hero__medellin {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 10rem);
  font-weight: 700;
  color: #fff;
}

.mv-hero__vice {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 14.5vw, 11.5rem);
  color: #fff;
  letter-spacing: -0.015em;
}

.mv-hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
  min-height: 1.6em;
  margin-bottom: 2.5rem;
}

.mv-hero__cursor {
  display: inline-block;
  color: var(--mv-red);
  animation: mv-cursor-blink 1s step-end infinite;
  margin-left: 1px;
}

@keyframes mv-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.mv-hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Scroll hint */
.mv-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mv-hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35));
  animation: mv-scroll-hint 2.2s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes mv-scroll-hint {
  0%        { transform: scaleY(0); opacity: 0; }
  40%, 60%  { transform: scaleY(1); opacity: 1; }
  100%      { transform: scaleY(0); opacity: 0; }
}

/* ── Authority Section ────────────────────────────────────────────────────── */

.mv-authority {
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mv-authority__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mv-authority__card {
  padding: var(--space-xl) var(--gutter);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.mv-authority__card:last-child {
  border-right: none;
}

.mv-authority__number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
  line-height: 1;
}

.mv-authority__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
}

.mv-authority__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.75vw, 2.5rem);
  font-weight: 700;
  color: var(--mv-red);
}

.mv-authority__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 0.375rem;
}

/* ── Verticals Section ────────────────────────────────────────────────────── */

.mv-verticals {
  padding: var(--space-2xl) var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mv-verticals__header {
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.mv-verticals__pretitle {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mv-red);
  margin-bottom: 0.875rem;
}

.mv-verticals__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
}

.mv-verticals__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
}

.mv-verticals__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Vertical card */
.mv-vertical-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  min-height: 380px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out-expo);
}

.mv-vertical-card:hover {
  transform: translateY(-6px);
  z-index: 1;
}

.mv-vertical-card--green { background-color: var(--mv-green); color: var(--mv-lime); }
.mv-vertical-card--wine  { background-color: var(--mv-wine);  color: var(--mv-pink); }
.mv-vertical-card--aqua  { background-color: var(--mv-aqua);  color: var(--mv-dark); }
.mv-vertical-card--lime  { background-color: var(--mv-lime);  color: var(--mv-dark); }

.mv-vertical-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  opacity: 0.45;
  margin-bottom: auto;
}

.mv-vertical-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: var(--space-xl);
  margin-bottom: 0.75rem;
}

.mv-vertical-card__desc {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.72;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.mv-vertical-card__cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  align-self: flex-start;
  transition: opacity var(--dur-fast);
}

.mv-vertical-card:hover .mv-vertical-card__cta {
  opacity: 1;
}

/* ── CTA Section ──────────────────────────────────────────────────────────── */

.mv-cta-section {
  padding: var(--space-2xl) var(--gutter);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mv-cta-section__pretitle {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.mv-cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
}

.mv-cta-section__title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .mv-authority__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mv-authority__card:nth-child(2) { border-right: none; }
  .mv-authority__card:nth-child(3) { border-top: 1px solid rgba(255, 255, 255, 0.07); border-right: 1px solid rgba(255, 255, 255, 0.07); }
  .mv-authority__card:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, 0.07); border-right: none; }

  .mv-verticals__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mv-vertical-card {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .mv-hero__palm--ls,
  .mv-hero__palm--rs {
    display: none;
  }

  .mv-hero__palm {
    height: 55vh;
  }

  .mv-authority__grid {
    grid-template-columns: 1fr;
  }

  .mv-authority__card {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: var(--space-lg) var(--gutter);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mv-authority__card:first-child {
    border-top: none;
  }

  .mv-verticals__grid {
    grid-template-columns: 1fr;
  }

  .mv-vertical-card {
    min-height: 260px;
  }
}
