/* Estilos personalizados de Reservas Platform */

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --secondary: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
}

/* Utilidades */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Calendario personalizado */
.calendar-day {
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.calendar-day:hover {
    background-color: #eff6ff;
}

.calendar-day.selected {
    background-color: #2563eb;
    color: #fff;
}

.calendar-day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background-color: transparent;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

/* Drag and drop */
.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}

/* ===== Public Pages Design System ===== */

/* Section accent line */
.section-accent {
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #0d9488, #059669);
    border: none;
    margin: 0;
}

/* Gradient top border for featured cards */
.card-accent-top {
    position: relative;
    overflow: hidden;
}
.card-accent-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #0d9488, #059669);
}

/* Counter animation helper */
.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

/* ===== Wizard público (reservas + presupuesto) ===== */
/* Primitivas compartidas por booking/form.php y presupuesto/form.php.
   El acento usa el color de marca del negocio (con fallback teal). */
.bk { --accent: var(--color-primary, var(--c-primary, #14b8a6)); --accent-rgb: var(--color-primary-rgb, var(--c-primary-rgb, 20,184,166)); }
.bk [x-cloak] { display: none !important; }

/* Botón primario del wizard (color del negocio/web) */
.bk-btn { background: var(--accent); color: #fff; font-weight: 700; border: none; cursor: pointer; transition: filter .2s, transform .2s, opacity .2s; }
.bk-btn:hover:not(:disabled) { filter: brightness(1.07); }
.bk-btn:active:not(:disabled) { transform: scale(.99); }
.bk-btn:disabled { opacity: .7; cursor: default; }
.bk-btn--soft { opacity: .55; }

/* Barra fija inferior (resumen + navegación) en móvil */
.bk-mnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: .7rem 1rem;
    padding-bottom: max(.7rem, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid #eee; box-shadow: 0 -8px 30px rgba(0,0,0,.08);
}
