/*
Theme Name: Pulso Centroamericano
Theme URI: https://pulsocentroamericano.com
Author: Pulso Centroamericano
Description: Tema editorial personalizado para Pulso Centroamericano - La voz del istmo.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pulso-centroamericano
*/

:root {
  --crema: #F5F0E8;
  --oscuro: #1A1A2E;
  --rojo: #C0392B;
  --dorado: #B8860B;
  --gris-medio: #d4cfc5;
  --texto: #1A1A2E;
  --texto-suave: #5a5445;
  --texto-muted: #8a8070;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: #ede9df;
  color: var(--texto);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--rojo); }
img { display: block; width: 100%; object-fit: cover; }

.art-link { display: contents; color: inherit; text-decoration: none; cursor: pointer; }

.ad-slot {
  background: #e4dfd2;
  border: 1px dashed var(--texto-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--texto-muted);
  text-transform: uppercase;
  min-height: 250px;
  margin-bottom: 14px;
}
.ad-slot.leaderboard { min-height: 90px; }

/* ==== Resto del diseño original (portada, secciones, widgets, artículo) ==== */

    /* ============================================================
       PULSO CENTROAMERICANO — Hoja de estilos principal
       Para modificar colores principales edita las variables CSS
       ============================================================ */
    :root {
      --crema: #F5F0E8;
      --oscuro: #1A1A2E;
      --rojo: #C0392B;
      --dorado: #B8860B;
      --gris-medio: #d4cfc5;
      --texto: #1A1A2E;
      --texto-suave: #5a5445;
      --texto-muted: #8a8070;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    /* Links que envuelven los titulares hacia articulo.html — no deben alterar el diseño existente */
    .art-link { display: contents; color: inherit; text-decoration: none; cursor: pointer; }

    /* Bloques de anuncios (Google AdSense) */
    .ad-slot {
      background: #e4dfd2;
      border: 1px dashed var(--texto-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 11px;
      letter-spacing: 1px;
      color: var(--texto-muted);
      text-transform: uppercase;
      min-height: 250px;
      margin-bottom: 14px;
    }
    .ad-slot.leaderboard { min-height: 90px; }

    body {
      font-family: 'Source Serif 4', Georgia, serif;
      background: #ede9df;
      color: var(--texto);
      font-size: 15px;
      line-height: 1.6;
    }

    a { text-decoration: none; color: inherit; }
    a:hover { color: var(--rojo); }
    img { display: block; width: 100%; object-fit: cover; }

    /* ============================================================
       FRANJA DECORATIVA SUPERIOR
       ============================================================ */
    .orla {
      height: 4px;
      background: linear-gradient(90deg, var(--dorado) 0%, var(--rojo) 50%, var(--dorado) 100%);
    }

    /* ============================================================
       HEADER PRINCIPAL
       ============================================================ */
    .site-header {
      background: var(--oscuro);
      padding: 18px 0 12px;
      border-bottom: 5px solid var(--rojo);
    }

    .header-inner {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 16px;
    }

    .header-left {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 11px;
      color: var(--texto-muted);
      letter-spacing: 1px;
    }

    .header-left span { display: block; }
    .header-left strong { color: var(--dorado); }

    .site-logo {
      text-align: center;
    }

    .logo-eyebrow {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10px;
      letter-spacing: 4px;
      color: var(--dorado);
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .logo-name {
      font-family: 'Playfair Display', serif;
      font-size: 42px;
      font-weight: 900;
      color: var(--crema);
      letter-spacing: -1px;
      line-height: 1;
      white-space: nowrap;
    }

    .logo-name em { color: var(--rojo); font-style: normal; }

    .logo-tagline {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 11px;
      letter-spacing: 3px;
      color: #6a6060;
      text-transform: uppercase;
      margin-top: 5px;
    }

    .header-right {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 11px;
      color: var(--texto-muted);
      text-align: right;
      letter-spacing: 0.5px;
    }

    #reloj {
      font-size: 22px;
      font-weight: 700;
      color: var(--crema);
      display: block;
      margin-bottom: 2px;
    }

    /* ============================================================
       BARRA DE NAVEGACIÓN
       ============================================================ */
    .main-nav {
      background: var(--crema);
      border-bottom: 2px solid var(--oscuro);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .nav-inner {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      align-items: stretch;
      overflow-x: auto;
    }

    .nav-inner a {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--oscuro);
      padding: 11px 18px;
      border-right: 1px solid var(--gris-medio);
      white-space: nowrap;
      transition: background 0.15s, color 0.15s;
    }

    .nav-inner a:first-child { background: var(--rojo); color: var(--crema); }
    .nav-inner a:hover { background: var(--oscuro); color: var(--crema); }
    .nav-inner a.active { background: var(--oscuro); color: var(--crema); }

    /* ============================================================
       TICKER DE ÚLTIMAS NOTICIAS
       ============================================================ */
    .ticker-bar {
      background: var(--rojo);
      overflow: hidden;
      display: flex;
      align-items: stretch;
    }

    .ticker-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      background: var(--dorado);
      color: #fff;
      padding: 6px 14px;
      white-space: nowrap;
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .ticker-wrap { overflow: hidden; flex: 1; padding: 6px 0; }

    .ticker-inner {
      display: inline-block;
      white-space: nowrap;
      animation: scroll-ticker 40s linear infinite;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px;
      font-weight: 600;
      color: #fff;
      letter-spacing: 0.5px;
    }

    @keyframes scroll-ticker {
      0%   { transform: translateX(100vw); }
      100% { transform: translateX(-100%); }
    }

    /* ============================================================
       CONTENEDOR PRINCIPAL
       ============================================================ */
    .container {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .page-body {
      background: var(--crema);
    }

    /* ============================================================
       ETIQUETAS DE SECCIÓN
       ============================================================ */
    .section-label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--rojo);
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 20px 0 12px;
    }

    .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--rojo);
      opacity: 0.35;
    }

    /* ============================================================
       BADGES DE CATEGORÍA
       ============================================================ */
    .badge {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 2px;
      display: inline-block;
      margin-bottom: 7px;
    }

    .badge-politica  { background: #2C3E50; color: #B8D4F0; }
    .badge-economia  { background: #1E4D2B; color: #90D9A8; }
    .badge-turismo   { background: #7D3800; color: #F5C89A; }
    .badge-negocios  { background: #4A235A; color: #D4A8E8; }
    .badge-mundo     { background: #3d3d3d; color: #D0D0D0; }
    .badge-breaking  { background: var(--rojo); color: #FAD4D0; }

    /* ============================================================
       BYLINE
       ============================================================ */
    .byline {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10px;
      color: var(--texto-muted);
      letter-spacing: 0.5px;
      margin-top: 6px;
    }

    /* ============================================================
       SECCIÓN PORTADA / HERO
       ============================================================ */
    #inicio {
      padding-top: 0;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--gris-medio);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 24px;
      padding-top: 20px;
    }

    .hero-main img {
      height: 340px;
      margin-bottom: 14px;
      border: 1px solid var(--gris-medio);
    }

    .hero-title {
      font-family: 'Playfair Display', serif;
      font-size: 30px;
      font-weight: 700;
      line-height: 1.15;
      color: var(--oscuro);
      margin-bottom: 10px;
    }

    .hero-sub {
      font-size: 14px;
      color: var(--texto-suave);
      line-height: 1.6;
      margin-bottom: 8px;
    }

    .hero-side {
      border-left: 1px solid var(--gris-medio);
      padding-left: 24px;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .side-item {
      padding: 12px 0;
      border-bottom: 1px solid var(--gris-medio);
    }

    .side-item:last-child { border-bottom: none; }

    .side-item img {
      height: 90px;
      margin-bottom: 8px;
      border: 1px solid var(--gris-medio);
    }

    .side-title {
      font-family: 'Playfair Display', serif;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--oscuro);
    }

    .side-sub {
      font-size: 11px;
      color: var(--texto-suave);
      margin-top: 4px;
      line-height: 1.4;
    }

    /* Dos notas medianas bajo el hero */
    .hero-secondary {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--gris-medio);
    }

    .hero-sec-card img {
      height: 160px;
      margin-bottom: 10px;
      border: 1px solid var(--gris-medio);
    }

    .hero-sec-title {
      font-family: 'Playfair Display', serif;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.2;
      color: var(--oscuro);
      margin-bottom: 6px;
    }

    .hero-sec-sub {
      font-size: 12px;
      color: var(--texto-suave);
      line-height: 1.5;
    }

    /* ============================================================
       LAYOUT GENERAL DE SECCIONES (contenido + sidebar)
       ============================================================ */
    .section-layout {
      display: grid;
      grid-template-columns: 1fr 280px;
      gap: 28px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--gris-medio);
    }

    .section-content {}

    /* ============================================================
       SECCIÓN POLÍTICA — Grid 2x2
       ============================================================ */
    .grid-2x2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .news-card img {
      height: 160px;
      margin-bottom: 10px;
      border: 1px solid var(--gris-medio);
    }

    .news-card-title {
      font-family: 'Playfair Display', serif;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--oscuro);
      margin-bottom: 6px;
    }

    .news-card-text {
      font-size: 12px;
      color: var(--texto-suave);
      line-height: 1.5;
    }

    /* ============================================================
       SECCIÓN TURISMO — Layout revista
       ============================================================ */
    .turismo-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      align-items: start;
    }

    .turismo-hero {
      position: relative;
    }

    .turismo-hero img {
      height: 300px;
      border: 1px solid var(--gris-medio);
    }

    .turismo-overlay {
      background: linear-gradient(0deg, rgba(26,26,46,0.92) 0%, rgba(26,26,46,0.2) 70%, transparent 100%);
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 20px 16px 16px;
    }

    .turismo-overlay-title {
      font-family: 'Playfair Display', serif;
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
      margin-bottom: 6px;
    }

    .turismo-overlay-sub {
      font-size: 11px;
      color: rgba(255,255,255,0.75);
      line-height: 1.4;
    }

    .turismo-stack {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .turismo-mini img {
      height: 80px;
      margin-bottom: 8px;
      border: 1px solid var(--gris-medio);
    }

    .turismo-mini-title {
      font-family: 'Playfair Display', serif;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--oscuro);
    }

    /* ============================================================
       SECCIÓN ECONOMÍA — Grid + widget inline
       ============================================================ */

    /* ============================================================
       SECCIÓN NEGOCIOS — Lista tipo Economist
       ============================================================ */
    .negocios-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .negocios-item {
      display: grid;
      grid-template-columns: 50px 1fr 120px;
      gap: 14px;
      align-items: start;
      padding: 16px 0;
      border-bottom: 1px solid var(--gris-medio);
    }

    .negocios-item:last-child { border-bottom: none; }

    .negocios-num {
      font-family: 'Playfair Display', serif;
      font-size: 42px;
      font-weight: 700;
      color: var(--gris-medio);
      line-height: 1;
      padding-top: 4px;
    }

    .negocios-title {
      font-family: 'Playfair Display', serif;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.25;
      color: var(--oscuro);
      margin-bottom: 6px;
    }

    .negocios-text {
      font-size: 12px;
      color: var(--texto-suave);
      line-height: 1.5;
    }

    .negocios-item img {
      height: 80px;
      border: 1px solid var(--gris-medio);
      margin-top: 4px;
    }

    /* ============================================================
       SECCIÓN EL MUNDO — Grid 3x2
       ============================================================ */
    .mundo-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .mundo-card {
      padding-bottom: 14px;
      border-bottom: 1px solid var(--gris-medio);
    }

    .mundo-card img {
      height: 100px;
      margin-bottom: 8px;
      border: 1px solid var(--gris-medio);
    }

    .mundo-flag {
      font-size: 20px;
      display: block;
      margin-bottom: 5px;
    }

    .mundo-title {
      font-family: 'Playfair Display', serif;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.3;
      color: var(--oscuro);
      margin-bottom: 4px;
    }

    .mundo-sub {
      font-size: 10px;
      color: var(--texto-suave);
      line-height: 1.4;
    }

    /* ============================================================
       SIDEBAR
       ============================================================ */
    .sidebar {
      border-left: 1px solid var(--gris-medio);
      padding-left: 24px;
    }

    .widget {
      margin-bottom: 24px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--gris-medio);
    }

    .widget:last-child { border-bottom: none; }

    .widget-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--rojo);
      margin-bottom: 12px;
      padding-bottom: 6px;
      border-bottom: 2px solid var(--oscuro);
    }

    /* Widget Tipo de Cambio */
    .fx-table { width: 100%; border-collapse: collapse; }
    .fx-table tr { border-bottom: 0.5px solid var(--gris-medio); }
    .fx-table tr:last-child { border-bottom: none; }
    .fx-table td { padding: 6px 0; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; }
    .fx-flag { font-size: 16px; margin-right: 5px; }
    .fx-code { color: var(--texto-muted); font-size: 11px; }
    .fx-val { font-weight: 700; text-align: right; color: var(--oscuro); }
    .fx-trend { font-size: 10px; text-align: right; padding-left: 6px; }
    .up { color: #27AE60; }
    .dn { color: var(--rojo); }
    .fx-update { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; color: var(--texto-muted); margin-top: 8px; letter-spacing: 1px; }

    /* Widget Gasolina */
    .gas-country {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 6px;
      margin-top: 10px;
    }

    .gas-country:first-child { margin-top: 0; }
    .gas-hn { color: #1a5f9a; }
    .gas-sv { color: #1a6e2e; }

    .gas-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 0;
      border-bottom: 0.5px solid var(--gris-medio);
    }

    .gas-row:last-of-type { border-bottom: none; }
    .gas-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--texto-suave); }
    .gas-val { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; color: var(--oscuro); }

    /* ⚠️ PARA ACTUALIZAR PRECIOS DE GASOLINA:
       Busca en el HTML los elementos con clase .gas-data
       y cambia los valores directamente. Actualízalos cada semana
       según los precios publicados por la Secretaría de Energía. */
    .gas-updated {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 9px;
      color: var(--texto-muted);
      margin-top: 8px;
      letter-spacing: 1px;
    }

    /* Widget Clima */
    .weather-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 0;
      border-bottom: 0.5px solid var(--gris-medio);
    }

    .weather-item:last-child { border-bottom: none; }
    .weather-city { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--texto-suave); }
    .weather-icon { font-size: 18px; }
    .weather-temp { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: var(--oscuro); }
    .weather-desc { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; color: var(--texto-muted); }
    .weather-update { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; color: var(--texto-muted); margin-top: 8px; letter-spacing: 1px; }

    /* Widget Noticias populares */
    .popular-item {
      display: flex;
      gap: 10px;
      padding: 10px 0;
      border-bottom: 0.5px solid var(--gris-medio);
    }

    .popular-item:last-child { border-bottom: none; }

    .popular-num {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      font-weight: 700;
      color: var(--gris-medio);
      flex-shrink: 0;
      line-height: 1;
      padding-top: 2px;
    }

    .popular-title {
      font-family: 'Source Serif 4', serif;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.3;
      color: var(--oscuro);
    }

    /* ============================================================
       BARRA DE WIDGETS (Franja oscura)
       ============================================================ */
    .widgets-bar {
      background: var(--oscuro);
      padding: 20px 0;
    }

    .widgets-bar-inner {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .wbar-widget {
      border-right: 1px solid #2d2d45;
      padding-right: 20px;
    }

    .wbar-widget:last-child { border-right: none; }

    .wbar-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--dorado);
      margin-bottom: 10px;
    }

    /* ============================================================
       FOOTER
       ============================================================ */
    .site-footer {
      background: #111122;
      color: #888;
      padding: 32px 0 16px;
    }

    .footer-grid {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 28px;
      padding-bottom: 24px;
      border-bottom: 1px solid #222240;
    }

    .footer-logo-name {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      font-weight: 900;
      color: var(--crema);
      margin-bottom: 8px;
    }

    .footer-desc {
      font-size: 12px;
      color: #555570;
      line-height: 1.6;
      margin-bottom: 14px;
    }

    .footer-social {
      display: flex;
      gap: 10px;
    }

    .footer-social a {
      width: 32px;
      height: 32px;
      border: 1px solid #333355;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #888;
      transition: border-color 0.15s, color 0.15s;
    }

    .footer-social a:hover { border-color: var(--rojo); color: var(--rojo); }

    .footer-col-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--dorado);
      margin-bottom: 12px;
    }

    .footer-col ul { list-style: none; }
    .footer-col ul li { padding: 4px 0; border-bottom: 0.5px solid #1a1a30; }
    .footer-col ul li a { font-size: 12px; color: #666680; transition: color 0.15s; }
    .footer-col ul li a:hover { color: var(--crema); }

    .footer-bottom {
      max-width: 1140px;
      margin: 0 auto;
      padding: 16px 20px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-copy {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10px;
      color: #444460;
      letter-spacing: 1px;
    }

    .footer-disclaimer {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 9px;
      color: #333350;
      max-width: 400px;
      text-align: right;
      line-height: 1.5;
    }

    /* ============================================================
       BOTÓN FLOTANTE DE EDITOR
       ============================================================ */
    #editor-btn {
      display: none;
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--rojo);
      color: #fff;
      border: none;
      padding: 12px 20px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 4px;
      box-shadow: 0 4px 20px rgba(192,57,43,0.4);
      z-index: 9999;
      transition: transform 0.15s;
    }

    #editor-btn:hover { transform: scale(1.03); }

    /* ============================================================
       MODAL EDITOR
       ============================================================ */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(26,26,46,0.8);
      z-index: 99999;
      align-items: center;
      justify-content: center;
    }

    .modal-overlay.active { display: flex; }

    .modal-box {
      background: var(--crema);
      border: 2px solid var(--oscuro);
      width: 90%;
      max-width: 560px;
      max-height: 90vh;
      overflow-y: auto;
    }

    .modal-header {
      background: var(--oscuro);
      padding: 14px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--crema);
    }

    .modal-close {
      background: none;
      border: none;
      color: var(--crema);
      font-size: 22px;
      cursor: pointer;
      line-height: 1;
    }

    .modal-body { padding: 20px; }

    .field-group { margin-bottom: 14px; }

    .field-group label {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--texto-muted);
      display: block;
      margin-bottom: 5px;
    }

    .field-group input,
    .field-group textarea,
    .field-group select {
      width: 100%;
      background: #fff;
      border: 1px solid var(--gris-medio);
      padding: 8px 10px;
      font-family: 'Source Serif 4', serif;
      font-size: 13px;
      color: var(--oscuro);
      border-radius: 2px;
    }

    .field-group textarea { min-height: 100px; resize: vertical; }

    .modal-actions {
      display: flex;
      gap: 10px;
      padding: 14px 20px;
      border-top: 1px solid var(--gris-medio);
    }

    .btn-guardar {
      background: var(--rojo);
      color: #fff;
      border: none;
      padding: 10px 20px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 2px;
    }

    .btn-cancelar {
      background: none;
      color: var(--oscuro);
      border: 1px solid var(--gris-medio);
      padding: 10px 20px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 2px;
    }

    .btn-export {
      background: var(--dorado);
      color: #fff;
      border: none;
      padding: 10px 20px;
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 2px;
      margin-left: auto;
    }

    /* ============================================================
       MODO EDITOR — resaltado al hover
       ============================================================ */
    body.editor-mode [data-editable]:hover {
      outline: 2px dashed var(--rojo);
      outline-offset: 3px;
      cursor: pointer;
    }

    /* ============================================================
       RESPONSIVE
       ============================================================ */
    @media (max-width: 900px) {
      .logo-name { font-size: 28px; }
      .header-inner { grid-template-columns: 1fr; text-align: center; }
      .header-left, .header-right { display: none; }
      .hero-grid { grid-template-columns: 1fr; }
      .hero-side { border-left: none; border-top: 1px solid var(--gris-medio); padding-left: 0; padding-top: 16px; }
      .hero-secondary { grid-template-columns: 1fr; }
      .section-layout { grid-template-columns: 1fr; }
      .sidebar { border-left: none; border-top: 1px solid var(--gris-medio); padding-left: 0; padding-top: 20px; }
      .grid-2x2 { grid-template-columns: 1fr; }
      .turismo-grid { grid-template-columns: 1fr; }
      .negocios-item { grid-template-columns: 40px 1fr; }
      .negocios-item img { display: none; }
      .mundo-grid { grid-template-columns: 1fr 1fr; }
      .widgets-bar-inner { grid-template-columns: 1fr 1fr; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 600px) {
      .mundo-grid { grid-template-columns: 1fr; }
      .widgets-bar-inner { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
      .footer-disclaimer { text-align: center; }
    }
  
/* ============================================================
   AMPLIACIÓN — secciones nuevas, tabs por país, noticias en vivo
   ============================================================ */

/* Badges de las categorías nuevas */
.badge-salud { background: #1E7A5C; color: #fff; }
.badge-cultura { background: #6C3483; color: #fff; }

/* ---- Noticias en vivo (widget que aparece debajo de cada sección) ---- */
.live-news-widget {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 2px dashed var(--gris-medio);
}
.live-news-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-news-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rojo);
  display: inline-block;
  animation: pulso-vivo 1.4s infinite;
}
@keyframes pulso-vivo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.live-news-item {
  padding: 8px 0;
  border-bottom: 0.5px solid var(--gris-medio);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 13.5px;
  line-height: 1.4;
}
.live-news-item:last-child { border-bottom: none; }
.live-news-item a:hover { color: var(--rojo); }
.live-news-item .fuente {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10.5px;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.live-news-loading, .live-news-error {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  color: var(--texto-muted);
  font-style: italic;
}

/* ---- Tabs "Por País" ---- */
.pais-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pais-tab {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--gris-medio);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pais-tab.activo, .pais-tab:hover {
  background: var(--oscuro);
  color: var(--crema);
  border-color: var(--oscuro);
}
.pais-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 700px) { .pais-columnas { grid-template-columns: 1fr; } }
.pais-columna-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--oscuro);
  border-bottom: 2px solid var(--rojo);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

/* ---- Salud: alertas sanitarias ---- */
.alerta-item {
  padding: 10px;
  margin-bottom: 10px;
  border-left: 4px solid var(--rojo);
  background: #fdf3f1;
  font-family: 'Barlow Condensed', sans-serif;
}
.alerta-item.precaucion { border-left-color: var(--dorado); background: #fbf6ea; }
.alerta-item.info { border-left-color: #1E7A5C; background: #edf7f2; }
.alerta-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rojo);
  display: block;
  margin-bottom: 4px;
}
.alerta-item.precaucion .alerta-tag { color: var(--dorado); }
.alerta-item.info .alerta-tag { color: #1E7A5C; }
.alerta-texto { font-family: 'Source Serif 4', Georgia, serif; font-size: 12.5px; color: var(--texto-suave); }

/* ---- Cultura: layout revista ---- */
.cultura-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .cultura-grid { grid-template-columns: 1fr; } }
.cultura-hero { position: relative; }
.cultura-hero img { max-height: 300px; }
.cultura-lista .negocios-item { padding: 10px 0; }

/* ---- Efemérides ---- */
.efemerides-hoy {
  background: var(--oscuro);
  color: var(--crema);
  padding: 30px;
  text-align: center;
  margin-bottom: 24px;
}
.efemerides-fecha-grande {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--dorado);
  line-height: 1;
}
.efemerides-fecha-sub {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  margin-top: 8px;
  color: #b8b3ad;
}
.efemerides-evento-hoy {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  margin-top: 18px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.efemerides-semana-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--gris-medio);
}
.efemerides-semana-fecha {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--rojo);
  min-width: 60px;
}
.efemerides-semana-texto {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 13.5px;
  color: var(--texto-suave);
}

/* ============================================================
   RESPONSIVE — refuerzo para tablet y iPhone (secciones nuevas
   + ajustes finos que el diseño original no cubría del todo)
   ============================================================ */

/* Tablet (iPad vertical, ~768–900px) ya usa el bloque @media 900px de arriba.
   Aquí afinamos las secciones que agregamos después: */
@media (max-width: 900px) {
  .pais-tabs { justify-content: center; }
  .pais-columnas { grid-template-columns: 1fr; }
  .cultura-grid { grid-template-columns: 1fr; }
  .efemerides-fecha-grande { font-size: 32px; }
  .fx-table { font-size: 12px; }
}

/* Teléfonos en general (iPhone, Android) */
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 24px; }
  .logo-name { font-size: 22px; }
  .logo-tagline { font-size: 9px; letter-spacing: 1.5px; }
  .art-title { font-size: 24px !important; }
  .nav-inner a { padding: 10px 14px; font-size: 11px; }
  .pais-tabs { gap: 6px; }
  .pais-tab { padding: 7px 12px; font-size: 12px; }
  .efemerides-hoy { padding: 20px 16px; }
  .efemerides-fecha-grande { font-size: 26px; }
  .efemerides-evento-hoy { font-size: 14px; }
  .cultura-hero img { max-height: 200px; }
  .live-news-item { font-size: 13px; }
  /* La tabla de tipo de cambio no cabe en pantallas angostas: la hacemos
     desplazable en lugar de que rompa el diseño */
  .fx-table { display: block; overflow-x: auto; white-space: nowrap; }
  .articulo-wrap { grid-template-columns: 1fr !important; }
}

/* Teléfonos muy angostos (iPhone SE y similares, ≤375px) */
@media (max-width: 380px) {
  .hero-title { font-size: 21px; }
  .logo-name { font-size: 19px; }
  .section-label { font-size: 13px; }
  .news-card-title, .side-title, .hero-sec-title { font-size: 14px; }
}
