// Variables
$primary-color = #2c2c2c;
$secondary-color = #8b8b8b;
$accent-color = #d4af37;
$bg-light = #f8f8f8;
$bg-white = #ffffff;
$text-dark = #333333;
$text-light = #666666;
$border-light = #e8e8e8;

html {
    scroll-behavior: smooth;
}

.slick-slider {
    margin-bottom: 0;
}

::selection {
    background-color: #a3e435;
    color: #004b92;
}

#toast-container {
    display: none;
}

.bg-hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.pill-gradient {
    background: linear-gradient(-45deg, #a3e435 0%, #004b92 100%);
}

/* Custom styles - extend as needed */
* {
    transition: all 0.2s ease;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

body {
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1e293b;
}

a {
    display: flex;
    justify-content: center;
    max-width: max-content;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Custom Typography Utilities */
.text-balance {
    text-wrap: balance;
}

/* Design Pattern Utilities */
.soft-card-shadow {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Smooth Section Transitions */
html {
    scroll-behavior: smooth;
}

/* Custom selection color matching the brand green */
::selection {
    background-color: #a3e635;
    color: #004a99;
}

/* Hide scrollbar for clean horizontal carousels if used */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bg-brand-gradient {
    background: linear-gradient(90deg, #a3e435 0%, #004b92 100%);
}

.pill-section {
    border-radius: 238px;
}

.banners {
    position: relative;
    width: 100%;

    .slick-list {
        width: 100%;
    }

    &-item {
        position: relative;

        &-texto {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }
    }
}

.pagination, .pagination li {
    display: inline-block;
    vertical-align: middle;
}

.pagination {
    list-style: none;
    text-align: center;
    width: 100%;
    margin-top: 30px;
}

.pagination li {
    position: relative;
}

.pagination li a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 100;
    cursor: pointer;
    margin: 5px;
    font-size: 16px;
    padding: 15px;
}

.pagination li a:hover {
    background: #333;
    color: #fff;
}

.avisos {
    display: none;
    border-radius: 10px;
    padding: calc(1.5vw + 20px);
    width: 95%;
    max-width: 640px;

    &.agradecimiento {
        padding: 0;
        max-width: 980px;

        .mensaje {
            &-info {
                display: flex;
                align-items: center;

                .imagen {
                    margin: 0;
                    width: 50%;

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

                .btn-secondary {
                    margin: 20px auto 0;
                    display: block;
                    max-width: fit-content;
                }

                .texto {
                    text-align: left;
                    width: 50%;
                    padding: calc(1.5vw + 20px);
                }
            }
        }
    }

    .mensaje {
        text-align: center;

        .imagen {
            margin: 0 0 30px auto;
            text-align: center;
        }

        .btn-secondary {
            margin: 0 0 30px;
        }
    }
}

.space-y-2 {
    position: relative;
}

.pagination li strong {
    color: var(--rojo);
}

.pagination li span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    font-weight: 100;
    cursor: pointer;
    margin: 5px;
    background: #333;
    color: #fff;
    font-size: 16px;
}

.pagination li.disabled span {
    background: transparent;
    border: none;
    color: #333;
}

#banner_movil {
    display: none;
}

.font-advent {
    font-family: 'Manrope', sans-serif;
}

.font-alexandria {
    font-family: 'Manrope', sans-serif;
}

.font-dm-sans {
    font-family: 'Manrope', sans-serif;
}

.shadow-soft {
    box-shadow: 0 10px 30px -10px rgba(0, 74, 153, 0.15);
}

.bg-mesh-light {
    background-color: #ffffff;
    background-image: radial-gradient(at 90% 10%, rgba(163, 230, 53, 0.05) 0px, transparent 50%), radial-gradient(at 10% 90%, rgba(0, 74, 153, 0.05) 0px, transparent 50%);
}

.active-filters {
    padding: 15px 0;
    margin: 0 0 20px 0;
    width: 100%;
    font-weight: 700;
    text-align: center;
    line-height: 30px;
    z-index: 5;
    position: relative;

    div {
        span {
            display: unset !important;
        }

        a {
            display: inline-block !important;
        }
    }
}

.barra-aceptacion {
    background: linear-gradient(141deg, #3a3a3a, rgba(0, 0, 0, 0.85) 51%, rgba(0, 0, 0, 0.92) 75%);
    bottom: 0;
    color: #fff;
    display: none;
    font-size: 12px;
    left: 0;
    line-height: 16px;
    padding: 15px 0;
    position: fixed;
    right: 0;
    text-align: center;
    width: 100%;
    z-index: 1000;

    &-contenido {
        a {
            color: #01a8ff;
            display: inline-block;
            position: relative;
        }

        .cerrar {
            border: 1px solid #fff;
            border-radius: 50%;
            color: #fff;
            cursor: pointer;
            font-size: 11px;
            line-height: 11px;
            margin: 0;
            padding: 3px 5px;
            right: -20px;
        }
    }
}

.text-balance {
    text-wrap: balance;
}

@media (max-width: 1024px) {
    .pill-section {
        border-radius: 60px;
    }
}

@media (max-width: 980px) {
    #banner_escritorio {
        display: none;
    }

    #banner_movil {
        display: block;
    }
}

#btn-close-menu {
    display: none;
}

@media screen and (max-width: 780px) {
    .avisos {
        &.agradecimiento {
            .mensaje {
                &-info {
                    flex-direction: column;

                    .imagen {
                        width: 100%;

                        img {
                            max-height: 300px;
                        }
                    }

                    .texto {
                        width: 100%;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    #btn-close-menu {
        display: block;
        font-size: 30px;
    }

    header >div {
        justify-content: space-between;
    }

    .menu {
        position: fixed;
        right: -150%;
        top: 0;
        bottom: 0;
        width: 50%;
        min-width: 300px;
        background: #fff;
        z-index: 8;
        transition: right 0.5s;
        overflow-y: auto;
        padding: 20px 20px 50px;
        z-index: 10000;
        min-height: 500px;
        border-left: 1px solid #ccc;
        display: block !important;

        a {
            margin: 20px auto !important;
            width: 100%;
            display: block;
        }

        &.active {
            right: 0;
        }
    }
}
