/* non-critical-articulo-style.css */

/* Sidebar Styles */
.sidebar {
    display:none;
}
.post-content >ul {
	list-style-type: initial;
}

@media (min-width: 1024px) {
    .sidebar {
        display: block;
    }
}

.rel-news-art {
display: flex;
flex-direction: column;
padding: 20px;
gap: 20px;
background: #F6F6F7;
border-left: 4px solid #E8E8EA;
border-radius: 12px;
margin-bottom:1.6875rem;
}
.rel-news-art span{
font-weight: 800;
font-size: 20px;
line-height: 16px;
padding-right:5px;
}
.rel-news-art-list {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0px;
gap: 16px;
flex: none;
}
.rel-news-art-item a:hover {
    color: #7dd4a2;
}

/* Recent Posts in Sidebar */
.recent-posts-container {
    margin-bottom: 20px;
}

.post-container-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.recent-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-item:hover {
    background-color: #f5f5f5;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.recent-post-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.recent-post-thumbnail {
    flex-shrink: 0;
    margin-right: 15px;
    align-self: center;
}

.recent-post-thumbnail img {
    width: 150px;
    height: 117px;
    object-fit: cover;
    border-radius: 5px;
}

.recent-post-info {
    flex-grow: 1;
	line-height: 1;
}

.recent-post-title {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #002990;
}

.recent-post-excerpt {
    font-size: 10px;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
}

/* ===== TOC: estilos consistentes y numeración encadenada ===== */
.toc-container{
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
}

.toc-container h3,
.toc-container-main h3{
  font-size:18px;
  margin:0;
  padding:12px 16px;
  border-bottom:1px solid #eee;
}

.toc-content{
  padding:12px 16px;
}

.toc-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset: item;
}
.toc-item{
    list-style:none;
}

.toc-list li{
  position:relative;
  margin:6px 0;
  padding-left:1.8rem;        /* espacio para el número */
  line-height:1.35;
  counter-increment: item;
}

.toc-list li::before{
  content: counters(item, ".") ".";
  position:absolute;
  left:-1.2rem;
  top:0;
  font-weight:600;
  color:#4b5563;
  min-width:1.6rem;           /* “cajita” del número */
  text-align:right;
}

.toc-list li > ol{
  counter-reset:item;         /* reinicia para el subnivel */
  margin:6px 0 0 0;           /* sin indent extra, ya lo da el padding del LI */
  padding-left:0;
}

/* Enlaces dentro del TOC: legibles y con foco */
.toc-list a{
  display:inline-block;
  color:#0b56d5;
  text-decoration:none;
}
.toc-list a:hover{ text-decoration:underline; }
.toc-list a:focus{ outline:2px solid #cde1ff; outline-offset:2px; }



/* Fixed Menu Offset for Headings */
.toc-heading:before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
}
/* Enlaces más accesibles */

div.post-content a[target="_blank"] {
	font-weight: 700;
}

/* Related Posts Styles */
.related-post-container {
	display:flex;
	flex-direction:column;
	align-items:stretch;
    border-radius: 16px;
    padding: 10px 0;
	content-visibility: auto;
	contain-intrinsic-size: auto 950px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin: 5px;
}

@media (max-width: 481px) {
.tabs {
	flex-wrap: wrap
	}
}
@media (min-width: 1024px) {
	.related-post-container {
		content-visibility: auto;
		contain-intrinsic-size: auto 750px;
	}
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin: 5px;
}

.tab {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    margin: 5px;
    cursor: pointer;
    color: #555;
    border-radius: 12px;
}
.tab.active, .tab:hover {
    color: #fff;
    border-color:#002990;
	background-color:#002990;
}

.related-posts-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px;
}

.related-post {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    justify-content: space-between;
}

.tag {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    background-color: #192EEC;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    text-align: center;
    margin-right: 10px;
    text-decoration: none;
	text-transform: capitalize;
    width: fit-content;
}

.post-image {
    width: 80px;
    height: 80px;
    margin-left: 15px;
    object-fit: cover;
    border-radius: 10px;
	max-width:inherit;
}

.related-post-content {
    display: flex;
    flex-direction: column;
}

.related-post-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.post-title-link {
    text-decoration: none;
    color: inherit;
}

.post-title-link:hover .related-post-title {
    color: #007bff;
}

.post-date {
    font-size: 12px;
    color: #000!important;
}

/* "See More" Button */
.see-more {
    width: 80%;
	align-self:center;
    padding: 10px;
    background-color: #192EEC;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    text-align: center;
}

/* Adjustments for Larger Screens */
@media (min-width: 1024px) {
    .related-posts {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.author-bio-container {
    display: flex;
    align-items: center;
    background: #F6F6F7;
    border-radius: 12px;
    flex-direction: column;
    margin-bottom: 1rem;
}

.author-bio {
    display: inherit;
    flex-direction: row;
}

.author-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 5px;
}

.author-link {
    width: 100%;
    text-align: center;
}

.author-name {
    margin: 10px;
}

.author-name > a > span {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
}
.author-name > span, .author-name > p {
    margin-bottom: 5px;
}


/* Estilos: botones de compartir + caja de autor */

/* ---- Share buttons ---- */
.post-share {
  display: flex;
  gap: 8px;
  align-items: center
}

.post-share .share-btn {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #002990;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease;
}

.post-share .share-btn:hover {
  transform: translateY(-2px)
}

.post-share .share-btn svg {
  width: 20px;
  height: 20px;
  display: block
}

@media (max-width:1023.98px) {
  .post-share .share-btn {
    inline-size: 32px;
    block-size: 32px
  }

  .post-share .share-btn svg {
    width: 18px;
    height: 18px
  }
}

/* ============================================================
    Caja de Autor (E-E-A-T) — single-articulos
    ============================================================ */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f8faff;
  border: 1px solid #dde4f5;
  border-left: 4px solid #172EEB;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0 24px;
  box-shadow: 0 2px 10px rgba(23, 46, 235, .07);
}

/* Avatar */
.author-box__avatar {
  flex: 0 0 auto;
}

.author-box__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #172EEB;
  display: block;
}

.author-box__avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e0e6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #172EEB;
}

/* Cuerpo */
.author-box__body {
  flex: 1 1 0;
  min-width: 0;
}

/* Header: nombre + badge */
.author-box__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.author-box__name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-box__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6c757d;
  font-weight: 600;
}

.author-box__name {
  font-size: 18px;
  font-weight: 800;
  color: #0A2F66;
  text-decoration: none;
  line-height: 1.2;
  transition: color .15s ease;
}

.author-box__name:hover {
  color: #172EEB;
}

/* Badge verificado */
.author-box__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: #1b7a3a;
  border: 1px solid #a5d6a7;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: auto;
}

/* Bio */
.author-box__bio {
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  margin: 0 0 14px;
}

/* Links sociales */
.author-box__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.author-box__social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .15s ease, transform .1s ease;
}

.author-box__social:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.author-box__social--linkedin {
  background: #0A66C2;
  color: #fff;
}

.author-box__social--email {
  background: #f3f4f6;
  color: #0A2F66;
  border: 1px solid #dde4f5;
}

/* Enlace perfil */
.author-box__profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #172EEB;
  text-decoration: none;
  transition: gap .15s ease;
}

.author-box__profile-link:hover {
  gap: 8px;
}

/* Mobile */
@media (max-width: 600px) {
  .author-box {
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .author-box__badge {
    margin-left: 0;
  }

  .author-box__profile-link {
    margin-left: 0;
  }
}