/* ============================================================
   GEA · Noticia (single post) · prefijo ntx-
   Layout editorial inspirado en iceers.org (título arriba, foto
   debajo, columna estrecha y mucho aire) con el branding de GEA.
   ============================================================ */

.gea-single__main {
  background: var(--gea-papel);
  font-family: 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--gea-grafito);
  padding-bottom: 8px;
}
.gea-single__main *, .gea-single__main *::before, .gea-single__main *::after { box-sizing: border-box; }

.ntx { display: block; }

/* ---------- CABECERA EDITORIAL ---------- */
.ntx-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 90px 24px 0;
}
.ntx-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gea-mostaza); text-decoration: none;
  margin-bottom: 34px; transition: color 0.2s, gap 0.2s;
}
.ntx-back:hover { color: var(--gea-verde); gap: 12px; }
.ntx-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ntx-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ntx-cat {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gea-mostaza); border: 1px solid var(--gea-mostaza);
  padding: 4px 12px; border-radius: 40px;
}
.ntx-title {
  font-family: 'Averia Serif Libre', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.13;
  color: var(--gea-verde);
  margin: 0 0 26px;
  letter-spacing: -0.005em;
}
.ntx-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 0.95rem; color: var(--gea-suave);
}
.ntx-by { color: var(--gea-suave); }
.ntx-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; margin-right: 2px; }
.ntx-author {
  color: var(--gea-verde); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--gea-salvia); padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.ntx-author:hover { color: var(--gea-mostaza); border-color: var(--gea-mostaza); }
.ntx-dot { color: var(--gea-salvia); }
.ntx-lectura { display: inline-flex; align-items: center; gap: 6px; color: var(--gea-suave); }
.ntx-lectura svg { width: 14px; height: 14px; fill: none; stroke: var(--gea-mostaza); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FIRMA DEL AUTOR (pie del artículo) ---------- */
.ntx-firma {
  display: flex; align-items: center; gap: 22px;
  max-width: 760px; margin: 56px auto 0; padding: 26px 28px;
  background: #fff; border: 1px solid rgba(31, 58, 46, 0.10); border-radius: 4px;
}
.ntx-firma-foto { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ntx-firma-texto { display: flex; flex-direction: column; }
.ntx-firma-label {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gea-mostaza);
}
.ntx-firma-nombre {
  font-family: 'Averia Serif Libre', Georgia, serif;
  font-size: 1.35rem; color: var(--gea-verde); text-decoration: none; margin-top: 2px;
}
.ntx-firma-nombre:hover { color: var(--gea-mostaza); }
.ntx-firma-bio {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 0.92rem; color: var(--gea-suave); line-height: 1.6; margin: 6px 0 0;
}
@media (max-width: 560px) {
  .ntx-firma { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- CITAS DESTACADAS (mensajes clave) ---------- */
.ntx-content .wp-block-pullquote,
.ntx-content .wp-block-quote,
.ntx-content blockquote {
  border: none;
  border-left: 4px solid var(--gea-mostaza);
  margin: 36px 0;
  padding: 4px 0 4px 30px;
  background: none;
}
.ntx-content .wp-block-pullquote { text-align: left; }
.ntx-content blockquote p,
.ntx-content .wp-block-pullquote p {
  font-family: 'Averia Serif Libre', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  color: var(--gea-verde);
  margin: 0 0 8px;
}
.ntx-content blockquote p:last-child { margin-bottom: 0; }

/* ---------- VÍDEO (embed / iframe responsivo) ---------- */
.ntx-content .wp-block-embed,
.ntx-content figure.wp-block-embed,
.ntx-content .gea-video { margin: 40px 0; }
.ntx-content .wp-block-embed__wrapper,
.ntx-content .gea-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.ntx-content .wp-block-embed__wrapper iframe,
.ntx-content .gea-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* Vídeo subido (core/video) o <video> nativo: responsive, sin recortes */
.ntx-content .wp-block-video { margin: 40px 0; }
.ntx-content .wp-block-video video,
.ntx-content video { display: block; width: 100%; height: auto; border-radius: 6px; }

/* ---------- IMAGEN DESTACADA ---------- */
.ntx-featured {
  max-width: 1000px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.ntx-featured img {
  display: block; width: 100%; height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(31,58,46,0.14);
}
.ntx-rule {
  max-width: 760px; margin: 48px auto 0; padding: 0 24px;
}
.ntx-rule::after {
  content: ""; display: block; height: 2px; width: 64px;
  background: var(--gea-mostaza);
}

/* ---------- RESUMEN (extracto destacado) ---------- */
.ntx-resumen { max-width: 720px; margin: 46px auto 0; padding: 0 24px; }
.ntx-resumen-label, .ntx-resumen-texto { padding-left: 22px; border-left: 3px solid var(--gea-mostaza); }
.ntx-resumen-label {
  display: block; font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gea-mostaza); padding-bottom: 8px;
}
.ntx-resumen-texto {
  margin: 0; font-family: 'Averia Serif Libre', Georgia, serif; font-style: italic;
  font-size: clamp(1.2rem, 2.7vw, 1.5rem); line-height: 1.5; color: var(--gea-verde);
}

/* ---------- CONTENIDO (bloques nativos de Gutenberg) ---------- */
.ntx-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 0;
  font-size: 1.17rem;
  line-height: 1.85;
  color: var(--gea-grafito);
}

.ntx-content p { margin: 0 0 1.6rem; }
.ntx-content > p:first-of-type {
  font-size: 1.34rem; line-height: 1.62; color: var(--gea-verde);
  font-weight: 400;
}
.ntx-content a { color: var(--gea-mostaza); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.2s; }
.ntx-content a:hover { color: var(--gea-verde); }
.ntx-content strong { font-weight: 700; color: var(--gea-verde); }
.ntx-content em { font-style: italic; }

/* Encabezados (titular / subtítulo) */
.ntx-content h2 {
  font-family: 'Averia Serif Libre', Georgia, serif;
  font-weight: 400; font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  line-height: 1.2; color: var(--gea-verde);
  margin: 3rem 0 1.1rem;
}
.ntx-content h3 {
  font-family: 'Averia Serif Libre', Georgia, serif;
  font-weight: 400; font-size: clamp(1.35rem, 2.9vw, 1.75rem);
  line-height: 1.25; color: var(--gea-verde);
  margin: 2.4rem 0 0.9rem;
}
.ntx-content h4 {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em;
  color: var(--gea-mostaza); text-transform: uppercase;
  margin: 2.2rem 0 0.7rem;
}

/* Listas */
.ntx-content ul, .ntx-content ol { margin: 0 0 1.6rem; padding-left: 1.5rem; }
.ntx-content ul { list-style: disc; }
.ntx-content ol { list-style: decimal; }
.ntx-content li { display: list-item; }
.ntx-content li { margin-bottom: 0.6rem; }
.ntx-content ul li::marker { color: var(--gea-mostaza); }
.ntx-content ol li::marker { color: var(--gea-mostaza); font-weight: 700; }

/* Cita */
.ntx-content blockquote,
.ntx-content .wp-block-quote {
  margin: 2.6rem 0;
  padding: 0.3rem 0 0.3rem 1.7rem;
  border-left: 4px solid var(--gea-mostaza);
  font-family: 'Averia Serif Libre', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem; line-height: 1.5; color: var(--gea-verde);
}
.ntx-content blockquote p { margin-bottom: 0.6rem; }
.ntx-content .wp-block-quote cite,
.ntx-content blockquote cite {
  display: block; font-family: 'Barlow', system-ui, sans-serif;
  font-style: normal; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--gea-suave); margin-top: 0.5rem;
}

/* Cita destacada (frase destacada) — mismo estilo que el resto de citas:
   una sola barra izquierda mostaza, sin líneas arriba/abajo. */
.ntx-content .wp-block-pullquote {
  margin: 3rem 0; padding: 4px 0 4px 30px;
  border: none; border-left: 4px solid var(--gea-mostaza);
  text-align: left; background: transparent;
}
.ntx-content .wp-block-pullquote blockquote {
  border: none; margin: 0; padding: 0;
}
.ntx-content .wp-block-pullquote p,
.ntx-content .wp-block-pullquote blockquote p {
  font-family: 'Averia Serif Libre', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.4;
  color: var(--gea-verde); margin: 0 0 8px;
}
.ntx-content .wp-block-pullquote cite {
  display: block; font-family: 'Barlow', system-ui, sans-serif;
  font-style: normal; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--gea-mostaza); margin-top: 0.8rem;
}

/* Imagen + pie de foto */
.ntx-content figure.wp-block-image { margin: 2.8rem 0; }
.ntx-content .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 3px; }
.ntx-content figure.alignwide { width: min(940px, 90vw); margin-left: 50%; transform: translateX(-50%); }
.ntx-content figure.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }
.ntx-content .wp-block-image figcaption,
.ntx-content figcaption {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 0.85rem; color: var(--gea-suave);
  text-align: center; margin-top: 0.8rem; font-style: italic;
}

/* Galería */
.ntx-content .wp-block-gallery { margin: 3rem 0; gap: 14px; }
.ntx-content .wp-block-gallery img { border-radius: 3px; }

/* Columnas (p. ej. dos imágenes) */
.ntx-content .wp-block-columns { margin: 3rem 0; gap: 24px; }
.ntx-content .wp-block-columns figure.wp-block-image { margin: 0; }

/* Botón */
.ntx-content .wp-block-button__link {
  background: var(--gea-verde); color: var(--gea-papel);
  font-family: 'Barlow', system-ui, sans-serif; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem;
  padding: 15px 34px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s;
}
.ntx-content .wp-block-button__link:hover { background: var(--gea-verde2); color: var(--gea-papel); }
.ntx-content .is-style-outline .wp-block-button__link {
  background: transparent; color: var(--gea-verde); border: 1.5px solid var(--gea-verde);
}

/* Separador */
.ntx-content hr, .ntx-content .wp-block-separator {
  border: none; height: 2px; background: var(--gea-mostaza);
  max-width: 64px; margin: 3rem auto; opacity: 1;
}

/* Vídeo / embed */
.ntx-content .wp-block-embed { margin: 3rem 0; }
.ntx-content figure.wp-block-embed figcaption { margin-top: 0.8rem; }

/* ---------- ETIQUETAS ---------- */
.ntx-tags { max-width: 720px; margin: 46px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ntx-tags-label { font-family: 'Barlow', system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gea-suave); margin-right: 2px; }
.ntx-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ntx-tag { font-family: 'Barlow', system-ui, sans-serif; font-size: 12px; font-weight: 500; color: var(--gea-verde); background: rgba(31,58,46,0.06); padding: 5px 13px; border-radius: 40px; }

/* Ocultar los botones de compartir auto-inyectados por plugins
   (AddToAny, Jetpack/Sharedaddy) — usamos el bloque .ntx-share propio. */
.gea-single .addtoany_share_save_container,
.gea-single .a2a_kit,
.gea-single .sharedaddy,
.gea-single .jp-relatedposts { display: none !important; }

/* ---------- COMPARTIR ---------- */
.ntx-share {
  max-width: 720px; margin: 44px auto 0; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.ntx-share-label {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gea-suave);
}
.ntx-share-btns { display: flex; gap: 10px; }
.ntx-share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--gea-salvia);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ntx-share-btn:hover { background: var(--gea-verde); border-color: var(--gea-verde); transform: translateY(-2px); }
.ntx-share-btn svg { width: 18px; height: 18px; fill: var(--gea-verde); transition: fill 0.2s; }
.ntx-share-btn:hover svg { fill: var(--gea-papel); }

/* ---------- RELACIONADAS ---------- */
.ntx-related {
  max-width: 1120px; margin: 72px auto 0; padding: 0 24px 40px;
}
.ntx-related-inner { }
.ntx-related-kicker {
  display: block; font-family: 'Barlow', system-ui, sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gea-mostaza); margin-bottom: 10px;
}
.ntx-related-titulo {
  font-family: 'Averia Serif Libre', Georgia, serif; font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--gea-verde);
  margin: 0 0 40px;
}
.ntx-related-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.ntx-rel-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; overflow: hidden; border-radius: 4px;
  box-shadow: 0 2px 16px rgba(31,58,46,0.06); transition: transform 0.25s, box-shadow 0.25s;
}
.ntx-rel-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(31,58,46,0.13); }
.ntx-rel-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gea-salvia); }
.ntx-rel-img--verde { background: var(--gea-verde); }
.ntx-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.ntx-rel-card:hover .ntx-rel-img img { transform: scale(1.05); }
.ntx-rel-body { padding: 22px 24px 26px; }
.ntx-rel-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gea-mostaza); display: block; margin-bottom: 9px; }
.ntx-rel-t { font-family: 'Averia Serif Libre', Georgia, serif; font-weight: 400; font-size: 1.25rem; line-height: 1.25; color: var(--gea-verde); margin: 0 0 9px; }
.ntx-rel-fecha { font-size: 0.8rem; color: var(--gea-salvia); }

/* ---------- VOLVER ---------- */
.ntx-volver-wrap { text-align: center; margin-top: 52px; }
.ntx-volver-wrap--solo { margin-top: 0; }
.ntx-volver {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gea-verde); text-decoration: none;
  border: 1.5px solid var(--gea-verde); padding: 15px 34px; border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.ntx-volver:hover { background: var(--gea-verde); color: var(--gea-papel); }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  .ntx-head { padding-top: 104px; }
  .ntx-content { padding-top: 68px; }
  .ntx-related-grid { grid-template-columns: repeat(3, 1fr); }
}
