/* === Agenda estilo 'timeline' (paleta existente) === */

/* Oculta en mobile/tablet por ahora */
.col-agenda {
  display: none;
}

@media (min-width: 1500px) {
  .caja.layout-3col {
    display: grid;
    grid-template-columns: 1fr 280px 300px; /* igual al diseño previo */
    gap: 20px;
    align-items: start;
  }
  .caja.layout-3col .cajanoticias,
  .caja.layout-3col .cajalinks {
    width: auto !important;
    float: none !important;
  }
  .col-agenda {
    display: block;
  }
}

/* Ajuste para pantallas tipo notebook: 1200px a 1499px */
@media (min-width: 1200px) and (max-width: 1499px) {
  .caja.layout-3col {
    display: grid;
    grid-template-columns: 1fr 220px 240px; /* igual al diseño previo */
    gap: 10px;
    align-items: start;
  }
  .caja.layout-3col .cajanoticias,
  .caja.layout-3col .cajalinks {
    width: auto !important;
    float: none !important;
  }
  .col-agenda {
    display: block;
  }
}

/* Tarjeta contenedora, mantiene bordes y sombras del diseño previo */
/* === Mejora visual del recuadro de la Agenda === */
/* === Ajuste del encabezado con fondo rojo institucional === */
.agenda-card .card-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #fff; /* texto blanco */
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: -18px -11px 16px -11px; /* extiende el fondo a los bordes */
  padding: 10px 0;
  background-color: #b93f31; /* rojo institucional */
  border-radius: 10px 10px 0 0; /* redondeo superior coherente */
  border-bottom: 2px solid #eee5cc;
}

/* Mantiene el recuadro del bloque coherente */
.agenda-card {
  background: #ffffff;
  border: 2px solid #eee5cc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 18px 10px 15px;
}

/* Opcional: dar un pequeño efecto hover al recuadro */
.agenda-card:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

/* Timeline: línea y bullets en la misma paleta */
.agenda-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 10px; /* espacio para la línea y el punto */
  list-style: none;
  border-left: 0px solid #eee5cc; /* línea vertical arena */
}

.agenda-item {
  position: relative;
  padding: 12px 0 12px 12px;
}

.agenda-item + .agenda-item {
  border-top: 1px dashed #eee5cc; /* separador sutil entre ítems */
}

.agenda-item::before {
  content: "";
  position: absolute;
  left: -9px; /* centrado sobre la línea */
  top: 18px;
  width: 10px;
  height: 10px;
  background: #f0776c; /* coral (botón 'ver más') */
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #eee5cc; /* halo sobre la línea */
}

/* Fecha/hora arriba en estilo 'píldora' existente */
.agenda-datetime {
  display: inline-block;
  background: #fffceb; /* fondo crema */
  border: 0px solid #eee5cc;
  border-radius: 999px;
  padding: 2px 8px;
  margin: 0 0 6px 0;
  font-weight: 700;
  color: #1a2f44; /* azul más oscuro para contraste */
  font-size: 14px;
}

/* Título del evento como enlace en azul institucional */
.agenda-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.agenda-title a {
  color: #27425f; /* azul titular */
  text-decoration: none;
}

.agenda-title a:hover {
  text-decoration: underline;
}

/* Botón 'Ver más' mantiene el estilo existente */
.btn-agenda-all {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 10px 12px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: #f0776c; /* coral */
  box-shadow: inset 0 -2px #d76b60;
  text-decoration: none;
}

.btn-agenda-all:hover {
  background: #d76b60;
}

/* ===========================
   MODO SLIDER SOLO EN MOBILE
   =========================== */
@media (max-width: 1000px) {

  /* La tarjeta ocupa todo el ancho y se lee como un solo evento */
  .agenda-card {
    padding: 16px 14px 18px;
  }

  .agenda-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 110px; /* alto mínimo para que no “salte” */
  }

  /* Ocultamos TODOS los ítems por defecto en mobile */
  .agenda-item {
    display: none;
    padding: 10px 4px;
  }

  /* Solo el ítem activo se muestra */
  .agenda-item.agenda-active {
    display: block;
  }

  /* Ajustes visuales para que parezca un “slide” */
  .agenda-datetime {
    font-size: 15px;
  }

  .agenda-title {
    font-size: 16px;
    line-height: 1.4;
  }
}
/* ===========================
   Indicador discreto en mobile
   =========================== */
@media (max-width: 1000px) {

  .agenda-mobile-indicator {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
  }

  .agenda-mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .agenda-mobile-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9d0bd;
    opacity: 0.7;
    transition: opacity .2s, transform .2s;
  }

  .agenda-mobile-dot.is-active {
    background: #e46457;
    opacity: 1;
    transform: scale(1.2);
  }
}


