/* =========================================================
   CIREN — NUEVO_INDEX
   Extensión del sistema visual de styles.css para:
   - hero compacto con franja de novedades (3 layouts x 2 estados)
   - vista "más información" (evento)
   - vista "capacitaciones"
   No modifica styles.css: sólo agrega selectores nuevos o
   selectores con clase modificadora (.hero-compact, .nv-*).
========================================================= */

/* ---------- 1. Hero compacto: sube y reduce titular + isotipo ---------- */

.hero-compact .hero-logo {
  align-items: start;
  padding-top: clamp(146px, 21vh, 232px);
}

.hero-compact .logo-img {
  width: clamp(140px, 15vw, 220px);
  margin-bottom: 0;
}

.hero-compact .hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  justify-content: flex-start;
  padding: clamp(78px, 12vh, 128px) clamp(24px, 8vw, 140px) 0;
}

.hero-compact .hero h1 {
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  line-height: 1.12;
  max-width: 40ch;
}

/* ---------- 2. Franja de novedades ---------- */

.nv-band {
  position: absolute;
  left: 50%;
  bottom: 184px;
  z-index: 3;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 64px));
}

.nv-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.nv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Selector Novedades / Eventos */
.nv-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nv-tab {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 2px;
  background: transparent;
  color: rgba(238, 243, 238, .55);
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.nv-tab:hover,
.nv-tab:focus-visible {
  color: var(--ink);
}

.nv-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.nv-tab.is-active {
  color: var(--cyan);
  border-color: currentColor;
}

.nv-tab-separator {
  color: rgba(238, 243, 238, .45);
}

.nv-eyebrow b {
  color: var(--cyan);
  font-weight: 800;
}

.nv-eyebrow span {
  color: rgba(238, 243, 238, .5);
}

.nv-stamp {
  color: rgba(238, 243, 238, .4);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
}

/* shared glass card skin used by tarjeta + panel-flotante */

.nv-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: rgba(6, 11, 8, .58);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, box-shadow .28s ease;
}

.nv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 224, 203, .38);
  box-shadow: 0 28px 74px rgba(0, 0, 0, .4);
}

.nv-media {
  height: 108px;
  background-size: cover;
  background-position: center;
  filter: saturate(.85) contrast(1.05) brightness(.82);
}

.nv-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nv-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(127, 224, 203, .28);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--cyan);
  background: rgba(6, 11, 8, .3);
  font-family: 'JetBrains Mono', monospace;
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nv-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.04rem;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.nv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: rgba(238, 243, 238, .62);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .02em;
}

.nv-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nv-meta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.nv-card p {
  margin: 0;
  color: rgba(238, 243, 238, .68);
  font-size: .84rem;
  line-height: 1.5;
}

.nv-cta {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
}

.nv-card:hover .nv-cta {
  color: var(--cyan);
}

/* --- layout: tarjeta (2 cards) --- */

.nv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.nv-cards .nv-card {
  flex-direction: row;
}

.nv-cards .nv-media {
  flex: 0 0 118px;
  height: auto;
}

.nv-cards .nv-body {
  padding: 15px 17px;
}

/* --- layout: panel flotante (1 destacado + 1 secundario) --- */

.nv-flotante {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 14px;
  align-items: stretch;
}

.nv-flotante .nv-feature {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .36);
}

.nv-flotante .nv-feature-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.85) contrast(1.06) brightness(.62);
}

.nv-flotante .nv-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 5, .06) 0%, rgba(3, 8, 5, .32) 45%, rgba(3, 8, 5, .92) 100%);
}

.nv-flotante .nv-feature-copy {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nv-flotante .nv-feature h3 {
  font-size: 1.2rem;
}

.nv-flotante .nv-feature p {
  max-width: 42ch;
}

.nv-flotante .nv-card {
  flex-direction: row;
}

.nv-flotante .nv-card .nv-media {
  flex: 0 0 96px;
  height: auto;
}

.nv-flotante .nv-card .nv-body {
  padding: 14px 15px;
}

/* --- layout: slider (fila horizontal, varias tarjetas visibles) --- */

.nv-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nv-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.nv-track::-webkit-scrollbar {
  display: none;
}

.nv-slide-card {
  --flag-blue: #0039a6;
  --flag-red: #d52b1e;
  --flag-white: #f3f7f1;
  /* móvil: una tarjeta ancha + un adelanto de la siguiente */
  flex: 0 0 min(240px, 78%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 15px;
  border-top: 3px solid var(--flag-blue);
  border-radius: 0;
  background: var(--bg-panel);
  transition: transform .25s ease;
}

.nv-slide-card[hidden] {
  display: none !important;
}

.nv-slide-card.accent-blue {
  border-top-color: var(--flag-blue);
}

.nv-slide-card.accent-red {
  border-top-color: var(--flag-red);
}

.nv-slide-card.accent-white {
  border-top-color: var(--flag-white);
}

.nv-slide-card:hover {
  transform: translateY(-3px);
}

.nv-slide-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.nv-slide-card p {
  margin: 0;
  color: rgba(238, 243, 238, .68);
  font-size: .82rem;
  line-height: 1.5;
}

/* Eventos: afiche lateral + información, como en la maqueta aprobada. */
.nv-event-card {
  flex-direction: row;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 243, 238, .14);
  border-radius: 24px;
  background: linear-gradient(105deg, rgba(10, 20, 13, .94), rgba(17, 27, 18, .88));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.nv-event-media {
  flex: 0 0 118px;
  min-height: 184px;
  overflow: hidden;
  background: rgba(238, 243, 238, .06);
}

.nv-event-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nv-event-body {
  min-width: 0;
  padding: 16px 18px 15px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.nv-event-card .nv-pill {
  padding: 5px 12px;
  font-size: .6rem;
}

.nv-event-card h3 {
  font-size: 1rem;
}

.nv-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: rgba(238, 243, 238, .58);
  font-family: 'JetBrains Mono', monospace;
  font-size: .64rem;
  line-height: 1.35;
}

.nv-event-card .nv-cta {
  margin-top: auto;
}

@media (min-width: 640px) {
  .nv-slide-card {
    /* tablet: ~2 tarjetas visibles + un adelanto */
    flex-basis: min(320px, 46%);
  }
}

@media (min-width: 1024px) {
  .nv-track {
    gap: 16px;
  }

  .nv-slide-card {
    /* escritorio: exactamente 3 tarjetas alargadas, la 4ª entra al avanzar */
    flex-basis: calc((100% - 32px) / 3);
    padding: 22px 24px 20px;
    gap: 10px;
  }

  .nv-slide-card h3 {
    font-size: 1.12rem;
  }

  .nv-slide-card p {
    font-size: .86rem;
  }

  .nv-event-card {
    flex-basis: calc((100% - 16px) / 2);
    gap: 0;
    padding: 0;
  }

  .nv-event-card h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 639px) {
  .nv-event-card {
    flex-basis: min(330px, 90%);
  }

  .nv-event-media {
    flex-basis: 98px;
    min-height: 178px;
  }

  .nv-event-body {
    padding: 13px 14px;
  }

  .nv-event-card p {
    display: none;
  }
}

.nv-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nv-dots {
  display: flex;
  gap: 7px;
}

.nv-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 243, 238, .38);
  cursor: pointer;
  transition: .22s;
}

.nv-dots button.is-active {
  width: 22px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(127, 224, 203, .42);
}

.nv-slider-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nv-slider-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 243, 238, .22);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(6, 11, 8, .54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: .22s;
}

.nv-slider-btn:hover {
  color: #061009;
  background: var(--cyan);
  border-color: var(--cyan);
}

.nv-slider-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.nv-slider-btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* --- estado vacío --- */

.nv-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
  padding: 16px 26px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(6, 11, 8, .48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}

.nv-empty p {
  margin: 0;
  color: rgba(238, 243, 238, .68);
  font-size: .86rem;
}

.nv-empty a {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
}

@media (max-width: 760px) {
  .nv-band { bottom: 210px; }
  .nv-cards { grid-template-columns: 1fr; }
  .nv-flotante { grid-template-columns: 1fr; }
  .nv-flotante .nv-feature { min-height: 160px; }
  .hero-compact .hero-logo { padding-top: clamp(120px, 19vh, 180px); }
  .hero-compact .hero-copy { padding-top: clamp(64px, 10vh, 96px); }
}

/* =========================================================
   3. Vista "capacitaciones"
========================================================= */

.cap-page {
  min-height: 100svh;
  padding: 152px 0 120px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(78, 154, 92, .16), transparent 30%),
    radial-gradient(circle at 12% 70%, rgba(127, 224, 203, .07), transparent 28%),
    linear-gradient(180deg, #061009 0%, #08130d 56%, #050906 100%);
}

.cap-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.cap-header {
  max-width: 760px;
  margin-bottom: 56px;
}

.cap-header .display {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: .96;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cap-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border: 1px solid rgba(238, 243, 238, .15);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(238, 243, 238, .06), rgba(238, 243, 238, .015));
  box-shadow: 0 26px 74px rgba(0, 0, 0, .28);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, background .28s ease;
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 224, 203, .38);
  background: linear-gradient(150deg, rgba(127, 224, 203, .1), rgba(238, 243, 238, .02));
}

.cap-card .cap-index {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .14em;
  margin-bottom: 34px;
}

.cap-card h2 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  letter-spacing: -.03em;
}

.cap-card p {
  margin: 0 0 26px;
  color: rgba(238, 243, 238, .68);
  font-size: .92rem;
  line-height: 1.62;
  flex: 1;
}

.cap-card .btn {
  align-self: flex-start;
}

/* =========================================================
   4. Vista "más información"
========================================================= */

.mi-page {
  min-height: 100svh;
  padding: 142px 0 120px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(78, 154, 92, .16), transparent 30%),
    radial-gradient(circle at 12% 70%, rgba(127, 224, 203, .07), transparent 28%),
    linear-gradient(180deg, #061009 0%, #08130d 56%, #050906 100%);
}

.mi-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.mi-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 850;
  transition: transform .24s ease, color .24s ease;
}

.mi-back:hover {
  color: var(--ink);
  transform: translateX(-5px);
}

.mi-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: start;
}

.mi-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background: #eaf0eb;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .38);
}

.mi-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.mi-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 6px;
}

.mi-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(127, 224, 203, .28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(238, 243, 238, .035);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mi-info h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.mi-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mi-meta div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 243, 238, .8);
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  letter-spacing: .02em;
}

.mi-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 2;
}

.mi-info p.lead {
  margin: 0;
}

.mi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.mi-actions a.geoportal-detail-primary {
  gap: 10px;
}

@media (max-width: 900px) {
  .mi-layout { grid-template-columns: 1fr; gap: 28px; }
  .mi-media img { aspect-ratio: 16 / 10; }
}

/* =========================================================
   5. Responsive final — franja Novedades / Eventos del home
========================================================= */

/* Evita que las tarjetas se deformen dentro del carrusel. */
.nv-track {
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 1px;
}

.nv-slide-card,
.nv-event-card,
.nv-event-body {
  min-width: 0;
}

.nv-slide-card h3,
.nv-slide-card p,
.nv-event-card h3,
.nv-event-card p {
  overflow-wrap: anywhere;
}

/* Escritorio compacto: los eventos pasan a uno por vista antes
   de que el afiche y el texto queden demasiado estrechos. */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-compact {
    min-height: 880px;
  }

  .nv-band {
    bottom: 132px;
    width: min(900px, calc(100% - 48px));
  }

  .nv-slide-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .nv-event-card {
    flex-basis: min(680px, 92%);
  }

  .nv-event-media {
    flex-basis: clamp(150px, 24vw, 210px);
    min-height: 230px;
  }

  .nv-event-body {
    padding: 20px;
  }

  .nv-event-card h3 {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
  }
}

/* Tablet vertical y teléfonos grandes. */
@media (max-width: 760px) {
  .hero-compact {
    min-height: 940px;
  }

  .nv-band {
    bottom: 92px;
    width: calc(100% - 32px);
  }

  .nv-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .nv-eyebrow {
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: .64rem;
  }

  .nv-stamp {
    font-size: .62rem;
    white-space: nowrap;
  }

  .nv-track {
    gap: 12px;
  }

  .nv-slide-card {
    flex-basis: min(360px, 88%);
  }

  .nv-event-card {
    flex-basis: min(560px, 94%);
  }

  .nv-slider-controls {
    margin-top: 2px;
  }
}

/* Celular: los eventos dejan de comprimir el afiche a la izquierda
   y se transforman en tarjetas verticales completamente legibles. */
@media (max-width: 560px) {
  .hero-compact {
    min-height: 1040px;
  }

  .hero-compact .hero-logo {
    padding-top: 112px;
  }

  .hero-compact .hero-copy {
    padding: 78px 18px 0;
  }

  .nv-band {
    bottom: 72px;
    width: calc(100% - 24px);
  }

  .nv-head {
    flex-direction: column;
    gap: 8px;
  }

  .nv-tabs {
    gap: 8px;
  }

  .nv-tab {
    min-height: 30px;
    padding: 4px 0 3px;
  }

  .nv-stamp {
    white-space: normal;
  }

  .nv-slide-card {
    flex-basis: 92%;
    min-height: 250px;
    padding: 17px;
  }

  .nv-event-card {
    flex-basis: 92%;
    min-height: 0;
    flex-direction: column;
  }

  .nv-event-media {
    flex: none;
    width: 100%;
    height: clamp(180px, 52vw, 235px);
    min-height: 0;
  }

  .nv-event-media img {
    object-position: center 22%;
  }

  .nv-event-body {
    padding: 15px 16px 17px;
    gap: 7px;
  }

  .nv-event-card h3 {
    font-size: 1.02rem;
    line-height: 1.22;
  }

  .nv-event-meta {
    flex-direction: column;
    gap: 3px;
  }

  .nv-event-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .nv-slider-controls {
    gap: 8px;
  }

  .nv-dots {
    min-width: 0;
    flex-wrap: wrap;
  }

  .nv-slider-btn {
    width: 38px;
    height: 38px;
  }

  .cap-card {
    padding: 24px 20px 22px;
    border-radius: 22px;
  }

  .cap-card .cap-index {
    margin-bottom: 24px;
  }

  .mi-media,
  .mi-media img {
    border-radius: 20px;
  }

  .mi-actions,
  .mi-actions a {
    width: 100%;
  }

  .mi-actions a {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .hero-compact {
    min-height: 1040px;
  }

  .nv-band {
    bottom: 58px;
  }

  .nv-slide-card,
  .nv-event-card {
    flex-basis: 96%;
  }

  .nv-event-media {
    height: 176px;
  }

  .nv-event-card p {
    -webkit-line-clamp: 2;
  }
}

/* ==========================================================
   DETALLE DE NOTICIA
   ========================================================== */

.news-detail-page {
  background: var(--bg);
  color: var(--paper);
}

.news-detail-page main,
.news-detail {
  background:
    radial-gradient(circle at 82% 24%, rgba(78, 154, 92, .08), transparent 32%),
    var(--bg);
}

a.news-archive-card {
  color: inherit;
  text-decoration: none;
}

.news-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(150px, 17vw, 230px) 0 clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 78% 24%, rgba(64, 215, 190, .13), transparent 34%),
    linear-gradient(145deg, rgba(10, 31, 34, .98), rgba(4, 15, 18, .98));
}

.news-detail-hero .geo-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
}

.news-detail-hero-inner {
  position: relative;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(38px, 5vw, 70px);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-detail-back:hover {
  color: var(--paper);
}

.news-detail-heading {
  max-width: 980px;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 22px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.news-detail-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(127, 224, 203, .32);
  background: rgba(127, 224, 203, .07);
}

.news-detail-heading h1 {
  max-width: 18ch;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
}

.news-detail-lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: rgba(238, 243, 238, .78);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.7;
}

.news-detail-author {
  margin: 24px 0 0;
  color: rgba(238, 243, 238, .55);
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
}

.news-detail-layout {
  width: min(980px, calc(100% - 48px));
  padding-block: clamp(46px, 7vw, 92px) clamp(70px, 10vw, 130px);
}

.news-detail-cover {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 50% clamp(48px, 7vw, 88px);
  transform: translateX(-50%);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .03);
}

.news-detail-cover img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border: none;
  border-radius: 20px;
}

.news-detail-body {
  max-width: 780px;
  margin-inline: auto;
  color: rgba(238, 243, 238, .84);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.85;
}

.news-detail-body > :first-child {
  margin-top: 0;
}

.news-detail-body p,
.news-detail-body ul,
.news-detail-body ol,
.news-detail-body blockquote,
.news-detail-body figure,
.news-detail-body table {
  margin-block: 0 1.6em;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
  margin: 2em 0 .75em;
  color: var(--paper);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
}

.news-detail-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.news-detail-body h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.news-detail-body a {
  color: var(--cyan);
  text-underline-offset: 4px;
}

.news-detail-body img {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 28px;
  border: 1px solid var(--hairline);
}

.news-detail-body blockquote {
  padding: 8px 0 8px 26px;
  border-left: 2px solid var(--cyan);
  color: rgba(238, 243, 238, .68);
  font-size: 1.12em;
}

.news-detail-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
}

.news-detail-body th,
.news-detail-body td {
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  text-align: left;
}

.news-detail-footer {
  display: flex;
  justify-content: center;
  max-width: 780px;
  margin: clamp(48px, 7vw, 86px) auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
}

.news-detail-error {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 72vh;
  padding: clamp(180px, 22vw, 270px) 0 100px;
}

.news-detail-error .geo-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
}

.news-detail-error h1 {
  margin: 14px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.news-detail-error p {
  max-width: 580px;
  margin-bottom: 34px;
  color: rgba(238, 243, 238, .7);
}

@media (max-width: 760px) {
  .cap-page,
  .mi-page {
    padding-top: calc(112px + env(safe-area-inset-top));
    padding-bottom: 80px;
  }

  .cap-inner,
  .mi-inner {
    width: calc(100% - 32px);
  }

  .cap-header {
    margin-bottom: 36px;
  }

  .news-detail-hero {
    padding-top: calc(118px + env(safe-area-inset-top));
  }

  .news-detail-layout {
    width: calc(100% - 32px);
  }

  .news-detail-cover {
    width: calc(100vw - 32px);
  }

  .news-detail-heading h1 {
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .news-detail-body {
    line-height: 1.72;
    overflow-wrap: anywhere;
  }

  .news-detail-body iframe,
  .news-detail-body video,
  .news-detail-body embed {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .news-detail-body pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .news-detail-footer .btn {
    width: 100%;
    justify-content: center;
  }
}



.news-archive-copy h2{
  color: #08130d;
}

.news-detail-heading h1{
   font-size: clamp(2rem, 3vw, 3.1rem) !important;
}

/* Oculta la navegación Previous / Next incluida por WordPress */
.news-detail-body .wp-block-post-navigation-link,
.news-detail-body .wp-block-post-navigation-link-previous,
.news-detail-body .wp-block-post-navigation-link-next,
.news-detail-body .post-navigation,
.news-detail-body .navigation.post-navigation,
.news-detail-body .nav-previous,
.news-detail-body .nav-next{
  display: none !important;
}

.news-detail img,
.news-detail-body img{
  border-radius: 20px !important;
  border: none !important;
}

@media (max-width: 480px) {
  .nv-empty {
    padding: 14px 18px;
    border-radius: 20px;
  }

  .news-detail-meta {
    gap: 8px;
  }

  .news-detail-meta span {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .news-detail-cover {
    margin-bottom: 38px;
  }

  .news-detail-body blockquote {
    padding-left: 18px;
  }
}

@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
  .hero-compact {
    min-height: 760px;
  }

  .hero-compact .hero-logo {
    padding-top: 92px;
  }

  .hero-compact .hero-copy {
    padding-top: 54px;
  }
}
