/* Fuente personalizada */
@font-face {
    font-family: 'JTDouro-Sans-Light', sans-serif;
    src: url('/font/JTDouro-Sans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap; /* Mejora la carga de fuentes */
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif,'JTDouro-Sans-Light', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Barra superior */
.top-bar {
    background-color: #f5f5f5;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.language-selector a {
    text-decoration: none;
    color: #000;
    margin-right: 10px;
}

.app-link a img {
    width: 20px;
    height: 20px;
    transition: all 0.3s;
    align-items: flex-end;
}

.social-link a img {
    width: 20px;
    height: 20px;
    transition: all 0.3s;
}

.social-link a img:hover {
    transform: scale(1.2);
}

/* Navegación principal */
.main-nav {
    background-color: #1c3e78;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 20px;
}

.main-nav .logo {
    flex: 1;
}

.logo .logo-image img {
    max-width: 150px;
    height: auto;
}

.search-container {
    flex: 2;
    display: flex;
    align-items: center;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #555;
    color: white;
    outline: none;
}

.search-container button {
    position: absolute;
    right: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.search-container button svg {
    width: 20px;
    height: 20px;
}

.menu-toggle {
    flex: 1;
    text-align: right;
}

.menu-toggle button {
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.menu-toggle button svg {
    width: 30px;
    height: 30px;
}

/* Menú móvil */
.mobile-menu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #1c3e78;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.mobile-menu a {
    padding: 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.mobile-menu a:hover {
    background-color: #575757;
}

.mobile-menu .closebtn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
}

/* Slider */
.swiper {
    width: 100%;
    height: auto;
}

.swiper-slide img {
    width: 100%;
    height: auto; 
    object-fit: cover;
}

/* Sección "Sobre Nosotros" */
.object {
    background-color: #f5f5f5;
    padding: 40px 20px;
}

.container-object {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-object .element1,
.container-object .element2 {
    flex: 1;
    margin: 10px;
}

.container-object .element1 img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.container-object .element2 {
    background-color: #3f3d3d;
    color: #f5f0f0;
    padding: 20px;
    max-width: 600px;
}

.container-object .element2 p {
    font-size: 16px;
}

/* Sección de Servicios */
.services {
    background-color: #1c3e78;
    color: #fff;
    padding: 40px 20px;
}

.services h2 {
    text-align: center;
    font-size: 33px;
    margin-bottom: 30px;
}

.acordeon {
    max-width: 800px;
    margin: 0 auto;
}

.acordeon .contenedor {
    margin-bottom: 10px;
}

.acordeon .etiqueta {
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    background-color: #2e4a7b;
    transition: background-color 0.3s;
}

.acordeon .etiqueta:hover {
    background-color: #3e5a8b;
}

.acordeon .content {
    max-height: 0;
    overflow: hidden;
    background-color: #1c3e78;
    transition: max-height 0.5s ease-out;
    padding: 0 10px;
}

.acordeon .contenedor.activa .content {
    max-height: 200px;
    padding: 10px;
}

.acordeon .contenedor.activa .etiqueta::before {
    content: '--';
    font-size: 25px;
}

/* Sección de Clientes */
/* Estilos para la sección de Clientes */
.customer {
    background-color: #fff;/*#495A9A;*/
    color: #2d2b2b;
    padding: 40px 20px;
    text-align: center;
}

.customer h2 {
    font-size: 25px;
    margin-bottom: 30px;
}

.swiper-clientes {
    width: 100%;
    height: auto;
}

.swiper-clientes .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-clientes .swiper-slide img {
    width: 100%;
    max-width: 700px; /* Ajusta según tus necesidades */
    height: auto;
    object-fit: contain;
}

/* Estilos para la paginación y navegación específicos */
.customer .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.customer .swiper-pagination-bullet-active {
    opacity: 1;
}

.customer .swiper-button-next,
.customer .swiper-button-prev {
    color: #fff;
}

/* Sección de Reconocimientos */
.rewards {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px; /* Ajusta la altura según tus necesidades */
    background: linear-gradient(to bottom, #1F8FCF, #A0DBEE);
    color: #fff; /* Color del texto */
    text-align: center;
}

.slide-content {
    max-width: 800px;
    padding: 20px;
}

.rewards img{
    max-width: 55px;
    max-height: 65px;
}

.rewards h2 {
    font-size: 25px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
}

.swiper-rewards {
    width: 100%;
    height: auto;
}

.swiper-rewards .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-rewards .swiper-slide img {
    width: 100%;
    max-width: 700px; /* Ajusta según tus necesidades */
    height: auto;
    object-fit: contain;
}

/* Estilos para la paginación y navegación específicos */
.customer .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.customer .swiper-pagination-bullet-active {
    opacity: 1;
}

.customer .swiper-button-next,
.customer .swiper-button-prev {
    color: #fff;
}
/* Pie de página */
.footer {
    background-color: #262626;
    color: white;
    padding: 50px 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.footer-contact,
.footer-nav,
.footer-social {
    margin: 10px 0;
    text-align: center;
}

.footer-contact h4,
.footer-nav h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-nav ul,
.footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a,
.footer-social ul li a {
    color: white;
    text-decoration: none;
}

.footer-nav ul li a:hover,
.footer-social ul li a:hover {
    text-decoration: underline;
}

.footer-social ul li {
    display: inline-block;
    margin: 0 10px;
}

.footer-social ul li img {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
}

/* Estilos para el botón de Volver al Inicio */
#backToTop {
    display: none; /* Oculto por defecto */
    position: fixed; /* Posición fija en la pantalla */
    bottom: 40px; /* Distancia desde la parte inferior */
    right: 40px; /* Distancia desde el lado derecho */
    z-index: 99; /* Asegura que esté por encima de otros elementos */
    font-size: 35px; /* Tamaño del texto o ícono */
    background-color: #d6dae0; /* Color de fondo */
    color: #fff; /* Color del texto */
    cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
    padding: 15px; /* Relleno interno */
    border: none; /* Sin borde */
    border-radius: 10%; /* Forma circular */
    opacity: 102; /* Transparencia */
    transition: opacity 0.3s; /* Transición suave */
}

#backToTop:hover {
    opacity: 1; /* Sin transparencia al pasar el cursor */
}


/*------- Media Queries -----------*/
@media (min-width: 768px) {
    .main-nav {
        flex-wrap: nowrap;
    }

    .search-container {
        order: 2;
        flex: 2;
    }

    .menu-toggle {
        order: 3;
    }

    .logo {
        order: 1;
    }

    .container-object {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-contact,
    .footer-nav,
    .footer-social {
        text-align: left;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        width: 100%;
        margin-bottom: 10px;
    }

    .menu-toggle {
        align-self: flex-end;
    }

    .acordeon .etiqueta {
        font-size: 20px;
    }

    .acordeon .content {
        font-size: 14px;
    }

    .container-object .element2 p {
        font-size: 14px;
    }
}
