/* ===== Sección: Programa ===== */
.section-programa{
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg-section); /* usa el fondo global */
  color: var(--white);
  overflow: hidden;
}

.programa-title{
  margin: 0 0 clamp(26px, 4vw, 40px);
  font-size: clamp(34px, 5.8vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  font-weight: 700;
  text-align: center;
}

/* ===== Lista de ponentes ===== */
.agenda-list{
  display: grid;
  /* control del espacio vertical entre ítems (lo usamos para centrar la línea) */
  --row-gap: clamp(26px, 3.8vw, 46px);
  row-gap: var(--row-gap);
}

/* Ítems (sin bordes propios) */
.agenda-item{
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: start;
  gap: clamp(18px, 2.4vw, 36px);
  padding: clamp(12px, 2vw, 18px) 0;
  border: 0; /* importante para no duplicar líneas */
}

/* ---- Separador: 1 sola línea centrada entre ítems ---- */
.agenda-item:not(:last-child)::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,.12);
  /* coloca la línea a mitad del gap vertical que separa los ítems */
  bottom: calc(-0.5 * var(--row-gap));
}

/* ===== Columna izquierda: speaker ===== */
.speaker{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 80px;
}

.speaker-photo{
  width: clamp(62px, 6vw, 96px);
  height: clamp(62px, 6vw, 96px);
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 10px 32px rgba(0,0,0,.35);
}

.speaker-meta{
  display: grid;
  gap: 6px;
}

.speaker-name{
  margin: 0;
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: .2px;
}

.speaker-role{
  margin: 0;
  opacity: .9;
  font-size: clamp(14px, 1.7vw, 18px);
}

/* ===== Columna derecha: charla ===== */
.talk{
  display: grid;
  gap: 10px;
}

.talk-title{
  margin: 0;
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.25;
}

.talk-desc{
  margin: 0;
  opacity: .92;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  max-width: 75ch;
}

/* ===== Hover sutil (opcional) ===== */
.agenda-item:hover .speaker-photo{
  transform: translateY(-1px);
  transition: transform .18s var(--ease), filter .18s var(--ease);
  filter: brightness(1.03);
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .agenda-item{
    grid-template-columns: 1fr;   /* pila: speaker arriba, charla abajo */
  }
  .speaker{
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  .talk-desc{ max-width: none; }
}

@media (max-width: 560px){
  .programa-title{
    text-align: left;
    font-size: clamp(30px, 8.5vw, 44px);
  }
  .speaker-photo{
    width: 64px; height: 64px; border-radius: 12px;
  }
  /* más aire entre ítems en móvil */
  .agenda-list{ --row-gap: clamp(22px, 8vw, 34px); }
}
