/* Detalle de excursión — orden tipo marketplace (identidad Kai Travel) */

.excursion-detalle-page {
    background: var(--white);
    padding: 28px 20px 96px;
}

.excursion-detalle-shell {
    max-width: 1180px;
    margin: 0 auto;
}

/* —— Título y meta (ancho completo) —— */
.exp-header {
    margin-bottom: 20px;
}

.exp-header__title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.exp-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

.exp-badge--primary {
    background: rgba(11, 43, 78, 0.08);
    color: var(--primary);
}

.exp-header__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 0.92rem;
    color: #555;
}

.exp-header__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.exp-header__meta i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* —— Cuerpo: galería+contenido | reserva —— */
.exp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 28px 36px;
    align-items: start;
}

.exp-main {
    min-width: 0;
}

/* —— Galería bento —— */
.exp-gallery {
    display: grid;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    background: transparent;
}

.exp-gallery--1 {
    grid-template-columns: 1fr;
    min-height: 0;
}

.exp-gallery--2 {
    grid-template-columns: 1.2fr 1fr;
    min-height: 340px;
}

.exp-gallery--3 {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 380px;
}

.exp-gallery--3 .exp-gallery__item:first-child {
    grid-row: 1 / -1;
}

.exp-gallery--4,
.exp-gallery--many {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 400px;
    aspect-ratio: 16 / 9;
}

.exp-gallery--4 .exp-gallery__item:first-child,
.exp-gallery--many .exp-gallery__item:first-child {
    grid-row: 1 / -1;
}

.exp-gallery__item {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #dce4ec;
    min-height: 0;
}

.exp-gallery--1 .exp-gallery__item {
    min-height: 280px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
}

.exp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.exp-gallery__item:hover img {
    transform: scale(1.03);
}

.exp-gallery__btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exp-gallery__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.exp-gallery__btn:focus-visible {
    outline: 3px solid rgba(11, 43, 78, 0.35);
    outline-offset: 2px;
}

/* —— Contenido editorial —— */
.exp-section {
    padding: 24px 0;
    border-top: 1px solid #ebebeb;
}

.exp-section:first-of-type {
    border-top: none;
    padding-top: 4px;
}

.exp-section__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.exp-section__body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.exp-section__body p + p {
    margin-top: 1em;
}

.exp-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #333;
    margin: 0 0 8px;
}

.exp-alert {
    background: #fff8e6;
    border: 1px solid #ffe2a8;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.92rem;
    color: #5c4a00;
    margin: 16px 0 8px;
}

.exp-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.exp-highlight {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}

.exp-highlight__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef3f8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.exp-highlight__title {
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
    font-size: 0.98rem;
}

.exp-highlight__text {
    margin: 0;
    font-size: 0.92rem;
    color: #666;
    line-height: 1.45;
}

.exp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exp-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.exp-list li i {
    margin-top: 3px;
    color: #1f8a4c;
}

.exp-list--muted li i {
    color: #999;
}

.exp-combos {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exp-combos li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(11, 43, 78, 0.08);
    color: #1a1a1a;
}

.exp-combos__nombre {
    font-weight: 600;
    line-height: 1.4;
}

.exp-combos__precio {
    font-weight: 700;
    color: var(--primary, #0b2b4e);
    white-space: nowrap;
}

.exp-section__intro {
    margin: -6px 0 18px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.exp-itinerary {
    white-space: pre-line;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #444;
}

.exp-itinerary-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-itinerary-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    position: relative;
    padding-bottom: 22px;
}

.exp-itinerary-step:last-child {
    padding-bottom: 0;
}

.exp-itinerary-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(11, 43, 78, 0.22), rgba(11, 43, 78, 0.06));
}

.exp-itinerary-step__marker {
    position: relative;
    z-index: 1;
}

.exp-itinerary-step__index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(11, 43, 78, 0.08);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.95rem;
}

.exp-itinerary-step__content {
    min-width: 0;
    padding-top: 4px;
}

.exp-itinerary-step__time {
    margin: 0 0 4px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary);
}

.exp-itinerary-step__text {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #444;
}

/* —— Sidebar reserva —— */
.exp-sidebar {
    position: sticky;
    top: 140px;
}

.exp-book {
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    padding: 22px 20px;
}

.exp-book__price {
    margin-bottom: 18px;
}

.exp-book__price-line {
    margin: 0;
    font-size: 1.05rem;
    color: #222;
    line-height: 1.35;
}

.exp-book__price-line strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a1a;
}

.exp-book__price-secondary {
    font-size: 0.9rem;
    color: #666;
    margin: 6px 0 0;
}

.exp-book__title {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0 0 10px;
}

.exp-book__text {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 16px;
    line-height: 1.5;
}

.exp-book__shore {
    background: #f7f9fc;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
    margin-bottom: 14px;
    color: #334;
}

.exp-book__shore strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
}

.exp-book__shore ul {
    margin: 0;
    padding-left: 1.1em;
}

.exp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exp-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
}

.exp-field input,
.exp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d8d8d8;
    background: #f7f7f7;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.exp-field input:focus,
.exp-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 43, 78, 0.12);
}

.exp-field textarea {
    min-height: 80px;
    resize: vertical;
}

.exp-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.exp-total {
    display: none;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f0f8ff;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.exp-total.is-visible { display: block; }
.exp-total.is-warn { background: #fff3e0; color: #f57c00; }
.exp-total.is-error { background: #ffebee; color: #c62828; }
.exp-total.is-ok { background: #e8f5e8; color: #2e7d32; }

.exp-book .cta-button,
.exp-book .exp-book__cta {
    width: 100%;
    border-radius: 12px;
    margin-top: 4px;
    box-sizing: border-box;
    text-align: center;
    font-weight: 700;
    padding: 0.95rem 1.25rem;
}

.exp-book__hint {
    font-size: 0.82rem;
    color: #666;
    text-align: center;
    margin: 4px 0 0;
}

.exp-trust {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-trust li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.exp-trust li i {
    color: #1f8a4c;
    margin-top: 2px;
}

.exp-trust small {
    display: block;
    color: #777;
    font-size: 0.82rem;
    margin-top: 2px;
}

/* —— Lightbox —— */
.exp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 20, 35, 0.88);
}

.exp-lightbox.is-open {
    display: flex;
}

.exp-lightbox__inner {
    position: relative;
    width: min(960px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #111;
    border-radius: 14px;
    padding: 16px;
}

.exp-lightbox__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    font-size: 1.1rem;
    color: #222;
}

.exp-lightbox__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.exp-lightbox__grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

body.exp-lightbox-open {
    overflow: hidden;
}

/* —— Responsive —— */
@media (max-width: 992px) {
    .exp-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .exp-sidebar {
        position: static;
        order: 2;
    }

    .exp-main {
        order: 1;
    }

    .exp-gallery--4,
    .exp-gallery--many {
        aspect-ratio: auto;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .excursion-detalle-page {
        padding: 16px 16px 72px;
    }

    .exp-header__title {
        font-size: 1.5rem;
    }

    .exp-gallery {
        border-radius: 12px;
        gap: 6px;
        margin-bottom: 20px;
    }

    .exp-gallery--2,
    .exp-gallery--3,
    .exp-gallery--4,
    .exp-gallery--many {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .exp-gallery--3 .exp-gallery__item:first-child,
    .exp-gallery--4 .exp-gallery__item:first-child,
    .exp-gallery--many .exp-gallery__item:first-child {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 210px;
        aspect-ratio: 16 / 10;
    }

    .exp-gallery__item {
        min-height: 110px;
        aspect-ratio: 4 / 3;
    }

    .exp-gallery--1 .exp-gallery__item {
        min-height: 200px;
        border-radius: 12px;
    }

    .exp-book {
        border-radius: 14px;
    }

    .exp-form__row {
        grid-template-columns: 1fr;
    }

    .exp-field input,
    .exp-field textarea,
    .exp-book .cta-button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .excursion-detalle-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .exp-gallery--2 {
        grid-template-columns: 1fr;
    }
}
