/* ============================================================
   HERO — Sección de portada a pantalla completa
   ============================================================ */

#hero {
  height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8vh;
  overflow: hidden;
}

/* — Imagen de fondo ———————————————————————————————————————— */
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1a0820;
  background-image: url('../img/Hero.png');
  background-position: top left;
  background-size: cover;
  background-repeat: no-repeat;
  transform-origin: top left;
  z-index: 0;
  /* Ligero zoom suave */
  animation: heroZoom 20s ease-in-out alternate infinite;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: 65% top;
    transform-origin: 65% top;
  }
}

/* Gradiente oscuro: más intenso en inferior para leer el texto */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(7,3,10,0.35) 0%,
      rgba(7,3,10,0.1)  35%,
      rgba(7,3,10,0.6)  65%,
      rgba(7,3,10,0.92) 100%
    ),
    /* Vignette lateral */
    radial-gradient(ellipse 80% 100% at 50% 100%, transparent 40%, rgba(7,3,10,0.4) 100%);
}

/* — Imagen de nombre (overhero.png) ————————————————————— */
.hero-name-img {
  position: absolute;
  left: clamp(2rem, 6vw, 7rem);
  top: 15%;
  transform: translateY(0);
  max-height: 55vh;
  width: auto;
  max-width: 40%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
  .hero-name-img {
    left: 5%;
    right: 5%;
    width: 90%;
    max-width: none;
    max-height: none;
    top: auto;
    bottom: 12%;
    transform: none;
  }
}

@keyframes heroNameFloat {
  0%, 100% { filter: drop-shadow(0 4px 32px rgba(0,0,0,0.5)); transform: translateY(0); }
  50%       { filter: drop-shadow(0 8px 40px rgba(212,120,154,0.25)); transform: translateY(-6px); }
}

@media (max-width: 480px) {
  .hero-name-img {
    left: 4%;
    right: 4%;
    width: 92%;
    max-width: none;
    max-height: none;
    top: auto;
    bottom: 10%;
    transform: none;
  }
}

/* — Contenido textual ———————————————————————————————————— */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s ease forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-light));
}
.hero-eyebrow::after {
  background: linear-gradient(90deg, var(--brand-light), transparent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.92;
  color: var(--fg);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  margin-bottom: 0.3em;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s ease forwards;
}

.hero-title-line2 {
  display: block;
  font-style: italic;
  color: var(--brand);
  /* Sutil gradiente de texto */
  background: linear-gradient(135deg, var(--brand-light), var(--brand), var(--mauve));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  max-width: 440px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s ease forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 1s ease forwards;
}

/* — Scroll indicator ————————————————————————————————————— */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(240,234,238,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: bounceScroll 2.5s ease-in-out infinite;
  opacity: 0;
  animation: fadeIn 1s 1.5s ease forwards, bounceScroll 2.5s 2.5s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(212,120,154,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { height: 36px; opacity: 0.4; }
  50%       { height: 52px; opacity: 0.85; }
}

/* — Overlay con orbe de luz ——————————————————————————————— */
.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,120,154,0.12) 0%, transparent 70%);
  top: 10%;
  right: -10%;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 20px) scale(1.08); }
}

/* — Animaciones de entrada ————————————————————————————————— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bounceScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes overHeroReveal {
  0%   { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes overHeroRevealMobile {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

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

/* — Animación overhero: se activa cuando el splash termina —— */
.hero-ready .hero-name-img {
  animation: overHeroReveal 2s 0.1s ease-out forwards;
}

@media (max-width: 768px) {
  .hero-ready .hero-name-img {
    animation: overHeroRevealMobile 2s 0.1s ease-out forwards,
               heroFloat 4s 2.2s ease-in-out infinite;
  }
  .hero-ready .hero-scroll {
    animation: fadeIn 1s 1.5s ease forwards, bounceScroll 4s 2.2s ease-in-out infinite;
  }
}
