/* CSS PRINCIPAL CARGADO - V10 HERO ALINEADO CON COLUMNAS */
:root {
  --bg:#090909;
  --text:#f5f3ef;
  --muted:#b9b1a7;
  --card:#151515;
  --line:rgba(255,255,255,.12);
  --accent:#f03b2f;
  --accent2:#ffd15c;
  --shadow:0 18px 50px rgba(0,0,0,.28);
  --font:system-ui,-apple-system,Segoe UI,sans-serif;
}

body[data-theme="light"] {
  --bg:#f6f1e8;
  --text:#15120f;
  --muted:#665c52;
  --card:#fffaf1;
  --line:rgba(0,0,0,.12);
  --shadow:0 16px 45px rgba(50,35,20,.12);
}

body[data-theme="medium"] {
  --bg:#242321;
  --text:#f5f0e8;
  --muted:#c7beb2;
  --card:#302e2a;
  --line:rgba(255,255,255,.14);
}

body[data-palette="blue"] { --accent:#2f7df0; --accent2:#8fd3ff; }
body[data-palette="gold"] { --accent:#c9972b; --accent2:#ffe08a; }
body[data-palette="green"] { --accent:#2fa866; --accent2:#94f2bc; }
body[data-palette="purple"] { --accent:#8b5cf6; --accent2:#c4b5fd; }
body[data-palette="orange"] { --accent:#f97316; --accent2:#fdba74; }
body[data-palette="cyan"] { --accent:#06b6d4; --accent2:#67e8f9; }
body[data-palette="pink"] { --accent:#e11d48; --accent2:#fda4af; }
body[data-palette="white"] { --accent:#ffffff; --accent2:#d8d8d8; }
body[data-palette="custom"] { --accent:var(--custom-accent, #f03b2f); --accent2:var(--custom-accent2, #ffd15c); }

body[data-font="classic"] { --font:Georgia,'Times New Roman',serif; }
body[data-font="modern"] { --font:Inter,Arial,sans-serif; }

* { box-sizing:border-box; }

body {
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.48;
  font-size:15px;
}

a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }

.site-header {
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:14px clamp(16px,3vw,42px);
  background:color-mix(in srgb,var(--bg) 90%,transparent);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.brand span {
  display:block;
  font-weight:900;
  letter-spacing:-.04em;
  font-size:22px;
}

.brand small {
  color:var(--muted);
  font-size:12px;
}

.site-nav {
  display:flex;
  gap:16px;
  color:var(--muted);
  font-size:15px;
}

.site-nav a:hover { color:var(--text); }

.theme-switcher {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.theme-switcher button {
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  padding:6px 9px;
  border-radius:999px;
  cursor:pointer;
  font-size:13px;
}

.site-main {
  width:min(1240px,calc(100% - 36px));
  margin:0 auto;
  padding:28px 0 54px;
}

/* HOME TIPO PERIODICO */
.newspaper-layout {
  display:grid;
  grid-template-columns:minmax(190px,255px) minmax(0,1fr) minmax(190px,255px);
  grid-template-areas:"left center right";
  gap:22px;
  align-items:start;
  margin:24px 0 36px;
}

.left-col { grid-area:left; }
.center-col { grid-area:center; min-width:0; }
.right-col { grid-area:right; }

.side-col h2,
.center-featured h2,
.section-head h2 {
  font-size:clamp(21px,2vw,29px);
  line-height:1;
  letter-spacing:-.04em;
  margin:0 0 14px;
}

.hero {
  display:block;
  margin:0;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.hero-text {
  background:linear-gradient(135deg,color-mix(in srgb,var(--card) 78%,var(--accent)),var(--card));
  padding:6px 34px 28px;
  border-bottom:1px solid var(--line);
  box-shadow:none;
}

.hero-media {
  position:relative;
  display:block;
  overflow:hidden;
  background:#000;
  aspect-ratio:16/9;
  min-height:0;
  border:0;
  box-shadow:none;
}

.hero-media img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-media span {
  position:absolute;
  right:18px;
  bottom:18px;
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  background:var(--accent);
  color:white;
  border-radius:50%;
  font-size:22px;
  font-weight:900;
}

.kicker {
  display:inline-block;
  color:var(--accent2);
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:11px;
}

.hero-author {
  display:block;
  margin:0 0 14px;
}

h1 {
  font-size:clamp(34px,4vw,50px);
  line-height:.97;
  letter-spacing:-.06em;
  margin:0 0 14px;
}

h2 {
  font-size:clamp(22px,2.5vw,34px);
  line-height:1;
  letter-spacing:-.04em;
}

h3 {
  font-size:20px;
  line-height:1.08;
  margin:7px 0;
  letter-spacing:-.03em;
}

.lead {
  font-size:clamp(15px,1.35vw,18px);
  color:var(--muted);
  margin:0 0 11px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--accent);
  color:white;
  padding:9px 14px;
  border-radius:999px;
  font-weight:850;
  border:0;
  font-size:13px;
}

.button.secondary {
  background:var(--card);
  color:var(--text);
  border:1px solid var(--line);
}

/* TARJETAS */
.cards {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.card {
  background:var(--card);
  border:1px solid var(--line);
  overflow:hidden;
  margin-bottom:16px;
}

.card .thumb {
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  display:block;
  background:#000;
}

.card .thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}

.card:hover .thumb img { transform:scale(1.035); }

.card .thumb span {
  position:absolute;
  left:10px;
  bottom:10px;
  background:var(--accent);
  color:white;
  padding:6px 9px;
  border-radius:999px;
  font-weight:800;
  font-size:11px;
}

.card-body { padding:13px; }

.card p {
  color:var(--muted);
  margin:7px 0 0;
  font-size:14px;
}

.card.small .card-body { padding:12px; }
.card.small h3 { font-size:17px; line-height:1.12; }
.card.small p { display:none; }
.card.small .thumb span { display:none; }

.featured-list {
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.center-featured {
  margin-top:22px;
}

.card.compact {
  display:grid;
  grid-template-columns:150px 1fr;
  align-items:stretch;
}

.card.compact .thumb {
  height:100%;
  min-height:105px;
  aspect-ratio:auto;
}

.card.compact h3 {
  font-size:18px;
}

.card.compact p {
  font-size:13px;
  margin-top:6px;
}

/* SECCIONES GENERALES */
.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:34px 0 18px;
}

.section-head a {
  color:var(--muted);
  font-weight:700;
  font-size:14px;
}

.empty,
.preview-banner {
  background:var(--card);
  border:1px solid var(--line);
  padding:22px;
  margin:24px 0;
}

/* POST INDIVIDUAL */
.post {
  max-width:880px;
  margin:0 auto;
}

.post-head {
  text-align:center;
  margin:18px auto 26px;
}

.video-frame {
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.video-frame iframe {
  width:100%;
  height:100%;
  border:0;
}

.post-content {
  max-width:740px;
  margin:30px auto;
  font-size:18px;
}

.post-content a {
  color:var(--accent2);
  text-decoration:underline;
}

.excerpt {
  font-size:21px;
  color:var(--text);
  font-weight:650;
}

.answer-box,
.key-points,
.author-head {
  background:var(--card);
  border:1px solid var(--line);
  padding:20px;
  margin:22px 0;
}

.key-points li { margin:8px 0; }
.source-link { margin-top:26px; }

.site-footer {
  border-top:1px solid var(--line);
  color:var(--muted);
  padding:30px clamp(16px,3vw,42px);
}

.disclaimer {
  max-width:980px;
  font-size:14px;
  margin-bottom:12px;
}

.pagination {
  display:flex;
  gap:12px;
  margin:28px 0;
}

.narrow { max-width:720px; }

/* TABLET */
@media (max-width:1100px) and (min-width:821px) {
  .newspaper-layout {
    grid-template-columns:minmax(170px,230px) minmax(0,1fr);
    grid-template-areas:
      "left center"
      "right center";
  }

  .right-col {
    display:block;
  }

  .cards {
    grid-template-columns:repeat(3,1fr);
  }

  h1 {
    font-size:clamp(32px,4.2vw,46px);
  }
}

/* MOVIL */
@media (max-width:820px) {
  .site-header {
    position:relative;
    flex-wrap:wrap;
  }

  .brand {
    width:100%;
  }

  .site-nav {
    order:3;
    width:100%;
  }

  .newspaper-layout {
    display:flex;
    flex-direction:column;
    gap:24px;
  }

  .center-col {
    order:1;
    width:100%;
  }

  .left-col {
    order:2;
    width:100%;
  }

  .right-col {
    order:3;
    width:100%;
  }

  .left-col,
  .right-col {
    display:block;
  }

  .cards {
    grid-template-columns:1fr;
  }

  .card.compact {
    grid-template-columns:1fr;
  }

  .hero-text {
    padding:22px 22px 24px;
  }

  .hero-media span {
    width:46px;
    height:46px;
    font-size:19px;
  }

  h1 {
    font-size:34px;
  }

  h2 {
    font-size:26px;
  }

  .site-main {
    width:min(100% - 24px,1240px);
    padding-top:22px;
  }
}
