/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    width: 100%; /* Cambiado de 100vw a 100% */
}

/* General styles for header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #03345c;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Logo and title container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-height: 60px;
    max-width: 100px;
    width: auto;
    height: auto;
    margin-right: 15px;
}

.title {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f39c12;
    text-align: center;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f39c12;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .logo-container {
        justify-content: center;
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* Slider */
.slider {
    margin-top: 90px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 82vh; /* Cambiado a porcentaje */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Configuración para las imágenes del slider */
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
    transition: opacity 1s ease-in-out; /* Transición suave */
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: #fff;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Sección general */
section {
    padding: 0;
    margin: 0;
    text-align: center;
}

#sobre-nosotros p {
    max-width: 800px;
    margin: 0 auto;
}

/* Estilos generales para la sección de servicios */
#servicios {
    text-align: center;
    padding: 50px 0;
    background-color: #f9f9f9;
}

.grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* Modificar la tarjeta de servicio */
.service {
    flex: 1 1 calc(33.33% - 20px);
    margin: 10px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.service img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
}

/* Asegúrate de que el texto se vea bien */
.service h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
    color: #333;
}

.service p {
    font-size: 1rem;
    color: #666;
}

/* Ajustes para responsividad */
@media (max-width: 768px) {
    .service {
        flex: 1 1 calc(50% - 20px); /* Tarjetas ocupan 50% en pantallas medianas */
    }

    .service img {
        height: auto; /* Dejar que la altura se ajuste automáticamente */
    }
}

/* Media Query para pantallas pequeñas (hasta 600px) */
@media (max-width: 600px) {
    .logo img {
        max-height: 50px; /* Ajustar el tamaño del logo */
    }

    .title {
        font-size: 1.5rem; /* Ajustar tamaño de título */
    }

    .service {
        flex: 1 1 calc(100% - 20px); /* Tarjetas ocupan 100% en pantallas pequeñas */
    }

    .contact-info p {
        font-size: 1rem; /* Reducir tamaño del texto */
    }

    form input,
    form textarea {
        font-size: 0.9rem; /* Ajustar fuente */
        width: 100%; /* Asegurar que los inputs ocupen el ancho completo */
    }

    footer {
        font-size: 0.9rem; /* Ajustar el tamaño de texto en el footer */
    }
}

/* Media Query para pantallas muy pequeñas (hasta 400px) */
@media (max-width: 400px) {
    .title {
        font-size: 1.2rem; /* Ajustar tamaño de título */
    }

    .service h3 {
        font-size: 1.2rem; /* Reducir el tamaño de los títulos de servicios */
    }

    .caption {
        font-size: 16px; /* Ajustar el tamaño del texto en la caption */
    }
}

#clientes {
    padding: 50px 20px;
    text-align: center;
}

.carrusel {
    overflow: hidden; 
    max-width: 800px; 
    margin: 0 auto; 
    position: relative;
}

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

.logo {
    width: 150px; 
    margin: 0 15px; 
}

#contacto {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.contact-info {
    margin: 20px 0;
}

.contact-info p {
    font-size: 1.2rem;
    color: #333;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
}

form input, 
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%; /* Asegurar que los inputs ocupen el ancho completo */
}

form button {
    padding: 10px;
    background-color: #f39c12;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #d68f10;
}

/* Pie de página */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .caption {
        font-size: 18px;
        bottom: 10px;
        left: 15px;
    }
}

h1, h2, h3 {
    font-weight: 900;
}
p {
    font-weight: 300;
}

#sobre-nosotros {
    background: linear-gradient(to right, #03345c, #01587a);
    color: white;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.tarjetas {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 50px;
}

.tarjeta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    width: 45%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    text-align: center;
}

.tarjeta h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #f39c12;
}

.tarjeta p {
    font-size: 1.2rem;
    color: #272626;
}

/* Responsividad para tarjetas */
@media (max-width: 768px) {
    .tarjetas {
        flex-direction: column; /* Cambiar a columna en pantallas pequeñas */
        align-items: center; /* Centrar las tarjetas */
    }

    .tarjeta {
        width: 80%; /* Ajustar ancho de tarjetas en pantallas pequeñas */
    }
}
