
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --color-principal: #ec3251;
    --color-secundario: #0d78be;
    --color-texto-titulos: #0d78be;
    --color-subrayado: #EE4461;
    --color-footer: #263238;

    --font-size-base: 1rem;
    --font-size-small: 0.875rem;
    --font-size-large: 1.25rem;
    --font-size-h1: 3rem;
    --font-size-h2: 1.625rem;
    --font-size-h3: 1.3125rem

}

.subrayado{
    position: relative;
    
    display: inline-block;   
}
  
.subrayado::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background-color: var(--color-subrayado);
      transform: scaleX(0);
      transform-origin: bottom right;
      transition: transform 0.6s ease-out;
}
.subrayado:hover::after{
    transform: scaleX(1);
    transform-origin: bottom left;
}

 
*{
    box-sizing: border-box;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main{
    flex-grow: 1;
    margin-top: 82px;
}


footer{
    background-color:var(--color-footer);
}
header {
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.7s, box-shadow 0.7s, opacity 0.7s;
  }
  
  header.abajo {
    /*rgba(255, 255, 255, 0.5) Transparente parcial */
    box-shadow: none; /* Sin sombra */
    /*opacity: 0.5;  Transparencia parcial */
  }
  
  /*header.abajo:hover {
    background-color: #fff; /* Color original al pasar el mouse */
    /*opacity: 1; /* Opacidad completa al pasar el mouse */

  
 /* header.abajo #logo,
  header.abajo .navbar-nav .nav-link {
    opacity: 0; /* Oculta el logo y los enlaces */
   /* transition: opacity 0.7s;
  }
  
  header.abajo:hover #logo,
  header.abajo:hover .navbar-nav .nav-link {
    opacity: 1; /* Muestra el logo y los enlaces al pasar el mouse */
 /* }*/
  
  .navbar-nav .nav-link {
    font-weight: bold;
    color:#007BFF;
    font-size: 18px;
    /*transition: color 0.3s; /* Transición suave para el cambio de color */
  }
  .navbar-nav .nav-link:hover {
    color: rgba(0, 0, 0, 0.7); /* Oscurece solo las letras al pasar el mouse */
  }
  
  
  /* Media query para aplicar el fondo solo en dispositivos móviles */
  /*@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #0d78b0;
        border-radius: 15px;
        color: #fff;
        padding: 5px;
        flex-grow: 0;
      }
      
      header.abajo .navbar-collapse {
        background-color: rgba(13, 120, 176, 0.8); /* Transparente con color */
      /*}
      
      header.abajo ul li a {
        color: #fff;
      }
      header.abajo:hover {
        background-color: var(--color-principal); /* Color original al pasar el mouse en móviles */
        /*opacity: 1; /* Opacidad completa al pasar el mouse en móviles */
     /* }
  }*/
/* SLIDER */

.container-slider{
    overflow: hidden;
    position: relative;
    height: 90vh;
}

.wrapper-slider{
    display: flex;
    transition: transform 1s ease-in-out;
}

.wrapper-slider-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
}

.wrapper-slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 0;
}

.wrapper-slider-item h2 {
    z-index: 2;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.5rem, 2.5vw, 3rem); /* Escalable según el tamaño de la pantalla */
    font-weight: 600;
    color: #fff;
    background-color: rgba(13, 119, 190, 0.8); /* Fondo azul con opacidad */
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 15px; /* Bordes redondeados */
    top: 50%;
    left: 50%;
    max-width: 60%;
    height: auto;
    min-height: 100px;

    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.wrapper-slider-item h2.animate__fadeIn {
    opacity: 1;
}

.wrapper-slider-item img{
    width: 100%;
    height: 100%;
    max-height: 90vh;
    object-fit: cover;
    object-position: center;
    position: absolute;
    filter: brightness(0.5);
}
.buttons{
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
    z-index: 2;

}

.buttons button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(236, 50, 81, 0.5);
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
}

.dots{
    position: absolute;
    bottom: 10px;
    color: #fff;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.dots li{
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 20px;
    border-radius: 20px;
    transition: 1s;
}

.dots li.active{
    width: 30px;
}

@media screen and (max-width: 768px) {
    .container-slider{
        height: 90vh;
    }

    .wrapper-slider-item h2 {
        padding: 8px 16px;
    }
}

/* TARJETAS SERVICIOS*/


h3{
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: 0 1rem;
}

p{
    font-size: var(--font-size-base);
}

.description-service-wrapper{
    margin: 2% 10%;
    text-align: center;
}

.cards-container{
    padding: 16px;
    text-align: center;
    width: 100%;

    position: relative;
    /*background-image: url('../assets/fondo2.png');*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.card-container::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.card-container .card{
    position: relative;
    z-index: 2;
}

.cards-wrapper{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.card{
    width: 90%;
    height: 350px;
    max-width: 300px;
    min-width: 300px;
    margin: 10px auto;
    padding: 16px;
    font-size: var(--font-size-base);
    box-sizing: border-box;
    border-radius: 0;

    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 67, 177, 0.5);
    z-index: 1;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px; 
    width: 0;
    height: 2px;
    background: white; 
    transition: width 0.5s ease;
    font-weight: bold;
  }
  
  .card-title:hover::after {
    width: 100%; 
  }
  

.card h3,
.card p{
    position: relative;
    color: white;
    z-index: 2;
    padding: 10px;
    text-align: center;
}

#card-1{
    background-image: url('../assets/bussines-meet.jpg');
}

#card-2{
    background-image: url('../assets/acount-bussiness.jpg');
}

#card-3{
    background-image: url('../assets/business-data-info.jpg');
}

#services-title{
    font-size: var(--font-size-h1);
    font-weight: 600;
    color: var(--color-texto-titulos);
}

/*Boton con modal*/
@keyframes float {
    0%, 100%{
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

#modalBtn{
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

#modalBtn button{
    padding: 0.5em 1em;
    width: 150px;
    height: 100px;
    border: none;
    border-radius: 50px;
    background-color: var(--color-secundario);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--font-size-base);
    animation: float 2s infinite ease-in-out;
    position: relative;
    z-index: 2;
}
#modalBtn::after, #modalBtn::before{
    animation: float 2s infinite ease-in-out;
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 150px;
    height: 100px;
    border-radius: 50px;
    background-color: var(--color-secundario);
    opacity: 0;
    animation: onda 1.5s infinite;
}
#modalBtn::before{
    animation-delay: 1s;
}
#modalBtn::after{
    animation-delay: 1.3s;
}

@keyframes onda {
    0%{
        transform: scale(1);
    }
    15%{
        opacity: 1;
    }
    100%{
        opacity: 0;
        transform: scale(1.8);
    }
}

.modal-fondo{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#actionModal{
    display: none;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: white;
    padding: 40px 20px 20px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;

    width: 90%;
    height: auto;
    max-width: 400px;
    min-width: 300px;

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

}

.modalContent{
    text-align: center;
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;

}

.modalContent ul{
    list-style: none;
    padding: 0rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin:0px 0px 0px 0px;
}

.modalContent ul li {
    margin: 10px 0;
    padding: 1.3rem;
    background-color: var(--color-secundario);
    border-radius: 15px;
    min-width: 100%;

    /*Alinear a la derecha los iconos*/
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
}

.modalContent ul li:hover{
    transform: scale(1.1);
}

.modalContent ul li a{
    color: white;
    text-decoration: none;
    font-size: var(--font-size-base);
}

#actionModal button {
    width: 40px; /* Aumentamos el tamaño */
    height: 40px;
    font-size: 1.2rem; /* Aumentamos el tamaño del texto dentro */
    border-radius: 10%; /* Lo hacemos más redondeado */
    
    position: absolute;
    top: 10px; /* Separación superior */
    right: 10px; /* Separación lateral */
    
    background-color: var(--color-principal);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
}

#actionModal button:hover {
    transform: scale(1.2); /* Pequeño efecto al pasar el mouse */
    background-color: #f78ca3;
}


@media (max-width: 768px){
    #actionModal{
        height: auto;
        padding-top: 50px;
    }

    #actionModal button {
        width: 35px; /* Un tamaño un poco más pequeño en móviles */
        height: 35px;
        top: 15px; /* Ajustamos para móviles */
        right: 15px;
    }
}
@media (min-width: 768px){


    .cards-wrapper{
        flex-direction: row;
        justify-content: center;
    }

    .card{
        width: 30%;
        margin: 10px 0;
    }

    #actionModal{
        width: 90%;
        height: auto;
        max-width: 400px;
    }

    .wrapper-slider-item h2 {
        font-size: 1.5rem;
        padding: 6px 12px;
        height: 100px;
    }

    .buttons button{
        width: 50px;
        height: 50px;
    }

}

@media (min-width: 1024px){


    .cards-wrapper{
        flex-direction: row;
        justify-content: center;
    }
    .card{
        width: 20%;
        margin: 10px 0;
    }

    #actionModal{
        width: 90%;
        height: auto;
        max-width: 400px;
    }

    .wrapper-slider-item h2 {
        font-size: 2rem;
        padding: 8px 16px;
        height: 100px;
    }

    .buttons button{
        width: 50px;
        height: 50px;
    }

}


/*CONTACTO*/
  #lista {
    padding: 0;
    text-align: center;
  }
  

#title {
    color: #0d78be;
    position: relative;
    bottom: 20px;
    right: 10px;
    font-size: 35px;
}

#boton-contacto {
    background-color: #ec3251; 
    color: white; 
    border: 2px solid #ec3251; 
    transition: all 0.3s ease; 
}

#boton-contacto:hover {
    background-color: white; 
    color: #0d78be; 
    border-color: #0d78be;
    transform: scale(1.05); 
}

#horarios{
    color: #0d78b0;
}


#lista, #direccion, #email, #telefono, #whatsapp {
    color: #0d78b0;
}
/* Estilos para los enlaces */
a#direccion, 
a#email, 
a#telefono, 
a#whatsapp {
    color: #0d78b0;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    margin-top: 20px;
    display: inline-block;
}

a#direccion:hover, 
a#email:hover, 
a#telefono:hover, 
a#whatsapp:hover {
    transform: translateY(-5px);
    color: #084c72; 
}

a#direccion:hover svg, 
a#email:hover svg, 
a#telefono:hover svg, 
a#whatsapp:hover svg {
    transform: translateY(-5px);
}

svg {
    transition: transform 0.3s ease;
}

/*SLIDER CLIENTES*/

.slider-clientes {
    width: 100vw;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.slider-clientes .slider-clientes-track {
    display: flex;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 40s linear infinite;;
    width: calc(200px * 26);
    will-change: transform;
    background-color: #fff;
}

.slider-clientes .slide-cliente {
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.slider-clientes .slide-cliente img {
    max-width: 100%;
    height: auto;
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%)); /* Mueve la mitad del track para un loop perfecto */
    }
}

.h1-cliente {
    text-align: center;
    color: var(--color-texto-titulos);
    font-weight: 600;
    font-size: var(--font-size-h1);
    padding: 0 5%;
}

.desc-empresas, 
.info-empresas{
    display: flex;
    justify-content: center;
    font-weight: 400;
    font-size: var(--font-size-base);
}

.info-empresas{
    padding-left: 2%;
    padding-right: 2%;
    margin: 10px 3rem;
    line-height: 1.8;
    text-align: center;
}

.desc-empresas{
    font-weight: 600;
}

.formulario-contacto{
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 2%;
    color: #fff;
}

.animate__animated.animate__fadeInUp{
    visibility: visible;
}
.dfs{
    background-color: var(--color-footer);
    color: #fff;
    font-size: 15px;
    height: 130px;
}

@media (max-width: 627px){

    .dfs{
        height: 200px;
    }

}