/* ─────── HERO · web pública ─────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
  isolation: isolate;
}

/* Imagen de fondo · fixed para efecto cinematográfico al scrollear */
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Fallback iOS Safari · no soporta bg-attachment fixed bien */
@supports (-webkit-touch-callout: none) {
  .hero-image { background-attachment: scroll; }
}

/* Vídeo de fondo · da movimiento · el póster (hero-image) es el LCP y se ve al instante;
   el vídeo aparece encima con un fundido cuando ya puede reproducirse */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
/* Respeto a quien prefiere menos movimiento · solo póster */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* Veladura para legibilidad · capa radial central + linear vertical */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Sombra elíptica detrás del contenido centrado */
    radial-gradient(ellipse 75% 55% at 50% 55%,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.32) 55%,
      transparent 80%),
    /* Vertical · oscurece arriba y abajo para enmarcar */
    linear-gradient(180deg,
      rgba(0,0,0,0.42) 0%,
      rgba(0,0,0,0.28) 25%,
      rgba(0,0,0,0.30) 55%,
      rgba(0,0,0,0.55) 88%,
      rgba(0,0,0,0.75) 100%);
}

/* Hilo vertical decorativo · referencia al brandbook */
.hero-thread {
  position: absolute;
  top: 0;
  left: 56px;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.2) 100%);
  z-index: 1;
  animation: heroThread 1.6s var(--ease-out) 0.6s forwards;
}
@keyframes heroThread {
  to { height: calc(100% - 64px); }
}
.hero-thread::after {
  content: '';
  position: absolute;
  bottom: -4px; left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  animation: heroNeedle 1.8s var(--ease-out) 1.4s forwards;
  opacity: 0;
}
@keyframes heroNeedle { to { opacity: 0.5; } }

/* Eyebrow superior · localización */
.hero-eyebrow {
  position: absolute;
  top: 100px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 1s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 0;
  border-top: 1px dashed rgba(255,255,255,0.5);
}

/* Contenido principal · centrado · cinematográfico */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 56px;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-family: 'Alice', serif;
  font-size: clamp(38px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: white;
  margin-bottom: 32px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease-out) 1.2s forwards;
}
.hero-tagline em {
  font-style: normal;
  color: white;
  display: block;
}

.hero-sub {
  max-width: 540px;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.95);
  margin-bottom: 48px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 1.5s forwards;
}

/* Acciones · primary verde + ghost link */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 1.7s forwards;
}

/* Primary · verde solid con wipe blanco al hover */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: 'Satoshi', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: white;
  background: var(--verde);
  border: 1px solid var(--verde);
  padding: 18px 32px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
}
.hero-cta:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}
.hero-cta:hover {
  color: var(--carbon);
  border-color: white;
}
.hero-cta-text { position: relative; z-index: 1; }
.hero-cta-arrow {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  position: relative;
  z-index: 1;
  transition: width 0.4s var(--ease-out);
}
.hero-cta:hover .hero-cta-arrow { width: 30px; }

/* Ghost · enlace con dashed underline animada */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Satoshi', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 18px 4px 8px;
  position: relative;
  transition: color 0.3s var(--ease-out);
}
.hero-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 30%;
  bottom: 0;
  height: 0;
  border-bottom: 1px dashed rgba(255,255,255,0.5);
  transition: right 0.5s var(--ease-out), border-color 0.3s;
}
.hero-link:hover {
  color: white;
}
.hero-link:hover::after {
  right: 0;
  border-color: white;
}
.hero-link-arrow {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
}
.hero-link:hover .hero-link-arrow {
  transform: translateX(6px);
}

/* Pie del hero · ubicación + scroll cue */
.hero-foot {
  position: absolute;
  bottom: 28px;
  left: 56px;
  right: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  z-index: 1;
  opacity: 0;
  animation: heroFadeIn 1.4s var(--ease-out) 2s forwards;
}
.hero-foot-meta { display: flex; gap: 20px; align-items: center; }
.hero-foot-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

/* Scroll cue · centrado abajo del hero, animación sutil */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  opacity: 0;
  animation: heroFadeIn 1.4s var(--ease-out) 2.2s forwards;
}
.hero-scroll-text {
  font-family: 'Satoshi', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: color 0.3s var(--ease-out);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 60%;
  background: white;
  animation: heroScrollDrop 2.4s var(--ease-in-out) infinite;
}
@keyframes heroScrollDrop {
  0% { transform: translateY(-100%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(170%); opacity: 0; }
}
.hero-scroll:hover .hero-scroll-text {
  color: white;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn { to { opacity: 1; } }

@media (max-width: 900px) {
  .hero-thread, .hero-eyebrow { left: 24px; }
  .hero-eyebrow { top: 84px; font-size: 8.5px; letter-spacing: 0.4em; }
  .hero-content { padding: 0 24px; }
  .hero-tagline { font-size: clamp(34px, 9vw, 56px); }
  .hero-sub { font-size: 14px; margin-bottom: 32px; }
  .hero-actions { gap: 20px; }
  .hero-cta { padding: 15px 24px; font-size: 10px; }
  .hero-foot { left: 24px; right: 24px; bottom: 22px; font-size: 8.5px; letter-spacing: 0.3em; }
  .hero-foot-meta { gap: 12px; }
  .hero-scroll-line { height: 36px; }
}
