body {
    font-family: 'Open Sans', sans-serif;
}

/*.carousel, .hero, .hero2, .footer {
    margin-inline-start: 1.5%;
    margin-inline-end: 1.5%;

}*/

/*Seccion Carrousel*/
.carousel {
    position: relative;
    top: 2vh;
    width: 100%;
    max-width: 100%; /*97%;*/
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.carousel-caption {
    position: absolute;
    bottom: 40%;
    left: 27%;
    right: 27%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
}

.carousel-caption h4, .carousel-caption p {
    text-align: center;
    color: white;
}

.carousel-caption > h4 {
    font-size: 3em;
}

.carousel-caption > p {
    font-size: 1.2em;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/*Seccion servicios*/
.services {
    margin: 5%;
}

.services > h2 {
    text-align: center;
    margin-block: 5%;
    color: #002252;
}

  .card-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .card {
    flex: 1 1 calc(33.333% - 1rem);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .card-img {
    width: 100%;
    max-height: 40%;
    object-fit: cover;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .card-text {
    font-size: 1rem;
    text-align: center;
    color: #555;
  }   
  
  .card-footer {
    align-content: center;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    text-align: right;
  }
  

/*Seccion Hero*/
.hero {
    display: flex;
    top: 0vh; /*11*/
    height: 90vh;
    align-items: center;
    justify-content: center;
    background: url('/img/2.jpg') no-repeat center center/cover;
    position: relative;
}

.hero .content {
    display: flex;
    align-items:center;
    justify-content: center;
    z-index: 1; 
    overflow: hidden;
    padding-inline: 10%;
}

.hero .phrase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 15px;
    text-align: center;
}

.hero .content img {
    padding-inline: 5%;
    height: 45vh;
}

.content .phrase p {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: white;
}

.support div {
    text-align: center;
    min-width: 400px;

} 

/*hero 2, hero3*/

.hero2 {
    display: flex;
    align-items:center;
    justify-content: center;
    height: 90vh;
}

.hero2 .chatea-nosotros {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content:center;
    margin-inline: 5%;
} 

.hero2 .chatea-nosotros > h4, .hero2 .chatea-nosotros > p {
    color: #333;
    margin-block-end: 10%;
    font-size: 1.7em;
} 

.hero2 .chatea-nosotros > h4 {
    font-size: 2.2em;
}  

#form {
    width: 100%;
    max-width: 400px; 
    margin-block: auto;
    margin-inline: 5%;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.hero2 #form .titulo-formulario {
    font-size: 1.8em;
    font-weight: bolder;
}

#form label {
    font-size: 14px;
    color: #333333;
    margin-bottom: 6px;
}

#form .field input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #007BFF; 
    border-radius: 4px;
    font-size: 16px;
    color: #333333;
    background-color: #ffffff;
    box-sizing: border-box;
}

#form .field input[type="text"]:focus {
    border-color: #295DB8; 
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); 
}

#formButton {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #295DB8; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#button-form:hover {
    background-color: #1E4A8A; 
}


@media (max-width: 768px) {
    .carousel {
        top: 11vh;
    }

    .carousel-caption {
        bottom: 17%;
        left: 12%;
        right: 12%;
    }
    
    .carousel-caption > h4 {
        font-size: 1.7em;
    }
    
    .carousel-caption > p {
        font-size: 0.9em;
    }

    .services {
        position: relative;
        top: 11vh;
    }

    .services > h2 {
        margin-block: 15%;
    }

    .card {
        flex: 1 1 100%;
    }

    .hero {
        position: relative;
        top: 11vh;
        height: 90vh;

    }

    .hero .content {
        display: flex;
        flex-direction: column;
        padding-inline: 5%;
    }
    
    .hero .content img {
        height: 15vh;
        padding-bottom: 12vh;
    }

    .phrase p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .hero2 {
        position: relative;
        top: 11vh;
    }

    .hero2 .chatea-nosotros {
        display: none;
    }

    .hero2 #form .titulo-formulario {
        font-size: 1.7em;
        margin-inline: 30%;
    }


}