/* ==========================================================================
   hero.css - Estilos para Hero con Imagen de Fondo y Formas Geométricas
   ========================================================================== */

.hero-poster {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 3rem 0 3rem;
  overflow: hidden;

  /* Imagen de Fondo Preestablecida */
  background-image: url('../img/2_fondo_preestablecido.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sombra leve opcional para mantener contraste del texto sobre la imagen */
.hero-poster::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Encabezado superior con 3 Logos */
.hero-top-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  width: 100%;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-logos-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-logo-img {
  height: clamp(48px, 7vw, 80px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.489));
}

.brand-year {
  text-align: right;
  color: var(--color-text-light);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.brand-year span {
  display: block;
  font-size: 1.1rem;
}

/* Disposición central del cartel */
.hero-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  margin-top: 15rem;
}

/* Título Tipográfico Gigante estilo Afiche */
.poster-title-group {
  text-align: center;
  z-index: 12;
  margin-bottom: 1rem;
  /* Varias capas de sombra (no una caja) para que el texto resalte contra
     la foto de fondo sin importar el color que tenga en ese momento. */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.65),
    0 6px 16px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(0, 0, 0, 0.4);
}

.poster-number,
.poster-festival,
.poster-international,
.poster-sub {
  animation: ciclo-color-hero 10s ease-in-out infinite;
}

.poster-number {
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: var(--font-weight-semibold);
  display: inline-block;
  vertical-align: middle;
  line-height: 0.85;
}

.poster-festival {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.poster-international {
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

.poster-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  font-weight: var(--font-weight-regular);
}

/* Transición suave entre blanco y amarillo de acento. */
@keyframes ciclo-color-hero {
  0%, 100% { color: #FFFFFF; }
  50%      { color: var(--color-accent-yellow); }
}

@media (prefers-reduced-motion: reduce) {
  .poster-number,
  .poster-festival,
  .poster-international,
  .poster-sub {
    animation: none;
    color: var(--color-text-light);
  }
}

/* Contenedor Composición Central para las Formas */
.poster-center-composition {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Formas Geométricas Posicionadas */
.hero-shapes-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.poster-shape {
  position: absolute;
  opacity: 0.85;
}

.shape-pill-yellow {
  width: 75px;
  height: 150px;
  background-color: var(--color-accent-yellow);
  top: -14px;
  left: 10%;
}

.shape-arch-blue {
  width: 150px;
  height: 175px;
  background-color: var(--color-dark-blue);
  top: 0px;
  left: 22%;
}

.shape-arch-magenta {
  width: 135px;
  height: 160px;
  background-color: var(--color-magenta);
  top: 7px;
  right: 15%;
}

.shape-semicircle-green {
  width: 120px;
  height: 120px;
  background-color: var(--color-green);
  bottom: 8px;
  right: 5%;
}

.shape-pill-teal {
  width: 68px;
  height: 110px;
  background-color: var(--color-teal);
  bottom: 14px;
  right: 30%;
}

/* ==========================================================================
   2. Banner Informativo
   ========================================================================== */
.info-banner {
  width: 100%;
  background-color: var(--color-dark-blue);
  color: var(--color-text-light);
  position: relative;
  z-index: 20;
}

.banner-main-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  gap: 3rem;
}

.banner-date-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.banner-calendar-icon {
  width: 50px;
  height: 50px;
  border: 2px solid var(--color-accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulso-calendario 2s ease-out infinite;
}

.banner-calendar-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-text-light);
}

@keyframes pulso-calendario {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 186, 8, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 186, 8, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 186, 8, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-calendar-icon,
  .banner-date-numbers,
  .banner-description strong {
    animation: none;
  }
}

.banner-date-text {
  display: flex;
  flex-direction: column;
}

.banner-date-numbers {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  color: var(--color-accent-yellow);
  line-height: 1;
  animation: brillo-texto 2.6s ease-in-out infinite;
}

.banner-date-month {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  color: var(--color-text-light);
  letter-spacing: 1.5px;
}

.banner-divider {
  width: 2px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.4);
}

.banner-description {
  max-width: 460px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
  font-size: 0.98rem;
  line-height: 1.55;
}

.banner-description strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-yellow);
  animation: brillo-texto 2.6s ease-in-out infinite;
}

/* Desfasa cada palabra destacada para que el brillo se sienta orgánico,
   no como si las tres titilaran sincronizadas al mismo tiempo. */
.banner-description strong:nth-of-type(2) {
  animation-delay: 0.5s;
}

.banner-description strong:nth-of-type(3) {
  animation-delay: 1s;
}

@keyframes brillo-texto {
  0%, 100% {
    text-shadow: 0 0 0 rgba(255, 186, 8, 0);
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 186, 8, 0.75);
  }
}

.animate-shape {
  will-change: transform, opacity;
}

/* ==========================================================================
   Adaptación responsiva del Hero (no existía en el archivo original)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-poster {
    min-height: auto;
    padding: 1.25rem 1.25rem 0 1.25rem;
  }

  .hero-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-logos-container {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero-logo-img {
    height: clamp(40px, 14vw, 56px);
  }

  .brand-year {
    text-align: left;
  }

  .poster-center-composition {
    height: 140px;
  }

  .banner-main-content {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .banner-divider {
    display: none;
  }
}