
:root{
    --brand:#0b6b5e;
    --brand-dark:#064c43;
    --brand-soft:#eaf6f3;
    --accent:#ff6a00;
    --accent-dark:#e85d00;
    --ink:#14201f;
    --muted:#61706e;
    --line:#dce5e3;
    --surface:#ffffff;
    --page:#f5f8f7;
    --danger:#d92d20;
    --warning:#f79009;
    --success:#168a53;
    --shadow:0 18px 55px rgba(20,32,31,.08);
    --radius:18px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--page);
    line-height:1.5;
}

button,input,select,textarea{font:inherit}

.booking-page{min-height:100vh}

.experience-header{
    background:#fff;
    border-bottom:1px solid var(--line);
}

.experience-header-inner{
    width:min(1180px,calc(100% - 32px));
    margin:0 auto;
    min-height:118px;
    display:flex;
    align-items:center;
    gap:18px;
}

.back-link{
    width:42px;
    height:42px;
    border:1px solid var(--line);
    border-radius:12px;
    display:grid;
    place-items:center;
    color:var(--ink);
    text-decoration:none;
    flex:0 0 auto;
    transition:.2s ease;
}

.back-link:hover{background:var(--brand-soft);color:var(--brand)}

.tour-thumb-placeholder{
    width:76px;
    height:76px;
    border-radius:14px;
    background:linear-gradient(145deg,var(--brand-soft),#d5eee8);
    display:grid;
    place-items:center;
    color:var(--brand);
    font-size:1.45rem;
    flex:0 0 auto;
}

.experience-heading{min-width:0;flex:1}

.eyebrow,.summary-kicker,.mini-label{
    font-size:.73rem;
    letter-spacing:.09em;
    font-weight:800;
    color:var(--brand);
}

.experience-heading h1{
    margin:4px 0 4px;
    font-size:clamp(1.35rem,2.3vw,2rem);
    line-height:1.18;
}

.experience-heading p{
    margin:0;
    color:var(--muted);
}

.secure-badge{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--brand);
    background:var(--brand-soft);
    border-radius:999px;
    padding:10px 14px;
    font-weight:700;
    white-space:nowrap;
}

.booking-shell{
    width:min(1180px,calc(100% - 32px));
    margin:34px auto 70px;
}

.booking-layout{
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(300px,.75fr);
    gap:28px;
    align-items:start;
}

.booking-main{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.booking-card,.summary-card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:0 8px 30px rgba(20,32,31,.035);
}

.booking-card{padding:26px}

.section-heading{
    display:flex;
    align-items:flex-start;
    gap:14px;
    margin-bottom:22px;
}

.step-number{
    width:32px;
    height:32px;
    border-radius:50%;
    background:var(--brand);
    color:#fff;
    display:grid;
    place-items:center;
    font-weight:800;
    flex:0 0 auto;
}

.section-heading h2{
    margin:0 0 4px;
    font-size:1.35rem;
}

.section-heading p{
    margin:0;
    color:var(--muted);
    font-size:.94rem;
}

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

.field{
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-bottom:16px;
}

.field:last-child{margin-bottom:0}

label{
    font-weight:750;
    font-size:.86rem;
}

.required{color:var(--danger)}

input,select,textarea{
    width:100%;
    border:1px solid #cdd9d6;
    background:#fff;
    color:var(--ink);
    border-radius:12px;
    padding:13px 14px;
    outline:none;
    transition:border-color .2s,box-shadow .2s,background .2s;
}

input:focus,select:focus,textarea:focus{
    border-color:var(--brand);
    box-shadow:0 0 0 4px rgba(11,107,94,.1);
}

textarea{
    min-height:115px;
    resize:vertical;
}

.schedule-grid{
    display:grid;
    grid-template-columns:minmax(315px,1fr) minmax(250px,.8fr);
    gap:22px;
}

.calendar-panel,.time-panel{
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px;
    background:#fbfdfc;
}

.calendar-anchor{
    position:absolute!important;
    opacity:0!important;
    pointer-events:none!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    border:0!important;
}

.flatpickr-calendar.inline{
    width:100%;
    max-width:none;
    border:0;
    box-shadow:none;
    background:transparent;
    margin-top:8px;
}

.flatpickr-rContainer,
.flatpickr-days,
.dayContainer{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
}

.flatpickr-day{
    max-width:none;
    height:43px;
    line-height:43px;
    border-radius:10px;
    font-weight:700;
}

.flatpickr-day.today{border-color:var(--brand)}
.flatpickr-day.selected,
.flatpickr-day.selected:hover{
    background:var(--brand)!important;
    border-color:var(--brand)!important;
}

.flatpickr-current-month{font-size:1.02rem}
.flatpickr-weekday{font-weight:800!important;color:var(--muted)!important}

.native-time-select{display:none}

.time-cards{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:12px;
}

.time-card{
    width:100%;
    min-height:52px;
    border:1px solid #cfdad8;
    border-radius:12px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 15px;
    color:var(--ink);
    font-weight:800;
    cursor:pointer;
    transition:.18s ease;
}

.time-card:hover{
    border-color:var(--brand);
    transform:translateY(-1px);
}

.time-card.active{
    background:var(--brand);
    border-color:var(--brand);
    color:#fff;
    box-shadow:0 8px 20px rgba(11,107,94,.18);
}

.availability-card{
    margin-top:18px;
    border:1px solid var(--line);
    background:#fff;
    border-radius:14px;
    padding:15px;
}

.availability-topline,.availability-footer{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
}

.availability-header{
    display:flex;
    align-items:center;
    gap:7px;
    font-weight:800;
}

#availabilityStatus{
    font-size:.82rem;
    color:var(--brand);
}

.availability-progress{
    width:100%;
    height:8px;
    background:#e9efed;
    overflow:hidden;
    border-radius:999px;
    margin:12px 0 10px;
}

#availabilityBar{
    width:0;
    height:100%;
    border-radius:999px;
    background:var(--brand);
    transition:.25s ease;
}

.availability-footer{
    color:var(--muted);
    font-size:.82rem;
}

.availability-footer strong{color:var(--ink)}

.tour-box-title{
    font-size:1.08rem;
    font-weight:850;
    margin-bottom:14px;
}

.line-item{
    position:relative;
    border:1px solid var(--line);
    background:#fbfdfc;
    border-radius:15px;
    padding:18px;
    margin-bottom:14px;
}

.line-item-grid{
    display:grid;
    grid-template-columns:1.25fr .9fr .65fr;
    gap:14px;
}

.remove-line-btn{
    position:absolute;
    right:12px;
    top:10px;
    border:0;
    background:transparent;
    color:var(--danger);
    cursor:pointer;
    font-size:1rem;
}

.add-line-btn{
    border:0;
    background:transparent;
    color:var(--brand);
    font-weight:800;
    cursor:pointer;
    padding:8px 0;
    display:flex;
    align-items:center;
    gap:7px;
}

.pricing-note{
    margin-top:12px;
    border:1px dashed #cddbd7;
    background:#f7fbfa;
    padding:12px 14px;
    border-radius:12px;
    color:#50615e;
    font-size:.84rem;
}

.pricing-note.compact{margin-top:8px}

.rate-summary,.money-input{
    background:#fff!important;
    font-weight:750;
}

.subtotal-box{
    position:relative;
}

.subtotal-box .money-input{
    padding-right:58px;
}

.currency{
    position:absolute;
    right:13px;
    top:50%;
    transform:translateY(-50%);
    font-size:.7rem;
    font-weight:850;
    letter-spacing:.08em;
    color:var(--muted);
}

.deposit-box input{
    border-color:#bcded6;
    background:var(--brand-soft)!important;
    color:var(--brand-dark);
}

.alert-box{
    display:none;
    border:1px solid #fecaca;
    background:#fff1f2;
    color:#991b1b;
    border-radius:13px;
    padding:13px 15px;
    font-weight:700;
}

.action-card{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.action-copy{
    display:flex;
    gap:12px;
    align-items:center;
}

.action-copy>i{
    width:40px;
    height:40px;
    border-radius:12px;
    display:grid;
    place-items:center;
    color:var(--brand);
    background:var(--brand-soft);
}

.action-copy div{display:flex;flex-direction:column}
.action-copy span{font-size:.86rem;color:var(--muted)}

.primary-book-btn{
    width:100%;
    min-height:56px;
    border:0;
    border-radius:13px;
    background:linear-gradient(135deg,var(--accent),#ff8a00);
    color:#fff;
    font-weight:850;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(255,106,0,.2);
    transition:.2s ease;
}

.primary-book-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 30px rgba(255,106,0,.26);
}

.primary-book-btn:disabled{
    opacity:.65;
    cursor:not-allowed;
    transform:none;
}

.paypal-wrap{
    border-top:1px solid var(--line);
    padding-top:18px;
}

.payment-ready{
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:14px;
    color:var(--brand);
}

.payment-ready div{display:flex;flex-direction:column}
.payment-ready span{font-size:.84rem;color:var(--muted)}

.booking-summary{
    position:sticky;
    top:18px;
}

.summary-card{
    padding:24px;
    box-shadow:var(--shadow);
}

.summary-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:var(--brand);
}

.summary-card h3{
    font-size:1.25rem;
    margin:12px 0 4px;
}

.summary-card>p{
    color:var(--muted);
    margin:0;
    font-size:.9rem;
}

.summary-divider{
    height:1px;
    background:var(--line);
    margin:18px 0;
}

.ticket-content{
    font-size:.9rem;
}

.ticket-line{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    padding:9px 0;
    border-bottom:1px dashed #dfe7e5;
}

.ticket-line span{
    color:var(--muted);
}

.ticket-line strong{
    text-align:right;
    max-width:62%;
    overflow-wrap:anywhere;
}

.ticket-line:nth-last-child(-n+6) strong{
    color:var(--ink);
}

.summary-trust{
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid var(--line);
    display:flex;
    flex-direction:column;
    gap:9px;
    color:var(--muted);
    font-size:.82rem;
}

.summary-trust div{
    display:flex;
    gap:8px;
    align-items:center;
}

.summary-trust i{color:var(--brand)}

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

.variant-card{
    border:1px solid var(--line);
    border-radius:12px;
    padding:13px;
    background:#fff;
    cursor:pointer;
}

.variant-card.active{
    border-color:var(--brand);
    box-shadow:0 0 0 3px rgba(11,107,94,.09);
}

.variant-title{font-weight:850}
.variant-desc{font-size:.82rem;color:var(--muted)}
.variant-price{font-size:.8rem;color:var(--brand);font-weight:800;margin-top:5px}

.hidden{display:none!important}

.mobile-total-card{display:block}

@media (min-width:961px){
    .mobile-total-card{display:block}
}

@media (max-width:960px){
    .booking-layout{grid-template-columns:1fr}
    .booking-summary{position:static;order:-1}
    .summary-card{box-shadow:none}
    .schedule-grid{grid-template-columns:1fr}
    .experience-header-inner{min-height:104px}
    .secure-badge{display:none}
}

@media (max-width:700px){
    .booking-shell,.experience-header-inner{
        width:min(100% - 20px,1180px);
    }

    .booking-shell{margin-top:16px}
    .booking-card,.summary-card{padding:18px;border-radius:15px}
    .row-2,.line-item-grid,.variant-grid{grid-template-columns:1fr}
    .tour-thumb-placeholder{width:58px;height:58px}
    .back-link{width:38px;height:38px}
    .experience-heading h1{font-size:1.15rem}
    .experience-heading p{font-size:.83rem}
    .eyebrow{display:none}
    .flatpickr-day{height:40px;line-height:40px}
    .section-heading{margin-bottom:18px}
    .section-heading h2{font-size:1.17rem}
}

@media (max-width:480px){
    .experience-header-inner{gap:10px}
    .tour-thumb-placeholder{display:none}
    .calendar-panel,.time-panel{padding:12px}
    .booking-card,.summary-card{padding:15px}
}




/* =========================================
   MOBILE STICKY CHECKOUT
========================================= */

.mobile-checkout-bar {
    display: none;
}

@media (max-width: 700px) {

    body {
        padding-bottom: 95px;
    }

    /* Ocultar botón grande original SOLO en móvil */
    #sendDetailsBtn {
        display: none;
    }

    .mobile-checkout-bar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;

        z-index: 9999;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        padding: 10px 10px 10px 14px;

        background: rgba(255, 255, 255, 0.97);

        border: 1px solid #dce5e3;
        border-radius: 16px;

        box-shadow:
            0 16px 40px rgba(20, 32, 31, 0.18);

        backdrop-filter: blur(12px);
    }

    .mobile-checkout-total {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-checkout-total span {
        font-size: 0.72rem;
        color: #61706e;
    }

    .mobile-checkout-total strong {
        font-size: 1rem;
        color: #14201f;
    }

    #mobileContinueBtn {
        border: 0;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 12px;

        background: linear-gradient(
            135deg,
            #ff6a00,
            #ff8a00
        );

        color: white;
        font-weight: 800;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 7px;

        cursor: pointer;
        white-space: nowrap;

        box-shadow:
            0 8px 18px rgba(255, 106, 0, 0.25);
    }

    #mobileContinueBtn:active {
        transform: scale(0.98);
    }
}



/*PARA SUMMARY*/
.mobile-summary-compact {
    display: none;
}

@media (max-width: 700px) {

    .mobile-summary-compact {
        display: block;
    }

    .ticket-content-collapsible {
        display: none;
        margin-top: 14px;
    }

    .ticket-content-collapsible.open {
        display: block;
    }

    .mobile-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;

        padding: 8px 0;

        border-bottom: 1px dashed #dfe7e5;
    }

    .mobile-summary-row span {
        color: #61706e;
    }

    .mobile-summary-row strong {
        color: #14201f;
    }

    .mobile-summary-row.highlight {
        margin-top: 4px;
        padding: 12px;

        border: 0;
        border-radius: 10px;

        background: #eaf6f3;
    }

    .mobile-summary-row.highlight strong {
        color: #0b6b5e;
    }

    .summary-toggle-btn {
        width: 100%;

        margin-top: 12px;
        padding: 11px 12px;

        border: 1px solid #dce5e3;
        border-radius: 10px;

        background: white;
        color: #0b6b5e;

        font-weight: 800;

        display: flex;
        justify-content: center;
        align-items: center;

        gap: 7px;

        cursor: pointer;
    }

}
/*para el guest d eaultos ye so*/
/* =========================================
   PREMIUM GUEST COUNTER
========================================= */

.guest-counter {
    display: grid;
    grid-template-columns: 48px minmax(52px, 1fr) 48px;

    align-items: center;

    min-height: 52px;

    background: #ffffff;

    border: 1px solid #cdd9d6;
    border-radius: 12px;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.guest-counter:focus-within {
    border-color: var(--brand);

    box-shadow:
        0 0 0 4px rgba(11, 107, 94, 0.1);
}


.guest-counter-btn {
    height: 52px;

    border: 0;

    background: #f1f8f6;

    color: var(--brand);

    font-size: 1.35rem;
    font-weight: 900;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.guest-counter-btn:hover {
    background: var(--brand);
    color: white;
}


.guest-counter-btn:active {
    transform: scale(0.96);
}


.guest-counter-input {
    height: 52px;

    padding: 0 !important;

    border: 0 !important;
    border-left: 1px solid #e3ebe9 !important;
    border-right: 1px solid #e3ebe9 !important;

    border-radius: 0 !important;

    background: #ffffff !important;

    box-shadow: none !important;

    text-align: center;

    font-weight: 900;
    font-size: 1rem;

    color: var(--ink);

    -moz-appearance: textfield;
}


.guest-counter-input::-webkit-inner-spin-button,
.guest-counter-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.flatpickr-day.flatpickr-disabled {
    cursor: not-allowed;
}

.flatpickr-day.flatpickr-disabled:hover {
    cursor: not-allowed;
}