/* Sección Noticias de valit.cl. La escribe gestor-noticias/generar_sitio.py: no editar a mano (se pisa). */

/* ---------- tarjetas (ventana de navegador, como los casos del portafolio) ---------- */
.not-rejilla { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.not-tarjeta { display: flex; }
.not-tarjeta__marco {
  display: flex; flex-direction: column; width: 100%; border-radius: 14px; overflow: hidden;
  background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea-clara);
  box-shadow: 0 26px 50px -30px rgba(22, 18, 44, .55);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.not-tarjeta__marco:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(75, 28, 173, .55); }
.not-tarjeta__marco:focus-visible { outline-offset: 4px; }
.not-tarjeta__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--porcelana-2); }
.not-tarjeta__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.not-tarjeta__marco:hover .not-tarjeta__img img { transform: scale(1.04); }
.not-tarjeta__cuerpo { display: flex; flex-direction: column; gap: .55rem; flex: 1; padding: 1.15rem 1.3rem 1.35rem; }
.not-tarjeta__fecha { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--turquesa-oscuro); }
.not-tarjeta__titulo { font-family: var(--f-titular); font-size: 1.24rem; font-weight: 680; line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; }
.not-tarjeta__extracto { color: var(--tinta-2); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.not-tarjeta__mas { margin-top: auto; padding-top: .35rem; font-weight: 700; font-size: .92rem; color: var(--morado); }
.not-tarjeta__marco:hover .not-tarjeta__mas { color: var(--turquesa-oscuro); }
.not-vacio { font-size: 1.1rem; color: var(--tinta-2); padding-block: 1rem; }
.not-listado { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- ilustración del encabezado ---------- */
.not-ilus { width: min(340px, 78vw); }
.not-ilus__svg { width: 100%; height: auto; overflow: visible; }
.not-ilus__hoja { fill: var(--noche-2); stroke: rgba(240, 237, 252, .28); stroke-width: 1.5; }
.not-ilus__hoja--atras { fill: rgba(106, 59, 224, .18); stroke: rgba(164, 142, 247, .35); }
.not-ilus__barra { stroke: rgba(240, 237, 252, .22); stroke-width: 1.5; }
.not-ilus__punto { fill: var(--turquesa-claro); }
.not-ilus__punto--b { fill: rgba(240, 237, 252, .35); }
.not-ilus__foto { fill: rgba(28, 153, 173, .22); stroke: rgba(73, 201, 220, .5); stroke-width: 1.2; }
.not-ilus__tri { fill: var(--turquesa-claro); }
.not-ilus__tri--b { fill: var(--morado-claro); }
.not-ilus__linea { stroke: rgba(240, 237, 252, .3); stroke-width: 6; stroke-linecap: round; }
.not-ilus__linea--fuerte { stroke: rgba(240, 237, 252, .75); stroke-width: 8; }
.not-ilus__marca polygon { fill: var(--turquesa); stroke: var(--noche); stroke-width: 1.5; }
.not-ilus__hoja--atras, .not-ilus__marca { transform-box: fill-box; transform-origin: center; }
.js .not-ilus__hoja--atras { animation: notFlota 6s ease-in-out infinite alternate; }
.js .not-ilus__marca { animation: notFlota 5s ease-in-out -2s infinite alternate; }
@keyframes notFlota { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* ---------- artículo ---------- */
.not-cabeza { padding-block: clamp(48px, 7vw, 92px) clamp(44px, 6vw, 76px); }
.not-cabeza__texto { max-width: 52rem; }
.not-cabeza__titulo { font-size: clamp(1.9rem, 3.8vw, 3.05rem); font-weight: 690; line-height: 1.08; letter-spacing: -0.015em; font-variation-settings: "opsz" 96; overflow-wrap: anywhere; }
.not-lectura { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.not-foto { margin: 0 0 clamp(2rem, 5vw, 3rem); border-radius: var(--radio); overflow: hidden; aspect-ratio: 16 / 9; background: var(--porcelana-2); box-shadow: 0 30px 60px -40px rgba(22, 18, 44, .6); }
.not-foto img { width: 100%; height: 100%; object-fit: cover; }
.not-cuerpo { font-size: 1.08rem; line-height: 1.75; color: #2b2648; overflow-wrap: break-word; }
.not-cuerpo > * + * { margin-top: 1.15em; }
.not-cuerpo h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; color: var(--tinta); margin-top: 2em; scroll-margin-top: calc(var(--cabecera-h) + 20px); }
.not-cuerpo h3 { font-size: 1.28rem; line-height: 1.2; color: var(--tinta); margin-top: 1.7em; scroll-margin-top: calc(var(--cabecera-h) + 20px); }
.not-cuerpo h4, .not-cuerpo h5 { font-size: 1.1rem; color: var(--tinta); margin-top: 1.5em; }
.not-cuerpo strong { color: var(--tinta); }
.not-cuerpo ul, .not-cuerpo ol { padding-left: 1.3em; }
.not-cuerpo ul { list-style: none; padding-left: 0; }
.not-cuerpo ul > li { position: relative; padding-left: 1.5em; }
.not-cuerpo ul > li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6em; height: .66em; background: var(--turquesa); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.not-cuerpo ol { list-style: decimal; }
.not-cuerpo li + li { margin-top: .5em; }
.not-cuerpo a:not(.btn) { color: var(--morado); text-decoration: underline; text-underline-offset: 3px; }
.not-cuerpo a:not(.btn):hover { color: var(--turquesa-oscuro); }
.not-cuerpo blockquote { border-left: 4px solid var(--turquesa); padding: .2em 0 .2em 1.1em; color: var(--tinta-2); font-style: italic; }
.not-indice { background: var(--porcelana); border: 1px solid var(--linea-clara); border-left: 4px solid var(--turquesa); border-radius: 14px; padding: 1.1rem 1.4rem; font-size: .98rem; }
.not-indice__titulo { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--turquesa-oscuro); margin-bottom: .5rem; }
.not-indice ol { list-style: decimal; padding-left: 1.25em; margin: 0; }
.not-indice ol ol { list-style: lower-alpha; margin-top: .3em; }
.not-indice li { margin: .25em 0; }
.not-cuerpo .not-indice a { color: var(--tinta); text-decoration: none; }
.not-cuerpo .not-indice a:hover { color: var(--morado); text-decoration: underline; }
/* tablas del gestor */
.not-cuerpo table { border-collapse: collapse; font-size: .97rem; max-width: 100%; display: block; overflow-x: auto; }
.not-cuerpo th, .not-cuerpo td { border: 1px solid var(--linea-clara); padding: .55rem .85rem; text-align: left; vertical-align: top; }
.not-cuerpo th { background: var(--porcelana-2); color: var(--tinta); font-weight: 700; }
.not-cuerpo table.tabla-completa { width: 100%; display: table; }
.not-cuerpo table.tabla-compacta th, .not-cuerpo table.tabla-compacta td { padding: .3rem .55rem; font-size: .86rem; }
.not-cuerpo table.tabla-grande th, .not-cuerpo table.tabla-grande td { padding: .8rem 1.1rem; font-size: 1.05rem; }
.not-cuerpo table.tabla-rayada th, .not-cuerpo table.tabla-rayada td { border: 0; border-bottom: 1px solid var(--linea-clara); }
.not-cuerpo table.tabla-rayada th { background: var(--noche); color: var(--luz); }
.not-cuerpo table.tabla-rayada tbody tr:nth-child(even) td { background: var(--porcelana); }
.not-cuerpo table.tabla-minima th, .not-cuerpo table.tabla-minima td { border: 0; border-bottom: 1px solid var(--linea-clara); background: none; }
.not-cuerpo table.tabla-minima th { border-bottom: 2px solid var(--tinta); }
.not-cuerpo table.tabla-destacada th { background: var(--morado); color: var(--blanco); border-color: var(--morado); }

/* ---------- más noticias y portada ---------- */
.not-seccion-cabeza { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 2rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.not-seccion-cabeza .cabeza-seccion { margin-bottom: 0; }
.not-todas { font-weight: 700; color: var(--morado); border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.tema-noche .not-todas { color: var(--turquesa-claro); }
.not-todas:hover { color: var(--turquesa-oscuro); }
.tema-noche .not-todas:hover { color: var(--luz); }

/* ---------- llamado final ---------- */
.not-llamado__ilus { width: min(300px, 64vw); justify-self: center; color: rgba(255, 255, 255, .62); overflow: visible; }
.not-llamado__flecha { stroke: var(--turquesa-claro); stroke-dasharray: 120; stroke-dashoffset: 0; }
.js .not-llamado__flecha { animation: notTraza 4.5s var(--ease-soft) infinite; }
@keyframes notTraza { 0% { stroke-dashoffset: 120; } 45%, 100% { stroke-dashoffset: 0; } }
@media (min-width: 960px) { .not-llamado__ilus { justify-self: end; } }
@media (max-width: 599px) {
  .not-llamado__ilus { width: 120px; justify-self: start; }
  .not-cuerpo { font-size: 1.03rem; }
  .not-indice { padding: 1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .not-ilus__hoja--atras, .js .not-ilus__marca, .js .not-llamado__flecha { animation: none; }
  .not-tarjeta__marco, .not-tarjeta__img img { transition: none; }
}
