/*
Theme Name: NODO 23 — Versión 4.2
Theme URI: https://nodo23.cl
Author: NODO 23
Description: Tema editorial desarrollado para NODO 23. Portada dinámica, categorías, noticias destacadas y espacios publicitarios.
Version: 4.2.0
Text Domain: nodo23
*/

:root {
  --blue: #063994;
  --blue-dark: #09285f;
  --yellow: #eba600;
  --ink: #10131a;
  --muted: #6c7280;
  --line: #dce0e7;
  --paper: #ffffff;
  --soft: #f4f5f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.shell-wide { width: min(1540px, calc(100% - 28px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.top-strip { background: var(--yellow); color: var(--blue-dark); font-size: 11px; letter-spacing: .08em; }
.top-strip-inner { height: 32px; display: flex; align-items: center; justify-content: space-between; }
.socials { display: flex; gap: 15px; align-items: center; font-weight: 700; text-transform: lowercase; }
.brand-band { background: #fff; }
.brand-row { height: 108px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand-logo { width: 340px; height: 96px; object-fit: contain; justify-self: center; }
.header-logo-link { display: block; grid-column: 2; line-height: 0; }
.header-logo { width: min(285px, 44vw); max-height: 76px; object-fit: contain; }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 5px; }
.menu-button, .search-button {
  width: 42px; height: 42px; border: 0; background: none; color: var(--blue);
  font-size: 25px; cursor: pointer;
}
.search-button { font-size: 34px; justify-self: end; transform: rotate(-15deg); }
.main-nav {
  background: var(--yellow);
  color: var(--blue-dark);
  border: 0;
}
.nav-scroll { height: 32px; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 27px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { font-size: 12px; font-weight: 800; letter-spacing: .015em; }
.nav-scroll a:hover { color: #fff; }

.breaking { min-height: 54px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.breaking strong { color: var(--blue); font-size: 12px; white-space: nowrap; }
.breaking span { font-family: Georgia, serif; font-size: 14px; }
.ad-leaderboard {
  margin-top: 28px; min-height: 118px; border: 0; background: #f7f8fa;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7a808c;
}
.ad-leaderboard span { font-size: 9px; letter-spacing: .18em; }
.ad-leaderboard strong { margin-top: 8px; font-size: 18px; color: #505662; }
.ad-leaderboard small { margin-top: 5px; }

.media-home { padding: 22px 0 18px; }
.home-center { min-width: 0; }
.home-center > .ad-leaderboard {
  width: min(100%, 1120px);
  min-height: 0;
  margin: 0 auto;
  background: transparent;
}
.ad-leaderboard .widget,
.ad-leaderboard .wp-block-image,
.ad-leaderboard figure { width: 100%; margin: 0; }
.ad-leaderboard img { width: 100%; height: auto; }
.lower-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.ad-column {
  position: relative;
  display: grid;
  gap: 22px;
  align-content: start;
  padding-top: 25px;
}
.ad-column .ad-box { min-height: 250px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f5f6f8; border: 1px dashed #b8bec8; text-align: center; }
.ad-column .ad-box:nth-child(2) { background: linear-gradient(145deg, var(--blue-dark), var(--blue)); color: #fff; border: 0; }
.ad-column .ad-box:nth-child(3) { background: var(--yellow); color: var(--ink); border: 0; }
.ad-column .ad-box strong { font-size: 20px; line-height: 1.08; }
.ad-column .ad-box span { margin-top: 8px; font-size: 10px; letter-spacing: .08em; }
.ad-column .ad-creative { display: block; width: 100%; line-height: 0; background: #edf0f2; overflow: hidden; }
.ad-column .ad-creative img { display: block; width: 100%; height: auto; }
.ad-column .widget,
.ad-column .wp-block-image { width: 100%; margin: 0; }
.ad-column .widget + .widget { margin-top: 22px; }
.ad-column .wp-block-image a { display: block; line-height: 0; }
.ad-column .wp-block-image img { display: block; width: 100%; height: auto; }
.ad-rail { align-self: start; text-align: center; }
.ad-label {
  position: absolute;
  top: 8px;
  left: 0;
  display: block;
  color: #8a8f98;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .08em;
}
.ad-rail img { width: 100%; height: auto; }
.rail-placeholder { min-height: 625px; padding: 24px 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; color: white; background: linear-gradient(180deg, #29106d 0%, #7d16bb 50%, #ff4f18 100%); }
.rail-placeholder strong { font-size: 22px; line-height: 1.05; writing-mode: vertical-rl; transform: rotate(180deg); }
.rail-placeholder span { color: var(--yellow); font-size: 16px; line-height: 1.1; font-weight: 900; }
.rail-placeholder-light { color: var(--blue-dark); background: linear-gradient(180deg, #f6ead4 0%, #f2f2ec 100%); }
.rol-hero { margin-top: 14px; grid-template-columns: 57% 43%; background: white; border-bottom: 1px solid var(--line); }
.rol-hero .hero-image-wrap { min-height: 0; aspect-ratio: 16 / 9; }
.rol-hero .hero-copy { padding: 20px 0 20px 24px; }
.rol-hero .hero-copy h1 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(27px, 2.55vw, 41px); font-weight: 800; line-height: 1.07; letter-spacing: -.035em; }
.rol-hero .summary { font-family: Arial, Helvetica, sans-serif; }
.home-news { padding: 18px 0 0; }
.home-news .card-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; align-items: start; }
.home-news .news-card h3 { max-width: 100%; min-height: 3.54em; margin-top: 0; font-family: Arial, Helvetica, sans-serif; font-size: 17px; font-weight: 800; line-height: 1.18; overflow: hidden; overflow-wrap: anywhere; }
.home-news .news-card h3 a { display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.home-news .news-card { min-width: 0; }
.home-news .card-image { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 11px; overflow: hidden; background: #eef0f3; }
.home-news .card-image img { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; }

.hero { padding: 42px 0 52px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; }
.hero-story { display: grid; grid-template-columns: 58% 42%; min-width: 0; background: var(--soft); }
.hero-image-wrap { position: relative; min-height: 470px; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; left: 0; bottom: 0; padding: 9px 13px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 900; }
.hero-copy { padding: 34px 30px; align-self: center; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 11px; line-height: 1.2; font-weight: 900; letter-spacing: .08em; }
.hero-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 47px); line-height: 1.04; letter-spacing: -.035em; }
.author { margin: 20px 0 0; color: var(--blue); font-size: 10px; font-weight: 900; }
.summary { margin: 18px 0 0; color: #555b67; font-family: Georgia, serif; font-size: 15px; line-height: 1.55; }
.hero-side { display: flex; flex-direction: column; gap: 24px; }
.side-ad { min-height: 225px; padding: 26px; display: flex; flex-direction: column; justify-content: center; background: var(--yellow); }
.side-ad span { font-size: 9px; letter-spacing: .15em; }
.side-ad strong { margin: 12px 0 22px; font-size: 24px; line-height: 1.06; }
.side-ad button { align-self: flex-start; padding: 11px 15px; border: 0; background: var(--blue-dark); color: white; font-size: 10px; font-weight: 900; cursor: pointer; }
.most-read { border-top: 5px solid var(--blue); padding-top: 18px; }
.most-read ol { margin: 0; padding: 0; list-style: none; }
.most-read li { display: grid; grid-template-columns: 39px 1fr; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); font-family: Georgia, serif; font-size: 14px; line-height: 1.28; }
.most-read li span { color: var(--yellow); font-family: Arial, sans-serif; font-size: 22px; font-weight: 900; }

.section-block { padding: 25px 0 65px; }
.section-heading { border-top: 6px solid var(--blue-dark); padding-top: 14px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.section-heading a { color: var(--blue); font-size: 10px; font-weight: 900; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.news-card { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; }
.news-card h3 { margin: 0; font-family: Georgia, serif; font-size: 21px; line-height: 1.18; }
.date { margin: 16px 0 0; color: #9096a0; font-size: 9px; font-weight: 800; letter-spacing: .07em; }

.wide-band { background: var(--blue-dark); color: white; border-left: 14px solid var(--yellow); }
.band-grid { min-height: 255px; padding-block: 48px; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.eyebrow.light { color: var(--yellow); }
.band-grid h2 { max-width: 830px; margin: 0; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 48px); line-height: 1.06; font-weight: 400; }
.band-grid > a { padding: 14px 18px; border: 1px solid white; font-size: 10px; font-weight: 900; }

.opinion-layout { padding: 65px 0; display: grid; grid-template-columns: 1fr 360px; gap: 55px; }
.opinion-list article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.opinion-list article > span { color: var(--yellow); font-size: 28px; font-weight: 900; }
.opinion-list h3 { margin: 0; font-family: Georgia, serif; font-size: 22px; line-height: 1.2; }
.newsletter { padding: 35px; background: var(--blue); color: white; align-self: start; }
.newsletter h2 { margin: 0 0 15px; font-family: Georgia, serif; font-size: 33px; line-height: 1.05; }
.newsletter > p:not(.eyebrow) { color: #dce6fb; line-height: 1.5; }
.newsletter form { display: flex; margin-top: 28px; }
.newsletter input { width: 100%; min-width: 0; border: 0; padding: 13px; }
.newsletter button { border: 0; padding: 13px; background: var(--yellow); font-size: 9px; font-weight: 900; cursor: pointer; }

.category-archive { padding: 14px 0 72px; border-top: 1px solid var(--line); }
.archive-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.archive-intro .eyebrow { margin: 0; }
.archive-intro h2 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.category-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 34px; }
.category-module { min-width: 0; padding-top: 13px; border-top: 5px solid var(--yellow); }
.category-module-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.category-module-heading h3 { margin: 0; color: var(--blue-dark); font-size: 19px; line-height: 1.1; }
.category-module-heading a { flex: 0 0 auto; color: var(--blue); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.category-story-list { display: grid; gap: 0; }
.category-story { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.category-story:first-child { border-top: 0; }
.category-story-image { display: block; width: 118px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.category-story-image img,
.category-story-image span { display: block; width: 100%; height: 100%; object-fit: cover; }
.category-story h4 { margin: 0; font-size: 15px; line-height: 1.18; font-weight: 800; }
.category-story h4 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.category-story p { margin: 8px 0 0; color: #9298a2; font-size: 9px; font-weight: 800; }
.category-empty { min-height: 78px; margin: 0; padding: 20px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.5; }

footer { padding-top: 50px; background: #0c1425; color: white; }
.footer-grid { display: grid; grid-template-columns: 250px 1fr 240px; gap: 48px; align-items: center; }
.footer-grid img { width: 220px; filter: brightness(1.06); }
.footer-grid p { margin: 0; color: #b8c0cf; font-family: Georgia, serif; line-height: 1.6; }
.footer-grid .footer-slogan { color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: .15em; }
.footer-grid div { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.footer-grid strong { color: var(--yellow); margin-bottom: 5px; }
.copyright { margin-top: 45px; padding: 15px 0; border-top: 1px solid #273148; color: #a4abba; font-size: 10px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.copyright .ulki-footer-logo { width: 92px; height: 42px; object-fit: contain; filter: none; }

.custom-logo-link { display: block; justify-self: center; }
.custom-logo { width: 340px; height: 96px; object-fit: contain; }
.menu-toggle { display: none; }
.main-nav ul { margin: 0 auto; padding: 0; list-style: none; display: flex; align-items: center; justify-content: center; gap: 27px; }
.main-nav li { flex: 0 0 auto; }
.main-nav .current-menu-item > a,
.main-nav .current-cat > a { color: #fff; }
.ad-widget img { margin-inline: auto; }
.ad-widget a { display: block; }
.ad-widget .widget { margin: 0; }
.ad-widget p { margin: 0; }
.empty-ad { text-align: center; }
.archive-header { padding: 45px 0 20px; border-bottom: 1px solid var(--line); }
.archive-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 62px); }
.archive-description { color: var(--muted); max-width: 760px; line-height: 1.6; }
.content-grid { padding: 42px 0 70px; display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 45px; }
.post-list { display: grid; gap: 30px; }
.post-row { display: grid; grid-template-columns: 300px 1fr; gap: 25px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.post-row img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-row h2 { margin: 6px 0 10px; font-family: Georgia, serif; font-size: 27px; line-height: 1.12; }
.post-row p { color: var(--muted); line-height: 1.5; }
.sidebar-stack { display: grid; gap: 24px; align-content: start; }
.single-wrap { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 65px; }
.single-header { width: min(1080px, calc(100% - 40px)); padding-bottom: 34px; }
.single-header h1 { margin: 8px 0 18px; font-family: Arial, Helvetica, sans-serif; font-size: clamp(36px, 4.25vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.single-meta { color: var(--muted); font-size: 12px; font-weight: 700; }
.single-excerpt { max-width: 920px; margin: 20px 0; font-family: Arial, Helvetica, sans-serif; font-size: 20px; color: #505662; line-height: 1.48; }
.single-excerpt-list { padding: 0; list-style: none; }
.single-excerpt-list li { position: relative; margin: 10px 0; padding-left: 22px; }
.single-excerpt-list li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 900; }
.article-body-layout { display: grid; grid-template-columns: 160px minmax(0, 760px) 160px; justify-content: center; gap: 28px; align-items: start; }
.article-center { width: 100%; max-width: 760px; min-width: 0; margin-inline: auto; }
.single-featured { width: 100%; margin: 0 auto 36px; text-align: center; background: #fff; }
.single-featured img { width: auto; max-width: 100%; height: auto; max-height: 520px; margin-inline: auto; object-fit: contain; }
.single-body { padding-top: 0; }
.single-content { font-family: Georgia, serif; font-size: 19px; line-height: 1.75; }
.single-content h2, .single-content h3 { font-family: Arial, sans-serif; line-height: 1.15; }
.single-content img { height: auto; }
.single-ad { margin: 35px 0; }
.article-ad-rail { position: sticky; top: 18px; text-align: center; }
.article-ad-box { min-height: 560px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; background: linear-gradient(180deg, var(--blue-dark), var(--blue)); color: #fff; }
.article-ad-box strong { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 20px; line-height: 1.05; }
.article-ad-box span { color: var(--yellow); font-size: 11px; font-weight: 900; }
.article-ad-box-yellow { background: var(--yellow); color: var(--ink); }
.article-ad-box-yellow span { color: var(--blue); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { padding: 10px 13px; border: 1px solid var(--line); }
.pagination .current { background: var(--blue); color: white; }
.search-form { display: flex; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px; border: 1px solid var(--line); }
.search-submit { border: 0; padding: 12px 16px; background: var(--yellow); font-weight: 800; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.site-main-empty { min-height: 55vh; padding: 70px 0; text-align: center; }
.site-main-empty h1 { font-family: Georgia, serif; font-size: 48px; }
.widget-title { font-size: 12px; color: var(--blue); letter-spacing: .08em; }
.wp-caption, .wp-caption-text { max-width: 100%; }
.alignwide { width: min(1180px, 100vw - 40px); max-width: none; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 720px); }
  .brand-row { height: 90px; }
  .brand-logo { width: 270px; height: 78px; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .opinion-layout { grid-template-columns: 1fr; }
  .category-module-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 210px 1fr; }
  .footer-grid > div { grid-column: 2; }
  .content-grid { grid-template-columns: 1fr; }
  .article-body-layout { grid-template-columns: 1fr; width: min(100% - 28px, 760px); }
  .article-ad-rail { display: none; }
  .custom-logo { width: 270px; height: 78px; }
  .header-logo { width: min(255px, 48vw); max-height: 70px; }
  .media-home { width: min(100% - 28px, 720px); }
  .lower-home-grid { grid-template-columns: 1fr; }
  .ad-rail { position: static; }
  .ad-column { grid-template-columns: repeat(2, 1fr); }
  .ad-column .ad-box { min-height: 190px; }
  .home-news .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 24px); }
  .top-strip-inner { height: 27px; font-size: 9px; }
  .socials { display: none; }
  .brand-row { height: 70px; }
  .brand-logo { width: 220px; height: 65px; }
  .menu-button, .search-button { width: 36px; height: 36px; }
  .main-nav { border: 0; }
  .nav-scroll { height: 27px; min-height: 27px; gap: 20px; }
  .nav-scroll a { font-size: 10px; }
  .nav-scroll { justify-content: flex-start; }
  .breaking { grid-template-columns: 1fr; gap: 5px; padding-block: 11px; }
  .ad-leaderboard { min-height: 76px; margin-top: 14px; padding: 12px; text-align: center; }
  .ad-leaderboard strong { font-size: 15px; }
  .ad-leaderboard small { font-size: 10px; }
  .hero { padding: 25px 0 35px; }
  .hero-story { display: block; }
  .hero-image-wrap { min-height: 250px; }
  .hero-copy { padding: 19px 16px 22px; }
  .hero-copy h1 { font-size: 26px; line-height: 1.08; }
  .hero-copy .summary { margin-top: 12px; font-size: 14px; line-height: 1.42; }
  .hero-side { display: block; }
  .most-read { margin-top: 25px; }
  .card-grid { grid-template-columns: 1fr; gap: 25px; }
  .section-block { padding-bottom: 40px; }
  .band-grid { grid-template-columns: 1fr; gap: 27px; padding-block: 38px; }
  .band-grid > a { justify-self: start; }
  .opinion-layout { padding: 45px 0; gap: 35px; }
  .category-archive { padding: 18px 0 48px; }
  .archive-intro { display: block; }
  .archive-intro .eyebrow { margin-bottom: 7px; }
  .category-module-grid { gap: 24px; }
  .category-story { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .category-story-image { width: 104px; }
  .newsletter { padding: 28px 22px; }
  .newsletter form { display: block; }
  .newsletter button { width: 100%; margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-grid > div { grid-column: auto; }
  .copyright { align-items: flex-start; flex-direction: column; gap: 10px; }
  .copyright .ulki-footer-logo { width: 82px; height: 37px; }
  .custom-logo { width: 220px; height: 65px; }
  .header-logo { width: min(185px, 50vw); max-height: 53px; }
  .header-actions { gap: 0; }
  .post-row { grid-template-columns: 1fr; }
  .single-wrap { width: calc(100% - 34px); }
  .single-header { padding: 30px 0 24px; }
  .single-header h1 { font-size: 34px; line-height: 1.05; }
  .single-excerpt { margin: 16px 0; font-size: 17px; line-height: 1.45; }
  .single-meta { font-size: 10px; line-height: 1.4; }
  .single-featured { width: 100%; margin-bottom: 26px; }
  .single-content { font-size: 17px; line-height: 1.68; }
  .main-nav ul { gap: 20px; }
  .rol-hero { display: block; }
  .rol-hero .hero-image-wrap { min-height: 0; aspect-ratio: 2 / 1; }
  .home-news .card-grid { grid-template-columns: 1fr; }
  .ad-column { grid-template-columns: 1fr; }
  .ad-column .ad-box { min-height: 180px; }
}
