 html {
  scroll-behavior: smooth;
}

 
.main-menu,
.main-menu * {
  font-family: 'Merriweather', serif !important;
  text-transform: uppercase;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif !important;
  font-weight: 700; /* Normalmente los encabezados van en Bold */
  line-height: 1.3; /* Mejor legibilidad */
  margin-bottom: 0.6em; /* Espaciado uniforme */
}
p, small, button, .btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;  /* Regular */
  line-height: 1.6;  /* Mejor legibilidad en textos largos */
  margin-bottom: 1em; /* Espaciado uniforme entre párrafos */
}


.btn-brown {
  background-color: #532C0F;
  border: none;
}

.publication-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  height: 450px; /* ajusta según lo que te parezca más equilibrado */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.publication-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.4s ease;
  z-index: 1;
  position: relative;
}

/* 🔥 Capa negra semitransparente */
.publication-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0); /* transparente por defecto */
  transition: background-color 0.4s ease;
  z-index: 2;
}

/* Activamos overlay negro al hacer hover */
.publication-item:hover::before {
  background-color: rgba(0, 0, 0, 0.8); /* negro translúcido */
}

.publication-item .overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 3;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.publication-item:hover .overlay {
  opacity: 1;
  visibility: visible;
}

.taxonomy-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f57c00; /* naranja */
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2; /* encima de la imagen */
  pointer-events: none;
  text-transform: uppercase;
}



/*VIDEOS*/

.video-principal,
.video-sugerencias {
  display: flex;
  flex-direction: column;
}

.video-sugerencias {
  max-height: 480px;
  overflow-x: auto;
}

.triangulo-naranja {
  top: 10px;
  right: -30px;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 30px solid #f57c00;
  transform: rotate(90deg);
}
.videos-cenda .container {
  background-color: #532C0F;
} 
  .cursor-pointer {
    cursor: pointer;
  }

  .video-sugerido:hover {
    background-color: #f2f2f2;
  }

  .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity .3s ease;
    cursor: pointer;
    border-radius: .5rem;
  }
  
  .video-card:hover .video-overlay {
    opacity: 1;
  }
  
  .play-btn svg {
    transition: transform .3s ease;
  }
  
  .video-card:hover .play-btn svg {
    transform: scale(1.1);
  }
  

/* Altura fija al 60% de la pantalla */
.parallax-slide {
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: fadeIn 1s ease-in-out;
}

/* Indicadores personalizados */
.custom-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.custom-indicators button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
  transition: all 0.3s ease;
}

.custom-indicators button.active,
.custom-indicators button:hover {
  background-color: #ff6f00;
  border-color: #fff;
  transform: scale(1.2);
}




  /*LIONES ACTIONS**/
    .actionlines-title {
    font-size: 2.8rem;
    font-weight: 700;
  }

  .actionlines-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    max-width: 800px;
  }

  .actionlines-section {
    display: flex;
    flex-wrap: wrap;
    /* gap: 2rem; */
    margin-top: 3rem;
    margin-bottom: 2rem;
  }

  .actionlines-section img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .actionlines-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
    justify-content: center;
  }

  .actionlines-button {
    background-color: #703b11;
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
  }

  .actionlines-post {
    background-color: #f7f7f7;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
  }
  .actionlines-separator{
    height: 0.5em;
    width: 30%; 
    background-color: #703b11; 
    margin: 1rem auto;
  }

  .pagination {
    margin-top: 2rem;
  }

 .taxonomy-section {
    padding: 1rem 0 1rem 0;
  }

  .taxonomy-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .taxonomy-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
  }

  .term-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
  }

  .term-card:hover {
    background-color: #fafafa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .term-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
  }

  .term-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    flex: 1; /* hace que crezca para igualar alturas */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .term-count {
    font-size: 0.9rem;
    color: #666;
  }

  @media (min-width: 768px) {
    .taxonomy-carousel {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      overflow: visible;
    }

    .term-card {
      flex: none;
    }
  }

  .taxonomy-carousel::-webkit-scrollbar {
    height: 8px;
  }

  .taxonomy-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
.objective-image {
/*   width: 10em;
  height: 10em;
  border-radius: 50%; */
  width: 20em;
  height: 20em;
  border-radius: 1em;
  object-fit: cover;
  margin: 3em auto;
  display: block;
}

  /* PAGINATION */
  
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pagination ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

 
 

.pagination ul,
.pagination li {
  list-style: none;
  padding: 0;
  margin: 0;
}


.about-us-desc {
  width: unset;
  border-left: 9px solid #5b2c06;
  margin: 1em;
}
 

/*SINGLE POSTS*/

  .rel-showcase {
    position: relative; padding: 2.5rem 1rem; overflow: hidden;
    background: white; /* fondo sobrio */
  }
  .rel-title {
    color: #fff; font-weight: 700; letter-spacing: .3px; margin: 0 0 1rem 0;
    text-align: center; font-size: clamp(1.25rem, 2vw, 1.5rem);
  }
  .rel-frame {
    max-width: 980px; margin: 0 auto; overflow: hidden; position: relative;
  }
  .rel-track {
    display: flex; transition: transform .7s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
  }
  .rel-slide {
    flex: 0 0 100%; display: grid; place-items: center; padding: .5rem;
  }
  .rel-card {
    width: min(720px, 92vw);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    overflow: hidden;
    color: black;
  }
  .rel-media {
    width: 100%; height: 280px; object-fit: cover; display: block;
    filter: saturate(1.05) contrast(1.05);
  }
  .rel-body { padding: 1.25rem 1.25rem 1.4rem; }
  .rel-meta {
    font-size: .9rem; opacity: .8; margin-bottom: .35rem;
  }
  .rel-h {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin: .1rem 0 .5rem; line-height: 1.25;
  }
  .rel-h a { color: black; text-decoration: none; }
  .rel-h a:hover { text-decoration: none; }
  .rel-excerpt { opacity: .9; margin: 0 0 .9rem; }
  .rel-cta {
    display: inline-block; padding: .55rem .9rem; border-radius: 10px;
    background: <?php echo $accent ? esc_attr($accent) : 'linear-gradient(135deg,#ff8a3d,#ff5f6d)'; ?>;
    color: #111; font-weight: 700; text-decoration: none;
  }
  .rel-cta:hover { filter: brightness(1.05); }

  /* Dots */
/* Dots: estilo “burbujas” sobre foto */
.rel-dots{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top:14px;
}

.rel-dot{
  width:16px;
  height:16px;
  border-radius:50%;
  background: #f57c01;   /* gris translúcido */
  backdrop-filter: blur(2px) saturate(1.1);
  cursor:pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}

.rel-dot:hover{
  transform: scale(1.12);
  background: #e07000f3;
}

.rel-dot.active{
  background:#fff;             
}


  /* Arrows minimalistas */
  .rel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f57c00;
    border: 1px solid #f57c01;
    color: white;
    display: grid
;
    place-items: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
  }
  .rel-arrow:hover { background: rgba(255,255,255,.18); color: #f57c00; transform: translateY(-50%) scale(1.04); }
  .rel-prev { left: 12px; } .rel-next { right: 12px; }

  @media (max-width: 480px) {
    .rel-media { height: 220px; }
    .rel-arrow { display: none; }
  }

 
 
    /* HERO */
    .single-hero {
      position: relative;
      width: 100%;
      min-height: 60vh;      
      background-size: cover;
      background-position: center;
      background-attachment: fixed; /* parallax (en iOS puede ignorarse) */
      display: grid;
      place-items: center;
    }
    .single-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.45); /* overlay negro con transparencia */
    }
    .single-hero__content {
      position: relative;
      text-align: center;
      color: #fff;
      padding: 1rem 1.25rem;
      max-width: 1100px;
    }
    .single-hero__title {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      margin: 0 0 .5rem 0;
      line-height: 1.2;
    }
    .single-hero__meta {
      margin: 0;
      opacity: .95;
      font-size: 1rem;
    }
    .single-hero__accent {
      height: 4px;
      width: 100%;
    }
    @media (max-width: 1024px) {
      .single-hero { background-attachment: scroll; } /* fallback mobile */
    }

    /* CONTENIDO */
    .single-content { padding: 2rem 0; }

    /* RELACIONADOS */
    .related-section { padding: 2rem 0; }
    .related-card { height: 100%; }
    .related-card .card-img-top { object-fit: cover; width: 100%; height: 180px; }  



/*BIBLIOTECA*/    
.biblio-wrap {max-width: 1200px; margin: 40px auto; padding: 0 16px; position: relative;}
.biblio-badge-lang {
  position: sticky; top: 16px; float: right;
  background: #ff8a3d; color:#fff; font-weight: 800; letter-spacing:.5px;
  padding:10px 18px; border-radius:10px; z-index:5; display:inline-block;
}
.biblio-grid {display:grid; grid-template-columns: 1fr 1fr; gap: 28px;}
@media (max-width: 992px){ .biblio-grid{grid-template-columns: 1fr;} }

.biblio-item {display:grid; grid-template-columns: 38% 1fr; gap:20px;
  padding:18px; border:1px solid #eee; border-radius:10px; background:#fff; box-shadow:0 4px 12px rgba(0,0,0,.04);}
@media (max-width: 640px){ .biblio-item{grid-template-columns: 1fr;} }

.biblio-thumb {border-radius:8px; overflow:hidden; background:#f7f7f7;}
.biblio-thumb a {display:block; width:100%; height:100%;}
.biblio-thumb img {width:100%; height:220px; object-fit:cover; display:block;}
@media (max-width: 640px){ .biblio-thumb img{height:180px;} }

.biblio-meta {position:relative;}
.biblio-date {position:absolute; left:0; top:-12px; transform:translateY(-50%);
  background:#ffc156; color:#fff; font-size:.72rem; font-weight:700;
  padding:4px 8px; border-radius:6px;}
.biblio-cat {display:inline-block; background:#36b37e; color:#fff; font-size:.72rem; font-weight:700;
  padding:4px 8px; border-radius:6px; margin-bottom:8px; text-transform:uppercase;}

.biblio-title {font-size:1.1rem; line-height:1.25; margin:.6rem 0 .4rem 0; color:#2f6d8c; font-weight:800;}
.biblio-title a{color:inherit; text-decoration:none;}
.biblio-title a:hover{opacity:.85;}

.biblio-author {font-size:.78rem; color:#8997a2; margin-bottom:.4rem;}
.biblio-excerpt {font-size:.9rem; color:#525f6a; margin-bottom:.2rem;}

.biblio-actions {display:flex; align-items:center; gap:14px; margin-top:8px;}
.biblio-link {font-size:.78rem; font-weight:700; color:#2f6d8c; text-decoration:none; position:relative;}
.biblio-link::after {content:""; position:absolute; left:0; bottom:-2px; width:100%; height:2px; background:#2f6d8c; opacity:.25;}

.biblio-counters {margin-left:auto; display:flex; gap:14px; font-size:.78rem; color:#6b7785;}
.biblio-counter {display:flex; gap:6px; align-items:center; white-space:nowrap;}
.biblio-counter .dot {width:8px; height:8px; border-radius:50%; background:#cfd7df; display:inline-block;}

.biblio-pagination {display:flex; gap:10px; justify-content:center; margin:28px 0 10px;}
.biblio-pagination .page-numbers{padding:8px 12px; border:1px solid #e6e6e6; border-radius:8px; text-decoration:none; color:#333;}
.biblio-pagination .current{background:#2f6d8c; color:#fff; border-color:#2f6d8c;}
/* ======= fin estilos ======= */


/* Asegura que el wrap no rompa el diseño */
#fb-comments-wrap {
  max-width: 100%;      /* No más ancho que su contenedor */ 
}

/* Forzar que el iframe se ajuste al ancho disponible */
#fb-comments-wrap iframe {
  width: 100% !important;
  max-width: 100% !important;
}
#fb-comments-wrap.full-bleed {
  width: auto !important;
  max-width: 100% !important;
}
