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


.site-main {
  width: 100%;
}

/*Carousel clientes*/

.carousel-container {
  --logos-visibles: 4;
  --logos-unicos: 6;

  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
  background-color: #ffffff;

  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-wrap {
  display: flex;
  align-items: center;
  /* La magia del movimiento */
  animation: marquee 25s linear infinite;
}

/* Pausa la animación si el usuario pone el mouse encima
.carousel-wrap:hover {
  animation-play-state: paused;
} */

.slide {
  flex: 0 0 calc(100% / var(--logos-visibles));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.slide img {
  max-width: 150px;
  height: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% / var(--logos-visibles) * var(--logos-unicos)));
  }
}

@media (max-width: 992px) {
  .carousel-container {
    --logos-visibles: 3;
  }
}

@media (max-width: 576px) {
  .carousel-container {
    --logos-visibles: 2;
  }
}

.hero-seccion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 3em;
  width: 100%;
  height: 100vh;
  color: #fff;
  padding: 0 10em;
  position: relative;
  overflow: hidden;
  background: #12182D;
  background: linear-gradient(90deg, rgba(18, 24, 45, 1) 0%, rgba(15, 25, 59, 1) 31%, rgba(20, 25, 45, 1) 72%);
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
}

.hero-img-mobile {
  display: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.40;
  z-index: 1;
}

.hero-video-mobile {
  display: none;
}

.hero-seccion h2 {
  font-size: 1.4em;
  line-height: 36px;
  font-weight: 400;
}

.hero-col1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 3em;
  z-index: 5;
  text-align: center;
}

.hero-col1 p {
  font-size: 1.4em;
}

.hero-col2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  column-gap: 3em;
  width: 100%;
}

.hero-animado {
  background: radial-gradient(
    circle, 
    rgba(15, 25, 59, 1) 0%,   
    rgba(20, 25, 45, 1) 50%,  
    rgba(18, 24, 45, 1) 100%  
  );
  
  background-size: 200% 200%;
  animation: flotarRadial 15s ease-in-out infinite;
  
  min-height: 100vh;
  width: 100%;
}

@keyframes flotarRadial {
  0% {
    background-position: 0% 0%; 
  }
  50% {
    background-position: 100% 100%; 
  }
  100% {
    background-position: 0% 0%;
  }
}

@media only screen and (min-width: 1440px) and (max-width: 1920px) {

  .hero-seccion {
    padding: 0 20em;
  }
}

@media only screen and (min-width: 1124px) and (max-width: 1440px) {
  .hero-seccion {
    padding: 0 1rem;
    column-gap: 0;
  }

  .hero-col1 {
    display: flex;
    flex-direction: column;
    row-gap: 3em;
    width: 80%;
  }

}

@media only screen and (min-width: 768px) and (max-width: 1124px) {
  .hero-btn {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 2em;
  }

  .hero-col1,
  .hero-col2 {
    align-items: center;
    width: 100%;
    row-gap: 1.8em;
  }

  .hero-col1 p {
    font-size: 1.2em;
  } 

  .hero-seccion {
    width: 100%;
    height: 100vh;
    padding: 5rem 2rem 0rem 2rem;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    flex-wrap: wrap;
  }

  .hero-seccion h2 {
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5;
  }

  .hero-btn a {
    padding: 1.2rem 0.1rem;
    width: 80%;
    font-size: 0.9rem;
  }

  .hero-video {
    display: none;
  }

  .hero-video-mobile {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.40;
    z-index: 1;
  }

}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .hero-seccion {
    align-self: center;
    width: 100%;
    height: 100vh;
    flex-wrap: wrap;
    padding: 2rem 1rem;
    text-align: center;
  }

  .hero-img {
    display: none;
  }

  .hero-img-mobile {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
  }

  .hero-col1 {
    align-items: center;
    padding-top: 0;
    row-gap: 1.5em;
  }

  .hero-col1 p {
    font-size: 1.1em;
  } 

  .hero-col2 {
    flex-direction: column;
    row-gap: 2em; 
    align-items: center;
  }

  .hero-seccion h2 {
    font-size: 1.15em;
    font-family: Poppins;
    line-height: 1.5;
  }

  .hero-seccion h1 {
    font-size: 1.7em;
    line-height: 1.3;
  }

}

/*Lista de caracteristicas del proyecto*/

.feature-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2rem;
}

.title-feature {
  display: flex;
  flex-direction: row;
  align-items: start;
  column-gap: .6em;
}

.title-feature svg {
  margin-top: 7px;
}

.title-feature h3 {
  font-size: clamp(1rem, 5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.item-box p {
  font-size: clamp(1.15rem, 5vw, 1.2rem);
  line-height: 1.5;
  color: #fff;
}

.item-box {
  display: flex;
  flex-direction: column;
  row-gap: .3em;
}

/*Lista de servicios disponibles*/

.service-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5rem;
}

.title-service h3 {
  font-size: clamp(1rem, 5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--psc1);
}

.service-box p {
  font-size: clamp(.9rem, 3vw, 1rem);
  line-height: 1.5;
  color: var(--psc1);
}

.service-box svg {
  width: auto;
  height: 34px;
}

.animated-icon {
  width: 4vw;
  height: 10vh;
}

/*Responsive de ambas listas*/

@media (max-width:800px) {
  .feature-items {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
  }

  .feature-items div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .service-items {
    gap: 30px;
  }

  .animated-icon {
    width: 10vw;
    height: auto;
  }
}

/*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;
}

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

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

/* Slide noticias 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;
}

/* Slide noticias 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;
}

/* Slide noticias 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%;
  }
}

/* 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;
}

/* Fade slider separador - 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;
  }

}

/*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;
  }
}

/*Carrusel containers*/

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.carousel-item {
  min-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.carousel-item h3 {
  margin-top: 15px;
  font-size: 22px;
}

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

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

@media (min-width: 768px) {
  .carousel-item {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    min-width: 100%;
  }
}

/*Form CF7*/

.wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  row-gap: 1.5rem;
  column-gap: 1rem;
  width: max-content;
  height: auto;
}

.wpcf7-form p {
  width: max-content;
}

.wpcf7-form label {
  display: flex;
  flex-direction: column;
  row-gap: .3rem;
  color: #2A4E9B;
  font-size: clamp(.6em, 3vw, .8em);
  font-weight: 500;
  width: max-content;
}

.wpcf7-form span {
  padding: .7rem 0;
  width: max-content;
}

.wpcf7-not-valid-tip {
  width: max-content;
  padding: 0!important;
  margin-top: .3rem;
}

.wpcf7-form-control-wrap input {
  width: 250px;
  height: 50px;
  border-radius: 5px;
  border-color: #2A4E9B;
  padding: .1rem .3rem;
}

.wpcf7-textarea {
  width: 250px;
  height: auto;
  border: 1px solid #2A4E9B;
  font-size: clamp(.6em, 3vw, 1.1em)
}

.wpcf7-form-control-wrap input:hover {
  cursor: text;
  color: #000;
}

.wpcf7-submit:hover {
  border: 1px solid var(--psc2);
  background: var(--psc2);
  color: #fff;
  cursor: pointer;
}

.wpcf7-submit {
  position:absolute;
  padding: 1rem 3rem;
  width: 100%;
  color:#fff;
  background: var(--psc1);
  border: 1px solid var(--psc1);
  font-family: Poppins;
  font-size: .8em;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 5px;
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .wpcf7-form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(3, 1fr);
    row-gap: .5rem;
    width: 100%;
  }

  .wpcf7-form-control-wrap input {
    width: 320px;
  }
}