/* LabAncestral · seminarios.css
   Ubicación: core/static/core/css/pages/seminarios.css
   Índice responsive del ciclo de seminarios. */

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

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

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

@keyframes sem-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Antetítulos */
.sem-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  margin-bottom: 18px;
  color: #9a8f74;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: .2em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

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

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

.sem-hero__title {
  max-width: 900px;
  margin: 0 0 16px;
  color: #152514;
  font-family: 'Spectral', serif;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

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

/* Índice de ediciones */
.sem-indice {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  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;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fffdf8;
  border: 1px solid #e4d9c2;
  border-radius: 20px;
  box-shadow: 0 12px 34px -30px rgba(22, 51, 28, .42);
  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:focus-visible {
  outline: 3px solid rgba(238, 154, 28, .65);
  outline-offset: 3px;
}

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

.sem-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 14px;
  overflow: hidden;
  background: var(--sem-banner-bg, #f3ecdd);
}

.sem-card__img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 270px;
  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;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.sem-card__meta {
  color: #9a8f74;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.sem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 14px;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  background: #18713a;
  border-radius: 999px;
}

.sem-badge--proximo {
  color: #0e3d22;
  background: #ee9a1c;
}

.sem-card__title {
  margin: 0;
  color: #152514;
  font-family: 'Spectral', serif;
  font-size: clamp(21px, 2.3vw, 27px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.012em;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

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

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

.sem-card__datos span {
  max-width: 100%;
  overflow-wrap: break-word;
}

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

.sem-card__ir {
  align-self: flex-start;
  color: #18713a;
  font-size: 13.5px;
  font-weight: 600;
}

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

.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: #123c86;
}

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

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

.sem-cifra {
  min-height: 132px;
  padding: 22px;
  background: #f6efe1;
  border: 1px solid #e4d9c2;
  border-radius: 13px;
}

.sem-cifra strong {
  display: block;
  color: #18713a;
  font-family: 'Spectral', serif;
  font-size: clamp(31px, 3vw, 36px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.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;
  line-height: 1.45;
  overflow-wrap: break-word;
}

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

.sem-kicker--cierre {
  color: #7fae89;
}

.sem-kicker--cierre::before {
  background: #3a6b4b;
}

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

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

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

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

.sem-button:focus-visible {
  outline: 3px solid rgba(238, 154, 28, .65);
  outline-offset: 3px;
}

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

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

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

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

/* Tablet */
@media (max-width: 980px) {
  .sem-card {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  }

  .sem-cifras__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Móvil */
@media (max-width: 720px) {
  .sem-container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .sem-hero {
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .sem-hero__title {
    font-size: clamp(31px, 9.5vw, 42px);
    line-height: 1.08;
  }

  .sem-card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }

  .sem-card:hover {
    transform: none;
  }

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

  .sem-card__img img {
    width: 100%;
    max-height: none;
    border-radius: 8px;
  }

  .sem-card__body {
    gap: 13px;
    padding: 22px 20px 24px;
  }

  .sem-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .sem-card__meta {
    font-size: 10.5px;
    letter-spacing: .11em;
  }

  .sem-card__datos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    width: 100%;
    padding-top: 4px;
  }

  .sem-card__datos span {
    padding-bottom: 7px;
    border-bottom: 1px solid #eee5d2;
  }

  .sem-card__datos span:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .sem-card__ir {
    margin-top: 2px;
    font-size: 14px;
  }

  .sem-cifras__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sem-cifra {
    min-height: 124px;
    padding: 19px;
  }
}

/* Teléfonos estrechos */
@media (max-width: 440px) {
  .sem-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sem-kicker {
    align-items: flex-start;
    gap: 9px;
    font-size: 10.5px;
    letter-spacing: .14em;
  }

  .sem-kicker::before {
    flex-basis: 22px;
    width: 22px;
    margin-top: .65em;
  }

  .sem-hero__title {
    font-size: clamp(29px, 9.8vw, 38px);
  }

  .sem-card__body {
    padding: 20px 17px 22px;
  }

  .sem-card__title {
    font-size: 22px;
  }

  .sem-card__lead {
    font-size: 14px;
  }

  .sem-badge {
    max-width: 100%;
    padding: 7px 11px;
    font-size: 10px;
    white-space: normal;
  }

  .sem-cifras__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sem-cifra {
    min-height: 0;
  }

  .sem-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sem-button {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
  }
}

@supports not (overflow: clip) {
  .sem-page {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sem-page *,
  .sem-page *::before,
  .sem-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}