/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
}

/* Barra superior */
.top-bar {
    background-color: #002147;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
}

.top-bar .social-icons {
    display: flex;
    align-items: center;
}

.top-bar .social-icons a {
    color: white;
    margin-right: 10px;
    text-decoration: none;
}

.top-bar .site-url p {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Encabezado principal */
header {
    background-color: #fff;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: center; /* Centra todo el contenido */
    align-items: center;
    position: relative;
}

.left-content {
    position: absolute;
    left: 10px;
}

.left-content h2 {
    color: #FF8C00; /* Naranja */
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    width: 180px;
    display: block;
}

/* Menú de navegación debajo del logo */
nav {
    background-color: #fff;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover {
    color: #FF8C00; /* Naranja */
}

/* Campo de búsqueda */
.search-bar {
    position: relative;
}

nav ul li input[type="text"] {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

nav ul li .fa-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

/* Línea debajo del menú */
.line {
    height: 1px;
    background-color: #000000; /* Negro*/
    width: 100%;
}

/* Sección de Servicios */
.services {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.services h2 span {
    color: #FF8C00;
}

/* Carrusel Personalizado */
.carousel-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

#carouselServices {
    display: flex;
    transition: transform 0.5s ease;
}

.service-card {
    flex: 0 0 30%;
    margin: 0 15px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.service-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #000000;
}

.service-card p {
    font-size: 14px;
    color: #333;
}

.carousel-prev-custom, .carousel-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FF8C00;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-prev-custom {
    left: 10px;
}

.carousel-next-custom {
    right: 10px;
}


/* Sección de Clientes Satisfechos */
.testimonials {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4; /* Ajusta el fondo si es necesario */
}

.testimonials h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.testimonials h2 span {
    color: #F3922B; /* Puedes ajustar el color si es necesario */
}

.testimonial-wrapper {
    display: flex;
    justify-content: space-around;
}

.testimonial-card {
    width: 30%; /* Ajusta el tamaño para mostrar 3 elementos a la vez */
    margin: 0 10px;
}

.testimonial-card img {
    width: 100%; /* Muestra las imágenes completamente */
    height: auto;
    object-fit: cover; /* Para mantener la proporción de la imagen */
    border-radius: 0; /* Elimina los bordes redondeados */
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;  
    line-height: 60px;
    bottom: 20px;
    left: 20px;
    background: #25d366;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 1px 10px rgba(0,0,0,0.3);
    z-index: 1001; /* Asegúrate de que esté por encima de otros elementos */
}

.whatsapp-float a {
    display: block;
    color: #fff;
    text-decoration: none;
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 60px; /* Asegura que el ícono esté centrado verticalmente */
}

.whatsapp-float i {
    font-size: 28px; /* Tamaño del ícono */
    color: #fff; /* Color del ícono */
}

.whatsapp-float a span {
    display: none; /* Oculta el texto por defecto */
    position: absolute;
    background-color: #4CAF50;
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% + 10px); /* Coloca el texto al lado del ícono */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 14px;
}

.whatsapp-float:hover a span {
    display: inline-block; /* Muestra el texto cuando se pasa el ratón */
    opacity: 1;
}



/* Footer */
footer {
    background-color: #002147;
    color: white;
    padding: 50px 20px;
}

.footer-logo {
    width: 200px; /* Ajusta el valor según el tamaño que desees */
    height: auto; /* Mantén la proporción del logo */
    margin-bottom: 20px; /* Agrega espacio debajo si es necesario */
}


.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    width: 18%;
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    word-break: break-all;
    font-size: 13px;
}

.footer-section ul li img {
    width: 16px; /* Ajustar tamaño de la Vineta */
    margin-right: 8px;
}

.footer-section .social-icons a {
    color: white;
    margin-right: 10px;
    font-size: 18px;
    text-decoration: none;
}

/* .footer-avalados {
    text-align: center;
    background-color: white; /* Fondo blanco 
    padding: 20px 0;
}*/

.footer-avalados .logos-avalados {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-avalados .logos-avalados img {
    width: 250px;
}

.bottom-bar {
    background-color: #F3922B;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}


/* Estilos Responsivos */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .left-content {
        margin-bottom: 10px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: center;
    }

    .top-bar .social-icons {
        margin-bottom: 10px;
    }
    
    .bottom-bar {
        padding: 10px 5px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo img {
        width: 140px; /* Reducir el tamaño del logo en móviles */
    }
    
    nav ul {
        flex-direction: column;
    }
    
    .left-content h2 {
        font-size: 20px; /* Ajustar tamaño de texto en dispositivos pequeños */
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px;
    }
    
    .top-bar .social-icons a {
        margin-right: 5px;
    }
    
    nav ul li input[type="text"] {
        padding: 5px;
        width: 100%;
    }

    .header-content {
        padding: 10px;
    }
    
    .bottom-bar {
        padding: 10px 0;
        font-size: 14px; /* Ajustar el tamaño de texto en móviles */
    }
}

@media (max-width: 1024px) {
    .service-card {
        flex: 0 0 45%;
    }
}

@media (max-width: 768px) {
    .service-card {
        flex: 0 0 100%;
    }
}

/* Footer Responsivo */
@media (max-width: 1024px) {
    .footer-section {
        width: 45%;
    }

    .footer-avalados {
        margin-top: 20px;
    }

    .footer-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-logo {
        width: 120px; /* Ajusta el tamaño del logo en pantallas más pequeñas */
    }
}

@media (max-width: 768px) {
    .footer-section {
        width: 100%;
        text-align: center;
    }

    .footer-avalados .logos-avalados {
        justify-content: center;
    }
}