/* ─────────────────────────────────────────
   HERO.CSS — Sección hero
   MNSM · Playground Agency
───────────────────────────────────────── */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* ─── FONDO ─── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #2a1f1a;
  background-image: url('../assets/images/hero/hero-bg.jpg');
  background-size: cover;
  background-position: 55% 50%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  will-change: transform;
}
.hero-bg.loaded { transform: scale(1); }

/* Placeholder visual mientras no hay foto */
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-bg-placeholder::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 80%;
  background: linear-gradient(160deg, #3d2b1f 0%, #1a1210 100%);
  opacity: 0.5;
}
.photo-placeholder-label {
  position: absolute;
  right: 27%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  z-index: 2;
  white-space: nowrap;
}

/* ─── OVERLAY ─── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.50) 55%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

/* ─── CONTENIDO ─── */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--section-pad-h) 80px;
  max-width: 55%;
}

.hero-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards 0.3s;
}

/* Titular con reveal por líneas */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: lineReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.65s; }
.hero-title .line:nth-child(3) span {
  animation-delay: 0.8s;
  color: var(--coral);
  font-style: italic;
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards 1.1s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: none;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards 1.3s;
  transition: background 0.25s, gap 0.25s;
}
.hero-cta:hover { background: #d9503f; gap: 16px; }

/* ─── SCROLL INDICATOR ─── */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: var(--section-pad-h);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.6s;
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite 2s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  #hero {
    align-items: center; /* centra verticalmente en lugar de flex-end */
  }

  .hero-content {
    max-width: 100%;
    padding: 100px 24px 60px; /* espacio para la nav arriba */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }

  .hero-title {
    font-size: clamp(44px, 13vw, 64px);
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 36px;
  }

  .hero-cta {
    /* Asegurar que el botón siempre es visible */
    align-self: flex-start;
  }

  .hero-scroll { display: none; }
  .photo-placeholder-label { display: none; }
}
