/* Marco del periódico, con el mismo reparto de columnas que noticia_detalle.php. */
* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f8; color: #222; font: 16px/1.5 Arial, sans-serif; }
header { position: fixed; top: 0; left: 0; width: 100%; height: 60px; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; background: #1a1a1a; color: #fff; font: bold 30px/1.2 Georgia, serif; letter-spacing: 1px; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 1000; }
.header-left { width: 100px; flex-shrink: 0; }
.titulo-header { flex-grow: 1; text-align: center; color: inherit; text-decoration: none; white-space: nowrap; }
.fecha-header { font: 16px/1.2 Arial, sans-serif; white-space: nowrap; }
.subheader { position: fixed; top: 60px; left: 0; width: 100%; height: 38px; padding: 8px 0 4px; background: #f5f5f5; color: #333; text-align: center; font: 18px/1.3 Arial, sans-serif; border-bottom: 2px solid #ccc; box-shadow: 0 2px 5px rgba(0,0,0,.1); z-index: 999; }
.menu-categorias { position: fixed; top: 98px; left: 0; width: 100%; padding: 10px 0; background: #fff; text-align: center; border-bottom: 1px solid #ddd; box-shadow: 0 2px 4px rgba(0,0,0,.05); z-index: 998; }
.menu-categorias a { display: inline-block; padding: 5px 12px; margin: 0 3px; color: #333; text-decoration: none; font-size: 14px; border-radius: 15px; }
.menu-categorias a:hover { background: #1a1a1a; color: #fff; }
.container-main { display: flex; max-width: 1200px; margin: 170px auto 20px; padding: 0 15px; align-items: flex-start; }
.noticia-columna { width: 70%; min-width: 0; padding-right: 15px; }
.sidebar-columna { width: 30%; min-width: 0; padding-left: 15px; background: #f9f9f9; border-left: 1px solid #ccc; overflow-wrap: anywhere; }
.noticia-detalle { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.tiempu-volver a { color: #176836; font: 14px/1.4 Arial, sans-serif; }
.noticia-detalle h1 { border-left: 4px solid #28a745; padding-left: 14px; margin: 24px 0 6px; font: bold 34px/1.2 Georgia, serif; }
.noticia-detalle time { color: #666; font: 14px/1.4 Arial, sans-serif; }
.tiempu-detalle-firma { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tiempu-detalle-autor { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; text-align: right; font: 16px/1.4 Arial, sans-serif; }
.tiempu-detalle-autor img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
@media (max-width: 600px) {
    .tiempu-detalle-firma { gap: 8px; }
    .tiempu-detalle-autor { gap: 6px; font-size: 14px; }
    .tiempu-detalle-autor img { flex-basis: 48px; width: 48px; height: 48px; }
}
.noticia-detalle article { margin-top: 24px; font: 20px/1.65 Georgia, serif; overflow-wrap: anywhere; }
.noticia-detalle article p { margin: 0 0 1em; }
.noticia-detalle figure { margin: 26px 0 0; }
.noticia-detalle figure img { display: block; width: 100%; height: auto; }
.sidebar-opinion { padding: 10px; border-bottom: 1px solid #ccc; font-size: 14px; }
.sidebar-cartel { padding: 10px; margin-bottom: 15px; }
.sidebar-widget { padding: 0; background: none; margin-bottom: 15px; }
.sidebar-widget iframe { display: block; width: 100%; height: 400px; border: 0; }
.sidebar-columna img, .sidebar-columna video { max-width: 100%; }
footer { margin-top: 40px; padding: 30px 20px; background: #1a1a1a; color: #888; text-align: center; font-size: 14px; }
footer p { margin: 5px 0; }
footer a { color: #28a745; text-decoration: none; }
footer a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #21864a; outline-offset: 4px; }
.tiempu-pronosticu { margin-top: 32px; padding-top: 22px; border-top: 1px solid #ddd; }
.tiempu-pronosticu h2 { margin: 0 0 16px; font: bold 23px/1.3 Georgia, serif; }
.pronosticu-botones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pronosticu-botones button, .pronosticu-reintentar { border: 1px solid #21864a; border-radius: 7px; padding: 10px 8px; color: #176836; background: #fff; font: bold 14px/1.4 Arial, sans-serif; cursor: pointer; }
.pronosticu-botones button[aria-pressed=true], .pronosticu-botones button:hover, .pronosticu-reintentar:hover { background: #21864a; color: #fff; }
.pronosticu-botones small { display: block; margin-top: 3px; font-size: 12px; font-weight: normal; }
.pronosticu-estado { margin: 16px 0; font-size: 14px; color: #526358; }
.pronosticu-ciudaes { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.pronosticu-capsula { min-width: 0; border: 1px solid #ddd; border-radius: 8px; padding: 8px 3px; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,.1); background: linear-gradient(to bottom, rgba(0,0,255,.05), rgba(255,255,255,0)); overflow-wrap: anywhere; }
.pronosticu-capsula h3 { min-height: 2em; margin: 0 0 2px; font: bold 11px/1.3 Arial, sans-serif; }
.pronosticu-capsula .pronosticu-iconu { display: block; width: 50px; height: 50px; max-width: 100%; margin: 0 auto; }
.pronosticu-capsula p { margin: 7px 0; font-size: 10px; line-height: 1.35; }
.pronosticu-capsula .pronosticu-flecha { width: 10px; height: 10px; vertical-align: middle; }
@media(max-width: 1000px) {
    .pronosticu-ciudaes { grid-template-columns: repeat(9, 76px); overflow-x: auto; padding-bottom: 8px; }
}
.pronosticu-fonte { margin: 16px 0 0; color: #666; font-size: 12px; }
.pronosticu-fonte a { color: #176836; }
.tiempu-pronosticu [hidden] { display: none !important; }
@media(max-width: 1000px) and (min-width: 769px) {
    .menu-categorias a { padding: 5px 7px; margin: 0 1px; }
}
@media(max-width: 768px) {
    header { height: 46px; padding: 10px 12px; font-size: 22px; letter-spacing: 0; }
    .header-left { width: 35px; }
    .fecha-header { font-size: 11px; }
    .subheader { top: 46px; height: 28px; padding: 5px 0; font-size: 13px; }
    .menu-categorias { top: 74px; padding: 8px 12px; text-align: left; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
    .menu-categorias a { font-size: 12px; padding: 4px 10px; margin: 0 2px; }
    .container-main { margin-top: 132px; flex-direction: column; gap: 24px; padding: 0 10px; }
    .noticia-columna, .sidebar-columna { width: 100%; padding: 0; border: 0; }
    .noticia-detalle { padding: 20px; }
    .noticia-detalle h1 { font-size: 28px; }
    .noticia-detalle article { font-size: 19px; }
    .pronosticu-botones { gap: 5px; }
    .pronosticu-botones button { padding: 9px 3px; font-size: 11px; }
}
