:root {
    --primary-color: #478b3f;
    --secondary-color: #00396e;
    --tertiary-color: #dee5ec;
    --fs-sm: clamp(0.8rem, 0.17vi + 0.69rem, 0.64rem);
    --fs-base: clamp(1rem, 0.48vi + 0.69rem, 0.80rem);
    --fs-md: clamp(1.25rem, 0.96vi + 0.64rem, 1rem);
    --fs-lg: clamp(1.56rem, 1.68vi + 0.49rem, 1.5rem);
    --fs-xl: clamp(1.95rem, 2.74vi + 0.2rem, 2.2rem);
    --fs-xxl: clamp(2.44rem, 4.27vi + -0.29rem, 3rem);
    --fs-xxxl: clamp(3.05rem, 6.47vi + -1.09rem, 4rem);
}

*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Header */
header {
    height: 150px;
    overflow: hidden;
    margin-bottom: 1.5rem;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Main */
main {
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
    
    h2 {
        color: var(--secondary-color);
        margin-bottom: 0.5rem;
    }

    .cta-button {
        display: flex;
        justify-content: center;
        margin: 3rem 0;


        a {
            font-size: var(--fs-md);
            font-weight: 500;
            background-color: var(--primary-color);
            color: #FFF;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            cursor: pointer;
            text-decoration: none;
        }
    }

    /* Descripción del destino */
    .dest-description {
        position: relative;
        margin: auto 1rem 4rem;

        /* Encabezado de la descripción */
        .desc-head {
            margin-bottom: 1.5rem;

            
            .desc-head-title {
                display: flex;
                gap: 0.5rem;
                margin-bottom: 1rem;
                
                h1 {
                    place-self: center;
                    color: var(--secondary-color);
                    text-transform: uppercase;
                    margin-bottom: 0;
                }

                .desc-head-icon {
                    place-self: center;
                }
            }

            .dest-head-subtitle {
                font-weight: 300;
                font-size: 1.1rem;
                /* text-wrap: balance; */
                color: #525252;
            }

        }



        /* Cuerpo de la descripción */
        .desc-body {
            margin: auto;
            max-width: 75ch;

            color: var(--secondary-color);

            text-align: left; /* controversial */

            p, .pe {
                margin: 2rem 0.85rem;
            }

            ul {
                margin-top: 1rem;
                margin-left: 1.5rem;
            }
        }
    }

    /* Información del destino */
    .dest-info {
        display: flex !important;
        flex-direction: column;
        /* gap: 4px; */

        .dest-info-item {
            position: relative;

            min-height: 150px;

            padding: 1.5rem 1.85rem;

            background-color: var(--secondary-color);
            color: #FFF !important;

            &:nth-child(2) {
                background-color: var(--tertiary-color) !important;
                color: var(--secondary-color) !important;

                .dest-info-item-icon {
                    right: 10%;
                }
            }

            .dest-info-item-icon {
                position: absolute;
                top: 5%;

                svg {
                    width: 100px;
                    opacity: 0.1;
                }
            }

            .dest-info-item-text {
                h3 {
                    font-size: 1.2rem !important;
                    font-weight: 700 !important;
                }
                p {
                    padding: 0.25rem;
                    margin-bottom: 0 !important;
                }
            }
        }

        .cta-button {
            margin-top: 1.5rem;
        }
    }

    /* faq */
    .faq {
        margin: 0;
        padding: 2rem 1rem;

        .ac .ac-header button:focus {
            outline: none;
        }
    }

    /* Rutas principales de buses Nar Bus */
    .main-routes {

        padding: 0 1rem;

        .router-container {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;

            span {

                a {
                    color: var(--secondary-color);
                    text-decoration: none;
                }
            }

        }
    }
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 100px;
    padding: 2rem 1rem 1rem;

    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(33, 33, 33);

    h6 {
        margin: 1.5rem 0 1rem 0;
        font-size: 1rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 5px;

        color: #FFF;
    }

    h5 {
        margin-bottom: 0.875em;
        font-size: 1.25rem;

        color: #FFF;
        text-transform: uppercase;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 5px;
    }

    a {
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
    }

    .links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        i {
            margin-right: 0.5rem;
        }
    }

    .info-socials {

        img {
            margin-bottom: 1rem;
        }

        .social-links {
            display: flex;
            gap: 0.5rem;


            a.social-link {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 36px;
                height: 36px;

                border: 1px solid var(--primary-color);
                text-decoration: none;
                color: var(--primary-color);
                transition: all 0.3s ease;

                &:hover {
                    background-color: var(--primary-color);
                    color: #FFF;
                }
            }
        }
    }

    .info-contact {

        .info-contact-content {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;

            i {
                margin-right: 0.5rem;
            }

            p {
                margin-bottom: 0;
            }

            .input-group-custom {
                display: flex;
                flex-direction: row;
                height: 40px;
                font-size: 13.3px;

                input {
                    padding: 1rem;
                    max-width: 66%;
                    height: 100%;
                }

                button {
                    font-family: 'Poppins', sans-serif;
                    border: none;
                    padding: 0.5rem 1rem;
                    background-color: #047000cc;
                    color: #FFF;
                    height: 40px;
                }
            }
        }

    }
}

/* Media queries */
@media (min-width: 375px) {
    main {
        .dest-description {
            .desc-head {
                max-width: 90ch;
                margin: 0 auto 2rem;

                .desc-head-icon {
                    svg {
                        width: 60px;
                        height: 60px;
                    }
                }

                h1 {
                    font-size: 2.5rem;
                }

            }
        }
    }
}

@media (min-width: 425px) {
    main {
        .dest-description {
            .desc-head {
                margin-left: 1rem;
            }
        }
    }
}

@media (min-width: 768px) {
    header {
        height: 250px;

        img {
            width: 100%;
            height: 130%;
            object-fit: cover;
            object-position: center;
        }
    }

    main {
        .dest-description {
            .desc-head {
                margin: auto;
                max-width: 75ch;
            }

            .desc-head-button {
                position: absolute;
                top: 6%;
                right: 5%;

                a {
                    font-size: var(--fs-md);
                }
            }
        }

        .dest-info {
            flex-direction: row;

            .dest-info-item {
                width: 50%;

                &:last-child {
                    .dest-info-item-icon {
                        left: 10%;
                    }
                }
            }
        }

        .main-routes {
            .router-container {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 0.5rem;
            }
        }
    }

    footer {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }
}


@media (min-width: 992px) {
    header {
        position: relative;
        top: -84px;
        height: 350px;
    }

    main {
        position: relative;
        top: -84px;
    }
}

@media (min-width: 1024px) {
    header {
        height: 330px;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }

    main {
        .dest-description {
            .desc-head {
                max-width: 90ch;
                .desc-head-icon {
                    place-self: start;
                    position: relative;
                    top: 15%;
                }
                h1 {
                    font-size: var(--fs-xxxl);
                }

                .dest-head-subtitle {
                    font-size: var(--fs-lg);
                }
            }
            .desc-body {
                font-size: var(--fs-md);
            }
        }
        .dest-info {
            padding: 0 1.5rem;
            gap: 0;

            .item-content-wrapper {
                display: flex;
                gap: 1rem;
                padding: clamp(0px, calc((100vw - 1024px) / 416 * 100px), 100px);
                max-width: 480px;
                /* margin: 0 auto; */

                .dest-info-item-icon {
                    align-self: center;
                    position: relative;
                    top: 0;
                    left: 0 !important;

                    svg {
                        opacity: 1;
                        width: 66px;
                    }
                }
            }
        }

        .dest-map {
            padding: 0 1.5rem;
        }

        .faq {
            /* max-width: 80ch; */
            margin: 0 162px;
            margin-top: 1rem !important;

            h2 {
                font-size: 32px;
            }

            h4.ac-header button {
                font-size: var(--fs-base);
            }

            p.ac-text {
                font-size: var(--fs-base) !important;
            }
        }

        .main-routes {
            margin: 0 162px;
            margin-top: 1.5rem !important;

            h2 {
                font-size: 32px;
            }

            a {
                font-size: var(--fs-base);
            }
        }
    }
}