:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --bg: #f1f5f9;
    --text-main: #0f172a;
    --text-sub: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --danger: #ef4444;
    --warning: #f59e0b;
}


body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text-main); margin: 0; }
.navbar { background: var(--white); padding: 12px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); font-size: 1.4rem; }
.logo i { background: var(--primary); color: white; padding: 8px; border-radius: 8px; }
.nav-links { display: flex; gap: 10px; }
.nav-btn { padding: 10px 18px; border: none; background: transparent; color: var(--text-sub); font-weight: 600; cursor: pointer; border-radius: 8px; }
.nav-btn.active { background: var(--primary-light); color: var(--primary); }

.main-container { max-width: 1400px; margin: 40px auto; padding: 0 20px; }
.grid-booking-new { display: grid; grid-template-columns: 350px 1fr 320px; gap: 20px; }
.card { background: var(--white); border-radius: 16px; border: 1px solid var(--border); padding: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

.radar-box { margin-top: 25px; border-top: 2px solid var(--bg); padding-top: 15px; }
.radar-item { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.85rem; padding: 8px; border-radius: 8px; background: var(--bg); }
.radar-alert { background: #fef2f2; color: var(--danger); border: 1px solid #fee2e2; font-weight: 700; }

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-header button { background: var(--white); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; cursor: pointer; }

.form-group { margin-bottom: 15px; }
label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; color: var(--text-sub); text-transform: uppercase; }
input, select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; box-sizing: border-box; font-family: inherit; }

.btn-primary { background: var(--primary); color: white; border: none; padding: 14px; border-radius: 12px; width: 100%; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }

table { width: 100%; border-collapse: collapse; }
td, th { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; }
.reserva-passada { opacity: 0.5; background: #fafafa; }

.action-btn { border: none; padding: 8px; border-radius: 8px; cursor: pointer; }
.btn-wa { background: #22c55e; color: white; margin-right: 5px; }
.btn-del { background: #fee2e2; color: var(--danger); }

.turno-card { border: 1px solid var(--border); padding: 16px; border-radius: 12px; margin-bottom: 12px; cursor: pointer; }
.turno-card.selected { border-color: var(--primary); background: var(--primary-light); }
.turno-card.esgotado { opacity: 0.5; cursor: not-allowed; border-style: dashed; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { font-weight: 800; color: var(--text-sub); font-size: 0.7rem; text-align: center; padding-bottom: 10px; }
.day { padding: 12px 0; font-size: 0.9rem; border-radius: 10px; cursor: pointer; text-align: center; }
.day.selected { background: var(--primary); color: white; font-weight: 700; }
.day.disabled { color: #cbd5e1; cursor: not-allowed; text-decoration: line-through; opacity: 0.4; }

.tab-content { display: none; }
.tab-content.active { display: block; }
.phone-subtext { display: block; font-size: 0.8rem; color: var(--text-sub); }
.badge-hora { background: #f1f5f9; color: var(--primary); padding: 4px 8px; border-radius: 6px; font-weight: 700; }

.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(15, 23, 42, 0.6); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal { background: white; padding: 32px; border-radius: 20px; width: 420px; }