/*
Theme Name: JNews - Child Theme
Version: 1.0.0
Theme URI: http://themeforest.net/?ref=jegtheme
Description: A basic starter child theme for customization purpose of JNews theme.
Author: Jegtheme
Author URI: http://themeforest.net/user/jegtheme?ref=jegtheme
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------------- *
 * Global Customizations
 * ------------------------------------------------------------------------- */

/* Elimina el preloader de las imágenes */
.thumbnail-container:after {
  content: none !important; /* Elimina el contenido generado */
  background: none !important; /* Elimina el fondo */
  opacity: 0 !important; /* Oculta cualquier rastro visual */
}

/* Logo */
.jeg_logo img,
.jeg_mobile_logo img {
    width: 160px;
}

/* Eliminar reloj */
.jeg_readmore,
.fa-clock-o:before {
  display: none;
}

/* Colores de meta */
.jeg_post_meta a {
  color: #000 !important;
  font-weight: 400;
}

/* Alineación de meta */
.entry-header .jeg_post_meta {
  font-size: 13px;           /* Tamaño de fuente */
  color: #000;               /* Color del texto */
  text-transform: none;      /* Sin transformación del texto */
  text-align: left;          /* Centra el texto horizontalmente */
  display: block;            /* Asegura que sea un bloque */
  margin: -5px 0;            /* Espaciado superior e inferior */
  width: 100%;               /* Ancho completo */
  position: relative;        /* Necesario para los pseudo-elementos */
}

.entry-header .jeg_post_meta::before {
  content: "";               /* Pseudo-elemento vacío para las líneas */
  display: block;            /* Asegura que sean visibles */
  width: 100%;               /* Ancho de la línea (ajustable) */
  height: 0.25px;            /* Altura de la línea */
  background-color: #9d9d9d; /* Color de la línea */
  margin: 15px auto;         /* Espaciado entre las líneas y el texto */
	margin-bottom: 10px;
}


.entry-header .jeg_post_meta::after {
  margin-top: 10px;
}

.entry-header {
	margin: 0 0 10px;}

/* Subtítulo */
.entry-header .jeg_post_subtitle {
  text-align: left;
  color: #535353;
}

@media only screen and (max-width: 768px) {
  .custom_post_template .jeg_post_subtitle,
  .entry-header .jeg_post_subtitle {
    font-size: 19px !important;
  }
}

/* Título */
.entry-header .jeg_post_title {
  text-align: left;
}

@media only screen and (max-width: 767px) {
  .custom_post_template h1.jeg_post_title,
  .entry-header .jeg_post_title {
    font-size: 32px !important;
  }
}

/* ------------------------------------------------------------------------- *
 * Featured Images & Captions
 * ------------------------------------------------------------------------- */

/* Imagen destacada: versión general */
.jeg_featured.featured_image {
  position: relative;
  width: 100vw; /* Ocupa todo el ancho del viewport */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  z-index: 1;
}

.jeg_featured.featured_image > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Leyenda general */
.jeg_featured .wp-caption-text {
  position: relative;
  width: auto;
  margin: 0;
  padding: 10px 10px;
  text-align: right;
  line-height: 16px;
  font-size: 13px;
  color: #676767;
  box-sizing: border-box;
  border-bottom: 0.25px solid #000;
}

/* Estilo para escritorio (min-width: 769px) */
@media (min-width: 769px) {
  .jeg_featured.featured_image {
    width: 100%;   /* La imagen se ajusta al ancho del contenedor */
    left: 0;       /* No se desplaza horizontalmente */
    transform: none; /* Elimina el desplazamiento */
    margin: 0 auto;  /* Centra la imagen */
  }

  .jeg_featured.featured_image > img {
    width: 100%;   /* Imagen ajustada al contenedor */
    height: auto;  /* Mantiene las proporciones */
  }

  .jeg_featured .wp-caption-text {
    padding: 5px 0; /* Ajusta el espaciado en escritorio */
    text-align: right;
  }

  .thumbnail-container {
    width: auto; /* Se ajusta automáticamente al diseño */
    left: 0;     /* Elimina cualquier desplazamiento */
  }

  .thumbnail-container > img {
    width: 100%;  /* Imagen ocupa el ancho del contenedor */
    height: auto; /* Mantiene las proporciones */
  }
}

/* Caption imagen interior */
.wp-caption .wp-caption-text {
  margin: 3px 0 0;
  font-size: 12px;
  color: #676767;
  text-align: center;
  border-bottom: 0.25px solid #000; /* Añade una línea debajo */
}

/* ------------------------------------------------------------------------- *
 * Categories & Headers
 * ------------------------------------------------------------------------- */

/* Categorías */
.jeg_cat_title,
.jeg_page_title {
  text-align: center;
  color: #005682;
}

.jeg_cat_title {
  font-size: 24px;
  margin-bottom: 0;
}

.jeg_thumb .jeg_post_category {
  display: none;
}

/* ------------------------------------------------------------------------- *
 * Icons & Buttons
 * ------------------------------------------------------------------------- */

/* Botón buscar */
.icon-search:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  line-height: 1;
}

/* Menú hamburguesa */
.icon-bars:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="18" x2="21" y2="18"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  line-height: 1;
}

/* Cerrar menú */
.icon-close:before,
.icon-remove:before,
.icon-times:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  line-height: 1;
}

/* ------------------------------------------------------------------------- *
 * Inline Related Posts & Widgets
 * ------------------------------------------------------------------------- */

/* Inline Related Posts */
.jnews_inline_related_post .jeg_pl_sm .jeg_post_meta {
  display: none;
}

.jnews_inline_related_post .jeg_pl_sm .jeg_post_title {
  font-size: 17px;
}

.jnews_inline_related_post .jeg_pl_sm .jeg_thumb {
  width: 130px;
}

.jnews_inline_related_post .jeg_pl_sm .jeg_postblock_content {
  margin-left: 130px;
}

/* ------------------------------------------------------------------------- *
 * Text & Content
 * ------------------------------------------------------------------------- */

/* Tamaño del texto */
.single .content-inner {
  font-size: 19px;
}

/* Fondo de anuncios */
.entry-content ins {
  background: rgba(0, 0, 0, 0%);
}

/* Títulos H2 */
.entry-content h2 {
  font-size: 1.53em;
  position: relative;
  margin-bottom: 20px;
  text-align: left;
  display: inline-block;
}

.entry-content h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #2f4f8c 25%, #d3d3d3 25%);
  margin-top: 5px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------------- *
 * Responsive
 * ------------------------------------------------------------------------- */

/* Imagen y texto recientes */
@media only screen and (max-width: 667px) {
  .jeg_pl_sm .jeg_thumb {
    width: 130px;
  }

  .jeg_pl_sm .jeg_postblock_content {
    margin-left: 130px;
  }

  .jeg_pl_sm .jeg_post_title {
    font-size: 17px;
  }
}

/* ESPACIO ANUNCIO TOP */
.jeg_ad.jeg_article.jnews_content_top_ads {
  margin-top: 20px;
}

.ads-text {
  color: #484848;
}

/* TITULOS SIDEBAR */
.jeg_pl_sm .jeg_post_title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4em;
  margin: 0 0 5px;
}


/*Top Header en telefono*/
@media (max-width: 1024px) {
  .jeg_header.normal {
    position: relative;
    display: block;
  }
  .jeg_header_sticky {
    display: none;
  }
  .jeg_header.normal .jeg_nav_center,
  .jeg_header.normal  .jeg_nav_right,
  .jeg_header.normal .jeg_midbar  {
    display:none;
  }
  .jeg_header.normal .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    display: block;
  }
  .jeg_header.normal	.jeg_topbar .jeg_nav_row {
    display: block;
  }
  .jeg_header.normal	.jeg_nav_alignleft {
    text-align: left;
    position: relative;
    display: block;
    max-height: 37px;
  }
  .jeg_header.normal	.jeg_topbar .jeg_nav_item {
    display: flex;
    overflow-x: auto;
    position: relative;
    padding: 0px 0;
    overflow: hidden;
    vertical-align: middle;
    white-space: nowrap;
  }
  .jeg_header.normal	ul {
    touch-action: auto !important;
    list-style: none;
    padding: 0;
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap;
    margin: 0 auto;
  }
  .jeg_topbar .jeg_menu > li {
    padding-right: 12px;
    list-style: none;
    margin: 0;
    position: relative;
    white-space: nowrap;
  }
}
