/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
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: 1.0.1
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
*/
/* Por defecto bloqueamos el scroll */
body {
  overflow: hidden;
  height: 100vh;
}
body.loaded {
  overflow: auto;
  height: auto;
}

body #content .logo1{top: 50%;
  transform: translate(-50%);
  left: 50%;
  margin-top: -100px;
  margin-left: 15px;}
.logo-circulo{
  animation: spin 50s linear infinite;
}
.container-rotate{z-index: -1 !Important}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.forma1{
    position: sticky !Important; /* o fixed */
    top: 50%;          /* centra verticalmente */
    left: auto;
    right: 0; 
    transform: translateY(-50%)}
.logo-big{margin-bottom: 70px; overflow: visible}
.logo-big path {
  
  stroke-width: 1;
  fill: transparent;
}

#logo-fill-group path{fill:#fff !Important}
/* Efecto pulso */
.logo-big circle.cls-1{
    stroke:#00c389 !Important;
    fill:#00c389 !Important;

}

h2 strong{font-weight: bold}

.svg-sticky-wrapper{position: sticky; height: 200vh; top:0}
.svg-sticky-wrapper .elementor-widget-html{height: 200vh; top:0}
/*.svg-sticky-wrapper {
  position: relative;
  height: 200vh; 
}*/
.logo-big{z-index: 2}
.scroll-stroke{
  position: sticky;
  top: 0%;
  
  display: block;
  width: auto;
  height: 100vh;
  margin-left: auto;
  right: -50px;
    z-index: 0
}
#logo-svg{padding-top: 20vh}
.logo-big{
  position: sticky !Important;
  top: 50%;
  left: 10%;
  transform: translate(0, -50%);
  width: 80%;
}
.rotate-container {  position: sticky !Important;
  top: CALC(50% + 200px);
  z-index: 1;
  transform: translateY(-50%);
  margin-top: 100px;}


.timeline-wrapper {
  position: relative;
    
  margin: auto;
  
    /*min-height: 5460px; 
    max-height: 5460px*/
}

.timeline-svg {
  position: sticky;
  top: 0;
  width: 100%;
  padding-top: 70px;
  z-index: 1;
  display: block;
}

.timeline-path {
  
}
.timeline-elements{position: absolute; top: 0; bottom: 0; background: #000; left: 0; right: 0}
.timeline-item img{max-width: 200px !Important}
#cont-2025.timeline-item img{max-width: 250px !Important}
#cont-2024.timeline-item img{max-width: 170px !Important}
#cont-2010 img{   max-width: 350px}


.timeline-item{
  position: absolute;
  opacity: 0;
  font-size: 18px;
  padding: 10px 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-family: "Bricolage Grotesque", Sans-serif;
    color: #fff;
    display: flex;
    gap:20px; 
      align-items: center;
}
.timeline-item.row-reverse{flex-direction: row-reverse}
.timeline-item img{background: transparent !Important}
.timeline-item#nace-mediactiu img{border-radius: 100% !Important; background: #fff !Important}
.timeline-item .date{
    background-image: url('./img/fondo-date.png');
    background-repeat: repeat;
    background-size: auto;
  background-repeat: no-repeat;
  background-size: contain;
  text-align: center;
  background-position: center;
  padding: 4px 7px 9px;
  font-weight: bold;
  color: #fff;
  font-size: 28px;
    margin-bottom: 20px
}
.timeline-item .content{max-width: 300px; text-align: center}
.elementor-widget-animated-headline{margin: auto}

#nace-mediactiu { top: 4%; left: 55%; }
#cont-2002 { top: 7.32%; left: 43%; }
#cont-2003 { top: 12.63%; left: 50%; flex-direction: row-reverse; }
#cont-2005 { top: 17.75%; left: 45%; }
#cont-2006 { top: 22.26%; left: 49%; }
#cont-2007 { top: 26.58%; left: 49%; flex-direction: row-reverse; }
#cont-2009 { top: 30.89%; left: 56%; flex-direction: row-reverse; }
#cont-2010 {   top: 37.21%; left: 49%; }
#cont-2012 {     top: 40.93%;
  left: 51.7%; flex-direction: row-reverse; }
#cont-2013 {   top: 46.94%;
  left: 52.7%; flex-direction: row-reverse; }
#cont-2015 {   top: 52.56%;
  left: 48.9%; }
#cont-2016 {   top: 56.17%;
  left: 42.9%; }
#cont-2017 { top: 60.89%;
  left: 50%; flex-direction: row-reverse; }
#cont-2018 {   top: 66.21%;
  left: 48.3%; /*! flex-direction: row-reverse; */ }
#cont-2019 { top: 70.42%;   left: 48%; }
#cont-2020 { top: 74.74%; left: 50%; flex-direction: row-reverse;}
#cont-2022 { top: 79.05%; left: 50%; flex-direction: row-reverse; }
#cont-2023 { top: 83.37%;   left: 48%;}
#cont-2024 { top: 87.68%; left: 45%; }
#cont-2025 { top: 93%;
  left: 51%; flex-direction: row-reverse; }


.e-text-path{  width: 120% !Important;  margin-left: -10% !Important;}
.e-text-path path{  stroke-width: 140px !Important;}
.e-text-path text{  transform: translatey(25px);}



.scroll-stroke-left-container{height: 100%}
.scroll-stroke-left{position: sticky;  top: 0;}

.scroll-stroke-right-container{height: 100%}
.scroll-stroke-right{position: sticky;  top: 0;}

.scroll-stroke-left-container2{height: 100%; display: none}
.scroll-stroke-left2{position: sticky;  top: 0; }

.carrusel-img{margin-left: -100px; margin-right: -100px}
.carrusel-img .swiper-slide{margin-left: -20px !Important; margin-right: -20px  !Important; }
.carrusel-img img{
    box-shadow: 0px 4.6156px 53.8871px -2.3078px rgba(0, 0, 0, 0.1) !Important;
    border-radius: 18px;
    transform: rotate(-9.9deg);
    max-height: 400px; object-fit: cover; width: 100%
}
.carrusel-img .swiper-slide:nth-child(odd) img{transform: rotate(-2.9deg);}
.carrusel-img .swiper-slide:nth-child(even) img{transform: rotate(-3.9deg);}
.carrusel-img .swiper-slide:nth-child(1) img{transform: rotate(-5.9deg);}
.carrusel-img .swiper-slide:nth-child(4) img{transform: rotate(-6.9deg);}
.carrusel-img .swiper-wrapper{padding-top: 100px; padding-bottom: 100px}

.carrusel-proyectos .swiper-slide{height: 100% !Important}
.carrusel-proyectos img{width: 100%;  object-fit: cover}


/* Contenedor principal horizontal */
#horizontal-section {
  position: relative !important; /* elimina cualquier fixed de Elementor */
  overflow: visible !important;   /* necesario para sticky */
  height: calc(100vh + var(--scroll-distance)); /* altura dinámica según slides */
}

/* Contenedor sticky interno */
.horizontal-sticky {
  position: sticky !important;
  top: 0;
  height: 100vh !important;
  overflow: hidden; /* solo aquí */
}

/* Track horizontal */
.horizontal-track {
  display: flex;
  flex-direction: row;
  height: 100vh;
  will-change: transform; /* mejora el rendimiento */
}

/* Cada slide */
.horizontal-track > .e-con {
  min-width: 100vw;
  height: 100vh;
  flex-shrink: 0;
}

/* Última diapo */


.stack-wrapper {
  position: relative;
  height:550vh; /* suficiente scroll para 3 logos */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.stack-column {
  position: sticky;
  top: 0;
  width: 50%;
  height: 100vh;
}

.logo-inner {
  position: absolute;
  top: 50%;    /* centro vertical */
  left: 50%;   /* centro horizontal */
  transform: translate(-50%, -50%) scale(1); /* centrado perfecto */
  width: 100%;  /* empieza ancho completo */
  height: 100%; /* altura completa */
  opacity: 1;
 background: transparent;
}
.logo-img-container{
     background: #fff;
  border-radius: 50px;
  padding: 50px 100px;
    display: flex; 
    height: auto;
    min-height: 250px
}
.logo-inner p{
    top: -80px;
  color: #fff;
  font-weight: bold;
  font-size: 2em;
  background: black;
  margin-bottom: 0;
  padding: 20px 20px 40px;
  border-radius: 50px 20px 0px 0px;
  margin-bottom: -40px;

}
.logo-inner img {
  width: 100%;
  height: 50vh;
  object-fit: contain;
  display: block;
    
    margin: auto
}

.logo-inner{transition: 0.7s background  !important;}
.ultima-diapo,
.ultima-diapo .logo-inner,
.ultima-diapo .logo-inner p,
.ultima-diapo .logo-img-container{
    transition: 0.7s background  !important;
  background: #7DB61C !important;
}
.ultima-diapo .logo-inner p{color: #7DB61C !important;}
.ultima-diapo img {
  filter: brightness(0) invert(1);
}
.ultima-diapo h3{color: #fff !Important}

.iframe iframe{  border-radius: 25px;overflow: hidden}
.iframe iframe, .iframe{min-height: 40vh}

@media(max-width:1450px){
    h2{font-size: 4em !Important}
    .scroll-stroke-left-container{top: -200px !Important}
}
@media(max-width:1024px){
    h2{font-size: 3em !Important}
    .logo-img-container{padding: 50px;  height: 60%;}
    .timeline-elements br{display: none}
    .timeline-item{width: 60%}
    .timeline-item .content{max-width: 240px;}
}
@media(max-width:768px){
    body #content .logo1{  margin-top: -55px;margin-left: 12px}
    h2{font-size: 2.5em !Important}
    .rotate-container .elementor-headline-dynamic-wrapper .elementor-headline-dynamic-text {font-size: 0.8em !Important}
    h2 br{display: none}
    .timeline-item{width: 90%}
    .timeline-item .content{max-width: 190px;}
    .svg-sticky-wrapper2 .elementor-button-text{font-size: 0.8em}
    
    .rotate-container .elementor-headline-dynamic-wrapper{}
     .rotate-container .elementor-headline-dynamic-wrapper {
    width: 100% !important;  /* contenedor se adapta al viewport */
    height: auto !important;  /* que crezca según el texto */
  }

  
    
    .logo-inner p{font-size: 1.1em}
    .svg-sticky-wrapper2  svg, 
    .scroll-stroke svg{display: none !Important}
    .carrusel-img{margin: 0}
    .timeline-item img,
    #cont-2024.timeline-item img,
    #cont-2025.timeline-item img{max-width: 140px  !Important}
    #cont-2025.timeline-item img{max-width: 140px  !Important}
    .timeline-item img.una-bolas{max-width: 100px !Important}
    
    .stack-column{  width: CALC(100% - 20px);}
    
      .logo-img-container {
    padding: 20px 30px;
    height: auto;
    min-height: 200px;
  }
    .logo-big{margin-bottom: 200px}
    .timeline-item .date{font-size: 22px; margin-bottom: 10px}
    #cont-2024{  top: 88.48%;
  left: 39.9%;}
    .e-text-path path {
  stroke-width: 54px !Important;
}
}

#cumplimos.black,
#logo-svg.black{background: #000 !Important; transition: 0.7s all  !important;}
#cumplimos.black strong{color: #00C389 !Important}
.logos-carrusel img{filter: invert(1)}