/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */



/* CUSTOM BTN */
.custom-btn {
  align-items: center;
  background: transparent;
  border: none;
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  word-break: break-word;
}

@media (hover: hover) {
  .custom-btn:hover {
    color: white;
    text-decoration: none;
  }
}

.custom-btn::after {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  content: "";
  pointer-events: none;
}

.custom-btn .button__label {
  position: relative;
  text-align: center;
}


.custom-btn .button__flair {
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transform: scale(0);
  transform-origin: 0 0;
  will-change: transform;
}

.custom-btn .button__flair::before {
  aspect-ratio: 1/1;
  background-color: black;
  border-radius: 50%;
  content: "";
  display: block;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%);
  width: 170%;
}








/* GSAP FADE IN ANIMATION 
 */

  .delay {
    animation-delay: 0.3s;
  }

  @keyframes fadeInUp2 {
    from {
      opacity: 0;
      -webkit-transform: translate3d(0, 30px, 0);
      transform: translate3d(0, 30px, 0);
    }

    to {
      opacity: 1;
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
  }

  .animated {
    animation-duration: 0.7s;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.7s;
    -webkit-animation-fill-mode: both;
  }

  .fade-in-up-fast {
    visibility: hidden;
  }

  .elementor-editor-active .fade-in-up-fast,
  .elementor-editor-preview .fade-in-up-fast {
    visibility: visible;
  }

  .fadeInUp2 {
    animation-name: fadeInUp2;
    animation-duration: 0.7s;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.7s;
    -webkit-animation-fill-mode: both;
    visibility: visible;
  }

  @keyframes fadeInUp3 {
    from {
      opacity: 0;
      transform: translate3d(0, 30px, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .fade-in-up-fast2 {
    visibility: hidden;
    overflow: hidden;
  }

  .elementor-editor-active .fade-in-up-fast2,
  .elementor-editor-preview .fade-in-up-fast2 {
    visibility: visible;
  }

  .fadeInUp3 {
    animation-name: fadeInUp3;
    animation-duration: 0.6s;
    animation-fill-mode: both;
    visibility: visible;
    overflow: hidden;
  }

  @keyframes fadeInRight2 {
    from {
      opacity: 0;
      transform: translate3d(35px, 0, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .fade-in-right-fast {
    visibility: hidden;
  }

  .elementor-editor-active .fade-in-right-fast,
  .elementor-editor-preview .fade-in-right-fast {
    visibility: visible;
  }

  .fadeInRight2 {
    animation-name: fadeInRight2;
    animation-duration: 0.6s;
    animation-fill-mode: both;
    visibility: visible;
  }

  @keyframes fadeInLeft2 {
    from {
      opacity: 0;
      transform: translate3d(-35px, 0, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .fade-in-left-fast {
    visibility: hidden;
  }

  .elementor-editor-active .fade-in-left-fast,
  .elementor-editor-preview .fade-in-left-fast {
    visibility: visible;
  }

  .fadeInLeft2 {
    animation-name: fadeInLeft2;
    animation-duration: 0.6s;
    animation-fill-mode: both;
    visibility: visible;
  }









/* text reveal
 */
    .gsap-animate h1,
    .gsap-animate h2,
    .gsap-animate h3,
    .gsap-animate h4,
    .gsap-animate h5,
    .gsap-animate h6,
    .gsap-animate p,
	h1.gsap-animate,
h2.gsap-animate,
{
        position: relative;
        overflow: hidden;
    }


    .split-parent {
        overflow: hidden;
    }

    .split-child {
        display: inline-block;
    }




/* text reveal V2
 */
    .animate-by-word {
      overflow: hidden;
    }
    .split-line {
      display: block;
      overflow: hidden;
    }
    .split-line > * {
      display: inline-block;
    }








/* custom proyecto carousel
 */
.proyectos-carousel-wrapper {
    position: relative;
    width: 100%;
}

.swiper-prev2, .swiper-next2{
	cursor:pointer;
}

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

.proyectos-carousel .swiper-wrapper {
    display: flex;
    align-items: center;
    will-change: transform;
        gap: 20px;

}


.proyectos-carousel .swiper-slide {
    display: flex;
    align-items: center;
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .proyectos-carousel .swiper-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 767px) {
    .proyectos-carousel .swiper-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.proyecto-card {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0px;
    overflow: hidden;
    transition: height 0.6s ease, transform 0.6s ease;
}

.proyectos-h-40 .proyecto-card { height: 50vh; }
.proyectos-h-50 .proyecto-card { height: 60vh; }
.proyectos-h-60 .proyecto-card { height: 70vh; }

@media (max-width: 1024px) {
    .proyecto-card { height: 300px; }
}

@media (max-width: 767px) {
    .proyecto-card { height: 300px; }
}

.proyecto-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: #FFF3DD;
    transition: opacity 0.35s ease, background 0.35s ease;
	padding:30px
}

.proyecto-card:hover .proyecto-hover {
    opacity: 1;
    background: #FFF3DD;
    cursor: pointer;
}

.proyecto-play-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.proyecto-play-triangle {
    display: block;
    width: 0;
    height: 0;
    border-left: 20px solid black;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.proyecto-hover-text {
    color: black;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: archivo;
    font-weight: bold;
	text-align:center;
}

.proyecto-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2147483000;
    transition: opacity 0.3s ease;
}

.proyecto-lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.proyecto-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.proyecto-lightbox-inner {
    position: relative;
    width: 90%;
   z-index: 100000;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.proyecto-lightbox-video,
.proyecto-lightbox-video iframe {
    width: 100%;
    height: 100%;
}

.proyecto-lightbox-close {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 36px;
    height: 36px;
    border: none;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

button.proyecto-lightbox-close:hover{
    background: none !important;
}

body.proyecto-lightbox-open {
    overflow: hidden;
}






.proyectos-grid {
    width: 100%;
}

.proyectos-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .proyectos-grid-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .proyectos-grid-inner {
        grid-template-columns: 1fr;
    }
}

.proyectos-grid-item .proyecto-card {
    height: 50vh;
}

.proyectos-grid-item .proyecto-card:hover .proyecto-hover{
	background: rgb(255,243,221,0.9);
}
