/* ===== “Algunos Ponentes” (cards con altura fija) ===== */
:root{
  --miniCardSize: 280px;   /* ⇦ altura/ancho fijo de cada tarjeta (ajusta aquí) */
  --miniRadius: 16px;
}

.section-algunos-ponentes{
  padding: 0 0 clamp(44px, 6.5vw, 72px) 0;
  background: var(--bg-section);
  overflow: hidden;
}

.speakers-mini-title{
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-weight: 700;
  font-size: clamp(36px, 5.1vw, 100px);
  letter-spacing: .2px;
}

.speakers-mini-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  column-gap: 35px;                /* separación horizontal entre tarjetas */
  row-gap: 63px;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 24px);
}

.speakers-mini-grid-2{
  list-style: none;
  margin-top: 63px;
  margin-bottom: 0;
  margin-left: 35%;
  margin-right: 35%;
  padding: 0;
  display: grid;
  column-gap: 35px !important;                /* separación horizontal entre tarjetas */
  row-gap: 63px;
  grid-template-columns: repeat(1, 1fr);
  gap: clamp(14px, 2.4vw, 24px);
}

.speaker-mini-card{
  position: relative;
  aspect-ratio: 1 / 1;                /* se conserva cuadrada */
  border-radius: var(--miniRadius);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 10px 28px rgba(0,0,0,.32);
  transition: transform .2s var(--ease), filter .2s var(--ease);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.speaker-mini-card:hover{
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 16px 40px rgba(0,0,0,.45);
}

.speaker-mini-photo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glow sutil en bordes */
.speaker-mini-card::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(120% 120% at 0% 100%,
              rgba(27,148,214,.18), transparent 50%),
              radial-gradient(110% 110% at 100% 0%,
              rgba(206,97,116,.16), transparent 46%);
  pointer-events:none;
}

/* Badge glass pegado abajo, centrado */
/*.speaker-mini-badge{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(94%, 340px);
  display: grid;
  row-gap: 4px;
  justify-items: center;

  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(103.53deg,
              rgba(0, 0, 0, 0.4) 1.86%,
              rgba(0, 0, 0, 0.4) 50%,
              rgba(0, 0, 0, 0.4) 98.14%);
  backdrop-filter: blur(10px) saturate(1.05);
  box-shadow:
    0 8px 20px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.18);
  text-align: center;
  height: 120px;
}

.speaker-mini-badge strong{
  font-size: 20px;
  letter-spacing: .4px;
  align-content: end;
}

.speaker-mini-badge small{
  font-size: 16px;
  opacity: .95;
}*/

/* ===== Responsive ===== */
@media (max-width: 1024px){
  :root{ --miniCardSize: 250px; }
  .speakers-mini-grid, .speakers-mini-grid-2{ column-gap: 28px; row-gap: 52px; }
}

@media (max-width: 820px){
  :root{ --miniCardSize: 220px; }
  .speakers-mini-grid, .speakers-mini-grid-2{ column-gap: 24px; row-gap: 44px; }
}

@media (max-width: 520px){
  :root{ --miniCardSize: 200px; }
  .speakers-mini-grid, .speakers-mini-grid-2{ column-gap: 20px; row-gap: 36px; }
}

:root{
  --sp-gap-x: 35px;   /* horizontal */
  --sp-gap-y: 63px;   /* vertical   */
}

/* 3 columnas exactas en desktop */
.speakers-mini-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* <<< tres */
  column-gap: var(--sp-gap-x);
  row-gap: var(--sp-gap-y);

  /* prioridad a la unión entre tarjetas; bordes con media separación */
  padding-inline: calc(var(--sp-gap-x) / 2);
}

/* asegura que la card ocupe su columna completa */
.speaker-mini-card{ width: 100%; }

/* breakpoints */
@media (max-width: 1024px){
  .speakers-mini-grid, .speakers-mini-grid-2{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* dos por fila */
    margin: 0;
  }

  .speakers-mini-grid-2 {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 63px;
    padding-inline: 27.5%;
  }
}
@media (max-width: 640px){
  .speakers-mini-grid, .speakers-mini-grid-2{
    grid-template-columns: 1fr;
    --sp-gap-x: 20px;
    --sp-gap-y: 40px;
    padding-inline: calc(var(--sp-gap-x) / 2);
    margin: 0;
  }
  .speakers-mini-grid-2{
    grid-template-columns: 1fr; /* una por fila */
    --sp-gap-x: 20px;
    --sp-gap-y: 40px;
    padding-inline: calc(var(--sp-gap-x) / 2);
    margin-top: 40px;
  }
}

/* Contenedor ya existe, solo aseguramos stacking */
.speaker-mini-card { position: relative;}

/* Ambas imágenes ocupan el frame */
.speaker-mini-photo {
  position: absolute; inset: 0;
  z-index: 1;
}

/* Estados: B/N visible, color oculto */
.speaker-mini-photo.is-bw    { opacity: 1; transform: scale(1); }
.speaker-mini-photo.is-color { opacity: 0; transform: scale(1.005); }

/* Transiciones suaves */
.speaker-mini-photo { transition: opacity .45s ease, transform .6s cubic-bezier(.2,.6,.2,1); }

/* Badge por encima siempre */
/*.speaker-mini-badge{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(94%, 340px);
  z-index: 2;         
}*/

/* Accesibilidad: sin animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  .speaker-mini-photo { transition: none; transform: none !important; }
}

/* Tarjeta básica */
.speaker-mini-card{
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 28px rgba(0,0,0,.32);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.speaker-mini-card:hover{
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 40px rgba(0,0,0,.45);
}

/* Foto fija (no cambia) */
.speaker-mini-photo{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}

/* --- Overlay glass que se expande --- */
.speaker-mini-badge{
  position:absolute;
  left:0px; right:0px; bottom:0px;          /* pegado abajo y ancho completo */
  min-height:110px;
  display:grid; gap:6px; justify-items:center; align-content:center;
  padding:12px 16px;
  border-radius:16px;
  background: linear-gradient(103.53deg, rgba(0,0,0,.40) 1.86%, rgba(0,0,0,.40) 98.14%);
  backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18);
  text-align:center;
  cursor:pointer;
  transition:
    inset .35s cubic-bezier(.2,.6,.2,1),
    padding .35s cubic-bezier(.2,.6,.2,1),
    border-radius .35s cubic-bezier(.2,.6,.2,1),
    backdrop-filter .35s cubic-bezier(.2,.6,.2,1),
    background .35s cubic-bezier(.2,.6,.2,1);
  z-index:2;
}

.speaker-mini-badge strong{ font-size:20px; letter-spacing:.4px; }
.speaker-mini-badge small{ font-size:16px; opacity:.95; }

/* Texto extra oculto por defecto */
.speaker-mini-extra{
  margin:10px 0 0;
  font-size:15px; line-height:1.55; opacity:0;
  max-height:0; overflow:hidden;
  transition: max-height .35s ease, opacity .25s ease .05s;
}

/* Expansión por hover solo si la tarjeta NO tiene .no-hover */
.speaker-mini-card.is-open .speaker-mini-badge{
  top:0px; bottom:0px; left:0px; right:0px;
  padding:22px 22px 24px;
  border-radius:16px;
  backdrop-filter: blur(12px) saturate(1.1);
}
.speaker-mini-card.is-open .speaker-mini-extra{
  opacity:1; max-height:240px;
}

/* Accesibilidad: sin animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce){
  .speaker-mini-badge, .speaker-mini-extra{ transition:none !important; }
}
