/* ══════════════════════════════════════════════════════
   hero.css — Sección hero (fullscreen)
   ══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-green-dark);
}

/* ══════════════════════════════════════════════════════
   CAPAS PARALLAX
   Estructura en el HTML:
     .hero
       .hero-layer[data-depth="0.1"]   ← fondo (video o imagen)
       .hero-layer[data-depth="0.3"]   ← capa media (PNG recortado)
       .hero-layer[data-depth="0.6"]   ← primer plano (PNG recortado)
       .hero-overlay
       .hero-content
       .hero-scroll
   ══════════════════════════════════════════════════════ */

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  /* ancho extra para que el parallax no deje bordes vacíos */
  margin-left: -5%;
  width: 110%;
}

/* ── Video de fondo ───────────────────────────────────
   Pegá tu video en assets/hero-video.mp4
   En index.html reemplazá .hero-bg--placeholder por:

   <video class="hero-layer hero-video"
          data-depth="0.1"
          autoplay muted loop playsinline
          aria-hidden="true">
     <source src="assets/hero-video.mp4" type="video/mp4">
   </video>
   ──────────────────────────────────────────────────── */
.hero-video {
  object-fit: cover;
  object-position: center;
}

/* ── Imágenes de capas (PNG recortados) ───────────────
   Agregá en index.html dentro de .hero:

   <div class="hero-layer hero-layer--mid" data-depth="0.3" aria-hidden="true">
     <img src="assets/hero-mid.png" alt="">
   </div>
   <div class="hero-layer hero-layer--fg" data-depth="0.6" aria-hidden="true">
     <img src="assets/hero-fg.png" alt="">
   </div>
   ──────────────────────────────────────────────────── */
.hero-layer--mid,
.hero-layer--fg {
  pointer-events: none;
}

.hero-layer--mid img,
.hero-layer--fg img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* ── Placeholder (se elimina cuando tengas el video) ── */
.hero-bg--placeholder {
  background: linear-gradient(160deg, #0d3321 0%, #1a5c3a 40%, #236b44 70%, #0d2e1e 100%);
  margin-left: 0;
  width: 100%;
}

.hero-bg--placeholder::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,134,83,0.3) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: hero-glow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-glow {
  from { transform: scale(0.9); opacity: 0.5; }
  to   { transform: scale(1.2); opacity: 1; }
}

/* ── Overlay (sobre el video/placeholder) ─────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,35,20,0.3) 0%,
    rgba(10,35,20,0.55) 50%,
    rgba(10,35,20,0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ── Contenido ────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-md);
  max-width: 900px;
  animation: hero-in 1.2s ease both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 1vw, 6.5rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 0.95;
  margin-bottom: 1rem;
  letter-spacing: -0.01rem;
}

.hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-gold);
  color: var(--color-gray-dark);
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 2px solid var(--color-gold);
  transition: all var(--transition-normal);
}

.hero-cta:hover {
  background: transparent;
  color: var(--color-gold);
}

/* ── Indicador de scroll ──────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
}

/* ════════════════════════════════════════════════════
   HERO SVG PLACEHOLDER (mientras no hay fotos reales)
   Tres capas SVG inline como data-depth layers:

   Capa 0.1 — cielo / fondo
   Capa 0.3 — ciudad / horizonte medio
   Capa 0.6 — grúa / contenedor primer plano

   Para reemplazar: borrá .hero-svg-* y dejá solo
   las capas con video/imagen real.
   ════════════════════════════════════════════════════ */

.hero-svg-bg {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 130%;
  top: -15%;
  left: -5%;
  will-change: transform;
}

.hero-svg-mid {
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 110%;
  height: 75%;
  will-change: transform;
  pointer-events: none;
}

.hero-svg-fg {
  position: absolute;
  bottom: -8%;
  left: -5%;
  width: 72%;
  height: 65%;
  will-change: transform;
  pointer-events: none;
}

/* En mobile las capas SVG se ajustan */
@media (max-width: 600px) {
  .hero-svg-mid { width: 130%; height: 60%; }
  .hero-svg-fg  { width: 95%;  height: 55%; bottom: -5%; }
}
