/*
 * Estilos para la portada basada en Horizons
 *
 * Este archivo define estilos específicos para la página de inicio
 * (hero y tarjetas informativas). Los estilos están pensados para
 * integrarse con el CSS existente del tema Minimog y del child
 * theme. Deberían encolarse solo en la portada para no afectar
 * otras secciones.
 */

/* Hero general */
.home-hero {
  position: relative;
  background-image: url('../img/hero-bg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 100px 1rem;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.home-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero__title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
}
.home-hero__title .highlight {
  color: #E63946;
}
.home-hero__subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.95;
}
.home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.home-hero__buttons .btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.home-hero__buttons .btn-primary {
  background-color: #E63946;
  color: #ffffff;
}
.home-hero__buttons .btn-primary:hover {
  background-color: #c72e3b;
}
.home-hero__buttons .btn-secondary {
  background-color: #111827;
  color: #ffffff;
}
.home-hero__buttons .btn-secondary:hover {
  background-color: #1f2937;
}

/* Sección tarjetas informativas */
.home-info-cards {
  padding: 60px 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* Ajusta el grid del shortcode para que no se vea tan ancho en desktop */
.home-info-cards .rr-ml-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Responsivo */
@media (min-width: 640px) {
  .home-hero__title {
    font-size: 3rem;
  }
  .home-hero__subtitle {
    font-size: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .home-hero {
    padding: 160px 1rem;
  }
  .home-hero__title {
    font-size: 3.5rem;
  }
  .home-hero__subtitle {
    font-size: 1.375rem;
  }
}