/* Enterate · estilos propios. La base (colores, letra, botones) viene de zojim-ui.css. */

/* Color de Enterate: rojo noticia a naranja (urgencia, "pasó algo", se ve al toque). */
[data-app="enterate"] {
  --z-app-1: #ef4444;
  --z-app-2: #f97316;
  --z-app-tinta: #1a0503;
  --en-acento: #ff8f7a;              /* rojo claro para textos sobre negro (contraste 7,6:1) */
}
/* Por si zojim-ui.css no carga (sin internet la primera vez) */
body { margin: 0; background: #09090a; color: #f5f3ee; font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
html { font-size: 112.5%; }

.contenedor { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .contenedor { padding: 0 32px; } }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(9, 9, 10, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--z-borde, rgba(255,255,255,.12)); padding-top: env(safe-area-inset-top); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.marca { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--z-texto, #f5f3ee) !important; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.marca img { width: 44px; height: 44px; border-radius: 22%; box-shadow: 0 10px 26px -12px #ef4444; }
.btn-lectura { min-height: 48px; padding: 8px 18px; font-size: 1rem; }
.btn-lectura[aria-pressed="true"] { border-color: var(--en-acento); color: var(--en-acento); background: rgba(239, 68, 68, .1); }

main { padding-top: 16px; padding-bottom: 32px; }

/* Aviso de "sin internet" */
.aviso-red { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 16px 18px; border-radius: 16px; border: 2px solid rgba(245, 203, 110, .7); background: rgba(245, 203, 110, .1); color: var(--z-texto, #f5f3ee); font-weight: 600; }
.aviso-red .z-btn { min-height: 48px; }

/* Clima y dólar */
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.9rem, 1fr)); gap: 8px; }
.extra { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 12px; border-radius: 18px; border: 1px solid var(--z-borde, rgba(255,255,255,.12)); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); }
.extra-tit { font-size: var(--z-t-chico, .875rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--en-acento); }
.extra-val { font-size: 1.08rem; line-height: 1.35; font-weight: 600; color: var(--z-texto, #f5f3ee); }
.extra-val small { display: block; font-size: 1rem; font-weight: 400; line-height: 1.35; color: var(--z-texto-2, #d4d0c8); }
.dolar-fila { display: block; }
.dolar-fila + .dolar-fila { margin-top: 4px; }
.extra-fuente { font-size: var(--z-t-chico, .875rem); color: var(--z-texto-3, #aaa69e); }
.extra-fuente a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 4px; color: var(--z-texto-3, #aaa69e) !important; }

/* Título */
.titulo-zona { margin: 20px 0 14px; }
.titulo { margin: 2px 0 0; font-size: clamp(1.75rem, 6vw, 2.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.titulo em { font-family: var(--z-serif, Georgia, serif); font-style: italic; font-weight: 400; background: linear-gradient(120deg, #ef4444, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.actualizado { margin: 4px 0 0; color: var(--z-texto-2, #d4d0c8); }

/* Filtros: botones grandes, todos a la vista */
.filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.9rem, 1fr)); gap: 8px; margin: 0 0 14px; }
@media (min-width: 720px) { .filtros { grid-template-columns: repeat(6, 1fr); } }
.filtros button { min-height: 52px; padding: 6px 6px; border-radius: 999px; border: 2px solid var(--z-borde-fuerte, rgba(255,255,255,.28)); background: rgba(255,255,255,.04); color: var(--z-texto, #f5f3ee); font: 600 1rem/1.15 var(--z-sans, sans-serif); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.filtros button:hover { background: rgba(255,255,255,.08); }
.filtros button[aria-pressed="true"] { border-color: transparent; background: linear-gradient(120deg, #ef4444, #f97316); color: #1a0503; box-shadow: 0 10px 30px -14px #ef4444; }
.explica { margin: -2px 0 14px; color: var(--z-texto-2, #d4d0c8); }
.campo-medio { margin-bottom: 20px; }
.campo-medio select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23f5f3ee' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 22px; }

.nuevas { position: sticky; top: 84px; z-index: 10; margin-bottom: 16px; }

/* Lista de noticias */
.lista { display: grid; gap: 14px; }
.cargando, .vacio { display: flex; align-items: center; gap: 12px; padding: 24px 4px; color: var(--z-texto-2, #d4d0c8); }
.cargando .z-cargando { border-color: rgba(255,255,255,.2); border-top-color: #ef4444; }

.nota { position: relative; }
.nota > a { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 18px 16px; border-radius: 22px; border: 1px solid var(--z-borde, rgba(255,255,255,.12)); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)); color: var(--z-texto, #f5f3ee) !important; text-decoration: none; transition: border-color .2s, background .2s; }
.nota > a:hover { border-color: rgba(239, 68, 68, .55); background: linear-gradient(180deg, rgba(239,68,68,.08), rgba(255,255,255,.02)); }
.nota-cab { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1rem; }
.nota-medio { font-weight: 700; color: var(--en-acento); }
.nota-sec { padding: 1px 10px; border-radius: 999px; border: 1px solid var(--z-borde-fuerte, rgba(255,255,255,.28)); font-size: var(--z-t-chico, .875rem); font-weight: 600; color: var(--z-texto-2, #d4d0c8); }
.nota-tit { min-width: 0; margin: 0; font-size: 1.22rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.nota-res { grid-column: 1 / -1; margin: 4px 0 0; color: var(--z-texto-2, #d4d0c8); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nota-img { width: 5.4rem; height: 5.4rem; border-radius: 14px; object-fit: cover; background: #1c1c1e; align-self: start; margin-top: 4px; }
.nota-pie { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; margin-top: 8px; font-size: 1rem; color: var(--z-texto-2, #d4d0c8); }
.nota-leer { font-weight: 600; color: var(--z-texto, #f5f3ee); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(239,68,68,.7); }
@media (min-width: 720px) { .nota-img { width: 9rem; height: 6.6rem; } .nota-tit { font-size: 1.3rem; } }
@media (max-width: 380px) { .nota-img { width: 4.8rem; height: 4.8rem; } }

#mas { margin-top: 20px; }

/* Aviso sobre los medios (bien legible, no en letra chiquita) */
.aviso-medios { display: block; margin-top: 36px; padding: 20px 22px; border-radius: 18px; border: 1px dashed var(--z-borde-fuerte, rgba(255,255,255,.28)); font-size: 1rem; color: var(--z-texto-2, #d4d0c8); }
.aviso-medios p { margin: 0 0 10px; }
.aviso-medios b { color: var(--z-texto, #f5f3ee); }
.fuente-dato { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 2px; }
.aviso-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.aviso-botones .z-btn { min-height: 52px; }

/* Lectura simple: sin fotos ni recuadros, todo más grande y separado */
body.lectura .extras, body.lectura .nota-img { display: none; }
body.lectura .nota > a { grid-template-columns: 1fr; padding: 20px 4px; border: none; border-bottom: 1px solid var(--z-borde-fuerte, rgba(255,255,255,.28)); border-radius: 0; background: none; }
body.lectura .nota-tit { font-size: 1.45rem; line-height: 1.35; }
body.lectura .nota-res { -webkit-line-clamp: unset; line-clamp: unset; display: block; font-size: 1.1rem; color: var(--z-texto, #f5f3ee); }
body.lectura .lista { gap: 0; }

/* Página de fuentes */
.pagina { padding-top: 24px; padding-bottom: 48px; }
.pagina h1 { font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 6px 0 16px; }
.pagina h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.pagina p, .pagina li { color: var(--z-texto-2, #d4d0c8); max-width: 62ch; }
.pagina b { color: var(--z-texto, #f5f3ee); }
.medios-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.medios-lista li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--z-borde, rgba(255,255,255,.12)); background: rgba(255,255,255,.03); }
.medios-lista a { display: inline-flex; align-items: center; min-height: 44px; }
.volver { margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) { .nota > a { transition: none; } }

/* Con "Letra más grande" en un celular, la cabecera deja solo el ícono para que entre el botón */
@media (max-width: 440px) { html.letra-grande .marca span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.nota-credito { font-size: var(--z-t-chico, .875rem); color: var(--z-texto-3, #aaa69e); }
body.lectura .nota-credito { display: none; }
