/* Variables */
:root{
  --body-color:#231F20;
  --prim:#432918;
  --sec:#a19a59;
  --ter:#eec8a3;
}

.header{
  background-color: transparent;
  background-image:none;
  margin-bottom:32px;
}

/* Mantenimiento */
.offline-card p{
  color:var(--body-color);
}


/* Navegacion */

.container-topbar, .container-below-top {
    width: 100%;
    background: var(--prim);
    display: flex;
    gap: 24px;
    flex-direction: row;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

@media (max-width: 1000px) {
    .container-topbar, .container-below-top {
        flex-direction: column-reverse; 
        align-items: center;  
        gap:16px;
    }
}


.navbar, .navegacion {
  position: flex;
  justify-content: center;
  text-align:center;
}

@media (max-width: 1000px) {
  .navbar, .navegacion {
    flex-direction:row;
    gap:16px;
  }
}

@media (max-width: 770px) {
  .navbar, .navegacion {
    flex-direction:column;
    gap:16px;
  }
}

.navbar-toggler{
  margin-bottom: 10px;
}


.container-header .navbar-brand{
  width: 100%;
  text-align:center;
  padding-top: 28px;
}

.social{
  width:100%;
  margin-top:4px;
  margin-bottom:24px;
}

/* Categorias Home */

.categorias figure{
  overflow: hidden;
  max-height: 160px;
}

.categorias .mod-articles-grid{
  grid-template-columns: 1fr 1fr 1fr;
}


.categorias .mod-articles-item-content{
  display: flex;
  flex-direction: column-reverse;
}

.categorias h2{
  color:var(--body-color);
  font-size: 1.2em;
}

.categorias h2 a {
    text-decoration: none;
    color:var(--body-color);
}

.categorias h3 {
  border-bottom: 1px solid #EEC6A3;
  margin-bottom:24px;
  color: var(--prim);
}

.page-header h1{
  border-bottom: 1px solid #EEC6A3;
  margin-bottom:24px;
  color: var(--prim);
  font-size: 26px;
}

@media (max-width: 770px) {
  .categorias .mod-articles-grid{
     grid-template-columns: 1fr;
 }
  .categorias figure{
    overflow: hidden;
    max-height: 250px;
  }
}


/* Articulos */

.item-title a, .page-header a{
  color:var(--body-color);
}

.item-title a:hover{
  text-decoration: underline;
}

.articulos h2 {
    font-size: 1.5em;
}
.articulos p {
    font-size: 0.9em;
}

.articulos .blog-item{
  border-bottom: 1px solid #EEC6A3;
}

.articulos h2 a {
    text-decoration: none;
}

.articulos figure{
  overflow: hidden;
  max-height: 250px;
}

.articulos figure img{
  width:100%;
}

@media screen and (min-width: 768px) {
    .articulos .blog-item {
        display: flex;
        flex-flow: row-reverse;
        gap: 20px;
    }
    
    .articulos .blog-item figure {
        flex: 0 0 300px;
        margin: 0;
    }
    
    .articulos .blog-item .item-content {
        flex: 1;
    }
   .articulos figure{
     overflow: hidden;
     max-height: 180px;
   }
}

/* Botones */
.btn-primary {
    background-color: var(--prim);
    border-color: var(--prim);
}
.btn-primary:hover {
	background-color: var(--prim);
    border-color: var(--prim);
  	-webkit-box-shadow: 0 0 0 0.25rem rgba(67, 41, 24, 0.5);
          	box-shadow: 0 0 0 0.25rem rgba(67, 41, 24, 0.5);
    -webkit-transition: ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}

.btn-check:checked + .btn-primary:focus, .btn-check:active + .btn-primary:focus, .btn-primary:active:focus, .btn-primary.active:focus, .show > .btn-primary.dropdown-toggle:focus {
	background-color: var(--prim);
    border-color: var(--prim);
  	-webkit-box-shadow: 0 0 0 0.25rem rgba(67, 41, 24, 0.5);
          	box-shadow: 0 0 0 0.25rem rgba(67, 41, 24, 0.5);
    -webkit-transition: ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}

.btn-check:focus + .btn-primary, .btn-primary:focus{
      background-color: var(--prim);
      border-color: var(--prim);
      -webkit-box-shadow: 0 0 0 0.25rem rgba(67, 41, 24, 0.5);
  			box-shadow: 0 0 0 0.25rem rgba(67, 41, 24, 0.5);
      -webkit-transition: ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}



/* Buscador */

.finder h1 {
    display: none;
}

.finder a{
  color:var(--body-color);
  text-decoration:none;
}

.finder a:hover{
  text-decoration: underline;
}

.mark, mark{
  background-color: var(--ter);
}

.result__item+.result__item {
    border-top: none;
  	padding-top: 0;
}

.result__item{
  border-bottom:1px solid var(--sec);
  padding-bottom:1.5em
}

/* Paginación */
.page-link, .page-link:hover {
  color:var(--prim);
}

.page-item.active .page-link {
    background-color: var(--prim);
    border-color: var(--prim);
    color: #fff;
}


/* Back to top */

.back-to-top-link{
  border-color: var(--prim);
  color: var(--prim);
}

.back-to-top-link:hover, .back-to-top-link:focus{
  background-color: var(--prim);
}

/*Videos Destacado*/

.video{
  max-width:600px;
}

.video h3 {
  border-bottom: 1px solid #EEC6A3;
  margin-bottom:24px;
  color: var(--prim);
}

.vDest iframe{
    width: 100%;
    height: 100%;
  	max-height:300px;
  	padding-bottom:10px;
}

.vDestVideo{
    height: 326px;
    width: 100%;
  	margin-bottom:10px;
}

.vDest h3{
  font-size: 1.3em;
  
}

/*Las mas leidas*/

.container-bottom-b{
  justify-content: space-between;
  margin-top:2em;
}

.mas-leidas{
  max-width:600px;
}

.mas-leidas h3 {
  border-bottom: 1px solid #EEC6A3;
  margin-bottom:24px;
  color: var(--prim);
}

.mas-leidas a {
  text-decoration:none;
  color:var(--body-color);
}

.mas-leidas li{
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
  padding-top: 10px;
}

/* Suscribe section */

.suscribete{
  width: 100%; 
  padding:8px;
  background: var(--sec);
  display:flex;
  justify-content:center;
  align-items:center;
}

.suscribete .suscribe-text{
  display:flex;
  align-items:center;
  color: var(--body-color);
  font-size: 18px;
  font-weight: 700;
}

/* Footer */

.footer {
  background:var(--body-color);
  padding:8px;
}

.social-footer{
  margin-top:4px;
  margin-bottom:24px;
  width:170px;
}

@media (max-width: 1000px) {
  .social-footer{
    text-align:center;
  }
}


/* AVISOS RIGHT */

.ad-right img{
  margin-bottom:2em;
}

.sidebar-right{
    text-align: center;
}



/* Credits */
.credits{
  background: var(--body-color);
}
.cred{
  color:#9d9d9d;
  font-style: italic;
}
.cred a{
  color:#9d9d9d;
  text-decoration:none;
}


/* Indicadores */
.indicadores-full iframe {
  margin: 0px auto;
}

/* Indicadores Home */

#indicadores-home{
  background: #E6E6E6;
  height:70px;
  width:100%;
}


/* Destacados Home */

.destacados figure{
  overflow: hidden;
  max-height: 250px;
}

.destacados img{
  width:100%;
}

.destacados .mod-articles-item-content{
  display: flex;
  flex-direction: column-reverse;
}

.destacados h2{
  color:var(--body-color);
  font-size: 1em;
}

.destacados h2 a {
    text-decoration: none;
    color:var(--body-color);
}

.container-top-b{
  display:block;
}



/* Aplicación base estilo columna */
.destacados .mod-articles-items {
  display: block;
}

/* Estilos desktop robustos */
@media (min-width: 770px) {
  .destacados .mod-articles-items {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .destacados .mod-articles-items > li:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  /* Distribución 2x2 lateral */
  .destacados .mod-articles-items > li:nth-child(2),
  .destacados .mod-articles-items > li:nth-child(3) {
    grid-row: 1;
  }
  .destacados .mod-articles-items > li:nth-child(4),
  .destacados .mod-articles-items > li:nth-child(5) {
    grid-row: 2;
  }

  /* Ajustes visuales */
  .destacados img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
  }
  .destacados .mod-articles-items > li:not(:first-child) img {
    max-height: 150px;
  }
  .destacados .mod-articles-items > li:first-child figure {
    max-height: 400px;
    width:100%
  }
  .destacados .mod-articles-items > li:first-child img {
    width:100%
  }
  .destacados .mod-articles-items > li:first-child h2 {
    font-size:1.5em;
  }
}

/* Imagen principal articulo*/
.com-content-article .img-top {
  max-width:550px;
}

/* Fuente roboto en los articulos */
.com-content-article__body p,
.com-content-article__body span,
.blog-item p,
.blog-item span {
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
}

.blog-item .icon-calendar {
  font-family: "Font Awesome 6 Free" !important;
  font-size: 16px !important;
}

/*Paginación Responsive*/

@media (max-width: 767px) {
    .com-content-category-blog__counter {
        text-align: center !important;
        float: none !important;
        font-size: 12px;
    }
    
    .pagination {
        justify-content: center;
    }
    
    /* Ocultar todos los números excepto los esenciales */
    .page-item:not(.active):not(:first-child):not(:nth-child(2)):not(:nth-last-child(2)):not(:last-child) {
        display: none;
    }
    
    /* Si la página activa no es visible, mostrarla */
    .page-item.active {
        display: block !important;
    }
    
    .page-item .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}


/* Blockquote */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #432918;
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-size: 16px;
    color: #495057;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

blockquote::before {
    content: '"';
    font-size: 3.5rem;
    color: #432918;
    position: absolute;
    top: -10px;
    left: 10px;
    line-height: 1;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

blockquote p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    blockquote {
        margin: 1rem 0;
        padding: 1rem;
        font-size: 15px;
    }
    
    blockquote::before {
        font-size: 3rem;
        top: -5px;
        left: 5px;
    }
}



/*Nota relacionada interna*/
a.nota-relacionada {
    display: block;
    position: relative;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    margin: 30px 0;
    padding: 60px 20px 20px 20px;
    box-shadow: 0 4px 20px rgba(67, 41, 24, 0.12);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #555555;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

a.nota-relacionada::before {
    content: "Te puede interesar";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #432918;
    color: white;
    padding: 12px 20px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

a.nota-relacionada:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(67, 41, 24, 0.15);
    color: #432918;
    text-decoration: none;
}

a.nota-relacionada:focus {
    outline: 2px solid #432918;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    a.nota-relacionada {
        margin: 25px 0;
        padding: 55px 15px 15px 15px;
        font-size: 13px;
    }
    
    a.nota-relacionada::before {
        font-size: 14px;
        padding: 10px 15px;
    }
}