/* assets/css/monitor_moderno.css */

:root {
  --primary: #111;
  --secondary: #666;
  --bg: #e0e4ec;
  --white: #ffffff;
}

/* ===== BASE ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--primary);
  line-height: 1.75;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0;
  margin: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0; /* 👈 aire mínimo */
}

.branding {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}



/* CONTENEDOR EDITORIAL */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}


/* ===== HEADER LAYOUT ===== */



.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  margin-left: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
}

/* ==============================
   HERO EDITORIAL
============================== */

.hero-editorial {
  max-width: 1180px;
  margin: 30px auto 50px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
}

/* NOTA PRINCIPAL */
.hero-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.hero-main img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-main-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.2) 55%,
    rgba(0,0,0,0) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.hero-main-content h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero-main-content h1 a {
  color: #fff;
  text-decoration: none;
}

.hero-main-content p {
  font-size: 16px;
  color: #eee;
  max-width: 90%;
}

/* NOTAS SECUNDARIAS */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-side-item {
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.hero-side-item:last-child {
  border-bottom: none;
}

.hero-side-item h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

.hero-side-item a {
  color: #111;
  text-decoration: none;
}

.hero-side-item a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-editorial {
    grid-template-columns: 1fr;
  }

  .hero-main img {
    min-height: 300px;
  }

  .hero-main-content h1 {
    font-size: 28px;
  }
}

/* ===== GRID DE NOTAS ===== */
.news-grid {
  margin: 50px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.news-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.news-card .content {
  padding: 16px;
}

.news-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.news-card p {
  font-size: 14px;
  color: var(--secondary);
}

/* ===== NOTA INDIVIDUAL ===== */
.article {
  background: var(--white);
  padding: 40px;
  margin: 40px auto;
  border-radius: 8px;
}

.article h1 {
  font-size: 38px;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 24px;
}

.article img {
  margin: 30px 0;
  border-radius: 6px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid #eaeaea;
  padding: 30px 0;
  margin-top: 60px;
  font-size: 14px;
  color: var(--secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 20px;
  }

  .hero-content h2 {
    font-size: 26px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav {
    margin-top: 10px;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 16px;
  }
}

.layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.sidebar {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
}

.sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.popular-list li:last-child {
  border-bottom: none;
}

.popular-list a {
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.popular-list span {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h2 {
  font-size: 1rem;
  margin: 15px;
}

.card p {
  font-size: .9rem;
  color: #555;
  margin: 0 15px 15px;
}

/* =========================
   NOTA INDIVIDUAL
========================= */

.nota {
  max-width: 820px;
  margin: 40px auto;
}

.nota-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: .85rem;
  color: var(--gray);
}

.nota-header h1 {
  font-size: 2rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.nota-meta {
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: 25px;
}

.nota-hero img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 25px;
}

.nota-lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 25px;
}

.nota-content {
  font-size: 1rem;
  line-height: 1.75;
}

.nota-content p {
  margin-bottom: 1.2em;
}

.nota-content img {
  max-width: 100%;
  display: block;
  margin: 20px auto;
}

/* ==============================
   NOTICIAS RECIENTES (LISTADO)
============================== */

.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card.horizontal {
  background: #ffffff;
  padding: 22px 26px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card.horizontal:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.news-card.horizontal h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.news-card.horizontal h3 a {
  color: #111;
  text-decoration: none;
}

.news-card.horizontal h3 a:hover {
  text-decoration: underline;
}

.news-card.horizontal p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-card.horizontal::after {
  content: "Leer más →";
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

/* ==============================
   SIDEBAR - MÁS POPULARES
============================== */

.sidebar {
  background: #ffffff;
  padding: 26px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.sidebar h3 {
  font-size: 18px;
  margin-bottom: 18px;
}

.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.popular-list li:last-child {
  border-bottom: none;
}

.popular-list a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
  text-decoration: none;
}

.popular-list a:hover {
  text-decoration: underline;
}

.popular-list span {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

/* ==============================
   NOTAS COMPLETAS
============================== */

.article {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 20px;
}

.article .back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
}

.article .back:hover {
  text-decoration: underline;
}

.article h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

.article .meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 30px;
}

.article .meta .dot {
  margin: 0 8px;
}

.article .cover {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 30px 0;
  object-fit: cover;
}

.article .content {
  font-size: 18px;
  line-height: 1.8;
  color: #222;
}

.article .content p {
  margin-bottom: 24px;
}

.article .content h2 {
  font-size: 28px;
  margin: 48px 0 16px;
}

.article .content h3 {
  font-size: 22px;
  margin: 36px 0 14px;
}

.article .content a {
  color: #000;
  text-decoration: underline;
}

.article .content a:hover {
  opacity: 0.7;
}

.article .content a {
  color: #000;
  text-decoration: underline;
}

.article .content a:hover {
  opacity: 0.7;
}

.article .content p:first-of-type::first-letter {
  float: left;
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
  margin-right: 10px;
  margin-top: 4px;
}


/* ==============================
   TIEMPO LECTURA
============================== */

.article .meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 30px;
}

.article .meta span {
  white-space: nowrap;
}

.article .meta .dot {
  margin: 0 8px;
}

/* ==============================
   DROP CAP (PRIMERA LETRA)
============================== */

.article .content p:first-of-type::first-letter {
  float: left;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  margin-right: 10px;
  margin-top: 6px;
  color: #000;
}

@media (max-width: 600px) {
  .article .content p:first-of-type::first-letter {
    font-size: 48px;
    margin-top: 4px;
  }
}

/* ==============================
   BRANDING / LOGO
============================== */

/* Accesibilidad / SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==============================
   HEADER EDITORIAL COMPACTO
============================== */

.site-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;   /* 🔑 aquí se controla el alto */
}

.header-inner {
  min-height: 60px;      /* 👈 altura editorial */
  height: 60px;
  display: flex;
  align-items: center;
}

/* LOGO */

.site-logo {
  height: 150px;
  width: auto;
  display: block;
}


/* MENÚ */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  line-height: 1;
  padding: 0;
  margin-left: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-header .container {
    padding: 6px 0;
  }

  .site-logo img {
    height: 44px;
  }

  .site-nav a {
    margin-left: 14px;
    font-size: 13px;
  }
}

/* ==============================
   BARRA EDITORIAL CENTRADA REAL
============================== */

.editorial-bar {
  background: #111;
  width: 100%;
  display: flex;
  justify-content: center;   /* 🔥 CLAVE ABSOLUTA */
}

.editorial-inner {
  display: flex;
  align-items: center;
  justify-content: center;   /* 🔥 DOBLE SEGURIDAD */
  gap: 28px;
  height: 44px;
  padding: 0;
  margin: 0;
}

.editorial-inner a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: .85;
  white-space: nowrap;
}

.editorial-inner a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================
   BARRA EDITORIAL
========================== */

.editorial-nav {
  background: #111;
  position: relative;
}

.editorial-nav .menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 14px 0;
}

.editorial-nav .menu a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.editorial-nav .menu a:hover {
  text-decoration: underline;
}

/* ==========================
   BOTÓN HAMBURGUESA
========================== */

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #111;
  display: block;
}

/* ==========================
   MOBILE
========================== */

/* BOTÓN HAMBURGUESA */
.menu-toggle{
  display:none;                 /* ✅ oculto en desktop */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span{
  width: 24px;
  height: 2px;
  background: #111;
  display:block;
}

/* MOBILE */
@media (max-width: 768px) {

  .editorial-nav,
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 3000;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(131, 130, 130, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 2000;
  }

  .mobile-menu.open {
    display: flex;
  }
}

/* ==============================
   SECCIONES EDITORIALES
============================== */

.section-editorial {
  max-width: 1180px;
  margin: 60px auto;
  padding: 0 16px;
}

/* HEADER DE SECCIÓN */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-top: 2px solid #111;
  padding-top: 12px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.section-header a {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.section-header a:hover {
  text-decoration: underline;
}

/* GRID */
.section-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* NOTA PRINCIPAL */
.section-main img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

.section-main h3 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-main h3 a {
  color: #111;
  text-decoration: none;
}

.section-main h3 a:hover {
  text-decoration: underline;
}

.section-main p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* LISTADO */
.section-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-list article {
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.section-list article:last-child {
  border-bottom: none;
}

.section-list h4 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}

.section-list a {
  color: #111;
  text-decoration: none;
}

.section-list a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-main img {
    height: 220px;
  }
}

/* ==========================
   MENÚ MÓVIL - CONTENIDO
========================== */

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 12px 0;
}

.mobile-menu a {
  color: #ffffff;          /* 🔥 TEXTO BLANCO */
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .3px;
}

.mobile-menu a:hover {
  opacity: 0.85;
}

/* ==========================
   BOTÓN CERRAR MENÚ MÓVIL
========================== */

.menu-close {
  position: absolute;
  top: 22px;
  right: 22px;

  background: none;
  border: none;

  font-size: 28px;
  font-weight: 300;
  color: #fff;

  cursor: pointer;
  opacity: 0.85;
}

.menu-close:hover {
  opacity: 1;
}

/* Ocultar hamburguesa cuando menú está abierto */
.menu-open .menu-toggle {
  display: none !important;
}

.menu-close {
  position: fixed;
  top: 18px;
  right: 18px;

  background: none;
  border: none;

  font-size: 30px;
  font-weight: 300;
  color: #fff;

  cursor: pointer;
  z-index: 3001;
}


