@import 'base.css';
@import 'header.css';
@import 'footer.css';
@import 'variables.css';


.site-main {
  width: 100%;
}

/*Layout Noticias*/

.noticia-wrap {
  display: flex;
  flex-direction: row;
  align-items: self-start;
  column-gap: 4em;
  padding: 3em 2em;
}

.container-noticia {
  display: flex;
  flex-direction: column;
  row-gap: 2em;
}

.container-noticia img {
  width: 100%;
  height: auto;
}

.noticia-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  margin-bottom: 10px;
}

.noticia-categoria {
  font-weight: 600;
  margin-right: 10px;
  background-color: #2FCBF6;
  padding: 0.8em 1em;
}

.noticia-fecha {
  font-weight: 400;
}

/*Sidebar Noticias*/


.sidebar-noticias {
  border-left: 1px solid #eee;
  padding-left: 20px;
}

.widget-noticias ul {
  list-style: none;
  padding: 0;
}

.widget-noticias li {
  margin-bottom: 10px;
}

.widget-noticias a {
  text-decoration: none;
  color: #111;
}

.widget-noticias a:hover {
  text-decoration: none;
  color: #2FCBF6;
}

@media only screen and (min-width: 1366px) {
  .noticia-wrap {
    margin: 0 18em;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1440px) {
  .noticia-wrap {
    margin: 0 3em;
  }

}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .noticia-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }

  .sidebar-noticias {
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
  }

  .sidebar-noticias {
    width: 100%;
  }

}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .noticia-wrap {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2.5em 1.5em;
  }

  .container-noticia {
    padding: 1em 0 2em 0;
    width: 100%
  }

  .sidebar-noticias {
    width: 100%;
    padding-left: 0;
  }

  .container-noticia img {
    width: 100%;
    height: auto;
  }

}

/*Slide noticias*/

.posts-slide-title a {
  color:#000;
}

.posts-carousel {
    position: relative;
    width: 100%;
}

.posts-carousel-viewport {
    overflow: hidden;
}

.posts-carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.posts-slide {
    padding: 15px;
    box-sizing: border-box;
}

/* Desktop 3 */
@media (min-width: 1024px) {
    .posts-slide {
        min-width: 33.3333%;
    }
}

/* Tablet 2 */
@media (min-width: 768px) and (max-width: 1023px) {
    .posts-slide {
        min-width: 50%;
    }
}

/* Mobile 1 */
@media (max-width: 767px) {
    .posts-slide {
      min-width: 100%;
    }

    .posts-slide-title a {
      font-size: 22px;
      line-height:28px;
    } 

}

.posts-slide-image-wrapper {
  position:relative;
}

.posts-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display:block;
}

/* Fecha sobre imagen */

.posts-slide-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    z-index: 5;
}

/* Flechas */

.posts-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
}

.posts-prev {
    left: 10px;
}

.posts-next {
    right: 10px;
}

@media (max-width: 767px) {
  .posts-carousel-arrow {
    width:25px;
    height: 25px;
    top: 35%;
  }

}


/*Layout oculto con btn */

.reveal-box {
  position: relative;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
}

.reveal-col {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
  min-width: 30%;
}

.reveal-col p {
  padding: 0 1em;
}

.reveal-content:last-child {
  margin-bottom: 1em; 
}

.reveal-content {
  display: flex;
  flex-direction: column;
  row-gap: 1em;
  overflow: hidden;
  height: auto;
  transition: height 0.6s ease;
}

/* estado cerrado */
.reveal-box.is-collapsed .reveal-content {
    overflow: hidden;
}

.reveal-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.reveal-box.is-open .reveal-overlay {
    opacity: 0;
}

.reveal-trigger {
  margin-top: 20px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 10vw;
  z-index: 50;
}

/*Seccion Inicial Home*/

.flex-container {
  display: flex;
  flex-direction: column!important;
}

.seccion-inicial {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  height: auto;
  column-gap: 3em;
} 

.top-title {
  display: flex;
  justify-content: center;
  padding: 1em 1.2em;
  width: auto;
  border-radius: 5px;
  background: #2FCBF6;
  align-self: center;
  font-weight: bold;
}

.title-seccion {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  width: 100%;
  row-gap: 2em;
  padding: 3.5em 0;
}

.title-seccion-alt {
  display: flex;
  justify-content: start;
  align-items: start;
  flex-direction: column;
  text-align: center;
  width: 100%;
  row-gap: 2em;
  padding: 3.5em 0;
}

.top-title-alt {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em 1.2em;
  width: 15%;
  border-radius: 5px;
  background: #2FCBF6;
  align-self: start;
  font-weight: bold;
}

.title-seccion span {
  display: flex;
  column-gap: 1em;
  flex-wrap: nowrap;
  align-self: center;
}

.subtitle-box {
  text-align: center;
  border: 1px solid #2FCBF6;
  padding: 0.6em 1em;
  margin: 0 0 1.2em 0;
  border-radius: 10px;
  width:auto;
}


@media only screen and (min-width: 720px) and (max-width: 1024px) {
  .top-title {
    width: auto;
  }
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .title-seccion {
    flex-direction: column;
    flex-wrap: wrap;
    padding: 1em 0 2em 0;
  }
  
  .top-title {
    width:auto;
    text-align: center;
  }

  .top-title p {
    font-size: 16px;
  }

  .title-seccion-alt {
    justify-content: center;
    align-items: center;
  }


  .top-title-alt {
    justify-content: center;
    align-self: center;
    width:auto;
  }

  .title-seccion span {
    flex-direction: column;
  }

  .seccion-inicial {
    flex-direction: column;
    row-gap: 3em;
    align-items: center;
    justify-content: center;
    padding: 0 1.5em;
    
  }

  .reveal-col {
    width: 100%;
  }

  .reveal-trigger {
    font-size: 15px;
    width: 40%;
  }

}


/* Fade slider separador */

.fade-slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
}

.fade-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease;
}

/* Slide activa */
.fade-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.fade-slide.is-active img {
    transform: scale(1.08);
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .fade-slide img {
    width: 100%;
    height: 360px!important;
  }

}

/*Seccion delegados*/

.seccion-delegados {
  display: flex;
  flex-direction: column;
}

.wrapper-delegados {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap:wrap;
  column-gap: 3em;
  row-gap: 1.5em;
  padding: 1em 1.5em;
}

.wrapper-delegados div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 0.6em;
  padding: 1.5em 1.1em;
  border: 1px solid #2FCBF6;
  border-radius: 10px;
  text-align: center;
  box-shadow: 2px 2px 8px 0px rgba(0,0,0,0.25);
  width: 30%;
}

.wrapper-delegados p {
  font-weight: 500;
  color:#3C99BA;
}

@media only screen and (min-width: 720px) and (max-width: 1024px) {
  .wrapper-delegados{
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 1.2em;
    justify-content: center;
    align-items: center;

  }

  .wrapper-delegados div {
    width: 45%;
    padding: 1.3em 1.5em;
  }

}

@media only screen and (min-width: 320px) and (max-width: 720px) {
  .wrapper-delegados {
    row-gap: 2em;
    flex-wrap: wrap;
    align-items: center;
  }

  .wrapper-delegados div {
    width: 100%;
    padding: 1.5em 1em;
  }

}

/*Btn back to top */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3C99BA;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    z-index:50;
}

.back-to-top:hover {
    background: #000;
    transform: scale(1.1);
}

/*Btn animado scroll down enlazado a siguiente sección*/

/*<a href="#seccion-siguiente" class="scroll-down">
  <span></span>
</a>*/

.scroll-down {
  position: absolute;
  bottom: -2em;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  width: 30px;
  height: 50px;
  border: 2px solid #000;
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
}

.scroll-down span {
  display: block;
  width: 6px;
  height: 6px;
  margin: 10px auto 0;
  background: #000;
  border-radius: 50%;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

