/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* Estilo de la cabecera y navegación */
header {
    background-color: #000; /* Negro */
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap; /* Permite que los enlaces se acomoden en varias filas */
}




nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap; /* Permite que los enlaces se distribuyan en varias líneas */
    justify-content: flex-start; /* Alinea los enlaces a la izquierda */
}

nav ul li {
    margin-left: 15px; /* Reducir el margen entre los enlaces */
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem; /* Tamaño más pequeño para los enlaces */
}

nav a:hover {
    color: #00b5e2; /* Celeste */
}

/* Ajuste del espacio alrededor del logo en el contenedor de navegación */
nav .logo {
    margin-bottom: 0; /* Eliminar cualquier espacio inferior del logo */
    padding-bottom: 0; /* Eliminar cualquier padding inferior del logo */
}

/* Hero section */
.hero {
    background-size: 50%;
    height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem; /* Reducir tamaño del título */
    margin-bottom: 10px;
    font-weight: 700;
    color: #000;
}

.hero-logo img {
    max-width: 100%; /* Ajusta el tamaño del logo */
    height: auto;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
}

.cta-btn {
    background-color: #00b5e2; /* Celeste */
    color: #fff;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.cta-btn:hover {
    background-color: #008da6; /* Celeste más oscuro */
}

/* Servicios */
.services {
    background-color: #f8f8f8;
    padding: 80px 20px;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: bold;
    color: #000;
}

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

.service-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    width: 24%;
    transition: transform 0.3s ease-in-out;
    min-height: 350px; /* Asegura una altura mínima */
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.6rem;
    padding: 20px;
    background-color: #00b5e2; /* Celeste */
    color: #fff;
}

.service-card p {
    padding: 15px;
    font-size: 1rem;
    color: #555;
    flex-grow: 1; /* Permite que el texto ocupe el espacio restante */
}

.service-card:hover {
    transform: scale(1.05);
}

/* Carrusel de Clientes */
.carousel-container {
    padding: 80px 20px;
    text-align: center; /* Centrado del texto */
}

.carousel-container h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: bold;
    color: #000;
}

.client-logo-carousel .slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.client-logo-carousel img {
    width: 150px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}

.client-logo-carousel img:hover {
    opacity: 1;
}

/* Descripción de la empresa, misión, visión y valores dentro de una caja centrada */
.company-description, .mission-vision-values {
    background-color: #fff; /* Fondo blanco para las cajas */
    padding: 80px 20px; /* Espaciado interno para darle espacio al contenido */
    max-width: 900px; /* Limitar el ancho máximo */
    margin: 0 auto; /* Centrado horizontal */
    border-radius: 10px; /* Bordes redondeados */
    text-align: center; /* Centrado del texto */
}

.company-description h2, .mission-vision-values h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #000;
}

.company-description p, .mission-vision-values p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.mission-vision-values ul {
    list-style: none !important;
    padding: 0;
}

.mission-vision-values ul li {
    margin-bottom: 15px;
    text-align: left;
}

.values ul {
    list-style: none !important;
    padding: 0;
}

.values ul li {
    margin-bottom: 15px;
    text-align: left;
}

.mission-vision-values ul, .company-description ul, .values ul {
    list-style: none; /* Eliminar las viñetas */
    padding: 0;
    margin: 0; /* Eliminar márgenes por defecto */
}

/* Contacto */
.contact {
    background-color: #f8f8f8;
    color: #333;
    padding: 80px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #000;
}

nav ul li:last-child a {
    color: #ff6347; /* Color rojo para el enlace de Login */
}

nav ul li:last-child a:hover {
    color: #d14f2d; /* Color más oscuro al pasar el ratón */
}


.contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.contact label {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact button {
    background-color: #00b5e2; /* Celeste */
    color: #fff;
    padding: 12px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background-color: #008da6; /* Celeste más oscuro */
}

/* Footer */
footer {
    background-color: #000; /* Negro */
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer .social-links {
    margin-top: 20px;
}

footer .social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.3rem;
}

footer .social-links a:hover {
    color: #00b5e2; /* Celeste */
}

/* Responsividad con Media Queries */

/* Dispositivos móviles */
@media (max-width: 767px) {
    nav {
        padding: 5px 10px; /* Reducir el padding superior e inferior */
    }

    nav ul {
        display: flex;
        flex-wrap: wrap; /* Los elementos deben envolverse en varias filas */
        justify-content: space-between; /* Alinear los enlaces de forma horizontal */
        margin: 0;
        padding: 0;
        width: 100%;
        height: 60px; /* Altura fija para la caja de enlaces */
    }

    nav ul li {
        width: 33.33%; /* Cada enlace ocupa un 33.33% del ancho (3 por fila) */
        text-align: center;
        box-sizing: border-box;
        margin: 0; /* Eliminar el margen entre los enlaces */
    }

    nav a {
        font-size: 0.9rem; /* Reducir el tamaño de la fuente */
        padding: 5px 5px; /* Reducir el padding para menos espacio entre los enlaces */
        display: block; /* Asegurarse de que los enlaces ocupen todo el espacio del `li` */
        white-space: nowrap; /* Evitar que el texto se divida en varias líneas */
    }

    /* Ajustar el tamaño del título en móviles */
    .hero h1 {
        font-size: 2rem; /* Ajustar el tamaño del título */
        margin-top: 5px; /* Menos margen arriba */
    }

    nav .logo img {
        margin-bottom: 5px; /* Reducir espacio debajo del logo */
    }

    .service-cards {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .service-card {
        width: 100%;
    }

    .contact form {
        width: 90%;
    }
}





/* Dispositivos Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    nav ul {
        flex-wrap: wrap; /* Permite que los enlaces se distribuyan en varias filas si es necesario */
    }

    nav ul li {
        margin: 5px 15px; /* Ajuste del margen para mejor distribución */
    }

    .hero h1 {
        font-size: 2.8rem; /* Ajustar el tamaño del título en tabletas */
    }

    .service-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        width: 48%;
    }

    .contact form {
        width: 80%;
    }
}

/* Escritorios */
@media (min-width: 1024px) {
    .service-cards {
        display: flex;
        justify-content: space-between;
    }

    .service-card {
        width: 24%;
    }

    .hero h1 {
        margin-top: 10px; /* Menos margen arriba */
    }

    nav .logo img {
        margin-bottom: 10px; /* Menos espacio debajo del logo */
    }

    .hero-logo img {
        max-width: 40%; /* Ajusta el tamaño del logo */
        height: auto;
        margin-bottom: 20px;
    }


    .contact form {
        width: 60%;
    }
}
