:root {
    --primary-color: #000000; 
    --secondary-color: #313131; 
    --white-color: #fff;
    --font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 100px;
  color: var(--white-color);
  position: fixed;
  width: 100%;
  transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    z-index: 9999;
}

.logo img {
    height: 100px;
    width: auto;
    transition: height 0.5s ease;
}
.navbar.scrolled .logo img {
  height: 50px;
}

.nav {
  display: flex;
  transition: all 0.3s ease;
}

.nav a {
  color: var(--white-color);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 20px;
  transition: background-color 0.5s ease;
}

.nav a:hover {
  background-color: #686868;
}

.hamburger {
  display: none;
}

#hero {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0.8) 100%),
      url('../images/hero-image.webp');
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    color: var(--white-color);
    overflow: hidden;
    padding: 25px 50px;
}

#hero.animate {
    transform: translateX(-100%);
}

#hero.show-animate .animate {
    transform: translateX(0);
}

#hero h1 {
    position: relative;
    font-size: 4em;
}

#hero p {
    position: relative;
    font-size: 2.5em;
    margin-top: 20px;
    font-weight: 600;
}


/*Misión y Quiénes somos*/
#about {
    color: var(--white-color); 
    padding: 25px 50px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-items: center;
    justify-content: center;
}

.collapse-container {
    max-width: 900px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria sutil */
}

.collapse-toggle {
    background: none;
    border: none;
    width: 100%;
    padding: 20px 0;
    text-align: left;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.collapse-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Ligero hover */
}

.collapse-toggle h2 {
    font-size: 2.2em;
    margin: 0;
}

.toggle-icon {
    font-size: 2em;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.collapse-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg); /* Gira el '+' a 'x' */
}

.collapse-content {
    max-height: 0; /* Oculto por defecto */
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; /* Animación más compleja */
    opacity: 0;
    padding-bottom: 0;
}

.collapse-toggle[aria-expanded="true"] + .collapse-content {
    max-height: 500px; /* Suficiente para el contenido, ajustar si es necesario */
    opacity: 1;
    padding-bottom: 40px;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    align-items: center;
}

.text-block {
    flex: 1;
    line-height: 1.8;
    font-size: 1.1em;
}

.image-block {
    flex: 1;
    text-align: center;
}

.image-block img {
    max-width: 100%;
    height: 350px;
    display: block;
    border-radius: 5px;
    filter: grayscale(100%);
}

.text-left .text-block { order: 0; }
.text-left .image-block { order: 1; }

.text-right .text-block { order: 1; }
.text-right .image-block { order: 0; }
/* 
section .animate {
    opacity: 0;
    filter: blur(5px);
    transition: 1s;
}
section.show-animate .animate {
    opacity: 1;
    filter: blur(0);
} */

#services {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* height: 70vh; */
    overflow: hidden;
    padding: 25px 50px;
}

/* #services .animate {
    transition: 1s;
    transform: translateX(100%);
}

#services.show-animate .animate {
    transform: translateX(0);
} */


#services .services-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    padding: 20px;
}
#services .services-container div {
    display: flex;
    flex-direction: column;
    gap:20px;
}

#services .services-container div p {
    font-size: 1em;
    transition-delay: calc(.2s * var(--i));
}

#services, #projects, #brands {
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


#services .section-title, 
#projects .section-title, 
#brands .section-title {
    font-size: 3em;
    text-align: center;
}

#projects > p,
#brands > p {
    font-size: 1.5em;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}


#brands {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 70vh;
    background-color: var(--color-primario);
    overflow: hidden;
    width: 100%;
}

#brands .images img {
    max-width: 200px;
    margin: 30px 30px;
    transform: translateX(-100%);
    transition-delay: calc(.1s * var(--i));
}

#brands.show-animate .images img {
    transform: translateX(0)
}





.slide-container{
  max-width: 1120px;
  width: 100%;
  padding: 40px 0;
}
.slide-content{
  margin: 0 40px;
  overflow: hidden;
  border-radius: 25px;
}
/* .card{
  border-radius: 25px;
  background-color: #FFF;
} */
.image-content,
.card-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
}
.image-content{
  /* position: relative; */
  row-gap: 5px;
  padding: 25px 0;
}
.overlay{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  /* background-color: #4070F4;
  border-radius: 25px 25px 0 25px; */
}
/* 
.overlay::before,
.overlay::after{
  content: '';
  position: absolute;
  right: 0;
  bottom: -40px;
  height: 40px;
  width: 40px;
  background-color: #4070F4;
}
.overlay::after{
  border-radius: 0 25px 0 0;
  background-color: #FFF;
} */
.card-image{
  position: relative;
  height: 250px;
  width: 250px;
  /* height: 150px;
  width: 150px; */
  /* border-radius: 50%; */
  background: #FFF;
  padding: 3px;
}
.card-image .card-img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  /* border-radius: 50%; */
  border: 2px solid #ffffff;
}
.name{
  font-size: 18px;
  font-weight: 500;
  color: var(--white-color);
}
.description{
  font-size: 14px;
  color: #707070;
  text-align: center;
}
.button{
  border: none;
  font-size: 16px;
  color: #FFF;
  padding: 8px 16px;
  background-color: #ffffff;
  border-radius: 6px;
  margin: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.button:hover{
  background: #ffffff;
}

.swiper-navBtn{
  color: #fdfdfd;
  transition: color 0.3s ease;
}
.swiper-navBtn:hover{
  color: #ffffff;
}
.swiper-navBtn::before,
.swiper-navBtn::after{
  font-size: 35px;
}
.swiper-button-next{
  right: 0;
}
.swiper-button-prev{
  left: 0;
}
.swiper-pagination-bullet{
  background-color: #ffffff;
  opacity: 1;
}
.swiper-pagination-bullet-active{
  background-color: #ffffff;
}









.logo-carousel {
    width: 90%;
    max-width: 1000px;
    overflow: hidden;
    /* La máscara crea el efecto de difuminado en los bordes */
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
    mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
}

.logo-scroller {
    display: flex;
    gap: 3rem; /* Espacio entre logos */
    padding: 1rem 0;
    /* La animación es la que hace la magia */
    animation: scroll 10s linear infinite;
}

.logo-scroller:hover {
    animation-play-state: paused; 
    /* Pausa la animación al pasar el mouse */
}

.logo-scroller img {
    height: 50px; /* Normaliza la altura de todos los logos */
    width: auto;
    filter: grayscale(100%); /* Efecto profesional en blanco y negro */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-scroller img:hover {
    filter: grayscale(0%); /* Restaura el color al pasar el mouse */
    opacity: 1;
    transform: scale(1.1);
}

/* Definición de la animación de scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Mueve la pista hacia la izquierda exactamente la mitad de su ancho total */
        transform: translateX(-50%);
    }
}



footer {
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #000;
    color: #ffffff;
}

.whatsapp-float, .instagram-float {
    position: fixed;
    right: 30px;
    z-index: 999;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float {
    bottom: 30px;
}

.instagram-float {
    bottom: 80px;
}

.whatsapp-float img, .instagram-float img  {
    width: 45px;
    height: 45px;
    filter: invert(1);
}







@media (max-width: 768px) {

    .navbar {
        padding: 20px;
        padding-bottom: 5px;
    }

    .logo img {
        height: 50px;
        width: auto;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);;
        text-align: center;
        gap:0;
    }

    .nav a {
        padding: 15px;
        border-top: 1px solid var(--secondary-color);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--white-color);
    }

    .nav.active {
        display: flex;
    }

    #hero {
        padding: 20px;
        text-align: center;
    }

    #hero h1 {
        font-size: 2.5em;
    }

    #hero p {
        position: relative;
        font-size: 1.5em;
        margin-top: 20px;
    }

    
#services .section-title, 
#projects .section-title, 
#brands .section-title {
    font-size: 2.3em;
}
#projects > p,
#brands > p {
    font-size: 1.2em;
}
    /*Misión y Quiénes somos*/
    #about {
        padding: 20px;
    }

    .content-wrapper {
        flex-direction: column;
    }
    .text-left .text-block,
    .text-right .text-block {
        order: 0; /* Resetea el orden para que el texto siempre vaya primero en móviles */
    }
    .text-left .image-block,
    .text-right .image-block {
        order: 1;
    }

    #services {
        /* height: 100vh; */
        padding: 40px 20px;
    }
    /* #services .animate {
        transition: 1s;
        transform: translateX(300%);
    } */

    #services img {
        width: 200px;
        height: auto;
    }
    #services .services-container {
        display: flex;
        flex-direction: column;
    }
    #services .services-container div {
        gap: 10px;
    }

    #projects {
        /* height: 100vh; */
        padding: 40px 20px;
    }

    .slide-content{
    margin: 0 10px;
  }
  .swiper-navBtn{
    display: none;
  }

  

    .whatsapp-float {
        bottom: 10px;
        right: 10px;
    }

    .instagram-float {
        bottom: 50px;
        right: 10px;
    }
}