/*
Theme Name: Hello Elementor Child
Description: Tema hijo de Hello Elementor
Author: actotal
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Aquí puedes agregar tus estilos personalizados */

.card {
  border-radius: 15px;
}

@media (min-width: 769px) {
  .video-cuadrado {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center !important;
    gap: 20px;
  }
  
  .proyecto-img {
    margin-bottom: 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    float: none;
    height: 393px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .card {
    width: 403px;
  }
  
  .card-image img {
    display: flex;
    width: 403px;
    height: 290px !important;  
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    border-radius: 20px !important;
    object-fit: cover;
    object-position: center; 
  }
  
  .card-overlay {
    width: 307px;
    height: 82px;
  }
  
  .card-content h3 {
    padding-top: 24px;
  }
}

.card-image {
  position: relative;
}

@media (min-width: 769px) {
  .card-image:hover .card-overlay {
    display: flex;
  }
}

@media (max-width: 768px) {
  .card-image:active .card-overlay,
  .card-image.touched .card-overlay {
    display: flex;
  }
  
  .card-overlay {
    width: 80% !important;
    max-width: 250px !important;
    height: 60px !important;
    bottom: 20px !important;
    padding: 8px 16px !important;
  }
  
  .card-overlay img {
    width: 25px !important;
    margin-right: 15px !important;
  }
  
  .card-overlay .btn {
    width: 70px !important;
    height: 40px !important;
    font-size: 12px !important;
    line-height: 20px !important;
    padding: 4px 8px !important;
  }
  
  .card-image {
    -webkit-tap-highlight-color: transparent;
  }
}
.card-image img {
  border-radius: 20px !important;
  object-fit: cover;
  object-position: center; 
}
.card-overlay {
  display: none;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  gap: 10px;
  background: rgba(0,0,0,0.7);
  padding: 10px 20px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.card-overlay img {
  width: 35px;
  margin-right: 20px;
}
.card-overlay .btn {
  width: 84px;
  height: 50px;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 30px;
  letter-spacing: 0;
  cursor: pointer;
}
.card-content {  
  text-align: left;
}
.card-content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}
.card-content p {
  font-size: 20px;
  font-weight: 300;
  line-height: 25px;
  letter-spacing: 0;
  margin: 0;
}

@media (min-width: 769px) {
  .proyectos-carousel {
    width: 100%;
  }

  .carousel-container {
    width: 100%;
  }

  .carousel-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center !important;
    gap: 20px;
    transition: none;
    width: 100%;
  }

  .carousel-slide {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .video-cuadrado {
    display: block;
    gap: 0;
    align-items: center;
    justify-content: center !important;
  }
  
  .proyectos-carousel {
    width: 100%;
  }
  
  .carousel-container {
    width: 100vw;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
    width: calc(100% * var(--total-slides, 3) + (15px * (var(--total-slides, 3) - 1)));
    padding-left: 32px;
    box-sizing: border-box;
  }
  
  .carousel-slide {
    width: 314px;
    flex: 0 0 314px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
  }
  
  .proyecto-img {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    background: none;
  }
  
  .card {
    width: 100%;
    max-width: 314px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
  }
  
  .card-image {
    width: 100%;
    align-self: stretch;
  }
  
  .card-image img {
    display: flex;
    width: 314px !important;
    height: 225.955px !important;    
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 7.792px;
    box-sizing: border-box;
  }
  
  .card-overlay {
    width: auto;
    max-width: none;
    gap: 7.792px;
  }
}

@media (max-width: 480px) {
  .carousel-track {
    padding-left: 32px;
  }
  
  .carousel-slide {
    width: 314px;
    flex: 0 0 314px;
  }
  
  .card {
    max-width: 314px;
  }
  
  .card-image img {
    width: 314px !important;
    height: 225.955px !important;    
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 7.792px;
    box-sizing: border-box;
  }
  
  .card-overlay {
    width: auto;
    max-width: none;
    gap: 7.792px;
  }
}