/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    align-items: center;
    background-color: #e9ecef;
    flex-direction: column;
}

header {
    width: 100%;
    height: 70px;
    display: flex;
    background-color: whitesmoke;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;

    .logo {
        display: flex;
        height: 100%;
        align-items: center;
        margin-left: 20px;
        gap: 20px;

        .logo_text {
            h5 {
                color: #0b5ed7;
                font-family: fantasy;
            }
        }

        .img_logo {
            img {
                width: 50px;
                height: 50px;
            }
        }
    }

    .hidenMenu {
        width: 189px;
        display: none;

        .list {
            div {
                a {
                    text-decoration: none;
                    color: white;
                }
            }
        }
    }

    .nav {
        display: flex;
        align-items: center;
        margin-right: 25px;
        gap: 15px;
        width: 80%;
        justify-content: end;

        .burgerButton {
            display: none;
        }

        .nav_navegar {
            display: flex;
            gap: 5px;
            justify-content: center;


            div {
                display: flex;
                width: 90px;
                height: 36.50px;
                border-radius: 5.50px;
                justify-content: center;


                a {
                    text-decoration: none;
                    color: black;
                    transition: 0.5s;
                    height: 100%;
                    width: 100%;
                    border-radius: 5.50px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }

                a:hover,
                a.active {
                    background-color: cornflowerblue;
                    transition: 1s;
                    color: white;
                }
            }

        }

        .idioma {
            img {
                width: 35px;
                height: 25px;
            }
        }

        .vehiculo {
            width: 190px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;

            .menu_opcion {
                display: flex;
                width: 100%;
                justify-content: center;
                align-items: center;
                transition: all 1s;
                text-align: center;
                height: 100%;

                .opcion {
                    margin-top: 30px;
                    display: none;
                    text-align: center;
                    width: 100%;
                    height: 100%;

                    .cars {
                        text-decoration: none;
                        display: flex;
                        width: 100%;
                        gap: 20px;
                        justify-content: center;
                        align-items: center;
                        height: 100%;
                        position: relative;
                        bottom: 15px;

                        div {
                            width: 100%;
                            height: 100%;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            text-align: center;

                            a {
                                text-decoration: none;
                                color: black;
                                width: 100%;
                                height: 100%;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                transition: 0.5s;

                            }

                            a:hover {
                                background-color: white;
                                transition: 0.5s;
                                color: burlywood;
                                border-radius: 5px;
                            }
                        }
                    }
                }
            }

            .menu_opcion:hover {
                background-color: burlywood;
                transition: 1s;
                border-radius: 5px;
            }
        }
    }
}

body.bd_us {
    font-family: 'Poppins', sans-serif;
    background: #f0f4ff;
    color: #222;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container para secciones */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Títulos */
h1,
h2,
h3 {
    color: #0d47a1;
    /* Azul intenso */
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(13, 71, 161, 0.3);
}

/* Subtítulos y párrafos */
p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Hero */
.hero-section {
    width: 100%;
    padding: 100px 20px 80px 20px;
    color: white;
    position: relative;
    background:
        linear-gradient(rgba(65, 105, 225, 0.8), rgba(169, 201, 255, 0.8)),
        url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1470&q=80') no-repeat center center / cover;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.3);
    border-radius: 0;
}



.hero-section h1 {
    color: white;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.05em;
}

.hero-section p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

/* Logo más grande con efecto */
.hero-logo {
    max-height: 220px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.7s ease, filter 0.7s ease, box-shadow 0.7s ease;
    cursor: pointer;
    border-radius: 15px;
}

.hero-logo:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.7);
}

/* Responsivo */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.3rem;
        max-width: 90%;
    }

    .hero-logo {
        max-height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 10px 60px 10px;
    }

    .hero-section h1 {
        font-size: 2.4rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-logo {
        max-height: 140px;
    }
}

#containerCard {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contenedor-agencia {
    width: 90%;
    height: 290px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-size: 1.2rem;
    color: #888;
    gap: 10px;

    .content_logo {

        width: 10%;
        height: 90%;
        border-radius: 10px 0 0 10px;

        .logo_Bandera {
            width: 100%;
            height: 25%;
            display: flex;
            justify-content: center;
            align-items: center;

            img {
                width: 40%;
                height: 40%;
            }
        }

        .logo {
            width: 100%;
            height: 50%;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;

            .img_logo {
                width: 100%;
                height: 90%;
                display: flex;
                justify-content: center;
                align-items: center;

                img {
                    width: 80%;
                    height: 80%;
                    border-radius: 10px;
                    background-color: white;
                    transition: 1s;
                }

                img:hover {
                    background-color: rgb(100, 149, 237, 0.50);
                    transition: 1s;
                    border-radius: 10px;
                    filter: hue-rotate(10deg);
                }
            }
        }

        .logo_text {
            width: 100%;
            height: 25%;
            display: flex;
            align-items: center;
            justify-content: center;

            h5 {
                color: rgb(100, 149, 237);
                font-family: fantasy;
                text-align: center;
            }
        }
    }

    .content_localizacion {
        width: 20%;
        height: 90%;
        background-color: #f9f9f9;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        font-family: Arial, sans-serif;
        color: #333;
    }

    .content_localizacion .social {
        display: flex;
        justify-content: space-between;
        font-size: 1.5rem;
        color: #0d6efd;
    }

    .content_localizacion .contacto,
    .content_localizacion .email,
    .content_localizacion .ubicacion_icono {
        font-size: 0.95rem;
        padding: 5px 0;
        color: #555;
        display: flex;
        align-items: center;
    }

    .content_localizacion i {
        margin-right: 8px;
    }

    .ubicacion_texto h5 {
        margin: 10px 0 5px;
        font-size: 1rem;
        color: #0d6efd;
    }


    .content_descripcion {
        width: 25%;
        height: 90%;
        background-color: #ffffff;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px;
        font-family: Arial, sans-serif;
        color: #333;
        display: flex;
        flex-direction: column;
    }

    .descripcion h5 {
        font-size: 1.1rem;
        color: #0d6efd;
        margin-bottom: 10px;
    }

    .texto-scroll-vertical {
        max-height: 200px;
        /* ajusta según el diseño */
        overflow-y: auto;
        font-size: 0.95rem;
        line-height: 1.5;
        color: #555;
        padding-right: 10px;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;

        p {
            font-size: 12px;
            color: grey;
        }
    }

    .texto-scroll-vertical::-webkit-scrollbar {
        width: 6px;
    }

    .texto-scroll-vertical::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 10px;
    }

    .content_ubicacionMapa {
        width: 30%;
        height: 90%;
        background-color: #fff;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }


    .content_ticket {
        width: 7.5%;
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn_ticket {
        display: inline-block;
        width: 100%;
        height: 100%;
        padding: 10px 16px;
        background-color: #0d6efd;
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
        text-align: center;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .btn_ticket:hover {
        background-color: #0b5ed7;
    }


}

.bus-slider {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fcff, #eaf6ff);
    box-shadow: 0 8px 24px rgba(173, 216, 230, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.bus-track {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bus-icon {
    font-size: 48px;
    color: #7cc6fe;
    opacity: 0.9;
    animation: floatRandom 4s infinite ease-in-out alternate;
}

/* Variaciones por clase para hacerlo impredecible */
.bus-icon:nth-child(odd) {
    animation-duration: 3.5s;
    animation-delay: 0.2s;
}

.bus-icon:nth-child(even) {
    animation-duration: 4.5s;
    animation-delay: 0.5s;
}

.bus-icon:nth-child(3n) {
    animation-duration: 5s;
    animation-delay: 1s;
}

/* Animación tipo "agua agitada" */
@keyframes floatRandom {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -10px) rotate(3deg);
    }

    50% {
        transform: translate(-15px, 5px) rotate(-4deg);
    }

    75% {
        transform: translate(5px, 15px) rotate(2deg);
    }

    100% {
        transform: translate(-10px, -5px) rotate(-3deg);
    }
}




/* Secciones con cards */
.section {
    margin-bottom: 50px;
}

/* Rutas grid */
.rutas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ruta-card {
    background: white;
    border-radius: 1rem;
    padding: 25px 30px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 15px rgba(100, 149, 237, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.ruta-card:hover {
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 0 25px rgba(100, 149, 237, 0.3);
    transform: translateY(-10px);
}

.ruta-card h3 {
    color: #4169e1;
    font-weight: 700;
    margin-bottom: 12px;
}

.ruta-card p {
    font-weight: 500;
    color: #555;
}

/* Servicios list */
#servicios ul {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

#servicios ul li {
    background: #e7f0ff;
    border-radius: 1rem;
    padding: 20px 25px;
    box-shadow: 0 6px 12px rgba(100, 149, 237, 0.2);
    font-weight: 600;
    color: #0d47a1;
    text-align: center;
    transition: background 0.3s ease;
}

#servicios ul li:hover {
    background: #6495ed;
    color: white;
    box-shadow: 0 8px 18px rgba(65, 105, 225, 0.5);
}




/* FAQ */
#faq details {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.2);
    margin-bottom: 20px;
    padding: 20px 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#faq details[open] {
    background: #6495ed;
    color: white;
    box-shadow: 0 8px 30px rgba(100, 149, 237, 0.5);
}

#faq details summary {
    font-weight: 700;
    font-size: 1.15rem;
    outline: none;
}

#faq details p {
    margin-top: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* Testimonios */
#testimonios blockquote {
    background: linear-gradient(135deg, #6495edaa, #1e40afcc);
    color: white;
    border-radius: 1.5rem;
    padding: 25px 30px;
    font-style: italic;
    font-size: 1.15rem;
    box-shadow: 0 12px 40px rgba(65, 105, 225, 0.4);
    margin: 30px auto;
    max-width: 700px;
    position: relative;
    border-left: 10px solid #0d47a1;
}

#testimonios blockquote::before {
    content: "“";
    font-size: 4rem;
    position: absolute;
    left: 20px;
    top: 10px;
    opacity: 0.15;
    font-family: serif;
}

#testimonios blockquote+blockquote {
    margin-top: 40px;
}

.blockquote-footer {
    background-color: #6495ed80;
    /* azul cornflower con opacidad */
    padding: 3px 8px;
    border-radius: 5px;
    color: #555;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
}

/* Contacto */
#contacto p {
    font-weight: 700;
    color: #4169e1;
    margin-bottom: 8px;
}

#contacto iframe {
    width: 100%;
    height: 360px;
    border-radius: 1.5rem;
    border: none;
    box-shadow: 0 12px 40px rgba(100, 149, 237, 0.4);
    transition: transform 0.3s ease;
}

#contacto iframe:hover {
    transform: scale(1.02);
}




/* Responsivo */
@media (max-width: 992px) {
    .hero {
        padding: 50px 20px;
    }

    .hero h2 {
        font-size: 2.3rem;
    }

    form {
        padding: 28px 20px;
    }
}



@media (max-width: 600px) {
    .footer-column {
        text-align: center;
    }
}

.rutas_agen {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;

    .buscador {
        form {
            .time {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 20px;
                width: 100%;
                height: 100%;

                input {
                    width: 200px;
                    height: 40px;
                    border-radius: 5px;
                    border: solid 1px #0b5ed7;
                    padding-left: 10px;
                    font-size: 16px;
                    color: #0b5ed7;
                }

                button {
                    width: 100px;
                    height: 40px;
                    background-color: #0b5ed7;
                    color: white;
                    border-radius: 5px;
                    border: none;
                    cursor: pointer;

                    &:hover {
                        background-color: #0a58ca;
                        transition: all 0.3s ease-in-out;
                    }
                }
            }

            gap: 20px;
        }
    }
}

.title {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    margin-top: 20px;

    h4 {
        color: #0b5ed7;
        font-size: 27px;
        font-family: fantasy;
    }

}

/* -------------------------------------------------------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------------------------------------------------------- */



/* SECTIONS */
.section {
    margin: 2rem 0;
}

h2 {
    margin-bottom: 1rem;
    color: #003366;
}

/* RUTAS */
.rutas-grid {
    display: grid;
    gap: 1rem;
}

.ruta-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* SERVICIOS */
ul {
    padding-left: 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
}

/* FORMULARIO */
form input,
form select {
    width: 100%;
    padding: 0.5rem;
    margin: 0.4rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 0.6rem 1.2rem;
    background: #003366;
    color: white;
    border: none;
    border-radius: 5px;
}

/* FAQ */
details {
    margin-bottom: 1rem;
}

summary {
    font-weight: bold;
    cursor: pointer;
}

/* TESTIMONIOS */
blockquote {
    background: #e9ecef;
    border-left: 5px solid #003366;
    padding: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* MAPA */
iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 5px;
    margin-top: 1rem;
}

footer {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    color: #83b4ff;
    margin-bottom: 15px;
    font-size: 18px;


}

.footer-column p,
.footer-column li,
.footer-column a,
.footer-bottom {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column {
    img {
        width: 50%;
        height: 50%;
    }
}

.footer-column a:hover {
    color: #ffd700;
}

.language-select {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 5px;
    width: 100%;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 12px;
}






.slider_rutas {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    gap: 20px;
    background-color: #0b5ed7;

    .text {
        width: 65%;
        height: 100%;
        display: flex;
        align-items: center;
        flex-direction: column;
        overflow: hidden;

        .title {
            padding: 20px;

            h1 {
                color: rgb(255, 255, 255);
                font-size: 50px;
                font-family: fantasy;
            }
        }

        p {
            color: grey;
            font-size: 12px;
            text-align: center;
            width: 80%;

            small {
                font-size: 11px;
                color: grey;
            }
        }
    }

    .img {
        width: 35%;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        background-image: url('../../img/index/Malabo.jpg');
        background-size: cover;
        background-position: center;
        transform: rotate(10deg);
        border-radius: 20px;

    }
}



.main {

    display: flex;
    gap: 30px;
    margin-top: 20px;
    width: 100%;

    .aside {
        width: 30%;
        padding: 10px;
        background-color: white;
        /* o cualquier fondo que necesites */
        border-radius: 8px;
        /* opcional: bordes redondeados */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        /* sombra suave */
        display: flex;
        flex-direction: column;
        margin-top: 10px;
        gap: 25px;

        .ini {
            display: flex;
            gap: 10px;
            border: solid 2px #476ea8;
            border-top: none;
            border-left: none;
            border-right: none;
        }


        .container_HmerViaje {
            width: 100%;
            gap: 20px;
            overflow: auto;
            height: 298px;
            scrollbar-width: thin;
            /* Firefox */
            scrollbar-color: #476ea8 transparent;



            .ruta {
                width: 100%;
                height: 75px;
                display: flex;
                background-color: #476ea8;
                justify-content: space-between;
                align-items: center;
                border-radius: 8px;
                cursor: pointer;
                margin-top: 10px;
                margin-bottom: 10px;


                .tiempo {
                    display: flex;
                    width: 50%;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 15px;
                    background-color: #f9f9f9;
                    border-radius: 8px 8px 0 8px;

                    p {
                        color: #476ea8;
                        position: relative;
                        top: 10px;
                    }
                }

                .nombre {
                    display: flex;
                    width: 50%;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-direction: column;

                    .agencia {
                        display: flex;
                        width: 100%;
                        height: 50%;
                        justify-content: center;
                        align-items: center;
                        gap: 40px;

                        p {
                            padding: 0;
                            position: relative;
                            top: 10px;
                            color: #b2d1ff;
                        }
                    }

                    .precio {
                        display: flex;
                        width: 100%;
                        height: 50%;
                        display: flex;
                        justify-content: center;
                        align-items: center;

                        p {
                            color: white;
                            font-size: 19px;
                            font-weight: bold;
                        }
                    }
                }
            }
        }

        .container_HmerViaje::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .container_HmerViaje::-webkit-scrollbar-track {
            background: transparent;
        }

        .container_HmerViaje::-webkit-scrollbar-thumb {
            background-color: #476ea8;
            border-radius: 4px;
            border: 2px solid transparent;
            background-clip: content-box;
        }


    }



    .rutas_card {
        width: 110%;
        height: 125px;
        padding: 10px;
        background-color: white;
        /* o cualquier fondo que necesites */
        border-radius: 8px;
        /* bordes redondeados opcionales */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        /* sombra suave */
        display: flex;
        flex-direction: column;
        gap: 25px;

        margin-top: 20px;
        margin-bottom: 20px;

        .cardContainer {
            display: flex;
            overflow: hidden;
            width: 100%;
            height: 100%;


            .card_head {
                width: 10%;
                height: 100%;

                .img {
                    width: 100%;
                    height: 80%;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        /* para asegurar buen ajuste de la imagen */
                    }
                }

                .title {
                    width: 100%;
                    height: 20%;

                    h5 {
                        color: #0b5ed7;
                        position: relative;
                        bottom: 25px;
                        margin: 0;
                        /* para evitar márgenes inesperados */
                        font-weight: 600;
                        /* un poco más legible */
                    }
                }
            }

            .card_body {
                width: 70%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 35px;

                .icon {
                    width: 20%;
                    height: 100%;
                    display: flex;
                    justify-content: center;

                    i {
                        font-size: 30px;
                        position: relative;
                        top: 7px;
                        color: #0b5ed7;
                    }
                }

                .horario {
                    width: 60%;
                    height: 90px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    background-color: #0b5ed7;
                    gap: 40px;
                    border-radius: 15px 0 10px 0;

                    p {
                        color: #fff;
                        font-size: 16px;
                        position: relative;
                        top: 10px;
                        font-family: fantasy;
                        margin: 0;
                        /* limpiar márgenes */
                    }
                }

                .bus_num {
                    width: 20%;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding: 10px;

                    p {
                        position: relative;
                        top: 7px;
                        margin: 0;
                        font-weight: 100;
                        font-size: 15px;
                    }
                }
            }

            .card_footer {
                width: 22%;
                height: 130px;
                transform: rotate(150deg);
                background-color: #0b5ed7;
                border-radius: 20px;
                display: flex;
                justify-content: center;
                align-items: center;

                .statico {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    gap: 2px;
                    transform: rotate(-150deg);
                    /* cancela la rotación del padre */

                    .precio p {
                        color: white;
                        font-family: fantasy;
                        margin: 0;
                        font-weight: 100;
                    }

                    .btnTicket {
                        width: 80%;

                        button {
                            border: 1px solid #ffffff;
                            background-color: #ffffff;
                            color: #0b5ed7;
                            width: 100%;
                            height: 100%;
                            border-radius: 5px;
                            transition: all 0.5s ease;
                            cursor: pointer;
                            font-weight: 600;
                        }

                        button:hover {
                            border-color: #fff;
                            background-color: rgba(167, 169, 255, 0.1);
                            color: #ffffff;
                        }
                    }
                }
            }
        }
    }

}

.sobreNosotros {
    width: 98%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;

    .text {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 10px;

        h1 {
            color: #83b4ff;
            font-size: 20px;
            font-weight: bold;
        }

        p {
            color: grey;
            font-size: 12px;
            text-align: center;
            width: 80%;

            small {
                font-size: 11px;
                color: grey;
            }
        }

    }

    .img {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        img {
            width: 50%;
            height: 58%;
            border-radius: 20px;
            background-color: white;
            transition: 1s;
        }

        img:hover {
            background-color: rgb(100, 149, 237, 0.50);
            transition: 1s;
            border-radius: 20px;
            filter: hue-rotate(10deg);
        }
    }

    .btnMasInfo {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 10px;

        a {
            text-decoration: none;
            color: #83b4ff;
            font-weight: bold;
            font-size: 15px;
            transition: 0.5s;
            border: solid 1.5px #83b4ff;
            width: 80%;
            border-radius: 5px;
            text-align: center;
        }

        a:hover,
        a.active {
            background-color: white;
            transition: 0.5s;
            color: burlywood;
            border-radius: 5px;
            border: solid 1.5px burlywood;
        }

        p {
            color: grey;
            font-size: 12px;
            text-align: center;
            width: 80%;

            small {
                font-size: 11px;
                color: grey;
            }
        }

        .subLogo {
            width: 30%;
            height: 38%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 10px;

            img {
                width: 100%;
                height: 100%;
                border-radius: 20px;
                background-color: white;
                transition: 1s;
            }

            img:hover {
                background-color: rgb(100, 149, 237, 0.50);
                transition: 1s;
                border-radius: 20px;
                filter: hue-rotate(10deg);
            }
        }
    }

}



@media screen and (max-width: 768px) {

    header {

        .logo {
            display: flex;
            height: 100%;
            align-items: center;
            margin-left: 20px;
            gap: 10px;

            .logo_text {
                h5 {
                    color: #002f75;
                    font-family: fantasy;
                    font-size: 13px;
                }
            }
        }


        transition: all 0.5s;

        .hidenMenu.mostrar {
            display: block;
        }

        .nav {
            position: relative;
            align-self: flex-start;
            top: 12.5px;

            .nav_navegar {
                display: none;
            }

            .vehiculo {
                display: none;
            }

            .burgerButton {
                display: block;
                cursor: pointer;
            }
        }
    }

    header.openMenu {
        height: 250px;
        background-color: rgba(255, 255, 255, 0.662);
        transition: all 1s;

        .logo {
            display: block;
        }

        .list {
            div {
                h5 {
                    color: #002f75;
                    font-family: fantasy;
                    font-size: 13px;
                }

                a {
                    text-decoration: none;
                    color: #002f75;
                    font-size: 13px;
                }
            }
        }

    }

    .contenedor-agencia {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 20px;

        .content_logo,
        .content_localizacion,
        .content_descripcion,
        .content_ubicacionMapa,
        .content_ticket {
            width: 100%;
            height: auto;
        }

        .texto-scroll-vertical {
            max-height: 150px;
        }

        .btn_ticket {
            height: 50px;
            font-size: 1rem;
        }

        .content_ticket {
            padding: 10px 0;
        }
    }

    .slider {
        height: auto;

        .slider-content {
            flex-direction: column;
            height: auto;
        }

        .texto_contenedor {
            width: 100%;
            align-items: center;
            text-align: center;
            padding: 20px;
        }

        .texto-transparente {
            font-size: 48px;
            line-height: 1.1;
        }

        .agencias_texto h5.texto-transparente {
            font-size: 16px;
            margin-left: 0;
            width: 90%;
        }
    }

    main {
        .cards_container {
            background-color: #000000;

            .rutas_card {
                height: 100px;
            }
        }

    }

    .sobreNosotros {
        width: 90%;
        height: 700px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        border-radius: 20px;

        .img {
            width: 100%;
            height: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;

            img {
                width: 130px;
                height: 75%;
                border-radius: 20px;
                background-color: white;
                transition: 1s;
            }

            img:hover {
                background-color: rgb(100, 149, 237, 0.50);
                transition: 1s;
                border-radius: 20px;
                filter: hue-rotate(10deg);
            }
        }

        .text {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 10px;

            h1 {
                color: cadetblue;
                font-size: 20px;
                font-weight: bold;
            }

            p {
                color: grey;
                font-size: 12px;
                text-align: center;
                width: 80%;

                small {
                    font-size: 11px;
                    color: grey;
                }
            }

        }
    }

}

@media (max-width: 600px) {
    .footer-column {
        text-align: center;
    }
}

@media screen and (max-width: 840px) {
    header {
        transition: all 0.5s;

        .hidenMenu.mostrar {
            display: block;
        }

        .nav {
            .nav_navegar {
                display: none;
            }

            .vehiculo {
                display: none;
            }

            .burgerButton {
                display: block;
                cursor: pointer;
            }
        }
    }

    header.openMenu {
        height: 280px;
        transition: all 1s;


        .logo {
            display: block;
        }
    }

    body {
        .slider {

            .formDIreccion {
                width: 90%;
                height: 300px;

                form {
                    width: 95%;
                    display: flex;
                    flex-direction: column;
                    gap: 5px;

                    .sugerencias {
                        width: 95%;
                    }

                    .btn_submit {
                        button {
                            width: 100%;
                            height: 40px;
                            border-radius: 5px;
                            font-weight: bold;
                            transition: 0.5;
                        }
                    }
                }
            }
        }

        main {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;

            .info {
                display: flex;
                flex-direction: column;
                gap: 15px;
                height: 100%;
                width: 90%;

                .tab {
                    width: 100%;
                    height: 100%;
                    border: solid grey 1.5px;
                    border-top: none;
                    border-left: none;
                    border-right: none;
                    display: flex;
                    align-items: center;
                    flex-direction: column;

                    h5 {
                        color: rgb(0, 0, 0);

                        i {
                            color: rgb(255, 43, 43);
                        }
                    }

                    p {
                        small {
                            font-size: 11px;
                            color: grey;
                        }
                    }
                }
            }

            .personal {
                height: 500px;

                .cart {
                    display: block;

                    .img {
                        width: 100%;
                        height: 60%;
                    }

                    .text {
                        width: 100%;
                        height: 40%;
                    }
                }
            }

            .sobreNosotros {
                width: 90%;
                height: 700px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                border-radius: 20px;

                .img {
                    width: 100%;
                    height: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-direction: column;

                    img {
                        width: 130px;
                        height: 75%;
                        border-radius: 20px;
                        background-color: white;
                        transition: 1s;
                    }

                    img:hover {
                        background-color: rgb(100, 149, 237, 0.50);
                        transition: 1s;
                        border-radius: 20px;
                        filter: hue-rotate(10deg);
                    }
                }

                .text {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-direction: column;
                    gap: 10px;

                    h1 {
                        color: cadetblue;
                        font-size: 20px;
                        font-weight: bold;
                    }

                    p {
                        color: grey;
                        font-size: 12px;
                        text-align: center;
                        width: 80%;

                        small {
                            font-size: 11px;
                            color: grey;
                        }
                    }

                }
            }

            .rutasFrecuentes {
                width: 100%;
                height: 400px;
                display: flex;
                gap: 10px;
                justify-content: center;
                flex-direction: column;

                .rutas {
                    display: flex;
                    flex-direction: column;
                    width: 100%;
                    height: 100%;

                    .ruta {
                        width: 100%;
                        display: flex;
                        justify-content: center;
                        align-items: center;

                        .direcciones {
                            width: 100%;
                        }
                    }

                    .ruta:hover {
                        width: 100%;
                        height: 100px;
                        background-color: cadetblue;

                        .direcciones {
                            div {
                                h5 {
                                    color: white;
                                }
                            }
                        }
                    }
                }
            }

            .rutasPopulares {
                width: 100%;
                height: 1500px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;

                .carts {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-direction: column;
                    background-color: white;

                    .cart {
                        width: 100%;
                        height: 100%;
                    }
                }
            }

            .smsSeguridad {
                width: 100%;
                height: 500px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;

                .sms {
                    width: 100%;
                    height: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-direction: column;
                    text-align: center;
                    gap: 15px;

                    h1 {
                        color: cadetblue;
                        font-size: 20px;
                        font-weight: bold;
                    }
                }

                .img_sms {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-direction: column;

                    .img {
                        width: 100%;
                        height: 100%;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        flex-direction: column;
                        gap: 40px;
                        transition: 5s;

                        h5 {
                            font: 1em sans-serif;
                            color: aliceblue;
                        }
                    }
                }
            }

        }

    }

}

@media screen and (max-width: 768px) {

    .slider_rutas {
        height: 90px;
        background-color: #2958a0;
        .text {
            .title {
                h1 {
                    font-size: 20px;
                    padding: 10px;
                    font-family: fantasy;
                }
            }
        }
    }

    .main {
        flex-direction: column;
        gap: 20px;
    }

   

    .main .aside,
    .main .cards_container {
        width: 100%;
    }

    .main .aside {
        margin-top: 0;
        display: none;
    }

    .main .aside .container_HmerViaje {
        height: auto;
        max-height: 300px;
    }

    .main .aside .container_HmerViaje .ruta {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .main .aside .container_HmerViaje .ruta .tiempo,
    .main .aside .container_HmerViaje .ruta .nombre {
        width: 100%;
        height: 80px;
        display: flex;
        justify-content: center;
        gap: 20px;

    }

    .main .aside .container_HmerViaje .ruta .nombre .agencia,
    .main .aside .container_HmerViaje .ruta .nombre .precio {
        flex-direction: column;
        gap: 10px;
    }

    .main .cards_container {
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 20px;

        .rutas_card {
            width: 100%;
            height: 200px;
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 20px;

            .cardContainer {
                flex-direction: column;
                width: 100%;
                height: auto;

                .card_head,
                .card_body,
                .card_footer {
                    width: 100%;
                    height: auto;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                }

                .card_head {
                    height: 25px;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    .img {
                        display: none;
                    }

                    .title {
                        h5 {
                            font-size: 20px;
                            color: #0b5ed7;
                            position: relative;
                            bottom: 10px;
                        }
                    }
                }

                .card_body {
                    padding: 20px;
                    gap: 10px;

                    .icon {
                        width: 100%;
                        justify-content: center;
                        display: none;
                    }

                    .horario {
                        width: 100%;
                        justify-content: center;
                        padding: 10px;
                        background-color: #2958a0;
                        position: relative;
                        bottom: 15px;
                    }

                    .bus_num {
                        width: 100%;
                        justify-content: center;

                        position: relative;
                        bottom: 58px;

                        p {
                            font-size: 16px;
                            color: #000;
                        }
                    }
                }

                .card_footer {
                    position: relative;
                    bottom: 98px;
                    background-color: transparent;

                    .statico {
                        background-color: trasparent;
                        gap: 10px;

                        .precio {
                            p {
                                color: #000000;
                                font-size: 20px;
                                font-weight: bold;
                            }
                        }
                        .btnTicket {
                            button {
                                width: 100%;
                                height: 28px;
                                border-radius: 5px;
                                border: 1px solid #0b5ed7;
                                font-weight: bold;
                                transition: 0.5s;
                                cursor: pointer;
                            }

                            button:hover {
                                background-color: #0b5ed7;
                                color: #fff;
                            }
                        }
                    }
                }
            }
        }

    }

}

@media screen and (max-width: 740px) {
    main {
        background-color: #000000;
    }
}