/* ==========================================================================
   HOME IMMERSIVE — index.php
   ========================================================================== */

.home-scroll-progress {
  position: fixed;
  top: 40px;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1002;
  background: linear-gradient(90deg, #fc2366, #fc4d86, #4da3ff);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Stats strip */
.home-stats {
  padding: 0;
  margin-top: 1.25rem;
  position: relative;
  z-index: 3;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: #163b60;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 40px rgba(19, 53, 87, 0.12);
  border: 1px solid rgba(19, 53, 87, 0.06);
}

.home-stats__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.5rem;
  border-right: 1px solid rgba(19, 53, 87, 0.08);
  transition: transform 0.3s ease;
}

.home-stats__item:last-child {
  border-right: 0;
}

.home-stats__item:hover {
  transform: translateY(-3px);
}

.home-stats__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fc4d86;
  color: #fff;
  flex-shrink: 0;
}

.home-stats__icon .material-icons {
  font-size: 1.25rem;
}

.home-stats__number {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fcfcfc;
  line-height: 1.1;
}

.home-stats__label {
  margin: 0;
  font-size: 0.72rem;
  color: #ffffff;
  font-weight: 600;
}

/* Scroll reveal */
@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeFilterIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-reveal--d1 { transition-delay: 0.08s; }
.home-reveal--d2 { transition-delay: 0.16s; }
.home-reveal--d3 { transition-delay: 0.24s; }
.home-reveal--d4 { transition-delay: 0.32s; }

.animate-fadeInUp {
  animation: homeFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Section eyebrows */
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 50px;
  background: rgba(252, 35, 102, 0.08);
  color: #fc2366;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-eyebrow .material-icons {
  font-size: 0.95rem;
}

.current-inicio .section__header {
  position: relative;
}

.current-inicio .programs__filter {
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.current-inicio .programs__filter:hover {
  transform: translateY(-2px);
}

.current-inicio .programs__filter.active-filter {
  box-shadow: 0 6px 18px rgba(252, 35, 102, 0.28);
}

.current-inicio .programs__item {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}

.current-inicio .programs__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(19, 53, 87, 0.14);
}

.current-inicio .programs__item.home-filter-in {
  animation: homeFilterIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.current-inicio .programs__img {
  transition: transform 0.5s ease;
}

.current-inicio .programs__item:hover .programs__img {
  transform: scale(1.06);
}

.current-inicio .about__feature,
.current-inicio .frontier__feature,
.current-inicio .contact__item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-inicio .about__feature:hover,
.current-inicio .frontier__feature:hover,
.current-inicio .contact__item:hover {
  transform: translateX(6px);
}

.current-inicio .about__img,
.current-inicio .frontier__img {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.current-inicio .about__play-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-inicio .about__play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(252, 35, 102, 0.35);
}

.current-inicio .alliances__slide {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.current-inicio .alliances__slide:hover {
  transform: scale(1.08);
  filter: saturate(1.2);
}

.current-inicio .contact__input:focus,
.current-inicio .contact__select:focus,
.current-inicio .contact__textarea:focus {
  box-shadow: 0 0 0 4px rgba(252, 35, 102, 0.12);
}

.current-inicio .contact__button {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.current-inicio .contact__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(252, 35, 102, 0.35);
}

.current-inicio #particles-js {
  opacity: 0.45;
}

@media (max-width: 1024px) {
  .home-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-stats__item:nth-child(2) {
    border-right: 0;
  }

  .home-stats__item {
    border-right: 0;
    border-bottom: 1px solid rgba(19, 53, 87, 0.08);
    padding-bottom: 0.65rem;
  }

  .home-stats__item:nth-last-child(-n+2) {
    border-bottom: 0;
    padding-bottom: 0.35rem;
  }
}

@media (max-width: 768px) {
  .home-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.85rem;
    border-radius: 14px;
  }

  .home-stats__number {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal,
  .programs__item.home-filter-in {
    animation: none !important;
    transition: none !important;
  }

  .home-reveal {
    opacity: 1;
    transform: none;
  }
}
