.titulo-noticias {
  font-weight: 800;
  font-size: 3rem;
  color: #004080; /* Azul oscuro */
  text-align: center;
}

.boton-noticia {
  padding: 10px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 8px;
  background-color: #002e6d; /* Azul */
  color: white;
  border: none;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.titulo-noticias::after {
  content: "";
  display: block;
  width: 25%;
  height: 3px;
  background-color: #d6d8da; /* Gris claro */
  margin: 10px auto 0;
  border-radius: 5px;
}

.boton-noticia:hover {
  background-color: #004080; /* Azul más claro al pasar mouse */
}

.boton-noticia.activo {
  background-color: #cccccc; /* Botón activo gris */
  color: #002e6d;
}

.card-img-container {
  position: relative;
  width: 100%;
  height: 325px;             /* aquí decides 3/4 de tu card */
  border: 2.5px solid #a5a5a5;    /* sólo la imagen tendrá este borde */
  overflow: hidden;          /* recorta la img si es más grande */
  border-radius: 8px;
}

.fecha-arrow {
  position: absolute;
  top: 1rem;
  left: -1.0rem;              /* mueve el label hacia la izquierda */
  background-color: #105ea2;  /* mismo azul de tu theme */
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem; 
  clip-path: polygon(
    0 0,       /* top-left */
    80% 0,     /* top-right inicial */
    100% 50%,  /* punta de flecha */
    80% 100%,  /* bottom-right inicial */
    0 100%     /* bottom-left */
  );
  z-index: 2; 
}

.fecha-day {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
}

.fecha-month {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1;
}

/* Asegura que la imagen llene el contenedor */
.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  display: block;
}

.card-text {
    color: #004277;
    padding: 0 20px 0 20px;
}

.titulo-overlay {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 60%;
  background-color: gray; /* semitransparente */
  color: #fff;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  z-index: 2;
}

.card-text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.4em;
  max-height: 4.2em;     
}

.noticia-card {
  position: relative;
  overflow: visible;  
  width: 85%;
  border: none;
  transition: 
    transform 0.3s ease-out, 
    box-shadow 0.3s ease-out, 
    border-color 0.3s ease-out;
  transform-origin: center center;
  border: 2px solid transparent;
}

.noticia-card:hover {
  box-shadow:
  0 0 0 2px #105ea2,       /* línea naranjo (igual que antes) */
  0 6px 18px rgba(0,0,0,.18); /* sombra más blanda */
  border-color: transparent;
  border-radius: 8px; 
  z-index: 1; 
}

.noticia-card:hover .card-img-container {
  border-color: transparent;
}

.noticia-link {
  display: block;      /* para que margin-top funcione */
  align-self: center;
  color: #EE7826;             /* color naranja */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;      /* un poco de click-area sin caja */
}

.noticia-link:hover,
.noticia-link:focus {
  transform: scale(1.1); /* zoom suave */
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  color: #d16f20;             /* tono naranja más oscuro si quieres */
}

.noticia-card {
    background-color: transparent; /* ⬅ fondo transparente */
    box-shadow: none;              /* opcional: eliminar sombra si no la quieres */
    border: none;                  /* opcional: eliminar borde si lo ves blanco */
}

.noticia-card .card-body {
  display: flex;
  flex-direction: column;
}

.estrella-wrapper {
  color: gold;
  position: absolute; 
  top: 0;      /* ajusta a gusto */
  left: -30px;   /* ajusta a gusto para sobresalir de la flecha */
  z-index: 4;
}

.estrella-icono {
  width: 40px;
  height: 40px;
  display: block;
}

.filtro-boton {
    position: fixed;
    top: 30%;
    right: 20px;
    background-color: #0d4672;
    border: none;
    padding: 12px;
    border-radius: 50%;
    z-index: 1030;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.filtro-boton img {
    width: 24px;
    height: 24px;
}

.filtro-panel {
    position: fixed;
    top: 20%;
    right: 60px;
    width: 280px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 18px 0 18px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1031;
    padding: 20px;
    transition: all 0.3s ease;
}

.filtro-panel .filtro-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0d4672;
    height: 45px;
    margin: -20px -20px 20px -20px;
    border-radius: 18px 0 0 0;
}

.filtro-panel .filtro-header img {
    width: 24px;
    height: 24px;
}

.filtro-input, .filtro-select {
    font-size: 14px;
}


#slider-fecha .noUi-handle {
  z-index: 10;
  cursor: grab;
  pointer-events: auto !important;
}

#slider-fecha {
  position: relative;
  height: 14px;
  z-index: 5;
}

#slider-fecha .noUi-handle::before,
#slider-fecha .noUi-handle::after {
  background: #333;
}

/* ===== Reveal (transiciones de entrada) ===== */
.reveal{
  opacity:0;
  transform:translateY(14px);
  filter:blur(2px);
  transition:
    opacity .7s ease,
    transform .7s ease,
    filter .7s ease;
  transition-delay:var(--delay, 0s);
  will-change:opacity,transform,filter;
}
.reveal.fade-in{ transform:none; }
.reveal.fade-up{ transform:translateY(14px); }
.reveal.slide-left{ transform:translateX(-24px); }
.reveal.slide-right{ transform:translateX(24px); }
.reveal.zoom-in{ transform:scale(.96); }
.reveal.is-visible{ opacity:1; transform:none; filter:none; }

/* ===== Page Enter & Card Stagger ===== */
:root{
  --enter-duration: 600ms;
  --card-duration: 520ms;
  --card-stagger: 90ms; /* separación entre tarjetas */
}

/* Estado inicial (antes de montar) */
.page-enter {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
}

/* Cuando el DOM está listo */
.is-mounted .page-enter {
  opacity: 1;
  transform: none;
  transition: opacity var(--enter-duration) ease, transform var(--enter-duration) ease;
}

/* Cards */
.card-animate {
  opacity: 0;
  transform: translateY(14px) scale(.985);
  will-change: opacity, transform;
}

/* Stagger usando la variable --i puesta en el inline style */
.is-mounted .card-animate {
  animation: cardIn var(--card-duration) ease both;
  animation-delay: calc(var(--i) * var(--card-stagger));
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* Accesibilidad: respetar usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .page-enter,
  .card-animate,
  .is-mounted .page-enter,
  .is-mounted .card-animate {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; filter:none; }
}

/* ===== Botón "Ver más" ===== */
:root{
  /* Ajusta a tu paleta si quieres */
  --brand: #1b4e9b;      /* azul principal */
  --brand-dark: #0b5ed7; /* azul más oscuro */
}

.btn-mas{
  cursor: pointer;   /* 👆 mano al pasar */
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  padding: .625rem 1rem;
  border-radius: 8px;

  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;

  box-shadow: 0 8px 18px rgba(13,110,253,.2), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

/* Flecha sin tocar el HTML */
.btn-mas::after{
  content: "›";
  font-size: 1.1em;
  line-height: 1;
  transform: translateX(0);
  transition: transform .18s ease;
}

.btn-mas:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13,110,253,.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-mas:hover::after{ transform: translateX(2px); }

.btn-mas:active{ transform: translateY(0); }

.btn-mas:focus-visible{
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.35);
}

/* Variante “fantasma” para fondos muy claros (opcional) */
.btn-mas--outline{
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  box-shadow: none;
}
.btn-mas--outline:hover{
  background: var(--brand);
  color: #fff;
}

