/* ==========================================================================
   Kristian Transfers - Reservar (formulario en 3 pasos + resumen de precio)
   ========================================================================== */

.book-section { background: var(--bg); padding: clamp(1.5rem, 4vw, 3rem) 0 5rem; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }

.book-card {
    background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
    padding: clamp(1.1rem, 3vw, 2rem); min-width: 0;
}
.book-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.1rem; animation: tabIn .4s var(--ease); }

/* Indicador de pasos */
.book-steps { list-style: none; display: flex; gap: .5rem; margin-bottom: 1.4rem; counter-reset: none; }
.book-steps li {
    flex: 1; display: flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 700; color: var(--muted);
    padding-bottom: .65rem; border-bottom: 3px solid var(--line); transition: color .2s, border-color .2s;
}
.book-steps li span {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line);
    color: var(--muted); font-size: .8rem; flex: none; transition: background .2s, color .2s;
}
.book-steps li.is-active { color: var(--navy); border-color: var(--accent-dark); }
.book-steps li.is-active span { background: var(--navy); color: #fff; }
.book-steps li.is-done { color: var(--ok); border-color: var(--ok); }
.book-steps li.is-done span { background: var(--ok); color: #fff; }

/* Tipo de viaje */
.trip-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 14px; padding: 4px; gap: 4px; }
.trip-toggle label { position: relative; cursor: pointer; }
.trip-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.trip-toggle span {
    display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem .5rem; border-radius: 11px;
    font-weight: 700; color: var(--muted); transition: all .2s; min-height: 46px; text-align: center;
}
.trip-toggle input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.trip-toggle input:focus-visible + span { outline: 3px solid var(--accent-dark); outline-offset: 1px; }

/* Origen / destino */
.route-box { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: end; }
.route-box--sm { margin-top: .6rem; }
.route-box .field > label i { color: var(--accent-dark); margin-right: .3rem; }
.swap-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy);
    display: grid; place-items: center; transition: transform .3s var(--ease), background .2s; align-self: end; margin-bottom: 1.35rem;
}
.swap-btn:hover { background: var(--navy); color: #fff; transform: rotate(180deg); }

/* Combobox */
.combo { position: relative; }
.combo-list {
    position: absolute; z-index: 40; top: calc(100% - 1.3rem); left: 0; right: 0; max-height: 280px; overflow-y: auto;
    background: #fff; border: 1.5px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow-lg); list-style: none; padding: .3rem;
}
.combo-list li { padding: .65rem .8rem; border-radius: 8px; cursor: pointer; display: flex; gap: .6rem; align-items: center; min-height: 44px; }
.combo-list li i { color: var(--accent-dark); width: 1rem; text-align: center; }
.combo-list li.is-active, .combo-list li:hover { background: #eaf6fd; }
.combo-list li small { margin-left: auto; color: var(--muted); font-size: .75rem; }
.combo-list .combo-group { cursor: default; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; min-height: 0; padding: .55rem .8rem .2rem; }
.combo-list .combo-group:hover { background: none; }
.combo-empty { padding: .8rem; color: var(--muted); font-size: .9rem; }

.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field > label i { margin-right: .3rem; color: var(--accent-dark); }
.return-wrap { display: grid; gap: .6rem; padding: 1rem; background: var(--bg); border-radius: 14px; border: 1px dashed #c9d8ec; }

/* Pasajeros */
.pax-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: var(--bg); border-radius: 14px; }
.pax-row .hint { display: block; color: var(--muted); font-size: .8rem; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; }
.stepper button {
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center;
    transition: background .2s, transform .15s;
}
.stepper button:hover { background: var(--navy-2); }
.stepper button:active { transform: scale(.92); }
.stepper button:disabled { background: var(--line); color: #9aa8bd; cursor: not-allowed; }
.stepper output { min-width: 2.2rem; text-align: center; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.stepper--sm button { width: 32px; height: 32px; font-size: .75rem; }
.stepper--sm output { min-width: 1.8rem; font-size: 1rem; }

/* Precio en vivo */
.live-price {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 16px; padding: 1rem 1.3rem;
}
.live-price small { display: block; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; }
.live-price strong { font-size: 2rem; line-height: 1.1; font-weight: 800; display: inline-block; }
.live-price strong.bump, #sumTotal.bump, #mobileTotal.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.08); color: var(--cta-2); } }
.live-note { font-size: .85rem; color: rgba(255, 255, 255, .8); max-width: 260px; text-align: right; }

.form-actions { margin-top: .4rem; }
.back-btn { justify-self: start; }

/* Extras / cupon */
.extras-box { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.extras-box summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: var(--navy); list-style: none; display: flex; gap: .5rem; align-items: center; min-height: 52px; }
.extras-box summary::-webkit-details-marker { display: none; }
.extras-box summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: .75rem; color: var(--accent-dark); transition: transform .2s; }
.extras-box[open] summary::after { transform: rotate(180deg); }
.extras-box summary small { font-weight: 500; color: var(--muted); }
.extras-list { padding: 0 1.1rem 1rem; display: grid; gap: .5rem; }
.extra-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.extra-row:first-child { border-top: 0; }
.extra-row em { color: var(--muted); font-style: normal; }
.coupon-row { display: flex; gap: .6rem; padding: 0 1.1rem .4rem; }
.coupon-row .input { text-transform: uppercase; }
.coupon-msg { padding: 0 1.1rem 1rem; font-size: .88rem; min-height: 1.2rem; }
.coupon-msg.ok { color: var(--ok); font-weight: 700; }
.coupon-msg.bad { color: var(--danger); font-weight: 700; }

/* Metodo de pago */
.pay-methods { display: grid; gap: .6rem; }
.pay-option { position: relative; cursor: pointer; display: block; }
.pay-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pay-option > span {
    display: grid; grid-template-columns: 28px 1fr; column-gap: .7rem; align-items: center; padding: .95rem 1.1rem;
    border: 1.5px solid var(--line); border-radius: 14px; transition: all .2s; background: #fff;
}
.pay-option > span i { grid-row: span 2; font-size: 1.3rem; color: var(--accent-dark); }
.pay-option strong { color: var(--navy); }
.pay-option small { color: var(--muted); font-size: .82rem; }
.pay-option input:checked + span { border-color: var(--navy); background: #f3f8fe; box-shadow: 0 0 0 3px rgba(117, 199, 237, .35); }
.pay-option input:focus-visible + span { outline: 3px solid var(--accent-dark); outline-offset: 2px; }

#submitBtn, #payBtn { display: flex; justify-content: center; align-items: center; gap: .6rem; }
#submitBtn.is-loading::after, #payBtn.is-loading::after {
    content: ''; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.pay-title { color: var(--navy); font-size: 1.3rem; }
.payment-element { min-height: 120px; }

/* Resumen */
.book-summary { position: sticky; top: 90px; display: grid; gap: 1rem; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; box-shadow: var(--shadow); }
.summary-card h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.summary-list { display: grid; gap: .7rem; }
.summary-list > div { display: flex; gap: .8rem; align-items: flex-start; }
.summary-list dt { width: 28px; color: var(--accent-dark); text-align: center; padding-top: .15rem; }
.summary-list dd { margin: 0; font-weight: 700; color: var(--navy); line-height: 1.4; }
.summary-list dd.muted { font-weight: 500; }
.price-lines { list-style: none; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); display: grid; gap: .45rem; font-size: .92rem; }
.price-lines li { display: flex; justify-content: space-between; gap: 1rem; color: #3d4f69; }
.price-lines li.discount { color: var(--ok); font-weight: 700; }
.price-lines li.night { color: #8a5a00; }
.price-lines li.interest { color: #1a4d7c; font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--navy); }
.summary-total span { font-weight: 700; color: var(--navy); }
.summary-total strong { font-size: 2rem; font-weight: 800; color: var(--navy); display: inline-block; }
.summary-fine { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.summary-perks { list-style: none; margin-top: 1rem; display: grid; gap: .45rem; font-size: .88rem; color: #3d4f69; }
.summary-perks i { color: var(--green); margin-right: .45rem; }
.help-card {
    display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: 16px; text-decoration: none;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s;
}
.help-card:hover { transform: translateY(-2px); border-color: #25d366; }
.help-card > i { font-size: 2rem; color: #25d366; }
.help-card strong { display: block; color: var(--navy); }
.help-card small { color: var(--muted); }

/* Barra inferior movil */
.mobile-bar { display: none; }

@media (max-width: 960px) {
    .book-layout { grid-template-columns: 1fr; }
    .book-summary { position: static; order: 2; }
    .mobile-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: fixed; z-index: 850; left: 0; right: 0; bottom: 0;
        padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--navy); color: #fff; box-shadow: 0 -8px 24px rgba(7, 22, 47, .3);
    }
    .mobile-bar small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
    .mobile-bar strong { font-size: 1.5rem; font-weight: 800; display: inline-block; }
    .mobile-bar span { font-size: .8rem; color: rgba(255, 255, 255, .75); text-align: right; }
    body.page-book .whatsapp-float { bottom: 84px; }
    body.page-book .cookie-fab { bottom: 84px; }
    .live-price { display: none; }
}
@media (max-width: 560px) {
    .route-box { grid-template-columns: 1fr; }
    .swap-btn { justify-self: center; margin: -.2rem 0; transform: rotate(90deg); }
    .swap-btn:hover { transform: rotate(270deg); }
    .dt-grid { grid-template-columns: 1fr 1fr; }
    .book-steps li { font-size: 0; gap: 0; justify-content: center; }
    .book-steps li span { font-size: .85rem; }
    .book-steps li.is-active { font-size: .8rem; gap: .4rem; }
    .combo-list { top: calc(100% - 1.2rem); }
}
@media (min-width: 961px) {
    .live-price { display: flex; }
}

/* ==========================================================================
   Aspecto de la web antigua para Reservar (fondo con foto, cuadro de titulo,
   tarjetas con borde azul marino y botones naranjas). Mismo formulario y logica.
   ========================================================================== */
.book-section {
    background: linear-gradient(rgba(10, 31, 68, .55), rgba(10, 31, 68, .55)), url('/assets/img/hero/booking-bg.jpg') center / cover fixed;
    padding: clamp(2rem, 5vw, 4rem) 0 5rem;
}
.book-head {
    text-align: center; background: rgba(255, 255, 255, .92); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2); max-width: 800px; margin: 0 auto 2rem;
}
.book-head h1 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-blue); font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; }
.book-head p { color: var(--primary-blue); font-weight: 600; font-style: italic; margin-top: .5rem; }
.book-card, .summary-card { border: 2px solid var(--border-color); border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.book-steps li.is-active { border-color: #f59e0b; }
.book-steps li.is-active span { background: var(--primary-blue); }
.live-price { background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)); border-radius: 12px; }
.live-price strong, .summary-total strong { font-family: 'Montserrat', sans-serif; }
.live-price strong { color: #f59e0b; }
.trip-toggle input:checked + span { background: var(--primary-blue); color: #fff; }
.stepper button { background: var(--primary-blue); }
.help-card { border: 2px solid var(--border-color); border-radius: 12px; }
.input, .select, .textarea { border: 2px solid var(--border-color); border-radius: 8px; }@media (max-width: 768px) { .book-section { background-attachment: scroll; } }
