/* OSG — estilo del sitio (Observatorio del Sur Global)
 * Marca: Nunito · azul #2F55A0 · azul medio #3D7DD8 · rojo #FF2E60
 * Boletines: Conexión Brasil #2ECB56 · Mirada Multipolar #8C26EE · Panorama Global #FF2E60 · Perspectiva Latinoamericana #F8D233
 */

/* ---------- 1. Paleta y tipografía (variables de Foxiz) ---------- */
:root {
  --osg-azul: #2f55a0;
  --osg-azul-medio: #3d7dd8;
  --osg-azul-claro: #eaf0fb;
  --osg-rojo: #ff2e60;
  --osg-tinta: #1d2433;
  --osg-gris: #5a6475;
  --osg-linea: #e3e8f2;
  --osg-fondo: #f5f7fb;
  --osg-font: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;

  --g-color: var(--osg-rojo);
  --g-color-90: rgba(255, 46, 96, .9);
  --body-fcolor: var(--osg-tinta);
  --meta-fcolor: var(--osg-gris);
  --nav-color: var(--osg-azul);
  --nav-color-h-accent: var(--osg-rojo);

  --body-family: var(--osg-font);
  --heading-family: var(--osg-font);
  --headline-family: var(--osg-font);
  --subheading-family: var(--osg-font);
  --h1-family: var(--osg-font); --h2-family: var(--osg-font); --h3-family: var(--osg-font);
  --h4-family: var(--osg-font); --h5-family: var(--osg-font); --h6-family: var(--osg-font);
  --menu-family: var(--osg-font); --submenu-family: var(--osg-font);
  --meta-family: var(--osg-font); --meta-b-family: var(--osg-font);
  --cat-family: var(--osg-font); --btn-family: var(--osg-font);
  --input-family: var(--osg-font); --tagline-family: var(--osg-font);
  --quote-family: var(--osg-font); --dwidgets-family: var(--osg-font);
}

body,
button, input, select, textarea,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-button {
  font-family: var(--osg-font);
}
body { color: var(--osg-tinta); -webkit-font-smoothing: antialiased; }

/* ---------- 2. Títulos de notas ---------- */
/* Solo familia y peso: el color lo decide el tema (oscuro sobre fondo claro, blanco sobre foto) */
.p-title, .entry-title, .s-title, .single-title,
.p-title a, .entry-title a {
  font-family: var(--osg-font);
  font-weight: 800;
  letter-spacing: -.01em;
}
.p-wrap:not(.p-overlay) .p-title a:hover { color: var(--osg-azul); }
.p-excerpt, .entry-summary { color: var(--osg-gris); line-height: 1.6; }
.p-meta, .meta-inner, .meta-el, time { font-family: var(--osg-font); color: var(--osg-gris); }

/* Etiquetas de categoría: rojo de marca, sólido */
.p-categories a, .p-category, .p-categories .p-category {
  font-family: var(--osg-font);
  font-weight: 800;
  letter-spacing: .04em;
}

/* ---------- 3. Encabezado nativo de Foxiz ---------- */
.header-wrap .header-5 .logo-wrap img,
.header-5 .logo-wrap img { max-height: 64px; width: auto; }
.main-menu > li > a,
.main-menu-wrap .main-menu > li > a {
  font-family: var(--osg-font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--osg-azul);
}
.main-menu > li > a:hover, .main-menu > li.current-menu-item > a { color: var(--osg-rojo); }
.main-menu .sub-menu a { font-family: var(--osg-font); font-weight: 600; font-size: 14px; }
/* Botón «Suscribite» (ítem de menú con clase osg-cta) */
.main-menu > li.osg-cta { display: flex; align-items: center; margin-left: 10px; }
.main-menu > li.osg-cta > a {
  background: var(--osg-rojo);
  color: #fff !important;
  border-radius: 999px;
  padding: 0 20px;
  line-height: 36px;
  height: 36px;
  font-weight: 800;
}
.main-menu > li.osg-cta > a:hover { background: var(--osg-azul); }
.main-menu > li.osg-cta > a span:after, .main-menu > li.osg-cta > a:after { display: none !important; }
.header-social-list a, .header-5 .header-social-list a { color: var(--osg-azul); }
.header-social-list a:hover { color: var(--osg-rojo); }
.header-wrap .style-border .navbar-wrap, .header-5.style-border { border-color: var(--osg-linea); }
/* Menú de accesos rápidos en celular */
.mobile-qview a { font-family: var(--osg-font); font-weight: 700; color: var(--osg-azul); }
/* Panel del menú en celular (tres rayas). Foxiz fija «Encode Sans Condensed» en .mobile-menu (main.css): se reemplaza.
 * El panel muestra 3 niveles (osg-estilo.php) y suma «Contacto» antes de «Suscribite». */
.mobile-menu > li > a, .mobile-menu .sub-menu a { font-family: var(--osg-font) !important; letter-spacing: 0; text-transform: none; }
.mobile-menu > li, .mobile-menu > li.menu-item-has-children { border-bottom: 1px solid var(--osg-linea); margin: 0 !important; }   /* Foxiz deja 20px solo a las secciones con hijos */
.mobile-menu > li > a { font-size: 16px; font-weight: 800; color: var(--osg-azul); padding: 12px 0; }
.mobile-menu > li.menu-item-has-children > a { padding-bottom: 4px; }
.mobile-menu > li > .sub-menu { border-top: 0; padding: 0 0 10px; }
.mobile-menu .sub-menu a { font-size: 14px; font-weight: 700; color: var(--osg-tinta); padding: 6px 8px 6px 0; line-height: 1.35; }
.mobile-menu > li > a:hover, .mobile-menu .sub-menu a:hover { color: var(--osg-rojo); }
.mobile-menu a[href="#"] { pointer-events: none; cursor: default; }
/* Grupos con páginas adentro (Diplomaturas, Seminarios, Conversatorios, Ciclos): ancho completo, rótulo chico y la lista debajo */
.mobile-menu .sub-menu > li.menu-item-has-children { flex-basis: 100%; }
.mobile-menu .sub-menu > li.menu-item-has-children > a { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--osg-gris); padding: 10px 0 2px; }
.mobile-menu .sub-menu .sub-menu { display: block; border-top: 0; margin: 2px 0 6px 2px; padding: 0 0 0 12px; border-left: 2px solid var(--osg-azul-claro); }
.mobile-menu .sub-menu .sub-menu > li { flex-basis: auto; }
.mobile-menu .sub-menu .sub-menu a { font-size: 13.5px; font-weight: 600; padding: 5px 0; }
/* «Suscribite» como botón (igual que en la computadora) */
.mobile-menu > li.osg-cta { border-bottom: 0; padding-top: 14px; }
.mobile-menu > li.osg-cta > a { display: block; text-align: center; background: var(--osg-rojo); color: #fff !important; border-radius: 999px; padding: 11px 20px; }
.mobile-menu > li.osg-cta > a:hover { background: var(--osg-azul); }
.mobile-search-form .h5, .mobile-social-list-title { font-weight: 800; color: var(--osg-azul); }

/* ---------- 4. Títulos de sección (Foxiz heading 14) ---------- */
.block-h.heading-layout-14 { border: 0; }
.block-h.heading-layout-14 .heading-inner { border: 0; padding: 0; }
.block-h.heading-layout-14 .heading-title,
.block-h.heading-layout-14 .heading-title a,
.block-h.heading-layout-14 .heading-title span {
  font-family: var(--osg-font) !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--osg-azul) !important;
}
.block-h.heading-layout-14 .heading-title {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px; margin-bottom: 4px;
  border-bottom: 2px solid var(--osg-linea);
}
.block-h.heading-layout-14 .heading-title::before {
  content: ""; width: 6px; height: 18px; border-radius: 2px; background: var(--osg-rojo); flex: 0 0 auto;
}

.elementor-widget-image + .elementor-widget-foxiz-heading { margin-top: 32px; }

/* ---------- 5. Etiquetas de boletines (Foxiz heading 10): color sólido por boletín ---------- */
.block-h.heading-layout-10 { --osg-nl: var(--osg-azul); }
.elementor-widget-foxiz-heading.ha-has-bg-overlay::before,
.elementor-widget-foxiz-heading.ha-has-bg-overlay > .elementor-widget-container { background-image: none !important; }
.block-h.heading-layout-10 .heading-inner {
  background: var(--osg-nl);
  border-radius: 4px 4px 0 0;
  padding: 4px 12px;
  border: 0;
}
.block-h.heading-layout-10 .heading-title, .block-h.heading-layout-10 .heading-title a {
  font-family: var(--osg-font); font-weight: 800; font-size: 14px; letter-spacing: .02em; color: #fff !important;
}
.block-h.heading-layout-10:has(a[href*="conexion-brasil"])       { --osg-nl: #2ecb56; }
.block-h.heading-layout-10:has(a[href*="mirada-multipolar"])     { --osg-nl: #8c26ee; }
.block-h.heading-layout-10:has(a[href*="panorama-global"])       { --osg-nl: #ff2e60; }
.block-h.heading-layout-10:has(a[href*="perspectiva-latinoamericana"]) { --osg-nl: #e0b80f; }
.block-h.heading-layout-10:has(a[href*="via-mexico"])            { --osg-nl: #c8102e; }
.block-h.heading-layout-10:has(a[href*="integracion-hoy"])       { --osg-nl: #138a8a; }
.block-h.heading-layout-10:has(a[href*="federico-montero"])      { --osg-nl: var(--osg-azul-medio); }
.block-h.heading-layout-10:has(a[href*="recomendadas"])          { --osg-nl: #f08a24; }

/* ---------- 6. Tarjetas y listados ---------- */
.p-featured, .p-featured img, .feat-holder img { border-radius: 6px; }
.p-wrap .p-featured { overflow: hidden; }
.p-wrap:hover .p-featured img { transform: scale(1.03); transition: transform .35s ease; }
/* Archivos (Electoral, Publicaciones, categorías): tarjetas a todo el ancho del contenedor */
.archive .blog-content .p-wrap, .category .blog-content .p-wrap { background: #fff; }

/* Franja «Suscribite a nuestro newsletter» (Foxiz newsletter-1): texto a la izquierda, botón a la derecha */
.elementor-widget-foxiz-newsletter-1 > .elementor-widget-container { background: none !important; border: 0 !important; padding: 0 !important; }
.newsletter-box.newsletter-style {
  background: var(--osg-azul) !important;
  border: 0 !important;
  border-radius: 10px;
  padding: 28px 32px !important;
  position: relative; overflow: hidden;
}
.newsletter-box.newsletter-style::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.08); pointer-events: none;
}
.newsletter-box .newsletter-inner { display: block !important; padding: 0 !important; }
.newsletter-box .newsletter-content { max-width: none !important; width: 100% !important; padding: 0 !important; text-align: left !important; }
.newsletter-box .newsletter-form { display: none !important; }
.newsletter-box .newsletter-title {
  font-family: var(--osg-font) !important; font-weight: 900 !important; color: #fff !important;
  font-size: 24px !important; line-height: 1.2 !important; margin: 0 0 8px !important;
}
.newsletter-box .newsletter-description {
  color: rgba(255,255,255,.88) !important; font-size: 16px !important; line-height: 1.5 !important; margin: 0 !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between;
}
.newsletter-box .newsletter-description a {
  display: inline-block; background: var(--osg-rojo); color: #fff !important; white-space: nowrap;
  border-radius: 999px; padding: 10px 24px; font-weight: 800; text-decoration: none;
}
.newsletter-box .newsletter-description a:hover { background: #fff; color: var(--osg-azul) !important; }

/* ---------- 7. Formularios (Formidable) ---------- */
.frm_forms .frm_primary_label { font-family: var(--osg-font); font-weight: 700; color: var(--osg-tinta); }
.frm_forms input[type=text], .frm_forms input[type=email], .frm_forms textarea {
  border: 1px solid #cfd7e6 !important; border-radius: 6px !important; padding: 10px 12px !important; font-family: var(--osg-font);
}
.frm_forms input:focus, .frm_forms textarea:focus { border-color: var(--osg-azul-medio) !important; box-shadow: 0 0 0 3px rgba(61,125,216,.18) !important; }
.frm_forms .frm_submit button, .frm_forms .frm_button_submit {
  background: var(--osg-rojo) !important; border: 0 !important; border-radius: 999px !important;
  padding: 10px 26px !important; font-family: var(--osg-font); font-weight: 800 !important; color: #fff !important;
}
.frm_forms .frm_submit button:hover { background: var(--osg-azul) !important; }

/* ---------- 8. Pie ---------- */
.footer-wrap .footer-inner { background: var(--osg-fondo); }
.footer-wrap .widget-title, .footer-wrap .block-h .heading-title {
  font-family: var(--osg-font); font-weight: 900; color: var(--osg-azul); letter-spacing: .04em;
}
.footer-wrap, .footer-wrap p, .footer-wrap a { font-family: var(--osg-font); color: var(--osg-tinta); }
.footer-wrap a:hover { color: var(--osg-rojo); }
.footer-copyright, .footer-copyright p { font-size: 13px; color: var(--osg-gris); }
@media (min-width: 992px) {
  .footer-columns.footer-5c > .block-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
  .footer-columns.footer-5c > .block-inner > .footer-col { width: auto; max-width: none; flex: none; }
  .footer-columns.footer-5c > .block-inner > .footer-col:empty { display: none; }
}
.footer-wrap .textwidget .h1, .footer-wrap .textwidget h1, .footer-wrap .textwidget h2,
.footer-wrap .custom-html-widget h1, .footer-wrap .custom-html-widget h2, .footer-wrap .custom-html-widget h3,
.footer-wrap .custom-html-widget .h1, .footer-wrap .office-address-title, .footer-wrap .phone-title {
  font-family: var(--osg-font) !important; font-size: 18px !important; line-height: 1.3 !important;
  font-weight: 900 !important; color: var(--osg-azul) !important; letter-spacing: .02em; margin-bottom: 12px;
}
.footer-wrap .footer-quote { font-family: var(--osg-font) !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.65 !important; color: var(--osg-tinta) !important; }
.footer-wrap .footer-quote::first-letter { float: none !important; font-size: inherit !important; background: none !important; color: inherit !important; padding: 0 !important; margin: 0 !important; line-height: inherit !important; }
.footer-wrap .frm_form_title, .footer-wrap .frm_description { display: none !important; }
.footer-wrap .frm_forms { max-width: 360px; }

/* ---------- 9. Lectura de notas ---------- */
.single .entry-content, .single .rbct { font-size: 18px; line-height: 1.75; }
.single .entry-content h2, .single .rbct h2 { color: var(--osg-azul); font-weight: 800; }
.single .entry-content a, .single .rbct a { color: var(--osg-azul-medio); text-decoration-color: rgba(61,125,216,.4); }
.single .entry-content blockquote, .single .rbct blockquote { border-left: 4px solid var(--osg-rojo); }

/* ---------- 9b. Videos de YouTube (reemplazo de Embed Plus) ---------- */
.osg-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.osg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 9c. Sin animaciones de entrada (el contenido aparece de inmediato) ---------- */
.elementor-invisible { visibility: visible !important; }
.elementor-element.animated, .animated { animation: none !important; }

/* ---------- 10. Celular ---------- */
@media (max-width: 767px) {
  .p-title, .entry-title { letter-spacing: 0; }
  .block-h.heading-layout-14 .heading-title { font-size: 16px; }
  .single .entry-content, .single .rbct { font-size: 17px; }
  .elementor-section .elementor-container { overflow-x: clip; }
}
