/* ==========================================================================
   INDEX.CSS — Estilos específicos de la página principal
   ========================================================================== */

/* ==========================================================================
   HERO — Banner principal con CTA superior y Reloj Script
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8f9fa; /* Fondo claro según la imagen de referencia */
  color: #fff;
}

/* Fondo absoluto — imagen sin difuminar */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 90%;
  display: block;
}

/* Overlay: degradado sutil para legibilidad del navbar */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(6, 12, 24, 0.15) 0%, transparent 20%);
  pointer-events: none;
}

/* ── HERO MOBILE: logo centrado sobre fondo blanco ── */
.hero__mobile-cover {
  display: none; /* oculto en desktop */
}

/* ── BOTÓN DE INSCRIPCIÓN: Centrado arriba ── */
.hero__center-cta {
  position: absolute;
  top: calc(var(--navbar-height) + 4.5rem);
  left: 43%;
  transform: translateX(-50%);
  z-index: 10;
  width: auto;
  display: flex;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero__center-cta .btn {
  background-color: #e31e24; /* */
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.95rem 2.8rem;
  font-weight: 700;
  white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.hero__center-cta .btn:hover {
  background-color: #c4191f;
}

/* ── RELOJ: Estilo Brush Script (Caveat) ── */
.hero__clock {
  position: absolute;
  top: calc(var(--navbar-height) + 1rem);
  right: 2rem;
  z-index: 5;
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  text-align: center;
}

.hero__clock-label {
  font-family: var(--font-primary);
  font-size: 0.65rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hero__clock .countdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Números en tipografía Brush */
.hero__clock .countdown__num {
  font-family: 'Caveat', cursive; 
  font-size: 3rem;
  color: #000;
  line-height: 0.9;
  min-width: 45px;
  border: none;
  padding: 0;
}

.hero__clock .countdown__label {
  font-family: var(--font-primary);
  font-size: 0.55rem;
  color: #000;
  text-transform: uppercase;
  margin-top: -2px;
}

.hero__clock .countdown__sep {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

/* Indicador de scroll */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(10, 20, 50, 0.4); /* Color oscuro para fondo claro */
  animation: heroScrollBounce 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ==========================================================================
   RESTO DE SECCIONES (Timeline, Premios, Recursos)
   ========================================================================== */

.index-timeline { background: var(--color-surface); }

.prizes-podio {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-8);
}

.prizes-podio .card--prize {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.prizes-podio .card--prize:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.index-recursos { background: var(--color-surface-alt); }

.card__cta {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

.section-cta { text-align: center; margin-top: var(--space-8); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ── RESPONSIVE PROGRESIVO — CTA + Reloj ── */

@media (max-width: 1400px) {
  .hero__center-cta {
    top: calc(var(--navbar-height) + 3.5rem);
  }

  .hero__center-cta .btn {
    font-size: 1.35rem;
    padding: 0.85rem 2.5rem;
  }

  .hero__clock {
    padding: 0.85rem 1.3rem;
  }

  .hero__clock .countdown__num {
    font-size: 2.6rem;
    min-width: 40px;
  }

  .hero__clock .countdown__sep {
    font-size: 1.9rem;
  }
}

@media (max-width: 1200px) {
  .hero__center-cta {
    top: calc(var(--navbar-height) + 3.5rem);
    left: 42%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .hero__center-cta .btn {
    font-size: 1.2rem;
    padding: 0.75rem 2.1rem;
  }

  .hero__clock {
    padding: 0.7rem 1rem;
  }

  .hero__clock .countdown__num {
    font-size: 2.2rem;
    min-width: 36px;
  }

  .hero__clock .countdown__sep {
    font-size: 1.6rem;
  }

  .hero__clock-label {
    font-size: 0.58rem;
  }
}

@media (max-width: 1024px) {
  .prizes-podio {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  /* Hero mobile: fondo cuaderno */
  .hero {
    background: url('../assets/img/bk_azul.png') center top / cover no-repeat;
    min-height: 100dvh;
  }

  .hero__bg {
    display: none;
  }

  .hero__scroll-indicator {
    color: rgba(0, 40, 100, 0.35);
  }

  /* Logo mobile centrado */
  .hero__mobile-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    padding-top: calc(var(--navbar-height) + 5rem);
    padding-bottom: 7rem;
    padding-inline: var(--space-6);
    z-index: 2;
  }

  .hero__mobile-logo {
    width: clamp(300px, 82vw, 600px);
    height: auto;
    object-fit: contain;
    animation: heroLogoIn 0.6s ease both;
  }

  @keyframes heroLogoIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Reloj: centrado, sin panel, negro sobre fondo cuaderno */
  .hero__clock {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--navbar-height) + 1rem);
    padding: 0.6rem 1.2rem;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    white-space: nowrap;
    z-index: 10;
  }

  .hero__clock .countdown__num {
    font-size: 2rem;
    min-width: 34px;
    color: #000;
  }

  .hero__clock .countdown__sep {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.4);
  }

  .hero__clock-label {
    color: #000;
  }

  .hero__clock .countdown__label {
    color: #333;
  }
}

@media (max-width: 768px) {
  .hero__clock {
    top: calc(var(--navbar-height) + 1rem);
    padding: 0.6rem 0.9rem;
  }

  .hero__clock .countdown__num {
    font-size: 1.75rem;
    min-width: 30px;
  }

  .hero__clock .countdown__sep {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero__clock {
    padding: 0.5rem 0.75rem;
  }

  .hero__clock .countdown__num {
    font-size: 1.5rem;
    min-width: 26px;
  }

  .hero__clock .countdown__sep {
    font-size: 1.1rem;
  }

  .hero__clock .countdown {
    gap: 0.25rem;
  }

  .hero__clock-label {
    font-size: 0.5rem;
  }

  .hero__mobile-logo {
    width: clamp(300px, 92vw, 460px);
  }
}