/* Bernard Health SeniorCare Enterprise V4.3.67 — Agenda médica aislada */
.bh-agenda-hero,.bh-agenda-stats,.bh-agenda-filters,.bh-agenda-layout,.bh-agenda-doctor-tools,.bh-agenda-loading,.bh-agenda-error{font-family:inherit}
.bh-agenda-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:22px;align-items:center;overflow:hidden;padding:30px 32px;border-radius:30px;color:#fff;margin-bottom:22px;box-shadow:0 22px 48px rgba(55,25,105,.18)}
.bh-agenda-hero.admin{background:linear-gradient(135deg,#4d1f8f 0%,#7137cf 47%,#9a63ef 100%)}
.bh-agenda-hero.doctor{background:linear-gradient(135deg,#182c5e 0%,#2858a5 48%,#3989c8 100%)}
.bh-agenda-hero:before,.bh-agenda-hero:after{content:"";position:absolute;border-radius:999px;background:rgba(255,255,255,.1);pointer-events:none}
.bh-agenda-hero:before{width:210px;height:210px;right:-56px;top:-98px}
.bh-agenda-hero:after{width:120px;height:120px;left:42%;bottom:-84px}
.bh-agenda-hero-copy,.bh-agenda-hero-icon,.bh-agenda-primary{position:relative;z-index:1}
.bh-agenda-hero-copy>span{display:block;font-size:11px;letter-spacing:.18em;font-weight:900;opacity:.82;margin-bottom:8px}
.bh-agenda-hero-copy h2{margin:0 0 8px;font-size:clamp(28px,4vw,43px);line-height:1.02;color:#fff}
.bh-agenda-hero-copy p{margin:0;max-width:720px;color:rgba(255,255,255,.87);font-size:15px;line-height:1.55}
.bh-agenda-hero-icon{width:86px;height:86px;display:grid;place-items:center;border-radius:25px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(8px)}
.bh-agenda-hero-icon svg{width:45px;height:45px}
.bh-agenda-primary{border:0;border-radius:17px;padding:14px 18px;display:flex;align-items:center;gap:9px;background:#fff;color:#5b2aa4;font-weight:900;box-shadow:0 12px 28px rgba(24,8,52,.2);cursor:pointer;white-space:nowrap}
.bh-agenda-primary svg{width:20px;height:20px}
.bh-agenda-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(220px,1.3fr);gap:14px;margin-bottom:18px}
.bh-agenda-stats article{background:#fff;border:1px solid #ebe5f3;border-radius:20px;padding:18px 20px;box-shadow:0 8px 25px rgba(54,33,83,.06);min-width:0}
.bh-agenda-stats span{display:block;color:#7d708b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.bh-agenda-stats strong{display:block;color:#2e213b;font-size:28px;margin:6px 0 3px;overflow:hidden;text-overflow:ellipsis}
.bh-agenda-stats small{display:block;color:#8b8195;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bh-agenda-stats .next{background:linear-gradient(145deg,#fbf8ff,#f1e8ff);border-color:#ddcff0}
.bh-agenda-stats .next strong{font-size:18px;color:#5e2da6}
.bh-agenda-filters,.bh-agenda-doctor-tools{display:flex;align-items:end;gap:12px;background:#fff;border:1px solid #ebe5f3;border-radius:20px;padding:14px 16px;margin-bottom:18px;box-shadow:0 8px 22px rgba(54,33,83,.05)}
.bh-agenda-filters label{display:grid;gap:6px;min-width:190px;color:#6e617a;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.bh-agenda-filters select{min-height:43px;border:1px solid #ded4e9;border-radius:13px;background:#fff;padding:0 12px;color:#32253f;font-weight:700}
.bh-agenda-today{margin-left:auto;min-height:43px;border:1px solid #d8c9eb;border-radius:13px;background:#f8f3ff;color:#6730b4;padding:0 16px;font-weight:900;cursor:pointer}
.bh-agenda-doctor-tools{justify-content:space-between;align-items:center}
.bh-agenda-doctor-tools span{font-weight:900;color:#355582}
.bh-agenda-doctor-tools .bh-agenda-today{margin-left:0}
.bh-agenda-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(320px,.85fr);gap:18px;align-items:start}
.bh-agenda-calendar-card,.bh-agenda-day-panel{background:#fff;border:1px solid #e8e1ef;border-radius:25px;box-shadow:0 12px 34px rgba(54,33,83,.07);overflow:hidden}
.bh-agenda-calendar-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid #eee7f4;background:linear-gradient(180deg,#fff,#fbf9fd)}
.bh-agenda-calendar-head>div{text-align:center}
.bh-agenda-calendar-head span,.bh-agenda-day-head span{display:block;color:#8b789f;font-size:10px;font-weight:900;letter-spacing:.15em}
.bh-agenda-calendar-head h3,.bh-agenda-day-head h3{margin:5px 0 0;color:#382547;font-size:20px}
.bh-agenda-icon-btn{width:44px;height:44px;border:1px solid #e1d5eb;border-radius:14px;display:grid;place-items:center;background:#fff;color:#6631ad;cursor:pointer}
.bh-agenda-icon-btn svg{width:20px;height:20px}.bh-agenda-icon-btn.next svg{transform:none}
.bh-agenda-weekdays,.bh-agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.bh-agenda-weekdays{padding:13px 12px 9px;background:#fbf9fd}
.bh-agenda-weekdays span{text-align:center;color:#92859d;font-size:11px;font-weight:900;text-transform:uppercase}
.bh-agenda-month-grid{padding:0 12px 14px}
.bh-agenda-day{position:relative;min-height:104px;border:0;border-right:1px solid #f0ebf4;border-bottom:1px solid #f0ebf4;background:#fff;padding:8px;text-align:left;cursor:pointer;transition:.16s ease;overflow:hidden}
.bh-agenda-day:nth-child(7n){border-right:0}
.bh-agenda-day:hover{background:#faf6ff}.bh-agenda-day.selected{background:#f2e9ff;box-shadow:inset 0 0 0 2px #8853d1;border-radius:12px}.bh-agenda-day.outside{background:#fcfbfd;opacity:.5}.bh-agenda-day.today .bh-agenda-day-number{background:#7137cf;color:#fff}
.bh-agenda-day-number{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;color:#4b3c57;font-size:12px;font-weight:900}
.bh-agenda-day-events{display:grid;gap:4px;margin-top:5px}
.bh-agenda-day-events i{display:flex;align-items:center;gap:4px;min-width:0;border-radius:7px;padding:4px 5px;background:#eee6fa;color:#5b2d98;font-size:9px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bh-agenda-day-events i.confirmed{background:#e3f2ff;color:#245c8c}.bh-agenda-day-events i.done{background:#e3f7ed;color:#247450}.bh-agenda-day-events i.cancelled,.bh-agenda-day-events i.missed{background:#fae7e9;color:#9b3947}.bh-agenda-day-events i b{font-size:8px}.bh-agenda-day-events em{font-size:9px;color:#867790;font-style:normal;padding-left:4px}
.bh-agenda-day-panel{position:sticky;top:14px}
.bh-agenda-day-head{display:flex;align-items:center;justify-content:space-between;padding:22px;border-bottom:1px solid #eee7f4;background:linear-gradient(145deg,#fbf8ff,#fff)}
.bh-agenda-day-head h3{font-size:17px;line-height:1.25}.bh-agenda-day-head>b{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:#6c36b7;color:#fff;font-size:18px}
.bh-agenda-day-list{display:grid;gap:10px;padding:14px;max-height:650px;overflow:auto}
.bh-agenda-appointment{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #eae3ef;border-left:4px solid #8a55ce;border-radius:17px;background:#fff}
.bh-agenda-appointment.confirmed{border-left-color:#3992d0}.bh-agenda-appointment.done{border-left-color:#37a672}.bh-agenda-appointment.cancelled,.bh-agenda-appointment.missed{border-left-color:#d45a6b;opacity:.78}
.bh-agenda-time{display:grid;align-content:start;justify-items:center;border-radius:13px;padding:9px 4px;background:#f5effc;color:#5f319e}.bh-agenda-time strong{font-size:16px}.bh-agenda-time span{font-size:9px;color:#8c7b9b;margin-top:3px}
.bh-agenda-appt-main{min-width:0}.bh-agenda-appt-title{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}.bh-agenda-appt-title strong{font-size:14px;color:#30233a}.bh-agenda-status{font-size:8px;font-weight:900;padding:4px 6px;border-radius:999px;background:#eee6fa;color:#6737a2;white-space:nowrap}.bh-agenda-status.confirmed{background:#e4f2ff;color:#27638e}.bh-agenda-status.done{background:#e3f7ed;color:#247450}.bh-agenda-status.cancelled,.bh-agenda-status.missed{background:#fae7e9;color:#9b3947}
.bh-agenda-appt-main p{margin:6px 0;color:#6d6077;font-size:11px;line-height:1.4}.bh-agenda-appt-main small{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center;color:#8b7d95;font-size:10px}.bh-agenda-appt-main small span{display:flex;align-items:center;gap:4px}.bh-agenda-appt-main small svg{width:12px;height:12px;vertical-align:-2px;margin-right:3px}
.bh-agenda-appt-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:7px;border-top:1px solid #f1ecf4;padding-top:10px}.bh-agenda-appt-actions button{border:1px solid #d9cdea;border-radius:10px;background:#faf7ff;color:#6632aa;padding:7px 9px;font-size:10px;font-weight:900;cursor:pointer}.bh-agenda-appt-actions button.danger{color:#a53a4b;border-color:#f0cbd1;background:#fff7f8}.bh-agenda-appt-actions button.success{color:#247450;border-color:#bfe8d1;background:#f3fff8}
.bh-agenda-empty{min-height:240px;display:grid;place-items:center;align-content:center;text-align:center;padding:30px;color:#8b7e94}.bh-agenda-empty svg{width:44px;height:44px;color:#ad8ed0;margin-bottom:12px}.bh-agenda-empty strong{color:#51425d}.bh-agenda-empty span{font-size:12px;max-width:220px;line-height:1.5;margin-top:6px}
.bh-agenda-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:rgba(31,18,44,.62);backdrop-filter:blur(8px)}
.bh-agenda-modal-card{width:min(760px,100%);max-height:min(92vh,850px);overflow:auto;background:#fff;border-radius:28px;box-shadow:0 30px 80px rgba(20,10,34,.38)}
.bh-agenda-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:22px 25px;background:linear-gradient(135deg,#5c279e,#844bd2);color:#fff}.bh-agenda-modal-head span{font-size:10px;font-weight:900;letter-spacing:.16em;opacity:.8}.bh-agenda-modal-head h3{margin:4px 0 0;color:#fff;font-size:24px}.bh-agenda-modal-head button{width:40px;height:40px;border:1px solid rgba(255,255,255,.28);border-radius:13px;background:rgba(255,255,255,.12);color:#fff;font-size:24px;cursor:pointer}
.bh-agenda-modal form{padding:24px}.bh-agenda-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.bh-agenda-form-grid label{display:grid;gap:7px;color:#5c4d68;font-size:12px;font-weight:900}.bh-agenda-form-grid label.wide{grid-column:1/-1}.bh-agenda-form-grid input,.bh-agenda-form-grid select,.bh-agenda-form-grid textarea{width:100%;box-sizing:border-box;border:1px solid #ddd3e7;border-radius:13px;background:#fff;padding:12px 13px;color:#30243a;font:inherit;outline:none}.bh-agenda-form-grid input:focus,.bh-agenda-form-grid select:focus,.bh-agenda-form-grid textarea:focus{border-color:#8a54ce;box-shadow:0 0 0 3px rgba(138,84,206,.12)}
.bh-agenda-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.bh-agenda-form-actions button{border:0;border-radius:13px;padding:12px 18px;font-weight:900;cursor:pointer}.bh-agenda-form-actions .secondary{background:#f0ebf4;color:#554460}.bh-agenda-form-actions .primary{background:#7137cf;color:#fff;min-width:150px}.bh-agenda-form-actions .primary:disabled{opacity:.65;cursor:wait}
.bh-agenda-loading,.bh-agenda-error{min-height:300px;border:1px solid #e8e1ef;border-radius:24px;background:#fff;display:grid;place-items:center;align-content:center;gap:12px;text-align:center;padding:30px}.bh-agenda-loading span{width:38px;height:38px;border:4px solid #e6d9f4;border-top-color:#7137cf;border-radius:50%;animation:bhAgendaSpin .85s linear infinite}.bh-agenda-loading strong{color:#5d4c68}.bh-agenda-error strong{font-size:20px;color:#4e3a5d}.bh-agenda-error p{max-width:580px;color:#776680}.bh-agenda-error button{border:0;border-radius:13px;background:#7137cf;color:#fff;padding:11px 18px;font-weight:900;cursor:pointer}@keyframes bhAgendaSpin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.bh-agenda-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bh-agenda-layout{grid-template-columns:1fr}.bh-agenda-day-panel{position:static}.bh-agenda-day-list{max-height:none}}
@media(max-width:700px){.bh-agenda-hero{grid-template-columns:1fr auto;padding:24px 21px;border-radius:24px}.bh-agenda-hero-icon{width:62px;height:62px;border-radius:19px}.bh-agenda-hero-icon svg{width:33px;height:33px}.bh-agenda-primary{grid-column:1/-1;justify-content:center}.bh-agenda-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bh-agenda-stats article{padding:14px}.bh-agenda-stats strong{font-size:23px}.bh-agenda-filters{display:grid;grid-template-columns:1fr 1fr;align-items:end}.bh-agenda-filters label{min-width:0}.bh-agenda-today{grid-column:1/-1;margin-left:0}.bh-agenda-calendar-head{padding:16px 13px}.bh-agenda-weekdays{padding-left:4px;padding-right:4px}.bh-agenda-month-grid{padding:0 4px 8px}.bh-agenda-day{min-height:74px;padding:5px 3px}.bh-agenda-day-events i{padding:3px;font-size:0}.bh-agenda-day-events i b{font-size:8px}.bh-agenda-day-events em{display:none}.bh-agenda-modal{padding:0;align-items:end}.bh-agenda-modal-card{max-height:96vh;border-radius:25px 25px 0 0}.bh-agenda-form-grid{grid-template-columns:1fr}.bh-agenda-form-grid label.wide{grid-column:auto}.bh-agenda-modal form{padding:18px}.bh-agenda-form-actions{position:sticky;bottom:0;background:#fff;padding:12px 0 2px}.bh-agenda-form-actions button{flex:1}}
@media(max-width:430px){.bh-agenda-stats{grid-template-columns:1fr 1fr}.bh-agenda-stats .next{grid-column:1/-1}.bh-agenda-calendar-head h3{font-size:17px}.bh-agenda-day-number{width:24px;height:24px}.bh-agenda-appointment{grid-template-columns:58px minmax(0,1fr);padding:11px}.bh-agenda-appt-title{display:grid;justify-content:stretch}.bh-agenda-status{justify-self:start}}

/* V4.3.67 — Cabecera compacta de Mi agenda; el saludo premium vive en el panel médico principal */
.bh-agenda-hero.doctor.bh-agenda-doctor-hero{
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"top top" "copy icon";
  gap:18px 24px;
  min-height:0;
  padding:22px 28px 26px;
  box-shadow:0 20px 46px rgba(24,44,94,.20);
}
.bh-agenda-doctor-top{grid-area:top;display:flex;align-items:center;justify-content:space-between;gap:12px}
.bh-agenda-back{min-height:41px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.3);border-radius:13px;padding:8px 13px 8px 10px;background:rgba(255,255,255,.13);color:#fff;font:inherit;font-size:12px;font-weight:900;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.bh-agenda-back:hover{background:rgba(255,255,255,.2)}
.bh-agenda-back svg{width:18px;height:18px}
.bh-agenda-doctor-badge{display:inline-flex;align-items:center;min-height:33px;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:6px 12px;background:rgba(255,255,255,.1);color:rgba(255,255,255,.9);font-size:9px;font-weight:900;letter-spacing:.16em}
.bh-agenda-doctor-hero .bh-agenda-hero-copy{grid-area:copy;align-self:center}
.bh-agenda-doctor-hero .bh-agenda-hero-copy h2{max-width:680px;font-size:clamp(28px,4vw,40px);letter-spacing:-.025em}
.bh-agenda-doctor-hero .bh-agenda-hero-copy p{max-width:620px}
.bh-agenda-doctor-hero .bh-agenda-hero-icon{grid-area:icon;align-self:center;width:82px;height:82px;border-radius:24px;background:rgba(255,255,255,.14)}
.bh-agenda-doctor-hero .bh-agenda-hero-icon svg{width:42px;height:42px}
@media(max-width:700px){
  .bh-agenda-hero.doctor.bh-agenda-doctor-hero{grid-template-columns:minmax(0,1fr) 62px;grid-template-areas:"top top" "copy icon";gap:16px 10px;padding:18px 19px 22px}
  .bh-agenda-back{min-height:39px;padding:8px 11px 8px 9px}
  .bh-agenda-doctor-badge{min-height:30px;padding:5px 9px;font-size:8px}
  .bh-agenda-doctor-hero .bh-agenda-hero-copy h2{font-size:clamp(25px,7vw,32px);line-height:1.08}
  .bh-agenda-doctor-hero .bh-agenda-hero-copy p{font-size:13px;line-height:1.45}
  .bh-agenda-doctor-hero .bh-agenda-hero-icon{width:62px;height:62px;border-radius:19px}
  .bh-agenda-doctor-hero .bh-agenda-hero-icon svg{width:32px;height:32px}
}
@media(max-width:390px){.bh-agenda-doctor-badge{display:none}.bh-agenda-doctor-top{justify-content:flex-start}}
