﻿/* =========================
   PX MODAL (itinerario) · PREMIUM
   ========================= */
.px-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

    /* Visible */
    .px-modal[aria-hidden="false"] {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.px-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 6, .55);
    backdrop-filter: blur(6px);
}

/* Caja */
.px-modal-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #faf6f1);
    border: 1px solid rgba(215,198,182,.9);
    box-shadow: 0 32px 90px rgba(0,0,0,.28);
    padding: 20px 20px 18px;
}

/* Cerrar */
.px-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(215,198,182,.9);
    background: #fff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .px-modal-close:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba(0,0,0,.18);
    }

/* Header */
.px-modal-head {
    padding-right: 56px;
    margin-bottom: 14px;
}

    .px-modal-head h3 {
        font-size: 1.5rem;
        font-weight: 900;
        margin: 6px 0 4px;
        letter-spacing: -.3px;
    }

    .px-modal-head .px-muted {
        font-size: .95rem;
        font-weight: 650;
        color: var(--tal-muted);
    }

/* Body */
.px-modal-body {
    padding-top: 14px;
    border-top: 1px solid rgba(215,198,182,.55);
    display: grid;
    gap: 14px;
}

/* Día (tarjeta) */
.px-day {
    position: relative;
    padding: 14px 16px 14px 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f9f3ec);
    border: 1px solid rgba(215,198,182,.55);
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .px-day:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(0,0,0,.16);
    }

    /* Número / icono del día */
    .px-day::before {
        content: attr(data-day);
        position: absolute;
        top: 16px;
        left: 16px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--tal-gold), var(--tal-gold-soft));
        color: #fff;
        font-weight: 900;
        font-size: .85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 14px rgba(201,115,44,.45);
    }

    /* Título día */
    .px-day h4 {
        margin: 0 0 6px;
        font-size: 1.05rem;
        font-weight: 850;
        letter-spacing: -.2px;
    }

    /* Texto día */
    .px-day p {
        margin: 0;
        font-size: .95rem;
        font-weight: 650;
        color: var(--tal-muted);
        line-height: 1.55;
    }

/* Nota */
.px-alert {
    margin-top: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ec, #fdebd6);
    border: 1px solid rgba(201,115,44,.35);
    font-size: .92rem;
    font-weight: 650;
    color: var(--tal-text);
}

/* Acciones */
.px-modal-actions {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed rgba(215,198,182,.65);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Bloquear scroll body */
body.px-modal-open {
    overflow: hidden;
}
