/* LabAncestral · seminarios.css
   Hoja del índice del ciclo (/seminarios/): portada, tarjetas de las
   ediciones y cifras. Cada edición tiene su propia hoja:
   seminario-i-2024.css, seminario-ii-2025.css y seminario-iii-2026.css. */

/* LabAncestral · seminarios.css
   Estilos exclusivos de la página Seminario Internacional. */

.sem-page {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: #F6EFE1;
  color: #152514;
  font-family: 'IBM Plex Sans', sans-serif;
}

.sem-page *,
.sem-page *::before,
.sem-page *::after {
  min-width: 0;
}

.sem-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
}

@keyframes sem_fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Antetítulo con guion, se repite en cada bloque */
.sem-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: #9a8f74;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.sem-kicker::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 1px;
  background: #c2b48f;
}

/* Distintivo "Realizado" / "Próxima actividad" de cada tarjeta */
.sem-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: #18713A;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sem-badge--proximo {
  background: #EE9A1C;
  color: #0E3D22;
}

/* ── Índice del ciclo (/seminarios/) ─────────────────── */
.sem-hero {
  background: #efe6d2;
  border-bottom: 1px solid #e4d9c2;
  padding: clamp(38px, 6vw, 74px) 0 clamp(30px, 4.5vw, 52px);
}

.sem-hero__title {
  margin: 0 0 16px;
  max-width: 900px;
  font-family: 'Spectral', serif;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: pretty;
}

.sem-hero__lead {
  margin: 0;
  max-width: 660px;
  color: #5c563f;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
}

.sem-indice {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  padding-top: clamp(34px, 5vw, 58px);
  padding-bottom: clamp(34px, 5vw, 58px);
}

.sem-card {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #e4d9c2;
  border-radius: 20px;
  background: #fffdf8;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.sem-card:hover {
  transform: translateY(-3px);
  border-color: #d3c39c;
  box-shadow: 0 26px 52px -26px rgba(22, 51, 28, .35);
}

.sem-card--proximo {
  border-color: #e8c68a;
}

/* El afiche se ve completo; el sobrante lo cubre el color del propio afiche. */
.sem-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 14px;
  background: var(--sem-banner-bg, #f3ecdd);
}

.sem-card__img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
}

.sem-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 30px);
}

.sem-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.sem-card__meta {
  color: #9a8f74;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sem-card__title {
  margin: 0;
  font-family: 'Spectral', serif;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.012em;
  text-wrap: pretty;
}

.sem-card__lead {
  margin: 0;
  color: #5c563f;
  font-size: 14.5px;
  line-height: 1.62;
}

.sem-card__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 6px;
  color: #6d6650;
  font-size: 13px;
}

.sem-card__datos strong {
  color: #16331c;
  font-weight: 600;
}

.sem-card__ir {
  color: #18713A;
  font-size: 13.5px;
  font-weight: 600;
}

.sem-card:hover .sem-card__ir {
  text-decoration: underline;
}

/* ── Color de fondo del afiche de cada tarjeta ───────── */
.sem-card--s1 .sem-card__img { --sem-banner-bg: #d5d9bc; }
.sem-card--s2 .sem-card__img { --sem-banner-bg: #0057a6; }
.sem-card--s3 .sem-card__img { --sem-banner-bg: #fce9c8; }

/* ── El ciclo en cifras ──────────────────────────────── */
.sem-cifras {
  padding: clamp(34px, 4.5vw, 58px) 0;
  border-top: 1px solid #e4d9c2;
  border-bottom: 1px solid #e4d9c2;
  background: #efe6d2;
}

.sem-cifras__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.sem-cifra {
  padding: 22px;
  border: 1px solid #e4d9c2;
  border-radius: 13px;
  background: #F6EFE1;
}

.sem-cifra strong {
  display: block;
  color: #18713A;
  font-family: 'Spectral', serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.sem-cifra--naranja strong {
  color: #EE9A1C;
}

.sem-cifra span {
  display: block;
  margin-top: 8px;
  color: #6b6657;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

/* ── Cierre ──────────────────────────────────────────── */
.sem-cta {
  padding: clamp(40px, 5vw, 68px) 0;
  background: #0E3D22;
  color: #dbe8de;
}

.sem-cta h2 {
  max-width: 620px;
  margin: 0 0 14px;
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1.12;
  text-wrap: pretty;
}

.sem-cta p {
  max-width: 560px;
  margin: 0 0 26px;
  color: #9ec0a8;
  font-size: 16px;
  line-height: 1.65;
}

.sem-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sem-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease,
              color .25s ease, transform .25s ease;
}

.sem-button--primary {
  border: 1px solid #EE9A1C;
  background: #EE9A1C;
  color: #0E3D22;
}

.sem-button--primary:hover {
  background: #F2B458;
  border-color: #F2B458;
  color: #0E3D22;
  transform: translateY(-2px);
}

.sem-button--ghost {
  border: 1px solid #1f5a3e;
  background: transparent;
  color: #dbe8de;
}

.sem-button--ghost:hover {
  border-color: #EE9A1C;
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 720px) {
  /* Las tarjetas del índice se apilan: afiche arriba, texto abajo */
  .sem-card {
    grid-template-columns: 1fr;
  }

  .sem-card__img {
    min-height: 0;
    padding: 10px;
  }
}

/* Antetítulo del bloque de cierre, en verde sobre el fondo oscuro */
.sem-kicker--cierre {
  color: #7fae89;
}
