/* Noticias: listado (noticias.php) y cada noticia con sus comentarios (noticia.php) */

.noticias h1, .noticia h1 { font-weight: 300; letter-spacing: -0.02em; }
.noticias h1 { font-size: 2.2em; margin: 0 0 .2em; }
.noticias-vacio { color: var(--suave); padding: 2em 0; text-align: center; }

.noticias-lista { list-style: none; margin: 1.5em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6em 1.4em; }
.noticia-tarjeta a { display: flex; flex-direction: column; gap: .7em; text-decoration: none; height: 100%; }
.noticia-tarjeta img, .noticia-sin-foto { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; background: #f2f2f2; }
.noticia-sin-foto { display: flex; align-items: center; justify-content: center; font-size: 2.5em; }
.noticia-tarjeta-texto { display: flex; flex-direction: column; gap: .35em; }
.noticia-tarjeta time, .noticia-tarjeta small { color: var(--suave); font-size: .82em; }
.noticia-tarjeta strong { font-size: 1.15em; line-height: 1.25; }
.noticia-tarjeta a:hover strong { text-decoration: underline; }
.noticia-resumen { color: var(--suave); font-size: .95em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* La más nueva, a todo el ancho con la foto al lado */
@media (min-width: 700px) {
	.noticia-tarjeta.destacada { grid-column: 1 / -1; }
	.noticia-tarjeta.destacada a { display: grid; grid-template-columns: 3fr 2fr; gap: 1.6em; align-items: center; }
	.noticia-tarjeta.destacada strong { font-size: 1.6em; font-weight: 400; letter-spacing: -0.01em; }
	.noticia-tarjeta.destacada .noticia-resumen { font-size: 1.05em; -webkit-line-clamp: 5; }
}

.noticias-paginas { display: flex; justify-content: center; align-items: center; gap: 1.5em; margin: 2.5em 0 1em; color: var(--suave); font-size: .9em; }
.noticias-invita { margin-top: 3em; padding: 1.1em 1.3em; background: #f6f9ec; border-radius: 10px; text-align: center; }

/* ---------- Una noticia ---------- */

.noticia, .comentarios { max-width: 720px; margin: 0 auto; }
.noticia-previa { margin-top: 0; }
.noticia-migas { margin: 0 0 1em; font-size: .9em; }
.noticia-migas a { color: var(--suave); }
.noticia h1 { font-size: 2.3em; line-height: 1.15; margin: 0 0 .35em; }
.noticia-bajada { font-size: 1.2em; color: var(--suave); line-height: 1.45; margin: 0 0 .8em; }
.noticia-meta { color: var(--suave); font-size: .9em; margin: 0 0 1.3em; }
.noticia-meta a { color: var(--suave); }
.noticia-foto { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 1.5em; }
/* Video embebido (noticia_video_html() en auth.php): ancho adaptable; TikTok y Shorts verticales y centrados */
.noticia-video { margin: 0 0 1.5em; }
.noticia-video-marco { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.noticia-video.vertical .noticia-video-marco { max-width: 340px; aspect-ratio: 9 / 16; margin: 0 auto; }
.noticia-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* TikTok: portada con ▶ (la foto de la noticia o un cuadro oscuro) hasta que se toca (js/noticia_video.js) */
.noticia-video-portada { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: .6em; background: linear-gradient(135deg, #1a1a1a, #3a2a35); color: #fff; text-decoration: none; }
.noticia-video-portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.noticia-video-play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .6);
	display: flex; align-items: center; justify-content: center; font-size: 30px; padding-left: 6px; box-sizing: border-box;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); transition: transform .15s; }
.noticia-video-portada:hover .noticia-video-play { transform: scale(1.08); }
.noticia-video-portada.cargando .noticia-video-play { opacity: .6; }
.noticia-video-etiqueta { position: relative; font-weight: 600; font-size: .95em; padding: .25em .7em; border-radius: 999px;
	background: rgba(0, 0, 0, .6); }
.noticia-video figcaption { text-align: center; font-size: .85em; margin-top: .5em; }
.noticia-video figcaption a { color: var(--suave); }
.noticia-cuerpo { font-size: 1.08em; line-height: 1.65; overflow-wrap: anywhere; }
.noticia-cuerpo h2 { font-weight: 600; font-size: 1.3em; margin: 1.5em 0 .5em; }
.noticia-cuerpo h3 { font-weight: 600; font-size: 1.1em; margin: 1.3em 0 .4em; }
.noticia-cuerpo a { color: var(--verde-fuerte); }
.noticia-cuerpo ul { padding-left: 1.3em; }
.noticia-cuerpo li { margin-bottom: .35em; }
.noticia-fuente { color: var(--suave); font-size: .92em; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--gris); }
.noticia-fuente a { color: var(--verde-fuerte); }
.noticia-compartir { display: flex; margin: 1.2em 0 0; }
.noticia-compartir .compartir { margin-left: 0; }

/* ---------- Comentarios ---------- */

.comentarios { margin-top: 3em; padding-top: 1.5em; border-top: 2px solid var(--gris); }
.comentarios h2 { font-weight: 400; font-size: 1.4em; margin: 0 0 1em; }
.comentarios-invita, .comentarios-vacio { color: var(--suave); }
.comentarios-invita { padding: 1.1em 1.3em; background: #f6f9ec; border-radius: 10px; color: var(--texto); }
.comentarios-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.2em; }
.comentario { display: flex; align-items: flex-start; gap: .8em; }
.comentario-inicial { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #eef4d9; color: var(--verde-fuerte); font-weight: 700; }
.comentario-cuerpo { flex: 1; min-width: 0; }
.comentario-cab { margin: 0; font-size: .92em; }
.comentario-cab time { color: var(--suave); font-size: .9em; margin-left: .4em; }
.comentario-texto { margin: .2em 0 0; overflow-wrap: anywhere; }
.comentario-aviso { margin: .35em 0 0; color: var(--suave); font-size: .82em; font-style: italic; }
.comentario.oculto .comentario-texto { color: var(--suave); }
.comentario .menu-mas > summary { width: 32px; height: 32px; font-size: 1.2em; }
.comentario .menu-mas-panel p.menu-item { margin: 0; cursor: default; }
.comentario-form { margin-top: 1.8em; gap: .6em; }
.comentario-form > label { font-size: .95em; color: var(--texto); }
.comentario-form > label small { color: var(--suave); }
.comentario-form .button { align-self: flex-start; margin-top: 0; }

@media (max-width: 480px) {
	.noticias h1 { font-size: 1.8em; }
	.noticia h1 { font-size: 1.7em; }
	.noticia-bajada { font-size: 1.08em; }
	.noticia-cuerpo { font-size: 1.02em; }
}
