/* =====================================================================
   EDN NOTICIAS — estilos del portal (diseño PROVISORIO)
   Los colores de marca salen de --marca y --acento, que se cargan
   desde la configuración. El diseñador puede cambiar este archivo
   sin tocar la lógica.
   ===================================================================== */
:root {
  --marca: #222a42;
  --marca-osc: #111a2d;
  --acento: #d66235;
  --acento-claro: #f1a17d;
  --texto: #1b2236;
  --texto-2: #4f5a70;
  --texto-3: #69758b;
  --fondo: #f3f1ec;
  --papel: #ffffff;
  --linea: #e4e0d8;
  --radio: 6px;
  --ancho: 1200px;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-tit: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --f-texto: 'Source Serif 4', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--f-ui); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }

/* ---------- Barra superior ---------- */
.barra-sup { background: var(--marca-osc); color: #c9d2e0; font-size: 13px; }
.barra-sup .contenedor { display: flex; gap: 18px; align-items: center; min-height: 34px; flex-wrap: wrap; }
.barra-sup .dato b { color: #fff; font-weight: 600; }
.barra-sup .redes { margin-left: auto; display: flex; gap: 12px; }
.barra-sup .redes a { opacity: .8; }
.barra-sup .redes a:hover { opacity: 1; color: var(--acento); }

/* ---------- Cabecera ---------- */
.cabecera { background: var(--marca); color: #fff; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Montserrat', var(--f-ui); font-style: italic; }
.logo .sigla { font-weight: 900; font-size: 46px; letter-spacing: -1.5px; line-height: 1; position: relative; padding-bottom: 6px; }
.logo .sigla::after { content: ''; position: absolute; left: 2px; right: 4px; bottom: 0; height: 4px; border-radius: 2px; background: var(--acento); }
.logo .pastilla { background: var(--acento); font-weight: 800; font-size: 16px; letter-spacing: .5px; padding: 5px 14px; border-radius: 999px; }
.cabecera .lema { color: #b9c4d6; font-size: 14px; flex: 1; text-align: right; }
.btn-buscar { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.btn-buscar:hover { border-color: var(--acento); }

/* ---------- Menú ---------- */
.menu { background: var(--papel); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 20; }
.menu .contenedor { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu .contenedor::-webkit-scrollbar { display: none; }
.menu a { padding: 13px 12px; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; color: var(--texto-2); }
.menu a:hover, .menu a.activo { color: var(--marca); border-bottom-color: var(--acento); }

/* ---------- Último momento ---------- */
.ticker { background: var(--papel); border-bottom: 1px solid var(--linea); }
.ticker .contenedor { display: flex; align-items: center; gap: 12px; min-height: 42px; overflow: hidden; }
.ticker .etiqueta { background: var(--acento); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; padding: 4px 10px; border-radius: 3px; flex-shrink: 0; }
.ticker .pista { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.ticker .cinta { display: inline-flex; gap: 40px; white-space: nowrap; animation: correr 60s linear infinite; font-size: 14px; font-weight: 500; }
.ticker .cinta a:hover { color: var(--acento); }
@keyframes correr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .cinta { animation: none; } }

/* ---------- Bloques ---------- */
main { padding: 24px 0 48px; }
.seccion { margin-top: 36px; }
.titulo-seccion { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--marca); }
.titulo-seccion::before { content: ''; width: 6px; height: 22px; background: var(--acento); border-radius: 2px; }
.titulo-seccion a.ver { margin-left: auto; font-size: 13px; text-transform: none; color: var(--texto-3); font-weight: 600; letter-spacing: 0; }
.titulo-seccion a.ver:hover { color: var(--acento); }

.volanta { display: inline-block; color: var(--acento); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 6px; }
.meta { color: var(--texto-3); font-size: 13px; margin-top: 8px; }
.foto { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; background: var(--marca); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a:hover .foto img { transform: scale(1.03); }
a:hover h2, a:hover h3 { color: var(--marca); text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: 3px; }

/* Tapa */
.tapa { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.principal h2 { font-family: var(--f-tit); font-size: 34px; line-height: 1.12; margin: 14px 0 10px; font-weight: 800; letter-spacing: -.4px; }
.principal .bajada { font-family: var(--f-texto); font-size: 18px; color: var(--texto-2); margin: 0; }
.secundarias { display: flex; flex-direction: column; gap: 22px; }
.secundarias h3 { font-size: 19px; line-height: 1.22; margin: 10px 0 0; font-weight: 700; }

/* Grilla */
.grilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tarjeta h3 { font-size: 17px; line-height: 1.25; margin: 10px 0 0; font-weight: 700; }
.con-lateral { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.con-lateral .grilla { grid-template-columns: repeat(3, 1fr); }

/* Lateral */
.lateral { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 64px; }
.caja { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; }
.caja h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--marca); }
.mas-leidas { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.mas-leidas li { counter-increment: n; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linea); font-weight: 600; font-size: 15px; line-height: 1.3; }
.mas-leidas li:first-child { border-top: 0; padding-top: 0; }
.mas-leidas li::before { content: counter(n); font-size: 26px; font-weight: 800; color: var(--acento); line-height: 1; min-width: 20px; }
.mas-leidas a:hover { color: var(--marca); text-decoration: underline; }
.publicidad { background: repeating-linear-gradient(45deg, #eceef2, #eceef2 10px, #e4e7ec 10px, #e4e7ec 20px); border-radius: var(--radio); color: var(--texto-3); font-size: 12px; display: grid; place-items: center; text-transform: uppercase; letter-spacing: 1px; }
.pub-300 { aspect-ratio: 300 / 250; }
.pub-970 { height: 90px; margin-top: 32px; }

/* Lista por categoría */
.lista-cat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lista-cat .tarjeta:first-child { grid-column: span 2; grid-row: span 2; }
.lista-cat .tarjeta:first-child h3 { font-size: 26px; }

/* ---------- Nota ---------- */
.nota { max-width: 760px; }
.nota h1 { font-size: 38px; line-height: 1.12; margin: 8px 0 14px; letter-spacing: -.5px; font-weight: 800; }
.nota .bajada { font-family: var(--f-texto); font-size: 20px; color: var(--texto-2); margin: 0 0 18px; }
.firma { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); margin-bottom: 20px; flex-wrap: wrap; }
.firma .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 800; }
.firma .quien { font-weight: 700; }
.firma .cuando { color: var(--texto-3); font-size: 14px; }
.compartir { margin-left: auto; display: flex; gap: 8px; }
.compartir a, .compartir button { border: 1px solid var(--linea); background: var(--papel); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--texto-2); }
.compartir a:hover, .compartir button:hover { border-color: var(--acento); color: var(--acento); }
.nota .cuerpo { font-family: var(--f-texto); font-size: 19px; line-height: 1.65; }
.nota .cuerpo p { margin: 0 0 1.1em; }
.etiquetas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.etiquetas span { background: #e9edf3; color: var(--marca); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.migas { font-size: 13px; color: var(--texto-3); }
.migas a:hover { color: var(--acento); }

/* ---------- Pie ---------- */
.pie { background: var(--marca-osc); color: #b9c4d6; padding: 36px 0 24px; font-size: 14px; }
.pie .contenedor { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.pie h5 { color: #fff; margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pie a:hover { color: var(--acento); }
.pie .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 12px; color: #8592a6; }
.pie .logo .sigla { font-size: 34px; }
.pie .logo .pastilla { font-size: 13px; padding: 4px 11px; }

/* ---------- Celular y tablet ---------- */
@media (max-width: 1000px) {
  .grilla { grid-template-columns: repeat(2, 1fr); }
  .con-lateral { grid-template-columns: 1fr; }
  .con-lateral .grilla { grid-template-columns: repeat(2, 1fr); }
  .lateral { position: static; }
}
@media (max-width: 760px) {
  .tapa { grid-template-columns: 1fr; }
  .secundarias { flex-direction: row; gap: 14px; }
  .secundarias > * { flex: 1; }
  .principal h2 { font-size: 26px; }
  .cabecera .lema { display: none; }
  .logo .sigla { font-size: 36px; }
  .logo .pastilla { font-size: 13px; padding: 4px 11px; }
  .lista-cat { grid-template-columns: 1fr 1fr; }
  .nota h1 { font-size: 28px; }
  .nota .bajada { font-size: 18px; }
  .nota .cuerpo { font-size: 18px; }
  .pie .contenedor { grid-template-columns: 1fr; }
  .barra-sup .ocultar-cel { display: none; }
}
@media (max-width: 520px) {
  .secundarias { flex-direction: column; }
  .grilla, .con-lateral .grilla { grid-template-columns: 1fr; }
  .grilla .tarjeta { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
  .grilla .tarjeta h3 { margin-top: 0; font-size: 16px; }
  .grilla .tarjeta .volanta { margin-bottom: 2px; }
  .lista-cat { grid-template-columns: 1fr; }
  .lista-cat .tarjeta:first-child { grid-column: auto; grid-row: auto; }
  .compartir { margin-left: 0; width: 100%; }
}


/* =====================================================================
   ESTÉTICA "EQUIPO DE NOTICIAS" (provisoria, tomada del sitio del programa)
   ===================================================================== */
.logo { font-family: var(--f-tit); font-style: italic; gap: 6px; }
.logo .sigla { font-size: 40px; font-weight: 800; letter-spacing: 0; padding-bottom: 0; }
.logo .sigla::after { display: none; }
.logo .de { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--acento); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; font-style: normal; text-transform: lowercase; }
.logo .pastilla { font-size: 22px; font-weight: 800; padding: 2px 12px; border-radius: 4px; letter-spacing: .5px; }
.logo img { height: 34px; width: auto; display: block; }
.pie .logo img { height: 28px; }
.cabecera { background: var(--marca-osc); }
.cabecera .lema { font-family: var(--f-tit); font-style: italic; font-size: 18px; color: #cad2e0; }
.menu { background: var(--marca); border-bottom: 0; }
.menu a { color: #cad2e0; }
.menu a:hover, .menu a.activo { color: #fff; border-bottom-color: var(--acento); }
.ticker { background: var(--papel); }
.titulo-seccion { font-family: var(--f-tit); font-style: italic; font-size: 30px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--marca); }
.titulo-seccion::before { width: 5px; height: 26px; }
.volanta { color: var(--acento); letter-spacing: 1.2px; }
.principal h2, .nota h1 { font-family: var(--f-tit); font-style: italic; font-weight: 700; letter-spacing: 0; line-height: 1.02; }
.principal h2 { font-size: 46px; }
.nota h1 { font-size: 50px; }
.secundarias h3, .tarjeta h3 { font-family: var(--f-tit); font-weight: 700; font-size: 24px; line-height: 1.05; }
.secundarias h3 { font-size: 27px; }
.mas-leidas li { font-family: var(--f-tit); font-size: 20px; font-weight: 600; line-height: 1.1; }
.mas-leidas li::before { font-style: italic; font-size: 32px; }
.caja h4 { font-family: var(--f-tit); font-style: italic; font-size: 22px; text-transform: none; letter-spacing: 0; }
.foto { border-radius: 10px; }
.caja { border-radius: 10px; }
.banda-programa { background: var(--acento); color: #fff; }
.banda-programa .contenedor { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.banda-programa .cuando { font-family: var(--f-tit); font-style: italic; font-size: 30px; font-weight: 800; }
.banda-programa .donde { font-size: 15px; opacity: .95; }
.banda-programa a { margin-left: auto; background: #fff; color: var(--marca); font-weight: 700; padding: 10px 18px; border-radius: 8px; }
.banda-programa a:hover { background: var(--marca); color: #fff; }
.pie { background: var(--marca-osc); }
.pie .legal a { color: var(--acento-claro); }
@media (max-width: 760px) {
  .principal h2 { font-size: 34px; }
  .nota h1 { font-size: 36px; }
  .logo .sigla { font-size: 30px; }
  .logo .pastilla { font-size: 17px; }
  .logo .de { width: 21px; height: 21px; font-size: 11px; }
  .logo img { height: 26px; }
  .banda-programa a { margin-left: 0; }
  .titulo-seccion { font-size: 26px; }
}
