/* 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;
}

/* ── Selector de edición ─────────────────────────────── */
.sem-switcher {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: #efe6d2;
  border-bottom: 1px solid #e4d9c2;
}

.sem-switcher__inner {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Cada edición tiene página propia: el selector son enlaces, no pestañas. */
.sem-tab {
  display: block;
  flex: 1 1 200px;
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid #ddcfaf;
  border-radius: 14px;
  background: #F6EFE1;
  color: #4a4636;
  font-family: 'IBM Plex Sans', sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s ease, color .3s ease,
              border-color .3s ease, transform .25s ease;
}

.sem-tab:hover {
  transform: translateY(-2px);
}

.sem-tab[aria-selected="true"],
.sem-tab[aria-current="page"] {
  background: #0E3D22;
  border-color: #0E3D22;
  color: #FBF4E4;
}

/* Vuelta al índice: más angosto, no compite con las ediciones */
.sem-tab--indice {
  flex: 0 1 150px;
  min-width: 140px;
  background: transparent;
  border-style: dashed;
}

.sem-tab__meta {
  display: block;
  margin-bottom: 7px;
  opacity: .72;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sem-tab__title {
  display: block;
  font-family: 'Spectral', serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

/* ── Panel de una edición ────────────────────────────── */
.sem-panel[hidden] {
  display: none;
}

.sem-panel {
  animation: sem_fade .45s ease both;
}

.sem-panel__body {
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(34px, 5vw, 62px);
}

/* ── Afiche oficial de la edición, a lo ancho ──────────
   Los tres afiches tienen proporciones distintas (3:1, 2.5:1 y 2:1), así que
   el banner se adapta en vez de imponer una altura fija: la imagen se ve
   siempre completa (object-fit: contain, nunca recorta texto) y el sobrante
   lateral en pantallas anchas se rellena con el mismo afiche difuminado. */
.sem-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  background: var(--sem-banner-bg, #f3ecdd);
  isolation: isolate;
}

/* Hairline inferior por encima del fondo difuminado */
.sem-banner::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: #e4d9c2;
  z-index: 2;
}

.sem-banner__blur {
  position: absolute;
  inset: -6%;                 /* evita bordes claros al desenfocar */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(38px) saturate(1.05);
  transform: scale(1.12);
  opacity: .85;
  z-index: -1;
  pointer-events: none;
}

.sem-banner__img {
  display: block;
  width: 100%;
  max-width: 1400px;
  height: auto;
  /* Tope de altura para que el afiche no se coma la pantalla completa en
     portátiles: usa svh para no saltar con la barra del navegador móvil. */
  max-height: 640px;                    /* fallback navegadores sin svh */
  max-height: min(78svh, 640px);
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

.sem-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sem-panel__head > div {
  max-width: 820px;
}

.sem-panel__title {
  margin: 0 0 14px;
  font-family: 'Spectral', serif;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.014em;
  text-wrap: pretty;
}

.sem-panel__lead {
  margin: 0;
  color: #54503f;
  font-size: 16px;
  line-height: 1.65;
}

.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;
}

/* ── Portada + ficha de datos ────────────────────────── */
.sem-lead {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  gap: 22px;
}

.sem-portada {
  position: relative;
  align-self: start;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #e8ecd9;
  box-shadow: 0 28px 56px -30px rgba(14, 61, 34, .5);
}

.sem-portada img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.sem-portada--afiche {
  background: #e8ecd9;
}

.sem-portada--afiche img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.sem-datos {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 18px;
  background: #0E3D22;
  color: #dbe8de;
}

.sem-datos__label {
  color: #7fae89;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sem-datos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.sem-dato__k {
  margin-bottom: 6px;
  color: #7fae89;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sem-dato__v {
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: 20px;
}

.sem-rule {
  height: 1px;
  background: #1f5a3e;
}

.sem-lugar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sem-lugar__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #EE9A1C;
  color: #0E3D22;
}

.sem-lugar__nombre {
  margin-bottom: 5px;
  color: #fff;
  font-family: 'Spectral', serif;
  font-size: 20px;
}

.sem-lugar__detalle {
  color: #9ec0a8;
  font-size: 14px;
  line-height: 1.55;
}

.sem-lugar__coords {
  margin-top: 8px;
  color: #7fae89;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

.sem-temas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sem-temas span {
  padding: 7px 13px;
  border: 1px solid #1f5a3e;
  border-radius: 999px;
  background: #0a3019;
  color: #dbe8de;
  font-size: 13px;
}

/* ── Programa: una tarjeta por jornada ───────────────── */
.sem-block {
  margin-top: clamp(30px, 4vw, 48px);
}

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

.sem-jornada {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #ece1c9;
  border-radius: 14px;
  background: #fff;
  transition: border-color .3s ease, transform .3s ease;
}

.sem-jornada:hover {
  border-color: #18713A;
  transform: translateY(-3px);
}

.sem-jornada__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #EE9A1C;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sem-jornada__fecha {
  color: #9a8f74;
  letter-spacing: .06em;
}

.sem-jornada__nombre {
  margin-bottom: 8px;
  font-family: 'Spectral', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.22;
}

.sem-jornada__tipo {
  margin-bottom: 10px;
  color: #18713A;
  font-size: 13px;
  font-weight: 600;
}

.sem-jornada__desc {
  margin: 0 0 16px;
  color: #6b6657;
  font-size: 14px;
  line-height: 1.6;
}

.sem-jornada__pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #e4d9c2;
  color: #6b6657;
  font-size: 13px;
}

.sem-jornada__personas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #18713A;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Programa anunciado (III etapa) ──────────────────── */
.sem-programa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.sem-programa__card {
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid #ece1c9;
  border-radius: 16px;
  background: #fff;
}

.sem-programa__title {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #7A4F2E;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sem-hito {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed #e4d9c2;
}

.sem-hito:last-child {
  border-bottom: none;
}

.sem-hito__hora {
  flex: 0 0 108px;              /* cabe un rango completo: '09:00 – 09:30' */
  color: #18713A;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.sem-hito__que {
  font-size: 14.5px;
  line-height: 1.5;
}

/* Ponente a cargo del hito, según el programa oficial */
.sem-hito__quien {
  display: block;
  margin-top: 4px;
  color: #7A4F2E;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .04em;
}

.sem-hito--pausa .sem-hito__quien { color: #9a8f74; }

.sem-hito--pausa .sem-hito__hora { color: #9a8f74; }
.sem-hito--pausa .sem-hito__que  { color: #6b6657; }

/* ── Galería de la edición ───────────────────────────── */
.sem-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.sem-foto {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid #e4d9c2;
  border-radius: 14px;
  overflow: hidden;
  background: #e6dcc4;
  transition: transform .3s ease, box-shadow .3s ease;
}

.sem-foto:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -20px rgba(14, 61, 34, .5);
}

.sem-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sem-foto figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, rgba(10, 42, 23, 0) 0%, rgba(10, 42, 23, .82) 100%);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  opacity: 0;
  transition: opacity .3s ease;
}

.sem-foto:hover figcaption,
.sem-foto:focus-within figcaption {
  opacity: 1;
}

/* ── Expositores / participantes ─────────────────────── */
.sem-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.sem-persona {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid #ece1c9;
  border-radius: 14px;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.sem-persona:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -20px rgba(14, 61, 34, .4);
}

.sem-persona__ini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef3ea;
  color: #18713A;
  font-family: 'Spectral', serif;
  font-size: 19px;
  font-weight: 600;
}

.sem-persona__nombre {
  font-size: 15px;
  font-weight: 600;
}

.sem-persona__rol {
  color: #6b6657;
  font-size: 13px;
  line-height: 1.4;
}

/* ── Aviso cuando aún no hay material cargado ────────── */
.sem-vacio {
  padding: 26px;
  border: 1px dashed #d8c9a8;
  border-radius: 14px;
  background: #fffdf8;
  color: #6b6657;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── 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;
}

/* ── Invitación y documentos oficiales ───────────────── */
.sem-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.sem-doc {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #e4d9c2;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

/* El documento se ve completo: es un afiche, recortarlo esconde información. */
.sem-doc__vista {
  display: block;
  padding: 14px;
  background: #f3ecdd;
  border-bottom: 1px solid #ece1c9;
}

.sem-doc__vista img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .3s ease;
}

.sem-doc__vista:hover img {
  transform: scale(1.015);
}

.sem-doc__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
}

.sem-doc__titulo {
  margin: 0;
  font-family: 'Spectral', serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: #16331c;
}

.sem-doc__desc {
  margin: 0;
  color: #5c563f;
  font-size: 13.5px;
  line-height: 1.6;
}

.sem-doc__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 4px;
}

.sem-doc__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid #18713A;
  border-radius: 999px;
  background: #18713A;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .22s ease, color .22s ease;
}

.sem-doc__btn:hover {
  background: #0E3D22;
  border-color: #0E3D22;
}

.sem-doc__btn--ghost {
  background: transparent;
  border-color: #d8c9a8;
  color: #4a4636;
}

.sem-doc__btn--ghost:hover {
  background: #f4ecda;
  border-color: #c2b48f;
  color: #16331c;
}

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

/* Documentos sin vista previa (Word, planillas): solo la fila de descarga */
.sem-descargas {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sem-descarga {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid #e4d9c2;
  border-radius: 14px;
  background: #fffdf8;
  color: inherit;
  text-decoration: none;
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.sem-descarga:hover {
  transform: translateY(-2px);
  border-color: #d3c39c;
  background: #fff;
}

.sem-descarga__ico {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eef3ea;
  color: #18713A;
}

.sem-descarga:hover .sem-descarga__ico {
  background: #18713A;
  color: #fff;
}

.sem-descarga__txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sem-descarga__titulo {
  font-weight: 600;
  font-size: 14.5px;
  color: #16331c;
}

.sem-descarga__desc {
  color: #6d6650;
  font-size: 13px;
  line-height: 1.5;
}

.sem-descarga__meta {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 10px;
  color: #9a8f74;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  white-space: nowrap;
}

/* ── Í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;
}

/* ── Otras ediciones (pie de la página de detalle) ───── */
.sem-otras__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.sem-otra {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid #e4d9c2;
  border-radius: 16px;
  background: #fffdf8;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.sem-otra:hover {
  transform: translateY(-2px);
  border-color: #d3c39c;
  background: #fff;
}

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

.sem-otra__title {
  font-family: 'Spectral', serif;
  font-size: 18px;
  line-height: 1.25;
  color: #16331c;
}

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

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .sem-switcher {
    top: 65px;
  }

  .sem-banner__img {
    max-height: min(60svh, 520px);
  }

  .sem-banner__blur {
    filter: blur(26px) saturate(1.05);
  }
}

@media (max-width: 720px) {
  .sem-switcher {
    position: static;
  }

  /* En móvil el afiche ya es bajo: se muestra completo, de borde a borde,
     sin tope de altura ni fondo difuminado (no queda espacio sobrante). */
  .sem-banner__img {
    max-height: none;
  }

  .sem-banner__blur {
    display: none;
  }

  /* Las tarjetas del índice se apilan: afiche arriba, texto abajo */
  .sem-card {
    grid-template-columns: 1fr;
  }

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

  .sem-tab {
    flex: 0 0 76%;
    min-width: 0;
  }

  .sem-panel__head {
    align-items: flex-start;
  }

  /* En móvil el rango horario va sobre la actividad, no en columna aparte */
  .sem-hito {
    flex-direction: column;
    gap: 5px;
  }

  .sem-hito__hora {
    flex-basis: auto;
  }

  /* La descarga se apila: el peso deja de competir por el ancho */
  .sem-descarga {
    flex-wrap: wrap;
  }

  .sem-descarga__meta {
    margin-left: 52px;
    padding-left: 0;
  }

  .sem-foto figcaption {
    opacity: 1;
  }
}
