/* ==========================================================================
   ILRITORNO — hero-cinema.css
   Hero rediseñado con slider, logo rotando, animaciones de entrada
   ========================================================================== */

.hero--cinema {
  position: relative;
  min-height: 90vh;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--ir-cream) 0%,
    rgba(195, 198, 169, 0.18) 50%,
    var(--ir-cream) 100%
  );
}

@media (max-width: 767px) {
  .hero--cinema {
    min-height: auto;
    padding: 3rem 0;
  }
}

/* ============================================================
   LOGO CIRCULAR ROTANDO al fondo (decoración grande)
   ============================================================ */
.hero__rotating-logo {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 800px;
  height: 800px;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
  animation: ir-hero-rotate 80s linear infinite;
}

.hero__rotating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes ir-hero-rotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 1023px) {
  .hero__rotating-logo {
    width: 500px;
    height: 500px;
    left: -25%;
    opacity: 0.04;
  }
}

@media (max-width: 767px) {
  .hero__rotating-logo {
    width: 380px;
    height: 380px;
    left: -45%;
    top: 30%;
  }
}

/* ============================================================
   GRID HERO con texto + slider
   ============================================================ */
.hero__cinema-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-block: 2rem;
}

@media (min-width: 1024px) {
  .hero__cinema-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
    padding-block: 3rem 4rem;
  }
}

/* ============================================================
   TEXTO con animaciones de entrada
   ============================================================ */
.hero__content--anim {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__content--anim { text-align: left; }
}

.hero__eyebrow-anim {
  opacity: 0;
  animation: ir-fade-up 800ms ease 200ms forwards;
}

.hero__title-anim {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem) !important;
  line-height: 1.05 !important;
  margin-bottom: 1.25rem;
  font-family: var(--ir-font-display) !important;
  font-weight: 400 !important;
  opacity: 0;
  animation: ir-fade-up 1000ms ease 400ms forwards;
}

.hero__em {
  display: block;
  font-style: italic;
  color: var(--ir-earth);
  opacity: 0;
  animation: ir-fade-up 1000ms ease 700ms forwards;
}

.hero__lead-anim {
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  line-height: 1.65;
  color: var(--ir-olive);
  max-width: 540px;
  margin: 0 auto 1.75rem;
  opacity: 0;
  animation: ir-fade-up 800ms ease 1000ms forwards;
}

@media (min-width: 1024px) {
  .hero__lead-anim { margin-left: 0; margin-right: 0; }
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__actions { justify-content: flex-start; }
}

.hero__actions-anim {
  opacity: 0;
  animation: ir-fade-up 800ms ease 1300ms forwards;
}

@keyframes ir-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SLIDER DE PRODUCTOS — derecha
   ============================================================ */
.hero__cinema-media {
  position: relative;
  opacity: 0;
  animation: ir-fade-in 1500ms ease 800ms forwards;
}

@keyframes ir-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.hero__slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(46, 47, 36, 0.18),
              0 8px 30px rgba(46, 47, 36, 0.08);
  background: var(--ir-beige);
}

@media (min-width: 1024px) {
  .hero__slider { aspect-ratio: 4 / 5; }
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1200ms ease, transform 8000ms ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1.0);
}

/* Frame decorativo */
.hero__slider-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(240, 234, 219, 0.4);
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
}

/* Badge "Hecho hoy" */
.hero__slider-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(240, 234, 219, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  font-family: var(--ir-font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ir-dark);
  font-weight: 500;
  z-index: 3;
  animation: ir-badge-float 3s ease-in-out infinite;
}

@keyframes ir-badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
  animation: ir-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes ir-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.2); }
}

/* ============================================================
   DOTS de navegación
   ============================================================ */
.hero__slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  position: relative;
  z-index: 3;
}

.hero__dot {
  width: 32px;
  height: 4px;
  background: rgba(46, 47, 36, 0.18);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 350ms ease;
  padding: 0;
}

.hero__dot.is-active {
  background: var(--ir-earth);
  width: 56px;
}

.hero__dot:hover {
  background: var(--ir-olive);
}

/* ============================================================
   STATS strip al fondo del hero
   ============================================================ */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ir-line);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: ir-fade-up 800ms ease 1600ms forwards;
}

@media (min-width: 768px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.hero__stat {
  text-align: center;
}

@media (min-width: 768px) {
  .hero__stat {
    text-align: left;
    border-left: 1px solid var(--ir-line);
    padding-left: 1.5rem;
  }
  .hero__stat:first-child {
    border-left: none;
    padding-left: 0;
  }
}

.hero__stat-num {
  display: block;
  font-family: var(--ir-font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  color: var(--ir-dark);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero__stat-label {
  font-family: var(--ir-font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ir-olive);
}

/* ============================================================
   HOJAS DECORATIVAS más sutiles en hero
   ============================================================ */
.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
}

.hero__decor .leaf-tl {
  position: absolute;
  top: 5%;
  left: -2%;
  width: 220px;
  transform: rotate(-15deg);
  animation: ir-leaf-sway 6s ease-in-out infinite;
}

.hero__decor .leaf-br {
  position: absolute;
  bottom: 8%;
  right: -2%;
  width: 240px;
  transform: rotate(160deg);
  animation: ir-leaf-sway 7s ease-in-out infinite reverse;
}

@keyframes ir-leaf-sway {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50%      { transform: rotate(-12deg) translateY(-10px); }
}

@media (max-width: 767px) {
  .hero__decor { opacity: 0.15; }
  .hero__decor .leaf-tl { width: 140px; }
  .hero__decor .leaf-br { width: 160px; }
}

/* ============================================================
   Reduce motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__rotating-logo,
  .hero__slider-badge,
  .hero__badge-dot,
  .hero__decor .leaf-tl,
  .hero__decor .leaf-br {
    animation: none !important;
  }
  .hero__eyebrow-anim,
  .hero__title-anim,
  .hero__em,
  .hero__lead-anim,
  .hero__actions-anim,
  .hero__cinema-media,
  .hero__stats {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ============================================================
   Override del hero original
   ============================================================ */
.hero--cinema .hero__inner { display: none; }
