@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700&subset=latin-ext');

/* --- 1. CONTENEDOR GENERAL --- */
.hn-wrapper {
  position: relative;
  width: 100%;
  padding: 60px 0;
  overflow: hidden;
  font-family: 'Quicksand', sans-serif;
  background: #03315f; 
  isolation: isolate; 
}

/* Fondo (Imagen y Degradado) */
.hn-background {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hn-background:after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, #FCC568 20%, #3AB9D1 100%);
  opacity: 0.9;
}
.hn-background img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.5;
}


/* --- 2. SLIDER & ALTURAS IGUALES --- */

.hn-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 0 40px 0;
}

/* AQUI ESTÁ EL TRUCO DE LA ALTURA: */
/* Forzamos al contenedor de slides a estirar los hijos a la misma altura */
.hn-slider .swiper-wrapper {
  display: flex !important;
  align-items: stretch !important; 
}

/* El slide individual se deja estirar */
.hn-slider__item {
  height: auto !important; 
  box-sizing: border-box;
  display: flex !important; /* Necesario para que el hijo (card) llene el espacio */
  padding: 0 10px; /* Separación lateral */
}

/* La tarjeta ocupa el 100% de la altura heredada */
.hn-card {
  width: 100%;
  height: 100% !important; /* Esto garantiza que todas midan lo mismo */
  
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribuye contenido: Texto arriba, Img abajo */
  
  padding: 30px 25px;
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.15); 
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hn-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}


/* --- 3. ESTILOS DE LA TARJETA --- */

/* Cuando es la tarjeta central (Activa) */
.swiper-slide-active .hn-card {
  background: #fff;
  color: #111; 
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  border: none;
  opacity: 1;
  /* Nota: Quitamos transform scale para evitar problemas de cálculo de altura */
}

.swiper-slide-active .hn-date { border-color: #ff5a2a; color: #ff5a2a; }
.swiper-slide-active .hn-card__title { color: #111; }
.swiper-slide-active .hn-card__txt { color: #444; }

/* Textos e Imagen */
.hn-date {
  border-bottom: 2px solid rgba(255,255,255,0.5);
  padding-bottom: 10px; margin-bottom: 15px;
  display: inline-block; font-weight: 700;
}
.hn-date__title { font-size: 30px; line-height: 1; display: block; }
.hn-date__txt { font-size: 14px; text-transform: uppercase; }

.hn-card__title { font-size: 22px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }

.hn-card__txt { 
  font-size: 14px; 
  line-height: 1.6; 
  margin-bottom: 25px; 
  flex-grow: 1; /* Empuja la imagen hacia el fondo */
}

.hn-card__img {
  height: 180px; width: 100%;
  border-radius: 10px; overflow: hidden; margin-top: auto; flex-shrink: 0;
}
.hn-card__img img { width: 100%; height: 100%; object-fit: cover; }


/* --- 4. CONTROLES (CENTRADO FORZADO) --- */

.hn-slider__ctr {
  width: 100%;
  margin-top: 40px;
  position: relative;
  z-index: 10;
  
  /* Flexbox para centrar todo */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Flechas */
.hn-arrows { 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 20px;
  margin-bottom: 20px;
}

.hn-arrow {
  background: #fff; border: none; 
  width: 50px; height: 50px;
  border-radius: 50%; cursor: pointer; color: #03315f; 
  font-weight: bold; font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  margin: 0; /* Asegurar que no tenga márgenes raros */
}
.hn-arrow:hover { background: #ff5a2a; color: #fff; transform: scale(1.1); }

/* Puntos de Paginación */
/* Forzamos a que deje de ser absoluto y se comporte como bloque centrado */
.hn-pagination {
  position: static !important; /* Desactivar absolute */
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  transform: none !important;
}

.hn-pagination .swiper-pagination-bullet {
  background: #fff; 
  opacity: 0.4; 
  width: 12px; height: 12px; 
  margin: 0 6px !important;
  display: block; /* Para que flex lo maneje bien */
}

.hn-pagination .swiper-pagination-bullet-active {
  opacity: 1; 
  width: 35px; 
  border-radius: 10px; 
  background: #fff;
}