
/* ACOSTA RENT CAR — RESERVAS */

.reservation-page {
    --gold: #b79a61;
    --dark: #1d2229;
    --muted: #737d89;
    --border: #e2e7ed;
    background: #f3f5f8;
    color: var(--dark);
    font-family: 'Manrope', sans-serif;
}

.reservation-page *,
.reservation-page *::before,
.reservation-page *::after {
    box-sizing: border-box;
}

.reservation-container {
    width: calc(100% - 48px);
    max-width: 1800px;
    margin: 0 auto;
}

.reservation-hero {
    padding: 75px 0;
    background: linear-gradient(120deg, #191d23, #303640);
    color: white;
}

.reservation-eyebrow {
    display: inline-block;
    color: #b79a61;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.reservation-hero h1 {
    margin: 14px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 800;
    letter-spacing: -2px;
}

.reservation-hero h1 em {
    color: #b79a61;
    font-style: normal;
}

.reservation-hero p {
    color: #c6ccd4;
    font-size: 14px;
}

.reservation-section {
    padding: 55px 0 110px;
}

.reservation-steps {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.reservation-steps span {
    padding: 13px 20px;
    border: 1px solid #e0e5ea;
    border-radius: 12px;
    background: #fff;
    color: #8b949e;
    font-size: 12px;
    font-weight: 800;
}

.reservation-steps span.active {
    border-color: #d7c49f;
    color: #927342;
    background: #f5eee2;
}

.reservation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: start;
    gap: 28px;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.reservation-panel {
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
}

.reservation-panel h2 {
    margin: 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
    letter-spacing: -.7px;
}

.reservation-panel > p {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.reservation-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.reservation-field {
    min-width: 0;
    margin-bottom: 18px;
}

.reservation-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 800;
}

.reservation-field input,
.reservation-field textarea {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #fafbfc;
    color: #252a31;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.reservation-field textarea {
    min-height: 115px;
    resize: vertical;
}

.reservation-field input:focus,
.reservation-field textarea:focus {
    border-color: #b79a61;
    background: #fff;
}

.reservation-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 12px 0 22px;
    color: #4f5965;
    font-size: 13px;
    line-height: 1.7;
    cursor: pointer;
}

.reservation-check input,
.reservation-payment-option input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 2px;
    accent-color: #b79a61;
}

#booking-flight-fields[hidden],
.reservation-review[hidden] {
    display: none !important;
}

.reservation-payment-options {
    display: grid;
    gap: 14px;
}

.reservation-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    border: 2px solid #e5e9ee;
    border-radius: 15px;
    background: #fafbfc;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.reservation-payment-option.selected,
.reservation-payment-option:has(input:checked) {
    border-color: #b79a61;
    background: #f8f3e9;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option-content strong {
    font-size: 14px;
    font-weight: 800;
}

.payment-option-content small {
    color: #69737e;
    font-size: 12px;
    line-height: 1.7;
}

.reservation-terms {
    margin-top: 25px;
}

.reservation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 15px 24px;
    border: 0;
    border-radius: 11px;
    background: #20252c;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.reservation-button:hover {
    background: #b79a61;
    color: #111;
}

.reservation-feedback {
    color: #a33e3e;
    font-size: 12px;
    line-height: 1.7;
}

.reservation-note {
    margin: 16px 0 0;
    color: #87919c;
    font-size: 11px;
    line-height: 1.8;
}

/* RESUMEN */

.reservation-summary {
    min-width: 0;
}

.reservation-summary-card {
    position: sticky;
    top: 100px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20,30,40,.04);
}

.reservation-summary-card > img {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.reservation-summary-body {
    padding: 28px;
}

.reservation-summary-body h3 {
    margin: 10px 0 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.reservation-summary-body > a {
    display: inline-block;
    margin-bottom: 24px;
    color: #a48651;
    font-size: 12px;
    font-weight: 800;
}

.reservation-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #eef0f3;
}

.reservation-summary-line span {
    color: #727d89;
    font-size: 12px;
}

.reservation-summary-line strong {
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.reservation-summary-line.total {
    padding: 20px 0;
}

.reservation-summary-line.total span {
    color: #1d2229;
    font-weight: 800;
}

.reservation-summary-line.total strong {
    color: #a48651;
    font-size: 24px;
}

/* VENTANA DE REVISIÓN */

.reservation-review {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(12,17,23,.7);
}

.reservation-review-dialog {
    position: relative;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 20px;
    background: #fff;
}

.reservation-review-dialog h2 {
    margin: 12px 0 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
}

.review-close {
    position: absolute;
    top: 15px;
    right: 20px;
    border: 0;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.review-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f3;
    font-size: 13px;
}

.review-line span {
    color: #77818d;
}

.review-line strong {
    max-width: 65%;
    text-align: right;
    overflow-wrap: anywhere;
}

.reservation-review-dialog .reservation-button {
    margin-top: 25px;
}

.reservation-empty {
    padding: 120px 20px;
    text-align: center;
}

.reservation-empty p {
    margin: 20px 0;
}

.reservation-empty .reservation-button {
    width: auto;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .reservation-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 20px;
    }

    .reservation-panel {
        padding: 25px;
    }
}

@media (max-width: 900px) {
    .reservation-layout {
        grid-template-columns: 1fr;
    }

    .reservation-summary-card {
        position: static;
    }
}

@media (max-width: 600px) {
    .reservation-container {
        width: calc(100% - 30px);
    }

    .reservation-hero {
        padding: 60px 0;
    }

    .reservation-section {
        padding: 35px 0 75px;
    }

    .reservation-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .reservation-panel {
        padding: 22px;
    }

    .reservation-steps span {
        padding: 10px;
        font-size: 10px;
    }

    .reservation-review-dialog {
        padding: 25px;
    }
}

/* ==========================================================
   ACOSTA — ENTREGA FLEXIBLE Y SERVICIOS ADICIONALES
   ========================================================== */

.reservation-field select {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #fafbfc;
    color: #252a31;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.reservation-field select:focus {
    border-color: #b79a61;
    background: #fff;
}

#booking-flight-fields[hidden],
#booking-return-location-fields[hidden] {
    display: none !important;
}

.reservation-quote-notice {
    padding: 17px 20px;
    margin-top: 18px;
    border-left: 3px solid #b79a61;
    border-radius: 0 10px 10px 0;
    background: #f8f4ec;
    color: #756344;
    font-size: 12px;
    line-height: 1.8;
}

.reservation-extras {
    display: grid;
    gap: 13px;
    margin: 22px 0 28px;
}

.reservation-extra {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e3e7ec;
    border-radius: 13px;
    background: #fafbfc;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.reservation-extra:has(input:checked) {
    border-color: #b79a61;
    background: #f8f3e9;
}

.reservation-extra input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    accent-color: #b79a61;
}

.reservation-extra > span {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
}

.reservation-extra strong {
    color: #252a31;
    font-size: 13px;
    font-weight: 800;
}

.reservation-extra small {
    color: #78838e;
    font-size: 12px;
    line-height: 1.6;
}

.reservation-extra em {
    color: #a48651;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .reservation-extra {
        flex-wrap: wrap;
        padding: 16px;
    }

    .reservation-extra em {
        margin-left: 33px;
    }
}


/* =========================================
   RESUMEN DE RESERVA STICKY — ESCRITORIO
   ========================================= */

@media (min-width: 992px) {
    .reservation-layout {
        align-items: start;
    }

    .reservation-summary {
        position: sticky;
        top: 100px;
        align-self: start;
        height: fit-content;
        max-height: calc(100vh - 115px);
        overflow-y: auto;
        scrollbar-width: thin;
        z-index: 5;
    }
}

@media (max-width: 991px) {
    .reservation-summary {
        position: static;
        max-height: none;
        overflow: visible;
    }
}


/* LOGO EN REVISIÓN DE RESERVA */

.reservation-review-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 25px;
}

.reservation-review-brand img {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
