/* Detalle de noticia de Sala de prensa (sala-prensa/noticias-single.php). Columna de lectura, galería con foto
   principal y títulos como el home. Se carga con el diseño nuevo en el detalle de noticias. */

/* Portada */
body:has(.chs-nt__body) .velo-80 .header-title h1 { max-width: 22ch; font: 900 clamp(30px, 4vw, 48px)/1.1 var(--font-sans) !important; letter-spacing: -.3px; }
body:has(.chs-nt__body) .velo-80 .date-resume { font: 700 14px/1.3 var(--font-sans) !important; letter-spacing: .3px; }

/* Cuerpo: columna de lectura */
.chs-nt__body { max-width: 720px; margin-left: auto !important; margin-right: auto !important; flex: 0 0 100%; font-family: var(--font-sans); color: var(--carbon); font-size: 18px; line-height: 1.7; }
.chs-nt__body p, .chs-nt__body > div > div, .chs-nt__body div[dir] > div { margin: 0 0 1.1em; }
.chs-nt__body h2, .chs-nt__body h3, .chs-nt__body h4 { margin: 1.6em 0 .6em; color: var(--verde-700); font: 900 24px/1.25 var(--font-sans); }
.chs-nt__body ul, .chs-nt__body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.chs-nt__body li { margin-bottom: .7em; }
.chs-nt__body li::marker { color: var(--verde-hipico); }
.chs-nt__body ul ul { margin-top: .5em; }
.chs-nt__body b, .chs-nt__body strong { color: var(--carbon-900); font-weight: 800; }
.chs-nt__body a { color: var(--verde-700); text-decoration: underline; text-underline-offset: 3px; }
.chs-nt__body img { height: auto; border-radius: var(--radius-lg); }

/* Títulos de video y galería */
.chs-nt__video h3, .chs-nt__gallery h3 { color: var(--verde-700) !important; font: 900 24px/1.2 var(--font-sans) !important; text-align: left !important; text-transform: lowercase !important; }
.chs-nt__video h3::first-letter, .chs-nt__gallery h3::first-letter { text-transform: uppercase; }
.chs-nt__video h3 span, .chs-nt__gallery h3 span { font-weight: 900 !important; }
.chs-nt__video .col-md-6 { flex: 0 0 100%; max-width: 720px; margin-left: auto !important; margin-right: auto !important; }
.chs-nt__video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); }

/* Galería: la primera foto grande y el resto en grilla pareja (recortes 3:2). */
.chs-nt__gallery .demo-gallery { margin-top: var(--space-4) !important; }
.chs-nt__gallery #lightgallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.chs-nt__gallery #lightgallery li { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.chs-nt__gallery #lightgallery li:first-child { grid-column: span 2; grid-row: span 2; }
.chs-nt__gallery #lightgallery a { position: relative; display: block; overflow: hidden; height: 100%; border-radius: var(--radius-md); }
.chs-nt__gallery #lightgallery a img.img-responsive { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease-out; }
.chs-nt__gallery #lightgallery a:hover img.img-responsive { transform: scale(1.04); }
.chs-nt__gallery #lightgallery a:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.chs-nt__gallery .demo-gallery-poster { display: none !important; }

/* Anterior / siguiente */
.chs-nt__nav { max-width: 720px; margin: 0 auto !important; border-top: 1px solid var(--verde-100); border-bottom: 1px solid var(--verde-100); }
.chs-nt__nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--verde-700); font: 800 15px/1.3 var(--font-sans); text-decoration: none; }
.chs-nt__nav a:hover { text-decoration: underline; }

@media (max-width: 767px) {
	.chs-nt__body { padding-top: var(--space-6) !important; font-size: 17px; }
	.chs-nt__gallery #lightgallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chs-nt__nav > div { text-align: left !important; }
}
@media (prefers-reduced-motion: reduce) { .chs-nt__gallery #lightgallery a img.img-responsive { transition: none; } }
body:has(.chs-nt__body) .velo-80 .date-resume { text-align: left !important; margin-bottom: var(--space-3); }

/* Entradilla: el primer párrafo de la nota, más grande (único gesto fuerte). */
.chs-nt__body > :first-child, .chs-nt__body > :first-child > :first-child { font-size: 21px; line-height: 1.55; font-weight: 600; color: var(--carbon-900); }
@media (max-width: 767px) { .chs-nt__body > :first-child, .chs-nt__body > :first-child > :first-child { font-size: 19px; } }

/* Volver */
body:has(.chs-nt__body) buttom.font-12 { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--gris-600) !important; font: 700 13px/1 var(--font-sans) !important; cursor: pointer; }
body:has(.chs-nt__body) buttom.font-12 .bold { font-weight: 700 !important; text-transform: lowercase; }
body:has(.chs-nt__body) buttom.font-12:hover { color: var(--verde-700) !important; }

/* Últimas noticias: título y botón alineados al contenedor, con el estilo del home. */
body:has(.chs-nt__body) #widget-noticias .col-md-12.py-3 > .row { align-items: center; }
body:has(.chs-nt__body) #widget-noticias h3 { margin: 0; color: var(--verde-700) !important; font: 900 26px/1.2 var(--font-sans) !important; text-align: left !important; text-transform: lowercase !important; }
body:has(.chs-nt__body) #widget-noticias h3::first-letter { text-transform: uppercase; }
body:has(.chs-nt__body) #widget-noticias h3 span { font-weight: 900 !important; }
body:has(.chs-nt__body) #widget-noticias .btn-gold { border: 2px solid var(--verde-700) !important; border-radius: var(--radius-md) !important; background: var(--blanco) !important; color: var(--verde-700) !important; font: 800 13px/1 var(--font-sans) !important; padding: 12px 18px !important; text-transform: none; }
body:has(.chs-nt__body) #widget-noticias .btn-gold:hover { background: var(--verde-50) !important; }
body:has(.chs-nt__body) #widget-noticias .box-widget-news { border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 767px) {
	body:has(.chs-nt__body) #widget-noticias h3, body:has(.chs-nt__body) #widget-noticias .text-md-right { text-align: left !important; }
}
/* Carrusel y encabezado alineados a la izquierda del contenedor (con una noticia menos, Owl lo centraba). */
body:has(.chs-nt__body) #box-last-news .owl-stage { margin-left: 0 !important; }
body:has(.chs-nt__body) #widget-noticias .col-md-12.py-3 > .row { display: flex; justify-content: space-between; }
body:has(.chs-nt__body) #widget-noticias .col-md-12.py-3 > .row > div { flex: 0 1 auto; max-width: none; width: auto; }

/* Tamaños más contenidos (feedback: la fuente se veía muy grande). */
.chs-nt__body { font-size: 16px; line-height: 1.65; }
.chs-nt__body > :first-child, .chs-nt__body > :first-child > :first-child { font-size: 18px; line-height: 1.55; }
.chs-nt__body h2, .chs-nt__body h3, .chs-nt__body h4 { font-size: 20px; }
body:has(.chs-nt__body) .velo-80 .header-title h1 { font-size: clamp(26px, 3.2vw, 40px) !important; }
.chs-nt__video h3, .chs-nt__gallery h3, body:has(.chs-nt__body) #widget-noticias h3 { font-size: 22px !important; }
@media (max-width: 767px) {
	.chs-nt__body { font-size: 16px; }
	.chs-nt__body > :first-child, .chs-nt__body > :first-child > :first-child { font-size: 17px; }
}
/* La entradilla es el primer párrafo real: algunas notas vienen envueltas en un solo bloque (el selector anterior
   agrandaba la nota completa). */
.chs-nt__body > :first-child { font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: inherit !important; }
.chs-nt__body > p:first-child, .chs-nt__body > div:first-child > p:first-child, .chs-nt__body > div:first-child > div:first-child { font-size: 18px !important; line-height: 1.55 !important; font-weight: 600 !important; color: var(--carbon-900) !important; }
@media (max-width: 767px) { .chs-nt__body > p:first-child, .chs-nt__body > div:first-child > p:first-child, .chs-nt__body > div:first-child > div:first-child { font-size: 17px !important; } }
/* Más contraste entre texto liviano y negrita (feedback): cuerpo en 300, negritas en 900. */
.chs-nt__body { font-weight: 300; color: #3a3a3a; }
.chs-nt__body > p:first-child, .chs-nt__body > div:first-child > p:first-child, .chs-nt__body > div:first-child > div:first-child { font-weight: 300 !important; color: var(--carbon) !important; }
.chs-nt__body b, .chs-nt__body strong { font-weight: 900 !important; color: var(--carbon-900) !important; }
.chs-nt__body em, .chs-nt__body i { font-weight: 400; }
