*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: myFirstFont, monospace;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    cursor: crosshair!important; 
}

body{
  background-color: var(--bgcolor);
}



::-webkit-scrollbar {
  display: none;
}

@font-face {
  font-family: myFirstFont;
  src: url("../fonts/jetbrains/JetBrainsMono-Regular.woff2");
}

@font-face {
  font-family: myFirstFont2;
  src: url("../fonts/HelveticaNeue/HelveticaNeueLTStd-UltLtEx.otf");
}


section{
    width: 100%;
}

:root{
  
  --green: #00ff7f;
  --bgcolor: #131313;

}

/* LOADER */

#backgroundcolor{
  background-color: var(--bgcolor);
  width: 100%;
  height: 100%; 
  position: absolute;top: 0;
  left: 0;
}




#loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    opacity: 0;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    border: 16px solid white;
    border-radius: 50%;
    border-top: 16px solid var(--bgcolor);
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    filter: blur(2px);
  }
  
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Add animation to "page content" */
  .animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 1s
  }
  
  @-webkit-keyframes animatebottom {
    from { bottom: 60px; opacity:0 } 
    to { bottom:0px; opacity:1 }
  }
  
  @keyframes animatebottom { 
    from{ bottom: 60px; opacity:0 } 
    to{ bottom:0; opacity:1 }
  }
  
  #myDiv {
    /* CAMBIAR A DISPLATYNONE PARA EL LOADER */
    display:block;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -webkit-transition: opacity 0.3s ease-in-out;
  }




  #lineDrawing{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    top:25vh
  }


svg{
  width: 100%;

  }


  .my-path {
    position: absolute;
    fill:none;
    stroke:white;
    stroke-width:4;
    z-index: 1;
    filter: blur(4px) drop-shadow(10px 10px 10px white) ;
  
  }





   
/* MENU */

header{
    position: fixed;
    width:84%;
    height: 50px;
    margin-top: 5%;
    margin-left: 8%;
    margin-right: 8%;
    z-index: 999;
    transition: all 1s ease;
}

#project-logo{
  position: absolute;
  float: left;
  width:84%;
    height: 50px;
    margin-top: 5%;
    margin-left: 8%;
    margin-right: 8%;
    color: white;
     font-size: 22px;
     text-decoration: none;
     padding: 16px;
     font-family: myFirstFont;
     z-index: 2;
}

#project-logo.active{
  color: black
}

#logo{
    float: left;
    color: white;
     font-size: 22px;
     text-decoration: none;
     padding: 16px;
     font-family: myFirstFont;
  }

  #logo.active{
    color: black}

#menu_ul{
    float: right;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
  margin: 16px;
  transform: translateX(-10%);
}

#menu_ul > li > a{
    color: white;
    text-decoration: none;
    padding: 16px;
    padding-left: 45px;
    font-size: 22px;
    text-align: center;
    font-family: myFirstFont;
}

#menu_ul.active > li > a{
   color: var(--bgcolor);
}


/* CABECERA */

#cabecera{
    position: relative;
    height: 100vh;
    background-color: var(--bgcolor);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4%;
    transition: all 1s ease;
    background-image: url("//img/Green/Here_we_part_with_each_other3.png");
    background-position: center;
    background-size: cover;
}

#cabecera::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--bgcolor) 0%, rgba(0, 0, 0, 0) 40%), 
              linear-gradient(to right, var(--bgcolor) 0%, rgba(0, 0, 0, 0) 40%),
              linear-gradient(to top, var(--bgcolor) 0%, rgba(0, 0, 0, 0) 40%),
              linear-gradient(to left, var(--bgcolor) 0%, rgba(0, 0, 0, 0) 40%);
  z-index: 1; /* Para asegurarnos de que esté por encima del fondo */
  pointer-events: none; /* Para que no interfiera con los eventos */
}

#cabecera.active{
  background-color: white;

}

#cabecera.active > #texto_cabecera{
  color: var(--bgcolor);
}

#texto_cabecera{
  position: absolute;
  font-size: 60px;
  text-align: left;
  color: white;
  width: 70%;
  overflow: hidden;
  margin: 9%;
  margin-top: 11%;
  left: -1500px;
  z-index: 1;
}

.arrow{
  color: white;
  position: absolute;
  top: 84vh;
  left: 47vw;
  z-index: 1;
}

.arrow.active{
  color: black;
}

#runaway-btn, #runaway-btn2, #runaway-btn3 {
  position: absolute;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border: none;
  box-shadow: 0px 0px 0px white;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  mix-blend-mode: difference;
  filter: blur(5px);
  background: radial-gradient(circle, rgba(0,255,127,1) 0%, rgba(0,255,127,1) 25% rgba(0,255,127,1) 50%, rgba(255,255,255,1) 100%); 
  opacity: 0;
  transition: background-color 3s ease;
}

#runaway-btn{
  width: 300px;
  height: 300px;
  top: 434px;
  left: 318px;
}

#runaway-btn2{
  width: 200px;
  height: 200px;
  top: 30%;
  left: 60%;
}

#runaway-btn3{
  width: 100px;
  height: 100px;
  top: 70%;
  left: 80%;
}

/* WORK */

#work{
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end ;
    flex-wrap: wrap;
    padding-top: 0%;
    padding-bottom: 3%;
    overflow: hidden;
    background-color: var( --bgcolor);
    transition: all 1s ease;
    margin-bottom: 50px;
}

#work.active{
  background-color: white;
}

#work.active > #work_header{
  color: var(--bgcolor);
}

#work.active > #work_list > a{
  color: var(--bgcolor);
  border-color: var(--bgcolor);
}



#work_gallery{

  width: 40%;
  height: 75%;
  margin-left: 8%;
  margin-right: 2%;
  padding: 0%;
  overflow: hidden;
  border: 0.5px solid rgb(255, 255, 255);
  mix-blend-mode: difference;
  transition: all 5s ease;
}

#img_work_gallery{
  height: 100%;
  width: 100%;
  object-fit: COVER;
  mix-blend-mode: difference;
}

#work_list{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 40%;
  height: 75%;
  margin-left: 2%;
  margin-right: 8%;
  font-family: HelveticaLt;
}

#work_header{
  font-size: 60px;
  text-align: left;
  color: white;
  margin: 20px 0px;
}

#work_about{
  color: white;
  text-align:justify;
  vertical-align: middle;
  font-size: 20px;
  align-self: flex-end;
}

.black{
  
  font-weight:bold
}

.blue{
  color:rgb(142, 203, 207);
  font-weight: 850; 
}

.green{
  color:rgb(128, 177, 124);
  font-weight: 750;  
}

.red{
  color:rgb(238, 101, 101);
  font-weight: 750; 
}

.pink{
  color:rgb(241, 158, 200);
  font-weight: 750; 
}

.link{
  position: relative;
  display: block;
  font-size: 50px;
  padding: 3%;
  border-top: 1px solid white;
  border-left: 0px solid white;
  border-right: 0px solid white;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: white;
  margin: 0 !important;
  overflow: hidden;
  font-family: "space mono"
}

#last_link{
  border-bottom: 1px solid white
}
 
.link:before {
  background: linear-gradient(
  to right,
  transparent,
  white,
  transparent
  );
  content: "";
  position: absolute;
  left: -102%;
  top: 0px;
  height: 100%;
  width: 100%;
  text-align: right;
  filter: blur(4px);
  transition: all 500ms ease;
}


.link:hover:before{
  width: 100%;
  transition: left 800ms ease;
  text-align: right;
  left: 102%;
}

/* GALLERY */

#gallery{
    display: flex;
    height: 100vh;
    position: relative; 
    overflow: hidden;
    justify-content: flex-end; 
    background-size: cover;
    background-position: center;
    flex-direction: column;
    transition: background-color 0.5s ease;
  }
  #gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--bgcolor) 0%, rgba(0, 0, 0, 0) 40%), 
                linear-gradient(to right, var(--bgcolor) 0%, rgba(0, 0, 0, 0) 40%),
                linear-gradient(to top, var(--bgcolor) 0%, rgba(0, 0, 0, 0) 80%),
                linear-gradient(to left, var(--bgcolor) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: 1; /* Para asegurarnos de que esté por encima del fondo */
    pointer-events: none; /* Para que no interfiera con los eventos */
}

#line{
  width:80vw;
  height:1px;
  background-color: white;
  z-index: 1;
  margin-top: 20px;
  margin-bottom: 40px;
  margin-left: -1vw;
  align-self: center;
  filter: drop-shadow(10px 10px 8px #13131388); 
}
  
.content {
  text-align: left;
  margin-bottom: 20px;
  color: white;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  width: 80vw;;
  justify-content: space-between;
  margin-left: 9vw;
  margin-right: 9vw;
}

.content p {
  font-size: 2rem;
}

#text1{
 font-size: 50px;
 filter: drop-shadow(6px 6px 4px #13131388); 
 margin-bottom: 10px;
}

#text2{
 font-size: 20px;
filter: drop-shadow(4px 4px 2px #13131377); 
width: 100%;
color: white;
}

#redirectButton {
  align-self: flex-end;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 20px;
  color: white;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(10px 10px 8px #13131388); 
}


#redirectButton:hover:enabled {
  color: #00ff7f;
  border-color: #00ff7f;
  transform: scale(1.01);
}

.icon-list {
  display: flex;
  list-style-type: none;
  z-index: 1;
  gap: 6vw;
  width: 90vw;  
  text-align: center;
  align-self: flex-start;
  margin-left: 9vw;
  margin-right: 9vw;
}

.icon-list li {
  cursor: pointer;
  color: white;
  height: 15vh;
}

.icon-list a {
  width: 150px;
  height: 300px;
  transition: all 0.4s ease;
  text-decoration: none;
  color: white; 
  font-size: 60px;
  font-weight:lighter;
  -webkit-user-select: none; /* Safari */        
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
filter: drop-shadow(7px 7px 4px #13131388); 
}

.icon-list a:hover {
  color: var(--green);
}


 /* CONTACTO */


 #main-contact {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--bgcolor);
  overflow: hidden;
  height: fit-content;  
}

.icon-list a.active {
  color: var(--green); /* When clicked, change color to green */
}

.contact-box { 
  margin: 0px 0px 10px 0px;
  display: flex;
  flex-wrap: wrap;
}

.contact-links, .contact-form-wrapper {
  width: 100%;
  padding: 30px 0px 0px 0px;

}


.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

}
.contact-form-wrapper {
 border-radius: 0 10px 10px 0;
 


}

@media only screen and (max-width: 800px) {
  .contact-links, .contact-form-wrapper {
    width: 100%;
  }
  
  .contact-links {
    border-radius: 10px 10px 0 0;
    border-bottom: 0px;
  }

  .contact-form-wrapper {
    border-radius: 0 0 10px 10px;
  }
}

@media only screen and (max-width: 400px) {
  .contact-box {
    width: 95%;
    margin: 8% 5%;
  }
}
 

.rslink:nth-child(2){
  margin-bottom: 3px;
}

.link {
  margin: 10px;
  cursor: pointer;
}


.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  padding: 10px;
  width: fit-content;
  filter: invert(1);
}

.link {
  margin: 10px;
  cursor: pointer;
}


/* LOS ICONOS DE REDES */

.rsimg {
  width: 30px;
  height: 30PX;
  /* filter: 
    hue-rotate(220deg)
    drop-shadow(2px 4px 4px #0006); */
  transition: 0.2s;
  user-select: none;
  margin-left: 50px;
  margin-right: 50px;
  
}

.rsimg:hover {
  transform: scale(1.1, 1.1);
}

.rsimg:active {
  transform: scale(1.1, 1.1);
  filter: 
    hue-rotate(220deg)
    drop-shadow(2px 4px 4px #222)
    sepia(0.3);
}

.form-item {
  position: relative;
  margin-bottom: 20px;
}

label, input, textarea {
  font-weight: 500;

}

label {
  position: absolute;
  top: 10px;
  left: 2%;
  color: var(--bgcolor);
  font-size: clamp(14px, 1.5vw, 18px);
  pointer-events: none;
  user-select: none;
}

input, textarea {
  width: 100%;
  outline: 0;
  border: 1px solid var(--green);
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 12px;
  border: 2px solid var(--bgcolor); 
  color: var(--bgcolor);
  background-color: var(--green);
  resize: none;
}

.messagebox{
  height: 150px;
}

input:focus+label, 
input:valid+label, 
textarea:focus+label, 
textarea:valid+label {
  font-size: clamp(13px, 1.3vw, 16px);
  color: white;
  top: -25px;
  transition: all .225s ease;
}

.submit-btn {
  border: 2px solid black; 
  color: var(--bgcolor);
  background-color: var(--green);
  filter: drop-shadow(1px 1px 2px #0003);
  display: block;
  padding: 15px 70px;
  margin: 2px auto;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 1.5em;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
  font-weight: 800;
}

.submit-btn:hover {
  transform: scale(1.1, 1.1);

  filter: drop-shadow(3px 3px 4px #0003);
  background-color: black;
  color: var(--green);
}

.submit-btn:active {
  transform: scale(1.1, 1.1);
  filter: sepia(0.5);
}


footer{
  position: relative;
  width: 100%;
  height: 30px;
  background-color: transparent;
  display: flex;
  justify-content: center; 
  align-items: flex-end;
  overflow: hidden;
  z-index: 2;
  bottom: 10px;
}

#footer-copy{
  color: white;
  font-size: 12px;  
  }


  #footer-copy-mobile{
    display: none;
    color: white;
  font-size: 14px;
  margin-bottom: 10px;
  height: 20px;
  margin-top: 10px;
  }




  /* DARK LIGHT MODE */




  #dark{
    transform: scale(60%);
    float: right;
    top: -8px;
    position: relative;
    margin-left: 30px;
    display: none;
  }
  
  #caja{
     background-color: #FFFCF2;
     position: relative;
     width: 80px;
     height: 40px;
     box-shadow: inset 4px 4px 6px #d5d2ca,
                 inset -4px -4px 6px #fffdf6;
     margin: 0px auto;
  
     border-radius: 30px;
     cursor: pointer;
   }
  
   .switch{
     position: absolute;
     top: 0;
     left: 0;
     width: 40px;
     height: 40px;
     transform: scale(.7);
     background-color: var(--bgcolor);
     border-radius: 25px;
    
     animation: off 0.6s forwards;
   }
  
   
  
   #caja.active  .switch {
     animation: on 0.6s forwards;
   }
  
   #caja.active  {
    background-color: var(--bgcolor);
    box-shadow: 3px 3px 8px #525252,
    -3px -3px 8px #fffdf647;
  
  
  }
  .switch.active {
    background-color: white;
   }
  
  
  
  
  @keyframes off {
    0% {
       left: 40px;
     }
    100% {
       left:0px;
     }
   }
  
  @keyframes on {
   0% {
      left: 0;
    }
   100% {
      left:40px;
    }
  }
  
  
/* {MEDIA QUERY 320 */

  @media only screen and (max-width:320px){
    
   *{
    box-sizing: border-box;
  } 

  #cabecera{
    overflow: hidden;
  }

  #texto_cabecera{
    font-size: 22px;
    margin: 0%;
  }  
    
  #menu_ul{
    display: block;
    float: right;
    margin-left: 0px;
    margin-right: 0px;
    width: 50%;
  }

  #menu_ul > li:nth-child(1){
  display: NONE;
  }

  #menu_ul > li:nth-child(3){
    display: NONE;
    }

  .arrow{
    left: 44vw;
  }

  #back_arrow{
    float: left;
    color: white;
     font-size: 22px;
     text-decoration: none;
     padding: 16px;
     font-family: myFirstFont;
     transform: rotate(90);
     position: fixed
  }

  #dark{
    display: none;
  }
  


  /* WORK */

 #work{
  display: flex;
  justify-content: center;
  
 }

 #work_gallery{
  display: none;
 }

 #work_list{
  width: 80%;
  margin-left: 8%;
 }

  #work_header{
    position: initial;
    font-size: 30px;
    width: 70%;
    padding-top: 25%;
  }
  
  .link {
    font-size: 15px;
    height: 15%;
    background-color: transparent;
    padding-top: 22px;
  }

  .link:before{
    left: -104%
  }


/* GALLERY */

  #gallery{
    flex-wrap: wrap;
  }

  #image-track{
    filter: none;
    transition: all 1s ease !important;
  }

  #gallery_text{
    
    display: none;
  }
  #gallery_text2{
    
    display: none;
  }

  #gallery-text-mobile{
    display: block;
    align-self: flex-start;
    margin-top: 20%;
    color: white;
    font-size: 20px;
    
  }

  #gallery-text-mobile2{
    display: block;
    align-self: flex-end;
    margin-bottom: 20%;
    color: white;
    font-size: 20px;
    
  }

  /* CONTACT */

  #contact{
    height: 95vh;
  }

  .contact-box{
    transform: scaley(80%);
    
  }

  .contact-links{
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

  
  .contact-links > h2{
    font-size: 40px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .links{
    margin:0;
    padding-top: 10px;
  }

  .rslink{
    width: 100%;
  }

  .rsimg{
    height: 100% ;
    width: 100% ;
  }

  .contact-form-wrapper{
    padding: 5%;
    padding-bottom: 5%;
    padding-top: 10%;
    border-left: 0;
    border-bottom: 0;
    border-right: 0;
  }

  .submit-btn{
    width: 100%;
    padding: 10px 0px;
    text-align: center;
  }

  .form-item{
margin-bottom: 12px;
  }

  .form-item > label{
    margin-left: 10px;
  }

  /* FOOTER */

  #footer-copy{
    display: none;
  }

  #footer-copy-mobile{
    display: block;

  }

}


  @media only screen and (max-width:770px){
     

    #logo{
      font-size: 18px;
    }

    #menu_ul > li > a{
      font-size: 18px;
      padding-left: 10px;
    }

    #dark{
      margin-left: 10px;
    }
  }

  @media only screen and (max-width:664px){

    #menu_ul > li:nth-child(1), #menu_ul > li:nth-child(3), #menu_ul > #dark{
      display: none;
    }

    .link{
      font-size: 25px;
    }

    #gallery_text{
    
      display: none;
    }
    #gallery_text2{
      
      display: none;
    }
  
    #gallery-text-mobile{
      display: block;
      align-self: flex-start;
      margin-top: 20%;
      color: white;
      font-size: 20px;
      width: 100%;
      
    }
  
    #gallery{
      flex-wrap: wrap;
    }

    #gallery-text-mobile2{
      display: block;
      align-self: flex-end;
      margin-bottom: 20%;
      color: white;
      font-size: 20px;
      width: 100%;
      
    }

    .contact-links > h2{
      font-size: 3em;
    }
  }

  /*ABOUT*/

  #about-body{
    margin: 0; height: 100%; overflow: hidden
  }

  .foto{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .foto img{ 
    position: absolute;
    top: -150px;
    filter: brightness(0.8);
  }

  .menu_about li a {
    color: #FFFCF2!important;
  }

  .logo_about{
    color: #FFFCF2 !important;
  }

  .about_links{
    position: fixed;
    bottom: 0%;
    left: 9%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
  }

  .about_rslink{
    width: 200px;
  }

  .about_rsimg{
    height: 30px;
    width: 30px;
    filter: invert(1) brightness(0.9) !important;
  }

  #text-about{
    position: absolute;
    left: 9vw;
    top: 20vh;
    width: 36vw;
    height: 50VH;
    filter: drop-shadow(2px 2px 1px #1313136b);
  }

  #text-about p{
    color: #FFFCF2;
    font-size: 20px;
    /* 
    mix-blend-mode: difference;
    filter: invert(1); */
  }
  

  /*CONTACT*/
  #contact{
    display: flex;
    flex-wrap: wrap; 
    height: 100vh;
    justify-content: center;
    align-items: center;
  }

  .contact_links{
    position:absolute;
    bottom: 7vh;
    width: 100vw;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-right: 50px;
  }

  .contact_rslink{
    margin: 9vw;
    margin-bottom: 0;
    transition: all .3s ease;
    mix-blend-mode: difference;
  }

  .contact_rslink:hover{
    transform: scale(1.2);
  }

  .contact_rsimg{
    height: 30px;
    filter: invert(1);
  }

  .contact-text-box{
    width: 83vw;
  }

  .contact-text{
    font-size: 120px;
    text-align: left;
    color: #FFFCF2;
  }

  #toggler{
    position: absolute;
    width: 100vw;
    height: 100vh;
    padding: 35vw;
    top: 0;
    left: 0;
    background-color: #ffffff;
    opacity: 0;
    z-index: 0;
  }

  #toggler:hover{
    opacity: 1;
    mix-blend-mode: difference;
  }

  .contact_header{
    height: 130px;
    mix-blend-mode: difference
  }

  @media only screen and (max-width:1081px){
    
    #text-about p {
      font-size: 16px;
  }
    #text-about{
      width: 45vw;
    }
    .link{
      padding: 0;
      font-size:35px;
    }

    #gallery{
      display: none
    }

  }

  @media only screen and (max-width:720px){
  #work{
    display: flex;
    justify-content: center;
  }
  #work_gallery{
    display: none;
  }

  #work_list{
    width: 80%;
  }

  #text-about{
    width: 100vw;
  }
  .about_links{
    bottom: 40%;
  }

}

.carousel {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}

.subtext {
  color: white;
  font-size: 1.2rem;
  margin: 20px 0;
  opacity: 0; /* Oculto por defecto */
  transition: opacity 0.5s ease;
  text-align: left;
}



.carousel-item.active .subtext,
.carousel-item.active .btn {
  opacity: 1; /* Muestra cuando es activo */
}

.carousel-item.active{
  border-color: #00ff80c4;
}

.carousel-item.active .num{
  color: #00ff80c4;
}

.carousel-item.active .title{
  color: c
}

.carousel-item {
  --items: 10;
  --width: clamp(150px, 30vw,  300px);
  --height: clamp(200px, 40vw,  400px);
  --x: calc(var(--active) * 800%);
  --y: calc(var(--active) * 100%);
  --rot: calc(var(--active) * 120deg);
  --opacity: calc(var(--zIndex) / var(--items) * 3 - 2);
  overflow: hidden;
  position: absolute;
  z-index: var(--zIndex);
  width: var(--width);
  height: var(--height);
  margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5);
  border-radius: 2%;
  top: 50%;
  left: 50%;
  user-select: none;
  transform-origin: 0% 100%;
  box-shadow: 0 10px 50px 10px rgba(0, 0, 0, .5);
  pointer-events: all;
  transform:  translate(var(--x), var(--y)) rotate(var(--rot)) ;
  transition: transform .8s cubic-bezier(0, 0.02, 0, 1);
  filter: drop-shadow(10px 10px 4px #1313133b); 
  background-color: rgba(31, 31, 31, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.205);

  .carousel-box {
    position: absolute;
    display: flex;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
    opacity: var(--opacity);
    font-family: 'Orelo-sw-db', serif;
    justify-content: right;
    padding: 20px 20px;
    align-items:start;

    &:before {
      content: '';
      position: absolute;
      z-index: 1;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .5));
    }
  }

  .title {
    position: absolute;
    z-index: 1;
    color: #fff;
    bottom: 20px;
    left: 20px;
    transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
    font-size: clamp(20px, 3vw, 30px);
    text-shadow: 0 4px 4px rgba(0, 0, 0, .1);
  }

  .num {
    position: absolute;
    z-index: 1;
    color: #fff;
    top: 10px;
    left: 20px;
    transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
    font-size: clamp(20px, 10vw, 80px);
  }
  
  .btn {
  position: relative;
  font-size: 42px;
  border: none;
  background-color: transparent;
  color: var(--green);
  border-radius: 3px;
  cursor: pointer;
  opacity: 0; /* Oculto por defecto */
  transition: opacity 0.5s ease;
  top: 17px;
  right: 20px;
  text-decoration: none;
  background-color: rgba(31, 31, 31, 0.44);
  border: 1px solid #00ff80c4;
  padding: 0px 20px;
  z-index: 1;
  }

  

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }
}

.btn:hover{
    transform: scale(1.1);
    transition: all .3s ease-in-out;
  }