:root {
    --htr-bg-dark: #0f1216;
    --htr-surface: rgba(10, 10, 10, 0.72);
    --htr-surface-strong: rgba(8, 8, 8, 0.82);
    --htr-border: rgba(255, 255, 255, 0.14);
    --htr-text: #f5f7fb;
    --htr-muted: #d2d8e2;
    --htr-input-bg: #f7f9fc;
    --htr-input-text: #11151d;
    --htr-primary: #f36523;
    --htr-primary-hover: #da5619;
    --htr-success: #1f9d65;
    --htr-shadow-soft: 0 22px 48px rgba(0, 0, 0, 0.36);
    --htr-radius-xl: 20px;
    --htr-radius-lg: 16px;
    --htr-radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
    color: var(--htr-text);
    background: var(--htr-bg-dark);
}

#booking {
    position: relative;
    min-height: 100vh;
}

#booking::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 5% 8%, rgba(243, 101, 35, 0.2), transparent 45%),
        radial-gradient(circle at 88% 12%, rgba(28, 161, 133, 0.16), transparent 42%),
        linear-gradient(160deg, rgba(7, 9, 11, 0.85) 0%, rgba(10, 12, 15, 0.72) 38%, rgba(9, 11, 14, 0.9) 100%);
    pointer-events: none;
}

#booking::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0 18%, rgba(10, 10, 10, 0.45) 52%, rgba(10, 10, 10, 0.76) 100%);
    pointer-events: none;
}

.locales-body {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 76px);
    padding: 18px 0 20px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.public-container {
    position: relative;
    z-index: 2;
}

.company-shell {
    width: 100%;
    margin: 0 auto 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.company-logo-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.company-logo-safe {
    width: min(260px, 70vw);
    min-height: 110px;
    max-height: 200px;
    border-radius: var(--htr-radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-company-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 168px;
    object-fit: contain;
    object-position: center;
}

.four-icons-row {
    width: auto;
    max-width: min(560px, 96vw);
    border-radius: var(--htr-radius-pill);
    border: 1px solid var(--htr-border);
    background: rgba(8, 10, 14, 0.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    padding: 8px;
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
}

.quick-action {
    min-width: 82px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: 0.18s ease;
}

.quick-action:hover,
.quick-action:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.quick-action i {
    font-size: 1rem;
}

.booking-shell {
    width: 100%;
    margin-top: 10px;
}

.booking-form {
    width: min(680px, 100%);
    margin: 0 auto;
    background: var(--htr-surface);
    border: 1px solid var(--htr-border);
    border-radius: var(--htr-radius-xl);
    box-shadow: var(--htr-shadow-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 22px 18px;
    color: var(--htr-text);
}

.booking-title {
    margin: 0 0 16px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #fff;
}

.booking-subtitle {
    margin: -6px 0 18px;
    color: var(--htr-muted);
    font-size: 0.95rem;
}

.public-local-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public-local-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
}

.public-local-option:hover,
.public-local-option:focus {
    border-color: var(--htr-primary);
    background: rgba(243, 101, 35, 0.14);
    color: #fff;
    text-decoration: none;
}

.public-local-option__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.public-local-option__name {
    font-size: 1.05rem;
    line-height: 1.25;
}

.public-local-option__address {
    margin-top: 3px;
    color: var(--htr-muted);
    font-size: 0.9rem;
}

.public-local-option__action {
    flex: 0 0 auto;
    color: #ffd5c1;
    font-weight: 700;
}

.selected-public-local {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 11px 13px;
    border-left: 4px solid var(--htr-primary);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.selected-public-local__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.selected-public-local__label {
    color: var(--htr-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.selected-public-local__name {
    color: #fff;
    font-size: 1.05rem;
}

.selected-public-local__address {
    margin-top: 2px;
    color: var(--htr-muted);
    font-size: 0.88rem;
}

.selected-public-local__change {
    flex: 0 0 auto;
    color: #ffd5c1;
    font-weight: 700;
    text-decoration: underline;
}

.selected-public-local__change:hover,
.selected-public-local__change:focus {
    color: #fff;
}

.form-group {
    margin-bottom: 14px;
}

.booking-form .form-label,
.booking-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #f3f5f9;
}

.booking-form .form-control,
.booking-form select,
.booking-form input,
.booking-form textarea {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(13, 20, 31, 0.16);
    background-color: var(--htr-input-bg);
    color: var(--htr-input-text);
    font-size: 1rem;
    line-height: 1.35;
    box-shadow: none;
    padding: 10px 12px;
}

.booking-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.booking-form .form-control:focus {
    border-color: rgba(243, 101, 35, 0.9);
    box-shadow: 0 0 0 0.2rem rgba(243, 101, 35, 0.16);
}

.booking-form .public-date-picker[readonly] {
    cursor: pointer;
    caret-color: transparent;
    background-color: var(--htr-input-bg);
}

.booking-form .public-date-picker[readonly]:focus {
    background-color: var(--htr-input-bg);
}

.field-help {
    margin-top: 6px;
    display: block;
    color: #dae0ea;
    font-size: 0.86rem;
}

.form-errors {
    margin: 0 0 6px;
    color: #ffd0d0;
    font-size: 0.88rem;
}

.form-row-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    border-radius: 12px;
    min-height: 44px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-htr-primary,
.booking-form .btn-primary,
.booking-form .btn-success {
    background: var(--htr-primary);
    border-color: var(--htr-primary);
    color: #fff;
}

.btn-htr-primary:hover,
.btn-htr-primary:focus,
.booking-form .btn-primary:hover,
.booking-form .btn-primary:focus,
.booking-form .btn-success:hover,
.booking-form .btn-success:focus {
    background: var(--htr-primary-hover);
    border-color: var(--htr-primary-hover);
    color: #fff;
}

.btn-htr-secondary,
.booking-form .btn-secondary,
.booking-form .btn-light,
.booking-form .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.btn-htr-secondary:hover,
.btn-htr-secondary:focus,
.booking-form .btn-secondary:hover,
.booking-form .btn-secondary:focus,
.booking-form .btn-light:hover,
.booking-form .btn-light:focus,
.booking-form .btn-outline-light:hover,
.booking-form .btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.booking-form .btn-block {
    width: 100%;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
}

.summary-section {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
}

.summary-section h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-size: 0.86rem;
    color: #d6dce7;
}

.summary-value {
    text-align: right;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.alert-inline {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid rgba(243, 101, 35, 0.5);
    background: rgba(243, 101, 35, 0.16);
    color: #fff1e9;
    padding: 10px 12px;
    font-size: 0.94rem;
}

.titulo {
    margin: 0 0 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.booking-text {
    margin: 0 0 10px;
    color: #e6ebf3;
    line-height: 1.45;
}

.locales-foot {
    margin-top: 12px;
    text-align: center;
    padding: 8px;
}

.locales-foot a {
    color: #fff;
    text-decoration: underline;
}

.modal.app-modal .modal-content {
    background: #12161d;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    color: #eef2f8;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.modal.app-modal .modal-header,
.modal.app-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.modal.app-modal .modal-header {
    padding: 14px 16px;
}

.modal.app-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.modal.app-modal .close {
    color: #fff;
    opacity: 0.88;
    text-shadow: none;
}

.modal.app-modal .modal-body {
    padding: 14px 16px;
    color: #dbe2ee;
}

.modal.app-modal .modal-footer {
    padding: 12px 16px;
}

.modal.app-modal .modal-body p,
.modal.app-modal .modal-body li,
.modal.app-modal .modal-body h3,
.modal.app-modal .modal-body h4 {
    color: #e9eef8;
}

.modal.app-modal .modal-body h3 {
    font-size: 1rem;
    margin-top: 16px;
}

#verModalRestaurantTermsAndConditions .modal-dialog,
#verModalTerminosyCondiciones .modal-dialog,
#verLocalModal .modal-dialog {
    max-width: 860px;
}

.modal-scroll-body {
    max-height: min(62vh, 620px);
    overflow-y: auto;
    padding-right: 6px;
}

.modal-sticky-footer {
    position: sticky;
    bottom: 0;
    background: #12161d;
    z-index: 2;
}

#verLocalModal #carouselImages {
    border-radius: 12px;
    overflow: hidden;
    background: #0b0f15;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#verLocalModal .carousel-item {
    aspect-ratio: 16 / 9;
}

#verLocalModal .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 12%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

.carousel-control-next {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 1.6rem;
    color: #fff;
}

#loading_div {
    z-index: 3000;
}

.darkeador {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.56);
}

.spin {
    border: 12px solid #ffffff;
    border-radius: 50%;
    border-top: 12px solid var(--htr-primary);
    border-right: 12px solid var(--htr-primary);
    border-bottom: 12px solid var(--htr-success);
    border-left: 12px solid var(--htr-primary);
    width: 58px;
    height: 58px;
    animation: spin 0.6s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(70, 72, 82, 0.3);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (min-width: 768px) {
    .booking-form {
        padding: 24px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .locales-body {
        padding-top: 12px;
    }

    .booking-form {
        border-radius: 16px;
        padding: 18px 14px;
    }

    .booking-title {
        margin-bottom: 12px;
        font-size: 27px;
        line-height: 1.18;
    }

    .booking-subtitle {
        margin-bottom: 16px;
        font-size: 17px;
        line-height: 1.35;
    }

    .public-local-option {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .selected-public-local {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .booking-form .form-label,
    .booking-form label {
        margin-bottom: 5px;
        font-size: 16px;
        line-height: 1.25;
    }

    .booking-form .form-control,
    .booking-form select,
    .booking-form input,
    .booking-form textarea {
        min-height: 48px;
        font-size: 16px;
        line-height: 1.25;
        padding: 9px 12px;
    }

    .booking-form select.form-control,
    .booking-form select {
        height: 48px;
    }

    .booking-form .btn,
    .booking-form input[type="submit"].btn {
        min-height: 50px;
        font-size: 17px;
        line-height: 1.25;
        padding: 10px 14px;
    }

    .form-row-actions {
        margin-top: 14px;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-row-actions .btn,
    .form-row-actions a.btn {
        width: 100%;
    }

    .four-icons-row {
        width: 100%;
        gap: 6px;
        border-radius: 16px;
        padding: 8px;
    }

    .quick-action {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.78rem;
        padding: 8px 10px;
    }

    .company-logo-safe {
        width: min(240px, 78vw);
        min-height: 96px;
    }
}
