*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root{
    --primary-blue: #0b2560;
    --secondary-blue: #173b8f;
    --primary-red: #c73027;
    --secondary-red: #f82a20;
    --primary-gray: #656565;
    --primary-font:'Roboto', sans-serif;
    --primary-white: #eee;
    --secondary-white: #d7d5d5;
    --primary-blackblue: #22252d;
    --secondary-blackblue: #4e4e4e;
}

html, body {
    overflow-x: hidden;
}

/* Chrome, Edge y Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-blue);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Firefox */
* {
  
  scrollbar-color: var(--secondary-blue) #fff;
}

body {
  margin: 0;
  font-family: var(--primary-font);
}

/* icon whatsapp*/
/* Botón flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 9999;

  animation:
    appear 0.6s ease forwards,
    vibrate 5s infinite 2s;
}

/* Círculo */
.whatsapp-inner {
  width: 65px;
  height: 65px;
  background: var(--secondary-blue);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover */
.whatsapp-inner:hover {
  transform: scale(1.15);
  background: var(--primary-blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Imagen */
.whatsapp-inner img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Aparición */
@keyframes appear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.7);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Vibración suave */
@keyframes vibrate {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  2% {
    transform: translateX(-3px) rotate(-4deg);
  }

  4% {
    transform: translateX(3px) rotate(4deg);
  }

  6% {
    transform: translateX(-3px) rotate(-4deg);
  }

  8% {
    transform: translateX(3px) rotate(4deg);
  }

  10% {
    transform: translateX(0) rotate(0deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}
/* fin icon whatsapp */

button h3{
    font-family: var(--primary-font);
}


/* Ajustes generales */
.width-xl{
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.padding-xl{
    padding: 15px max(35px, 5%);
}

.margin-xl{
    margin: 100px 0;
}

@media(max-width: 600px){
    .margin-xl{
        margin: 80px 0;
    }

    .padding-xl{
        padding: 20px 25px;
    }
}

h2{
    font-size: 2rem;
    color: var(--primary-blackblue);
    line-height: 2.7rem;
}

h1 span, h2 span{
    color: var(--primary-red);
}

p{
    color: var(--secondary-blackblue);
    line-height: 1.5rem;
   
}

@media(max-width: 600px){
    h2{
        font-size: 1.5rem;
        line-height: 2.3rem;
    }


    p{
        font-size: 14px;
    }
}

/* NAVBAR BASE */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 1000;
  transition: background-color 0.4s ease;
  
}

.navbar.menu-active {
    background: #fff;
}

.navbar-into{
display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  
}


/* TRANSPARENTE INICIAL */

.navbar.transparent {
  background: transparent;
}

/* FONDO BLANCO AL SCROLL */

.navbar.scrolled {
  background: white;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}



/* LEFT SIDE */

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  
}




.logo , .logo-contorno{
  height: 50px;
}





.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.line1 {
  font-weight: bold;
  font-size: 18px;
  color: white;
}

.line2 {
  font-size: 14px;
  color: rgb(198, 198, 198);
}

@media(max-width: 600px){
    .logo , .logo-contorno{
  height: 40px;
}

.line1{
    font-size: 16px;
   
}
}

/* Configuracion para que funcione el hero con navbar transparente*/

.nav-left.reverse .logo-text .line1 {
    color: var(--primary-blue);
}

.nav-left.reverse .logo-text .line2 {
    color: var(--primary-red);
}

/* Configuracion por si se abre el menu en mobile*/

.navbar-into.menu-open .nav-left .logo-text .line1 {
    color: var(--primary-blue);
}

.navbar-into.menu-open .nav-left .logo-text .line2 {
    color: var(--primary-red);
}

/* CENTER SIDE */

.nav-center {
  display: flex;
  gap: 30px;
}

.nav-center a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.2s;
  position: relative;
    padding-bottom: 5px;

}

.nav-center.reverse a{
    color:  var(--primary-blue);
}

/* Configuracion para que los colores funcionen cuando se abre el menu en mobile*/
.navbar-into.menu-open .nav-center a{
    color: var(--primary-blue);
}


/* Mantener activo la opcion*/
.nav-center a.active{
    color: var(--primary-red);
}


.nav-center a.active::after{
    transform: scaleX(1);
}


.nav-center a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -5px;
  width: calc(100% + 10px);
  height: 3px;
  background: var(--primary-red);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Animación al hover */
.nav-center a:hover::after {
  transform: scaleX(1);
}


.nav-center a:hover {
  color: var(--primary-red);
}

/* Right Side*/

.nav-right{
    display: flex;
    align-items: center;
    
}
.nav-right a{
    text-decoration: none;
    display: flex;
    gap: 10px;
    align-items: center;
    height: 42px;
    background-color: var(--secondary-blue);
    color: var(--primary-white);
    padding: 0px 30px;
}

.nav-right a p{
    margin: 0;
    font-size: 15px;
    margin-top: 1px;
    color: var(--primary-white);
}

.nav-right a img{
    width: 15.5px;
}

/* Hover y animaciones boton del nav*/

.nav-right a:hover{
    transform: scale(105%);
    background-color: var(--primary-red);
    transition: transform 0.3s ease;
}


/* Activamos animación en hover del telefono */
.nav-right a:hover img{
    transition: transform 0.3s ease;
}

.nav-right a:hover img {
  animation: vibrar 0.6s ease-in-out;
}

/* Keyframes */
@keyframes vibrar {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-10deg); }
  40%  { transform: rotate(10deg); }
  60%  { transform: rotate(-8deg); }
  80%  { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

/*Navbar mobile*/

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-white);
  transition: 0.3s;
}

.menu-open .menu-toggle span{
    background: var(--primary-blue);
}


.navbar-into.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-into.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar-into.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE */
@media (max-width: 850px) {

  .nav-center{
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
   
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding-bottom: 25px;
    padding-top: 20px;

    transform: translateY(-200%);
    transition: 0.3s ease;
    z-index: -1;
   
  }

  .nav-right {
    position: absolute;
    display: flex;
    justify-content: center;
    top: 273px;
    left: 0;
    width: 100%;
    transform: translateY(-800%);
    transition: 0.3s ease;
    z-index: -1;
  }


  .nav-center.active, .nav-right.active {
    transform: translateY(0);
    background-color: white;
  }

  .nav-right.active {
    padding: 25px 0;
  }

  /* configuracion para menu */

  .navbar-into.menu-open{
    background-color: white;
  }

  .menu-toggle {
    display: flex;
  }

  
.menu-toggle.white-burguer span {
  
  background: var(--primary-blue);
 
}

  
}


/* Footer */

.footer {
  background-color: #0b2560;
  color: var(--primary-white);
  padding-top: 60px;
  padding-bottom: 30px;
  position: relative;

  background-image: url("../assets/footer_fondo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

.footer p{
    color: var(--primary-white);
}

/* Overlay para controlar opacidad */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 96, 0.40);
  z-index: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
  padding-bottom: 55px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}



/* Columnas */
.footer-column {
  display: flex;
  flex-direction: column;
}

/* Divisores verticales */
.footer-column:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.2);
  padding-right: 20px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-column h3 {
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column a {
  color: #eee;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  color: #c73027;
}

/* Address */
.address p{
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.address img{
    width: 20px;
    margin-right: 10px;
}

/* Social */
.social-links {
  display: flex;
  gap: 25px;
}

.social-links img {
  width: 22px;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.2);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}




.footer-retro{
    position: absolute;
    bottom: 0;
    left: -80px; /* empieza fuera de pantalla */
    width: 65px;
    transform: scaleX(-1);
    animation: retroMove 20s linear infinite;
}

@keyframes retroMove {
    from {
        left: -80px;
    }
    to {
        left: 100%;
    }
}



/* Footer responsive*/
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-column {
    border-right: none !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .social-links{
    margin-bottom: 20px;
    gap: 35px;
  }

  .social-links img{
    width: 30px;
  }
}

/* Hero section */

.hero {
  position: relative;
  width: 100%;
  height: 100dvh; /* pantalla completa */
  overflow: hidden;

}


.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Hero IMAGE*/

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}


/* Overlay oscuro */


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.65) 20%,
    rgba(0, 0, 0, 0.58) 38%,
    rgba(0, 0, 0, 0.42) 55%,
    rgba(0, 0, 0, 0.28) 68%,
    rgba(0, 0, 0, 0.14) 80%,
    rgba(0, 0, 0, 0.05) 92%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

@media (max-width: 600px) {
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0.3) 30%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.3) 60%,
      rgba(0, 0, 0, 0.3) 70%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

/* Contenido encima */

.hero-into{
    display: flex;
    align-items: center;
    height: 100%;
}




.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap:55px;
  color: white;
  text-align: left;
  width: 60%;
}

    .hero-content h1 {
  font-size: 2.6rem;
}


#hero-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (min-width: 1000px){
    .hero-content h1 {
  font-size: 4.1rem;
 
}

}

.hero-content p {
  font-size: 18px;
  color: var(--primary-white);

  margin-bottom: 15px;
}

.hero-btns{
    display: flex;
    gap: 40px;
}

.hero-btn {
  background: var(--primary-red);
  padding:  17px 30px ;
  border-radius: 4px;
  transition: 0.3s;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-decoration: none;
   transition: transform 0.3s ease-in-out;
}


.hero-btn:nth-child(2) {
  background-color: var(--secondary-blue);
}

.hero-btn:nth-child(2):hover {
  transform: scale(1.05);
  background-color: var(--primary-blue);
}

.hero-btn:nth-child(1):hover {
  transform: scale(1.05);
  background-color: var(--secondary-red);
}




/* Hero Mobile*/
@media(max-width: 850px){
    .hero-content {
  text-align: center;
  width: 80%;
  margin: auto;
}

}

@media(max-width: 550px){

    .hero-content{
        width: 100%;
    }
    .hero-btns{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .hero-btn{
        width: 100%;
    }

    .hero-content p{
        margin-bottom: 5px;
        font-size: 16px;
    }

    .hero-content{
        margin-top: 20px;
        gap:40px;
    }

    .hero-content h1{
        font-size: 2.4rem;
    }

    
}

.hero-btn p{
    color: white;
   
    margin-bottom: 0;
}

.hero-btn:first-child img{
    width: 23px;
}

.hero-btn:last-child img{
    width: 18px;
}


/* Animacion del hero */
.hero-content{
    opacity:0;
    transform:translateY(40px);
    animation:heroFadeUp 1.2s ease forwards;
    animation-delay:.4s;
}

.hero-content h1{
    opacity:0;
    transform:translateY(30px);
    animation:heroFadeUp 1s ease forwards;
    animation-delay:.6s;
}

.hero-content p{
    opacity:0;
    transform:translateY(30px);
    animation:heroFadeUp 1s ease forwards;
    animation-delay:0.8s;
}

.hero-btns{
    opacity:0;
    transform:translateY(30px);
    animation:heroFadeUp 1s ease forwards;
    animation-delay:1s;
}

@keyframes heroFadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}



/* Section Location*/

.top-title{
    color: var(--primary-blue);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
  
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.top-title img{
    width: 20px;
    margin-top: -1px;
}

.location-container{
    display: flex;
    gap: 40px;
   
    align-items: flex-start;
}

.location-img{
    width: 50%;
    position: relative;
   
   display: flex;
   justify-content: flex-end;
    
}

.location-img img{
    
    width: 95%;
        
    object-fit: cover;
    border-radius: 10px 10px 10px 10px;
    box-shadow: -30px 30px 0px 0px var(--primary-blue);
}

.disclaimer-img{
    position: absolute;
    bottom: -10px;
    left:10px;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 5px;
    padding: 30px 40px;
    border-top-right-radius: 10px;
}
.disclaimer-img span{
    color: var(--primary-white);
}  

.disclaimer-img span:first-child{
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 3px;
}

.disclaimer-img span:last-child{
    font-size: 18px;
  
}

.location-content{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 25px;

}

.disclaimer-content.first {
    margin-top: 10px;
}

.disclaimer-content{
    width: 100%;
   
     background-color: var(--primary-blue);
    border-radius: 8px;
    padding: 20px;
    color: var(--primary-white);
    display: flex;
    flex-direction: column;
    gap:10px;
   
}

.disclaimer-content p{
    color: var(--secondary-white);
}

.disclaimer-content div:first-child{
    display: flex;
    align-items: center;
    gap: 15px;
}

.disclaimer-content:last-child{
   
     background-color: var(--primary-red);
     
}

.decorative-circle{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-weight: 800;
}

.disclaimer-content:last-child .decorative-circle{
    background-color: var(--primary-blue);
}

/* Location Section Mobile */

@media(max-width: 1000px){
    .location-container{
        flex-direction: column;
        gap: 75px;
    }

    .location-img{
        width: 100%;
    }

    .location-content{
        width: 100%;
    }
}

@media(max-width: 600px){
    .disclaimer-img span:first-child {
    font-size: 22px;
     }


    .disclaimer-img span:last-child{
        font-size: 14px
    }

    .disclaimer-img{
        padding: 15px 25px;
    }

    .location-img img{
        width: 92%;
    }

    .location-img img{
        box-shadow: -20px 20px 0px 0px var(--primary-blue);
    }
}


/* Location Animation */
/* estado inicial */

.location-img,
.location-content{
    opacity:0;
    transform:translateX(60px);
    transition:all 1s ease;
}

.location-img{
    transform:translateX(-60px);
}


/* cuando aparece */

.location.show .location-img{
    opacity:1;
    transform:translateX(0);
}

.location.show .location-content{
    opacity:1;
    transform:translateX(0);
}


/* animacion escalonada del contenido */

.location-content h2,
.location-content p,
.disclaimer-content{
    opacity:0;
    transform:translateY(30px);
    transition:all .8s ease;
}

.location.show h2{
    opacity:1;
    transform:translateY(0);
    transition-delay:.2s;
}

.location.show .location-content p{
    opacity:1;
    transform:translateY(0);
    transition-delay:.4s;
}

.location.show .disclaimer-content.first{
    opacity:1;
    transform:translateY(0);
    transition-delay:.6s;
}

.location.show .disclaimer-content:not(.first){
    opacity:1;
    transform:translateY(0);
    transition-delay:.8s;
}



/* Grid Products */

.grid-products-container{
    display: flex;
    flex-direction: column;
    gap:40px;
}



.grid-products-content{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    
    gap: 20px;
}

.image-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:40px;
}

.grid-item{
    position: relative;
    background:white;
    box-shadow:10px 10px 0 var(--primary-blue);
    border-radius: 10px 10px 10px 10px;
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 300px;
    z-index: 1;
    
}



.grid-item::after{
    content:"";
    position:absolute;
    left: 25%;
    bottom:-10px;
    width:30%;
    height:10px;
    background:var(--primary-red);
    transform:skewX(-35deg);
    z-index:-1;
}

@keyframes slideDecor{

    0%{
        transform:skewX(-35deg) translateX(0);
    }
    

    50%{
        transform:skewX(-35deg) translateX(40px);
    }

    100%{
        transform:skewX(-35deg) translateX(0);
    }

}


.grid-item:hover::after{
    animation: slideDecor 0.6s ease;
}



.grid-item img{
    width:100%;
    height:100%;
    border-radius: 10px;
    object-fit: cover;
    display:block;
    
}

.grid-overlay{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:20px;
    background: rgba(44,43,43,0.6);
    color:white;
    text-align:center;
    border-radius:10px;
    transition:.3s;
}



.grid-overlay h3{
    margin:0;
    font-weight:600;
}

.grid-more{
    position:absolute;
    left:50%;
    transform:translate(-50%, 10px);
    bottom:10px;
    padding:10px 20px;
    background: var(--primary-blue);
    color:var(--primary-white);
    font-size:14px;
    border-radius:6px;
    opacity:0;
    transition:.3s;
   
}

.grid-item:hover .grid-more{
    opacity:1;
    transform:translate(-50%, -10px);
}

.grid-more:hover{
    background-color: var(--secondary-blue);
}

.grid-item:hover .grid-overlay{
    padding-bottom: 70px;
}


@media (max-width:768px){

    .image-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .grid-item{
    box-shadow:8px 8px 0 var(--primary-blue);
    }

    .grid-item::after{
        bottom:-8px;
        height:8px;
    }

    
     .grid-item .grid-overlay{
    padding-bottom: 20px;
}

 






}

@media(max-width: 600px){

    .grid-overlay{
        padding: 10px 0;
    }

    .grid-overlay h3{
        font-size: 18px;
        font-weight: 500;
    }

     .image-grid{
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }

       .grid-item .grid-overlay{
    padding-bottom: 70px;
    padding-top: 20px;
}

.grid-item .grid-more{
    opacity:1;
    transform:translate(-50%, -10px);
    padding: 10px 15px;
}


}




/* Animacion de grid */

/* estado inicial */

.grid-products-content .top-title,
.grid-products-content h2,
.grid-products-content p{
    opacity:0;
    transform:translateY(30px);
    transition:all .8s ease;
}

/* cuando aparece la seccion */

.grid-products.show .top-title{
    opacity:1;
    transform:translateY(0);
}

.grid-products.show h2{
    opacity:1;
    transform:translateY(0);
    transition-delay:.2s;
}

.grid-products.show p{
    opacity:1;
    transform:translateY(0);
    transition-delay:.4s;
}


/* cards */

.grid-item{
    opacity:0;
    transform:translateY(40px) scale(.96);
    transition:all .7s ease;
}

.grid-item.show{
    opacity:1;
    transform:translateY(0) scale(1);
}


/* Section */



/* Desktop */
.team-container{
    min-height: 600px;
   position: relative;
   display: flex;
   align-items: center;
}

.team-container-img{
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    z-index: -1;
    
    opacity: 0;
    transition: all 1s ease;
}

.team-container-img-mobile{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    z-index: -1;
    
    opacity: 0;
    transition: all 1s ease;
}

@media(max-width: 600px){
    .team-container-img{
        display: none;
    }

    .team-container-img-mobile{
        display: block;
    }
}

.team-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: linear-gradient(
    to bottom,
     rgba(8, 26, 69, 0.65),
    rgba(8,26,69,0.55),
    rgba(8,26,69,0.45),
    rgba(8,26,69,0.35)
  );
   
    z-index: 1;

     opacity: 0;
    transition: opacity 1.2s ease;
}


.team-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-content{
    position: relative;
    z-index: 2; /* arriba del overlay */
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 70px;
    padding: 50px;
    
}

/* TEXTO IZQUIERDA */
.team-text h2{
   
    margin-bottom: 25px;
    color: var(--primary-white);
}

.team-text p{
   
    color: var(--primary-white);
    
}

.team-btn{
    width: 100%;
    background-color: var(--primary-red);
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    text-decoration: none;
    padding:  15px;
    border-radius: 8px;

    transition: all 0.5s ease;
}

.team-btn img{
    width: 23px;
}



/* GRID DERECHA */
.team-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.team-item h3{
    
    margin-bottom: 10px;
    color: var(--primary-white);
}



.team-item p{
    
    color: var(--primary-white);
}

/* Middle screen */
@media (max-width: 992px){
    .team-content{
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-text{
        text-align: left;
    }

    .team-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 650px){
     .team-grid{
        grid-template-columns: repeat(1, 1fr);
    }

}

@media(max-width: 600px){
        .team-content{
    padding: 50px 30px;
    gap: 35px;
    }

    .team-grid{
        gap: 35px;
    }

    .team-item h3{
        font-size: 16px;
    }
}

/* Animacion Team Section*/

/* CONTENEDOR GENERAL */

.team-text a:hover{
    transform: scale(1.05);
    background-color: var(--secondary-red);
}

.team-container.show .team-container-img{
    opacity: 1;
    transform: scale(1); /* zoom out suave */
}


.team-container.show .team-container-img-mobile{
    opacity: 1;
    transform: scale(1); /* zoom out suave */
}

.team-container.show .team-overlay{
    opacity: 1;
}


.team-content{
    opacity: 0;
    transition: all 0.8s ease;
}

/* IZQUIERDA */
.team-text{
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(10px);
}

/* GRID */
.team-item{
    opacity: 0;
    transform: scale(0.8) translateY(40px);
}

.team-container.show .team-content{
    opacity: 1;
}

/* TEXTO IZQUIERDA */
.team-container.show .team-text{
    animation: slideBlurIn 0.9s ease forwards;
}

/* GRID ITEMS (cascade) */
.team-container.show .team-item:nth-child(1){
    animation: popCard 0.6s ease forwards;
    animation-delay: 0.3s;
}

.team-container.show .team-item:nth-child(2){
    animation: popCard 0.6s ease forwards;
    animation-delay: 0.45s;
}

.team-container.show .team-item:nth-child(3){
    animation: popCard 0.6s ease forwards;
    animation-delay: 0.6s;
}

.team-container.show .team-item:nth-child(4){
    animation: popCard 0.6s ease forwards;
    animation-delay: 0.75s;
}

@keyframes slideBlurIn{
    to{
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes popCard{
    0%{
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
    60%{
        transform: scale(1.05) translateY(-5px);
    }
    100%{
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Machinery*/

.machinery-container{
    display: flex;
    flex-direction: column;
    gap:20px;
    align-items: center;
    text-align: center;
}

.machinery-into-top{
    width: 100%;
    height: 100%;
    display: flex;
    gap:20px;
    align-items: stretch;

}

.machinery-into-top.first{
    margin-top: 5px;
}

.mit-left{
    width: 65%;
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
}

.mitl-img {
    width: 40%;
    height: 100%;
    object-fit: cover;

}


.mitl-content{
    width: 60%;
    height: 100%;
    background-color: var(--primary-blue);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 30px;
    gap: 20px;
    color: var(--primary-white);
}

.mitl-content p{
    color: var(--secondary-white);
}

.mitl-content div {
    display: flex;
    align-items: center;
    gap: 10px;    
}

.mitl-content div img{
    width: 20px;
    object-fit: cover;
}

.mit-left.second .mitl-content{
    background-color: var(--primary-red);
}


.mit-right{
    width: 35%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.mit-right::after{
    content: "";
    position: absolute;
    top: 0;
    inset: 0;
    background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.4)
  );
}

.mit-right img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Machinery mobile*/

@media(min-width: 1001px ){
    .machinery-into-top{
        max-height: 280px;
    }

    .mit-left{
        aspect-ratio: 1/0.5;
    }
}


@media(max-width: 1000px){
    .machinery-into-top{
        flex-direction: column;
    }



    .machinery-into-top:last-of-type{
        flex-direction: column-reverse;
    }

    .mit-left{
        width: 100%;
        flex-direction: column;
    }

    .mit-left:last-of-type{
        flex-direction: column-reverse;
    }

    .mitl-content{
        width: 100%;
        padding: 30px 30px;
    }

    .mitl-img{
        width: 100%;
    }

    .mit-right{
        width: 100%;
    }


}


/* Machinery animation */
/* titulo */

.machinery .top-title,
.machinery h2,
.machinery p{
    opacity:0;
    transform:translateY(30px);
    transition:all .8s ease;
}

/* cuando aparece */

.machinery.show .top-title{
    opacity:1;
    transform:translateY(0);
}

.machinery.show h2{
    opacity:1;
    transform:translateY(0);
    transition-delay:.2s;
}

.machinery.show > .machinery-container > p{
    opacity:1;
    transform:translateY(0);
    transition-delay:.4s;
}


/* bloques de maquinaria */

.machinery-into-top{
    opacity:0;
    transform:translateX(80px);
    transition:all 1s ease;
}

.machinery-into-top.first{
    transform:translateX(-80px);
}


/* cuando aparecen */

.machinery.show .machinery-into-top.first{
    opacity:1;
    transform:translateX(0);
    transition-delay:.6s;
}

.machinery.show .machinery-into-top:not(.first){
    opacity:1;
    transform:translateX(0);
    transition-delay:.9s;
}

.mitl-content h3,
.mitl-content p{
    opacity:0;
    transform:translateY(20px);
    transition:all .6s ease;
}

.machinery.show .mitl-content h3{
    opacity:1;
    transform:translateY(0);
    transition-delay:.2s;
}

.machinery.show .mitl-content p{
    opacity:1;
    transform:translateY(0);
    transition-delay:.35s;
}


/* Experiencia en Trituracion */



.faq-container{
    display:flex;
     gap:40px;
    align-items:stretch;
    
}

.faq-left{
    flex:1;
    
    display:flex;
    flex-direction:column;
    gap: 20px;
}





/* accordion */

.accordion{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-top: 10px;

}

.accordion-item{
    border-radius:6px;
    overflow:hidden;
}

.accordion-header{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:var(--primary-blue);
    border:none;
    padding:18px 20px;
    cursor:pointer;
}

.accordion-header h3{
    margin:0;
    font-size:18px;
    color:var(--primary-white);
    text-align: left;
}


.icon{
    font-size:22px;
    font-weight:bold;
    color:var(--primary-white);
}


/* open state */

.accordion-item.active .accordion-header{
    background: var(--primary-red);
}

.accordion-item.active h3{
    color:var(--primary-white);
}

.accordion-item.active .icon{
    color:var(--primary-white);
}

.accordion-content{
    max-height:0;
    overflow:hidden;
    
    transition:max-height .4s ease;
}

.accordion-item.active .accordion-content{
    border:3px solid var(--primary-red);
    border-top:none;
    max-height:250px;
}

.accordion-content p{
    padding:20px;
 
}


/* right image */

.faq-right{
    flex:1;
    display:flex;
     box-shadow:10px 10px 0 var(--primary-blue);
    border-radius: 10px 10px 10px 10px;
    position: relative;
   
    max-height: 100%;
}

.faq-right img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:10px;
    display:block;
 
    
}




.faq-right::after{
    content:"";
    position:absolute;
    left: 25%;
    bottom:-10px;
    width:30%;
    height:10px;
    background:var(--primary-red);
    transform:skewX(-35deg);
    z-index:1;
}

/* Animacion de porque elegirnos */
/* titulo y texto */

.faq-left .top-title,
.faq-left h2,
.faq-left > p{
    opacity:0;
    transform:translateY(30px);
    transition:all .8s ease;
}

.faq-section.show .top-title{
    opacity:1;
    transform:translateY(0);
}

.faq-section.show h2{
    opacity:1;
    transform:translateY(0);
    transition-delay:.2s;
}

.faq-section.show .faq-left > p{
    opacity:1;
    transform:translateY(0);
    transition-delay:.4s;
}


/* acordeon items */

.accordion-item{
    opacity:0;
    transform:translateY(40px);
    transition:all .7s ease;
}

.accordion-item.show{
    opacity:1;
    transform:translateY(0);
}


/* imagen derecha */

.faq-right{
    opacity:0;
    transform:translateX(80px);
    transition:all 1s ease;
}

.faq-section.show .faq-right{
    opacity:1;
    transform:translateX(0);
}


@media(max-width: 1000px){
    .faq-container{
        flex-direction: column;
    }

    .accordion-header h3{
    margin:0;
    font-size:16px; }
}

/* Animacion cambio de imagen*/

#faq-image{
    transition:opacity .4s ease, transform .6s ease;
}

.faq-right img{
    transform:scale(1);
}


/* CTA Section */



.cta-container{
  
    min-height: 569px;
   position: relative;
   display: flex;
   align-items: center;
 
}

.cta-container-img{
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    
    transition: all 1s ease;
}

.cta-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
      background: linear-gradient(
    to bottom,
     rgba(8, 26, 69, 0.75),
    rgba(8,26,69,0.65),
    rgba(8,26,69,0.55),
    rgba(8,26,69,0.45)
  );
    z-index: 1;

    opacity: 0;
    transition: opacity 1.2s ease;
}


.cta-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
.cta-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 60%;
    gap: 50px;
}

.cta-title{
    text-align: center;
    
}

.cta-title h2{
    color: var(--primary-white);
    margin-bottom: 50px;
    font-size: 40px;
}

.cta-title p{
    color: var(--secondary-white);
    font-size: 18px;
}
.cta-btns{
    display: flex;
    width: 80%;
    gap: 30px;
}

.cta-btns .hero-btn{
    transition: all 0.5s ease;
}


@media(max-width:1000px){
    .cta-content2{
        max-width: 100%;
        padding: 20px;
        gap: 50px;
    }

    .cta-title h2{
        margin-bottom: 50px;
    }
}



@media(max-width: 950px){
    .cta-btns{
        flex-direction: column;
    }

    .cta-btns .hero-btn{
        width: 100%;
    }

    .cta-container{

    min-height: 700px;
 }

 .cta-content{
         max-width: 75%;
    }


}


@media(max-width: 700px){
    .cta-btns{
        width: 100%;
    }

     .cta-title h2{
        font-size: 32px;
    }

    .cta-content{
         max-width: 85%;
    }
}

/* Cta Animation*/
/* Estado inicial (oculto) */
.cta-content {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s ease;
}

.cta-container.show .cta-container-img{
    opacity: 1;
    transform: scale(1); /* zoom out suave */
}

.cta-container.show .cta-overlay{
    opacity: 1;
}

.cta-title h2,
.cta-title p,
.cta-btns a {
    opacity: 0;
    transform: translateY(30px);
}

/* Cuando aparece */
.cta-content.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animaciones escalonadas */
.cta-content.show .cta-title h2 {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.cta-content.show .cta-title p {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.cta-content.show .cta-btns a:nth-child(1) {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.cta-content.show .cta-btns a:nth-child(2) {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* Keyframes */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.cta-btns .hero-btn:hover{
    transform: scale(1.05) !important;
    
}
