@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --verde: #41AC8C;
    --verde-2: #CEEDDF;
    --verde_claro: #E8EFEC;
    --verde_oscuro: #0E3939;
    --gris-inputs: #AEB3B1;
    --urban: 'Urbanist', sans-serif;
}

body {
    background-color: var(--verde_claro);
    color: var(--verde_oscuro, #0E3939);
    font-family: var(--urban), sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;

    .verde {
        color: var(--verde);
    }

    .verde-oscuro {
        color: var(--verde_oscuro);
    }

    .header-bg {
        background-color: var(--verde_claro);
    }

    .content-bg {
        background-color: var(--verde-2);
    }

    .navbar-nav {
        position: relative;
    }

    .navbar-expand-lg {
        height: 6rem;
    }

    .navbar-brand {
        width: 5rem;
        height: 4rem;

        .lr-menu_logo {
            width: 5rem;
            height: 4rem;
        }
    }

    .menu_text {
        color: var(--verde_oscuro);
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
        line-height: 100%;
    }

    .product-price {
        height: -webkit-fill-available;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .player-btn {
        display: flex;
        width: 32px;
        height: 32px;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        background: var(--verde-2);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    input[type="radio"]:checked+.player-btn {
        color: #ffffff;
        background: var(--verde_oscuro);
        box-shadow: 0 0 0 2px var(--verde_claro);
    }

    .btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-radius: 0.25rem;
    }

    .btn-verde {
        color: #fff;
        background-color: var(--verde);
    }

    .btn-verde-o {
        color: #fff;
        background-color: var(--verde_oscuro);
    }

    .btn-c-verde {
        color: var(--verde_oscuro);
        border: 1px solid var(--verde_oscuro)
    }

    .btn-disabled {
        opacity: 0.5;
        background: #5a6570;
    }

    .btn:hover,
    .btn:active,
    .btn:focus {
        color: #fff !important;
        background-color: var(--verde_oscuro) !important;
    }

    .input-container {
        display: flex;
        align-items: center;
        height: 56px;
        padding: 16px;
        gap: 10px;
        border-radius: 8px;
        border: 1px solid var(--gris-inputs);
        background: #FFF;
        transition: border-color 0.2s;
    }

    .form-group {
        font-weight: 600;
    }

    .promo-container {
        display: flex;
        gap: 0;
        width: 100%;
        align-items: center;

        .input-container {
            position: relative;
            flex-grow: 1;
            height: 45px;
            border: 1px solid #ccc;
            border-radius: 8px;
            display: flex;
            align-items: center;
            padding: 0 10px;
            transition: all 0.3s ease;

            .input-field {
                border: none;
                outline: none;
                width: 100%;
                background: transparent;
            }
        }
    }

    .promo-container {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 0;
        transition: gap 0.3s ease;

        &:has(.input-field:not(:placeholder-shown)) {
            gap: 8px;
        }

        .input-container {
            position: relative;
            flex: 1 1 100%;
            height: 100%;
            border: 1px solid #ccc;
            border-radius: 8px;
            display: flex;
            align-items: center;
            padding: 1rem;
            transition: all 0.3s ease;

            &:has(.input-field:not(:placeholder-shown)) {
                flex: 0 1 calc(50% - 4px);
            }

            .input-field {
                border: none;
                outline: none;
                width: 100%;
                background: transparent;

                &::placeholder {
                    color: #999;
                }
            }
        }

        .btn-apply {
            display: none;
            flex: 0 1 calc(50% - 4px);
            align-items: center;
            white-space: nowrap;

            &:has(~ .input-container .input-field:not(:placeholder-shown)),
            /* No aplica aquí por orden, usamos el de abajo */
            .input-container:has(.input-field:not(:placeholder-shown))+& {
                display: flex;
                justify-content: center;
                animation: slideIn 0.4s ease-out forwards;
            }
        }
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .input-field {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 0;
        flex: 1 0 0;
        font-size: 16px;
        color: #333;
        max-width: -webkit-fill-available;
    }

    .input-field::placeholder {
        color: var(--gris-inputs);
    }

    .input-field[type="password"](has_not::placeholder ) {
        letter-spacing: 2px;
    }

    .input-container .select2-container--default .select2-selection--single {
        display: flex;
        align-items: center;
        border: none !important;
        padding: 1rem !important;
    }

    .input-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        opacity: 0.7;
    }

    .booking-selector {
        margin-bottom: 2rem;
    }

    .border-bottom-green {
        border-bottom: 2px solid var(--verde);
    }

    .verde-divider {
        border-top: 0.5rem solid var(--verde);
        opacity: 1;
    }

    .card {
        border-radius: 20px;
        min-height: 5rem;
        padding: 2rem;
    }

    .product-list:not(:last-of-type) {
        border-bottom: 2px solid var(--verde);
    }


    .book-header {
        display: flex;
        justify-content: space-between;
        align-items: end;
        padding: 1rem;
        border-bottom: 4px solid var(--verde);
        font-weight: 600;
        font-size: 24px;
    }

    .book-icon {
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
    }


    .fit-content-md {
        width: 100%;
    }

    @media (min-width: 768px) {
        .fit-content-md {
            width: fit-content;
        }
    }

    .card-body {
        color: var(--verde_oscuro);
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 100%;

        .small {
            font-size: 12px;
        }

        @media (max-width: 600px) {
            .price-slot-container {
                width: -webkit-fill-available;
                justify-content: space-between;
            }
        }

        .product-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;

            .product-info {
                flex: 1;
                min-width: 0;

                .product-name {
                    font-weight: 800;
                }

                .product-price {
                    margin-left: 15px;

                    .price-main {
                        font-weight: 600;
                    }
                }
            }
        }
    }

    .card-body>hr {
        color: var(--verde);
        opacity: 1;
        border-top: 2px solid var(--verde);
    }

    .book-select-container {
        position: relative;

        .btn-select {
            height: 58px;
            background: white;
            border: 1px solid #ced4;
            color: var(--verde_oscuro);
            border-radius: 1rem;
            font-weight: 500;
            padding: 0 1rem;
            transition: all 0.2s ease;

            &.show {
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
                border-bottom-color: transparent;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            }
        }

        .dropdown-menu {
            border-radius: 0 0 1.5rem 1.5rem;
            border: 1px solid #ced4da;
            border-top: none;
            margin-top: -1px;
            padding: 0 1rem 1rem 1rem;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
            min-width: 100%;

            .dropdown-item {
                padding: 12px 0;
                color: #1a4d4e;
                font-weight: 500;
                background: transparent;
                border-bottom: 2px solid var(--verde);
                transition: color 0.2s ease;

                &:not(:last-child) {
                    border-bottom: none;
                }

                &:hover {
                    background: var(--verde-2);
                }

                &.active {
                    color: #41AC8C;
                    font-weight: 700;
                }
            }
        }
    }

    .services-calendar {
        font-family: var(--urban), sans-serif;

        .air-datepicker--navigation {
            padding: 1rem 1rem 0 1rem;
        }

        .air-datepicker--content {
            padding: 0 1rem 1rem 1rem;
        }

        .air-datepicker-body--day-name {
            color: var(--verde_oscuro);
        }
        .air-datepicker-cell:hover,
        .air-datepicker-cell:active,
        .air-datepicker-cell:focus,
        .-current-{
            color: var(--verde_oscuro);
        }

        .air-datepicker-cell:hover,
        .air-datepicker-cell:active,
        .air-datepicker-cell:focus,
        .-selected- {
            color: white !important;
            background-color: var(--verde_oscuro) !important;
        }

        .air-datepicker-body--cells>* {
            border-radius: 0.5rem;
        }
    }

    .container-horas {
        padding: 1rem;
    }

    .lr-thank-page__container {
        h2 {
            color: var(--verde_oscuro);
            font-size: 40px;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
            text-align: center;
        }

        .header-text {
            font-size: 22px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
            text-align: center;
        }
    }

    .text-banner {
        font-size: 22px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .fw-5 {
        font-weight: 500;
    }

    .fw-6 {
        font-weight: 600;
    }

    .fw-7 {
        font-weight: 700;
    }

    .home-title {
        font-size: 24px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }

    .services-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8rem;
        align-self: stretch;
    }

    .services-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4rem;
        width: 6rem;
    }

    .service-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .icon-circle {
        display: flex;
        width: 6rem;
        height: 6rem;
        padding: 1.5rem;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background-color: var(--verde);
        border-radius: 50%;
    }

    .icon-circle img {
        width: 3rem;
        height: 3rem;
        object-fit: contain;
    }

    .service-label {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 22px;
        white-space: nowrap;
    }

    .rates-grid {
        display: grid;
        grid-template-columns: 180px repeat(3, 1fr);
        gap: 3rem;
        align-items: end;
        margin: 0 auto;
        margin-bottom: 1rem;
        text-transform: uppercase;
    }

    .grid-header {
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .grid-header strong {
        font-size: 22px;
        display: block;
        margin-top: 4px;
    }

    .grid-title {
        color: #0E3939;
        text-align: start;
        font-size: 22px;
        font-style: normal;
        font-weight: 700;
        line-height: 100%;
        text-transform: uppercase;
    }

    .grid-price {
        text-align: center;
        font-size: 22px;
        color: #1a2e35;
        padding-bottom: 5px;
    }

    .small-info {
        font-size: 14px;
        color: #666;
        margin-top: 0;
    }

    @media (max-width: 600px) {
        .rates-grid {
            grid-template-columns: 120px repeat(3, 1fr);
            column-gap: 10px;
        }
    }
}

header .menu_text:hover,
header .menu_text:focus,
header .menu_text:active {
    color: var(--verde);
}

/* DROPDOWN ICON */
header .dropdown-toggle::after {
    display: none;
}

header .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

header .dropdown-toggle .lr-dropdown-icon {
    display: inline-flex;
    transition: transform .25s ease;
}

header .dropdown-toggle.show .lr-dropdown-icon {
    transform: rotate(180deg);
}

/* DROPDOWN MENU ANIMATION */
header .dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
    display: block;
    pointer-events: none;
}

header .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

header.on {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--verde_claro);
}

.main-image {
    width: 100%;
    height: 13rem;
    margin-bottom: 3.5rem;
    background-image: url(../img/header.webp);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;

    h1 {
        color: white;
        font-size: 50px;
        font-style: normal;
        font-weight: 600;
        line-height: 100%;
    }

    h3 {
        color: white;
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        text-align: center;
    }
}
.main-image.cabopino-plus {
    background-image: url(../img/background.png);
    background-size: contain;
    padding: 3rem 0;
    height: auto !important;
}

@media (max-width: 767px) {
    .main-image {
        visibility: hidden;
        margin: 0;
        height: 2rem;
    }
    .main-image.cabopino-plus {
        background-size: cover;
        padding: 6rem 0;
        height: auto !important;
        background-repeat: no-repeat;
    }
}

.custom-login-card {
    width: 95%;
    padding: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .custom-login-card {
        width: 50%;
        padding: 2rem;
    }
}

@media (min-width: 1200px) {
    .custom-login-card {
        width: 25%;
    }
}

.card-image {
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

footer {
    margin-top: 8rem;
    font-size: 12px;
    color: white;
    background-color: var(--verde_oscuro);
    font-weight: 600;
    line-height: 100%;

    .fw-bold {
        font-weight: 800;
    }

    .img-fluid {
        width: 88px;
        height: 80px;
        aspect-ratio: 1 / 1;
    }
}

.iti {
    width: -webkit-fill-available;
}

.select2-selection__placeholder {
    color: var(--gris-inputs) !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--verde_oscuro);
    color: white;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--verde);
    color: white;
}

/* PERFIL DEL USUARIO SIN LOGUEAR */
span.menu_text {
    margin-left: 10px;
}


/* PERFIL DEL USUARIO --- LOGUEADO */
span.lr-menu_text-login {
    margin-right: 10px;
    color: var(--bs-nav-link-color);
    margin-top: 3px;
}

span.lr-menu_icon-login {
    width: 30px;
    height: 30px;
    background-color: white;
    border: 2px solid #00000066;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00000066;
    font-weight: 600;
}

.header-login-link:hover>span.lr-menu_text-login {
    color: var(--bs-navbar-hover-color);
}

.header-login-link:hover>span.lr-menu_icon-login {
    color: var(--bs-navbar-hover-color);
    border: 2px solid var(--bs-navbar-hover-color);
}

/* DROPDOWN ICONO NUEVO Y ANIMADO */
header .dropdown-toggle::after {
    display: none;
}

header .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

header .dropdown-toggle span.lr-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

header .dropdown-toggle span.lr-dropdown-icon svg {
    width: 13px;
    height: 13px;
}

header .dropdown-toggle.show span.lr-dropdown-icon {
    transform: rotate(0deg);
}

/* DROPDOWN MENU ANIMADO */
.lr-animated-dropdown {}

.lr-animated-dropdown .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    transform: translateY(10px);
    margin-top: -1px;
    border-radius: 1px;
    border-color: var(--lr-gris-claro);
    border-width: 1px 0;
}

.lr-animated-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block
}


/* 1. Estado base (sin marcar) */
.form-check-input {
    border-color: var(--gris-inputs);
    cursor: pointer;
}

/* 2. Estado marcado (Checked) */
.form-check-input:checked {
    background-color: var(--verde);
    border-color: var(--verde);
}

/* 3. Estado de enfoque (Focus / Halo de luz) */
.form-check-input:focus {
    border-color: var(--verde);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(65, 172, 140, 0.25);
    /* Usa tu verde con transparencia */
}

/* 4. Si usas switches (opcional) */
.form-check-switch .form-check-input:checked {
    background-color: var(--verde);
}

/* 5. El check interno (el icono blanco) */
/* Bootstrap usa una imagen SVG. Si quieres asegurarte de que resalte bien: */
.form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

/*-----------------------------------------------------------------*/
/*  SPINNER                                                        */
/*-----------------------------------------------------------------*/
.spinner__inside {
    position: absolute;
    top: 50%;
    right: 50%;
}

.spinner__parent {
    position: relative;
    min-height: 400px;
}

.spinner-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99999;
}

.spinner-full-screen {
    width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-full-screen__parent {
    position: relative;
    /*overflow-x:hidden; overflow-y:hidden; */
}

.spinner-full-screen__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner__filter {
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
    position: absolute;
}

.spinner-border.text-light {
    z-index: 9999;
}

.loading__spinner {
    text-align: center;
    z-index: 9999;
    color: white;
}


/*-----------------------------------------------------------------*/
/*  SPINNER  BOOKING                                               */
/*-----------------------------------------------------------------*/

.spinner-booking__filter {
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 1;
    position: absolute;
}

.spinner-border.text-light {
    z-index: 9999;
}

.loading__spinner {
    text-align: center;
    z-index: 9999;
    color: white;
}

.spinner-booking__img {
    width: 120px;
    z-index: 999;
    margin-bottom: 10px;
}

.spinner-border {
    z-index: 999;
    color: var(--verde) !important;
}

.swal {

    .swal-icon {
        font-size: 5rem;
    }

    .swal-title {
        padding: 1rem 0;
        font-size: 24px;
        font-weight: 600;
        line-height: 137%;
    }

    .swal-text {
        text-align: center;
        font-feature-settings: "salt" on;
        font-size: 16px;
        font-weight: 400;
        line-height: 130%;
    }
}
