/*
Theme Name: El Sereno
Theme URI: https://elsereno.com.ar
Author: El Sereno
Description: Tema editorial veloz y personalizado para El Sereno.
Version: 0.1.0
Text Domain: elsereno
*/

:root {
  --ink: #071925;
  --ink-soft: #18303d;
  --paper: #fffdf8;
  --cream: #f4efe5;
  --coral: #e85f42;
  --coral-dark: #c8442a;
  --line: #d9d5cd;
  --muted: #68757c;
  --white: #fff;
  --success: #0b8f66;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.breaking {
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.breaking .wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}
.breaking__label {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--coral);
  margin-left: -12px;
  padding: 5px 12px;
  text-transform: uppercase;
}
.breaking__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(255,253,248,.96);
}
.masthead__top {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.masthead__tools { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; }
.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 0;
  font-weight: 900;
}
.brand { text-align: center; line-height: .8; }
.brand__logo {
  width: clamp(270px, 42vw, 520px);
  max-height: 82px;
  object-fit: contain;
}
.brand__name {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.brand__el {
  margin-right: .12em;
  color: var(--coral);
  font-size: .54em;
  font-style: italic;
  letter-spacing: -.04em;
  vertical-align: .2em;
}
.brand__tagline {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
}
.masthead__right { justify-content: flex-end; text-align: right; }
.weather-mini strong { display: block; font-size: 17px; }

.nav {
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav__inner {
  display: flex;
  justify-content: center;
  gap: 25px;
  min-width: max-content;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.nav a:hover, .nav a:focus { color: var(--coral-dark); }
.nav .accent { color: var(--coral-dark); }

.markets { border-bottom: 1px solid var(--line); background: var(--cream); }
.markets__track {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.markets__track::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 auto; font-size: 12px; }
.quote span { color: var(--muted); font-weight: 800; text-transform: uppercase; }
.quote strong { margin-left: 6px; font-size: 14px; }
.quote i { color: var(--success); font-size: 10px; font-style: normal; }

.world-cup {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(7,25,37,.06);
}

.weather-panel {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(90px, .55fr)) minmax(250px, 1.35fr);
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #edf4f5;
}
.weather-panel__place,
.weather-period,
.weather-days { padding: 15px 18px; }
.weather-panel__place { display: grid; gap: 5px; }
.weather-panel__place strong { font-family: var(--serif); font-size: 23px; }
.weather-panel__place > span:last-child { color: var(--muted); font-size: 11px; }
.weather-period {
  display: grid;
  align-content: center;
  gap: 3px;
  border-left: 1px solid #cfdddf;
  text-align: center;
}
.weather-period span { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.weather-period strong { font-family: var(--serif); font-size: 26px; }
.weather-period small { color: var(--muted); font-size: 10px; }
.weather-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-left: 1px solid #cfdddf;
}
.weather-days div { display: grid; align-content: center; text-align: center; }
.weather-days span { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.weather-days strong { font-family: var(--serif); font-size: 22px; }
.weather-days small { color: var(--muted); font-size: 9px; }
.world-cup__inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
}
.world-cup__matches {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  overflow-x: auto;
}
.world-cup__title { padding: 16px 20px; background: var(--ink); color: var(--white); }
.world-cup__title small { display: block; color: #aebbc2; font-weight: 800; text-transform: uppercase; }
.world-cup__title strong { font-family: var(--serif); font-size: 21px; }
.match {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}
.match:last-child { border-right: 0; }
.match__state { color: var(--coral-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.match__teams { font-weight: 900; }
.match__score { font-family: var(--serif); font-size: 22px; font-weight: 700; }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 16px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-kicker::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr);
  gap: 28px;
  padding: 28px 0 34px;
  border-bottom: 4px solid var(--ink);
}
.lead-story { display: grid; grid-template-columns: 1.15fr 1fr; gap: 25px; align-items: center; }
.story-image { position: relative; overflow: hidden; background: #dfe5e7; }
.story-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(7,25,37,.34));
}
.story-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.story-image:hover img { transform: scale(1.02); }
.eyebrow { color: var(--coral-dark); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.headline {
  margin: 9px 0 12px;
  font-family: var(--serif);
  font-size: clamp(35px, 4.2vw, 61px);
  line-height: .99;
  letter-spacing: -.045em;
}
.dek { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.meta { margin-top: 18px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.side-stack { display: grid; gap: 18px; }
.side-story { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.side-story:last-child { border-bottom: 0; }
.side-story h2 { margin: 7px 0; font-family: var(--serif); font-size: 25px; line-height: 1.08; letter-spacing: -.025em; }
.side-story p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { min-width: 0; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; }
.card h3 { margin: 9px 0 7px; font-family: var(--serif); font-size: 23px; line-height: 1.08; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card--feature { grid-column: span 2; }
.card--feature h3 { font-size: 34px; }

.dark-section {
  margin-top: 42px;
  padding: 36px 0 42px;
  color: var(--white);
  background: var(--ink);
}
.dark-section .section-kicker { margin-top: 0; color: #ff8268; }
.dark-section .section-kicker::after { background: #34505f; }
.dark-section .card p { color: #b8c5cb; }
.dark-section .eyebrow { color: #ff8268; }

.latest-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .7fr); gap: 44px; padding-bottom: 55px; }
.latest-list { display: grid; }
.latest-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.latest-item img { aspect-ratio: 16 / 10; object-fit: cover; }
.latest-item h3 { margin: 5px 0 7px; font-family: var(--serif); font-size: 27px; line-height: 1.08; }
.sidebar-box { margin-top: 20px; padding: 22px; border-top: 5px solid var(--coral); background: var(--cream); }
.sidebar-box h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 27px; }
.trend { display: grid; grid-template-columns: 35px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.trend strong { color: var(--coral); font-family: var(--serif); font-size: 28px; }
.trend span { font-family: var(--serif); font-weight: 700; line-height: 1.18; }

.site-footer { padding: 42px 0; color: #dce4e7; background: #04121b; }
.site-footer .brand { text-align: left; }
.brand__logo--footer { width: 310px; filter: brightness(0) invert(1); }
.site-footer .brand__name { font-size: 38px; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; font-size: 13px; }
.footer-links strong { display: block; margin-bottom: 12px; color: var(--white); text-transform: uppercase; }
.footer-links a { display: block; margin: 7px 0; color: #aab8bf; }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid #263b47; color: #80919a; font-size: 11px; }

.article-page { width: min(calc(100% - 32px), 860px); margin: 35px auto 70px; }
.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}
.breadcrumbs a { color: var(--coral-dark); }
.breadcrumbs span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.article-page h1 { margin: 10px 0 18px; font-family: var(--serif); font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -.045em; }
.article-page .dek { font-size: 22px; }
.article-page__image { margin: 30px 0; }
.article-content { font-family: var(--serif); font-size: 20px; line-height: 1.72; }
.article-content p { margin: 0 0 1.25em; }
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
}
.article-nav div:last-child { text-align: right; }
.related-news { margin-top: 42px; }
.related-news > h2 { font-family: var(--serif); font-size: 32px; }
.related-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-news__grid img { aspect-ratio: 16 / 10; object-fit: cover; }
.related-news__grid h3 { margin: 9px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.comments-area { margin-top: 45px; padding-top: 25px; border-top: 4px solid var(--ink); }
.comment--simulated {
  margin: 18px 0;
  padding: 18px;
  border: 2px dashed var(--coral);
  background: #fff6ed;
}
.comment-simulation-badge {
  margin: 0 0 10px !important;
  padding: 7px 9px;
  color: var(--coral-dark);
  background: #ffe0d3;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}
.comment-form textarea, .comment-form input {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--white);
}
.comment-form .submit {
  width: auto;
  border: 0;
  color: var(--white);
  background: var(--coral-dark);
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 960px) {
  .masthead__top { grid-template-columns: auto 1fr auto; min-height: 88px; }
  .brand__logo { width: clamp(250px, 42vw, 400px); }
  .brand__tagline { display: none; }
  .world-cup__inner { grid-template-columns: 150px minmax(700px, 1fr); overflow-x: auto; }
  .weather-panel { grid-template-columns: minmax(220px, 1.2fr) repeat(4, 100px) 280px; overflow-x: auto; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-story { grid-template-columns: 1fr 1fr; }
  .side-stack { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-layout { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .masthead__top { min-height: 74px; gap: 8px; }
  .masthead__tools span, .weather-mini small { display: none; }
  .brand__logo { width: 205px; max-height: 52px; }
  .nav__inner { justify-content: flex-start; gap: 18px; }
  .world-cup { margin-top: 12px; }
  .world-cup__inner { grid-template-columns: 130px minmax(650px, 1fr); }
  .weather-panel { grid-template-columns: 210px repeat(4, 88px) 245px; }
  .lead-grid { padding-top: 18px; }
  .lead-story { grid-template-columns: 1fr; }
  .headline { font-size: 40px; }
  .side-stack { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .card--feature { grid-column: auto; }
  .latest-item { grid-template-columns: 115px 1fr; gap: 13px; }
  .latest-item h3 { font-size: 20px; }
  .latest-item p { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav div:last-child { text-align: left; }
  .related-news__grid { grid-template-columns: 1fr; }
}
