/* Tarjetas de lectura estilo portal de noticias (MSN / Google Noticias), pedido de Fede 18/10.
   Las usan el inicio (index.html) y el final de cada artículo (debajo de los comentarios). */
.ens-grilla { display: grid; gap: 14px; margin-top: 24px; }
.ens-grilla[hidden] { display: none; }
.nota-ens { --t-fondo: #fff; --t-tinta: #111a21; --t-gris: #5b6770; --t-ps: #0f1d27; --t-acento: #007ea8;
  display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: center; background: var(--t-fondo); color: var(--t-tinta);
  border-radius: 14px; padding: 12px; text-decoration: none;
  box-shadow: 0 1px 3px rgba(17,26,33,.07), 0 6px 18px rgba(17,26,33,.05); transition: transform .2s, box-shadow .2s; }
html[data-tema="oscuro"] .nota-ens, body.lectura .nota-ens { --t-fondo: #1b2b36; --t-tinta: #e4ebef; --t-gris: #9caeb9; --t-ps: #0a141b; --t-acento: #5fc4e6; box-shadow: none; }
.nota-ens:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(17,26,33,.08), 0 12px 28px rgba(17,26,33,.1); }
.ens-tapa { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1; color: #fff;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.28), transparent 42%), linear-gradient(135deg, var(--a), var(--b));
  display: grid; place-items: center; padding: 14px; text-align: center; }
.ens-tapa::after { content: ""; position: absolute; width: 160%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); left: -30%; top: 55%; }
.ens-tapa q { font-family: "Fell", Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.25; quotes: none; position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.ens-tapa .comilla { font-family: "Fell", Georgia, serif; font-size: 64px; line-height: .6; opacity: .9; position: relative; z-index: 1; }
.nota-ens .tapa-not { font: 800 12px Inter, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; position: relative; z-index: 1; opacity: .95; }
.nota-ens .tapa-not svg { display: block; width: 34px; height: 34px; margin: 0 auto 8px; }
.nota-ens .fuente { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t-gris); margin-bottom: 6px; min-width: 0; }
.nota-ens .ps { width: 18px; height: 18px; border-radius: 5px; background: var(--t-ps); color: #fff; display: grid; place-items: center;
  font-family: "Fell", Georgia, serif; font-size: 11px; letter-spacing: -.02em; flex: none; }
.nota-ens .ps.letra { font-family: Inter, system-ui, sans-serif; font-weight: 700; background: #007ea8; }
.nota-ens h3 { font: 700 17px/1.3 Inter, system-ui, sans-serif; letter-spacing: -.01em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nota-ens p { display: none; }
.nota-ens .reac { display: flex; gap: 16px; margin-top: 10px; color: var(--t-gris); font-size: 13px; font-weight: 600; }
.nota-ens .reac i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; }
.nota-ens .reac svg { width: 17px; height: 17px; }
/* La primera, grande (destacada) */
.nota-ens.destacada { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.nota-ens.destacada .ens-tapa { aspect-ratio: 16/10; border-radius: 0; padding: 26px 24px; }
.nota-ens.destacada .ens-tapa q { font-size: clamp(26px, 7vw, 34px); }
.nota-ens.destacada .ens-texto { padding: 4px 18px 18px; }
.nota-ens.destacada h3 { font-size: 22px; line-height: 1.22; }
.nota-ens.destacada p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--t-gris);
  font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
.nota-ens.destacada .comilla { display: none; }
.nota-ens.destacada .tapa-not { font-size: 14px; }
.nota-ens.destacada .tapa-not svg { width: 54px; height: 54px; }
.nota-ens:not(.destacada):not(.ancha) .ens-tapa q { display: none; }
.nota-ens:not(.destacada):not(.ancha) .ens-tapa { order: 2; }
/* Ancha (cada tanto): en celular se ve grande como la destacada; en la compu ocupa dos lugares a lo ancho */
.nota-ens.ancha { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.nota-ens.ancha .ens-tapa { aspect-ratio: 16/9; border-radius: 0; padding: 22px; }
.nota-ens.ancha .ens-tapa q { font-size: 26px; }
.nota-ens.ancha .comilla { display: none; }
.nota-ens.ancha .ens-texto { padding: 4px 18px 18px; }
.nota-ens.ancha h3 { font-size: 20px; }
.nota-ens.ancha p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--t-gris);
  font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
/* En el inicio, en celular, se ven 5 (1 grande + 4) */
@media (max-width: 899px) { .ens-grilla.corta .nota-ens:nth-child(n+6) { display: none; } }
@media (min-width: 900px) {
  .ens-grilla { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .nota-ens { grid-template-columns: 1fr; padding: 0; overflow: hidden; align-content: start; align-items: stretch; }
  .nota-ens .ens-tapa, .nota-ens:not(.destacada) .ens-tapa { order: 0; aspect-ratio: 16/10; border-radius: 0; }
  .ens-grilla { grid-auto-flow: row dense; }
  .nota-ens:not(.destacada):not(.ancha) .ens-tapa q { display: -webkit-box; font-size: 18px; -webkit-line-clamp: 3; }
  .nota-ens:not(.destacada) .comilla { display: none; }
  .nota-ens.ancha { grid-column: span 2; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .nota-ens.ancha .ens-tapa { aspect-ratio: auto; min-height: 230px; }
  .nota-ens.ancha .ens-texto { padding: 18px 20px; align-self: center; }
  .nota-ens.ancha h3 { font-size: 22px; }
  .nota-ens .ens-texto { padding: 4px 16px 16px; }
  .nota-ens.destacada { grid-column: span 2; grid-row: span 2; }
  .nota-ens.destacada .ens-tapa { aspect-ratio: auto; min-height: 330px; }
  .nota-ens.destacada .ens-tapa q { font-size: 40px; }
  .nota-ens.destacada h3 { font-size: 28px; }
}
.mas-cargando { height: 1px; }
.ens-tapa .tapa-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.orden-ens { display: block; margin-top: 12px; font: 600 14px Inter, system-ui, sans-serif; color: var(--t-gris, #5b6770); }
.orden-ens[hidden] { display: none; }
.orden-ens select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(127,127,127,.4); background: transparent; color: inherit; }
body.lectura .orden-ens, html[data-tema="oscuro"] .orden-ens { color: #9caeb9; }
body.lectura .orden-ens option, html[data-tema="oscuro"] .orden-ens option { background: #1b2a35; color: #e4ebef; }
