/* reservas-ux.css — UX shared: toasts, skeletons */

/* =====================================================
   TOASTS
   ===================================================== */
.reservas-toasts {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: calc(100vw - 30px);
    width: max-content;
}

.reservas-toast {
    background: rgba(15,23,42,0.94);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity 0.25s, transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-width: 240px;
    max-width: 100%;
    line-height: 1.35;
}

.reservas-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.reservas-toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.reservas-toast-msg {
    flex: 1;
}

.reservas-toast-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 0 0 6px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}
.reservas-toast-close:hover {
    color: #fff;
}

.reservas-toast-success {
    background: linear-gradient(135deg, #059669, #047857);
}
.reservas-toast-error {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}
.reservas-toast-warning {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}
.reservas-toast-info {
    background: rgba(15,23,42,0.94);
}

/* =====================================================
   SKELETON LOADERS
   ===================================================== */
@keyframes reservas-shimmer {
    0% { background-position: -300px 0; }
    100% { background-position: 300px 0; }
}

.reservas-skeleton {
    background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
    background-size: 600px 100%;
    animation: reservas-shimmer 1.4s linear infinite;
    border-radius: 10px;
}

.reservas-skeleton-row {
    height: 56px;
    margin-bottom: 8px;
}

.reservas-skeleton-card {
    height: 120px;
    margin-bottom: 12px;
}

.reservas-skeleton-grid {
    aspect-ratio: 1 / 1;
    min-height: 52px;
}

/* Container especial para grid de skeletons */
.reservas-skeleton-grid-wrap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
