/* =========================================================
   LA PIEZA 32 / ANTUA DENT
   AGENDA PÚBLICA — PREMIUM CLINICAL BOOKING
   Diseñada para confianza, claridad y conversión
   PC + móvil
   ========================================================= */

:root{
  --c-primary:#087c9d;
  --c-primary-dark:#066783;
  --c-primary-deep:#09566e;
  --c-primary-soft:#edf8fb;
  --c-primary-line:#b8dce6;
  --c-green:#12865a;
  --c-green-soft:#f3fbf7;
  --c-green-line:#cfe8dd;
  --c-red:#db4c55;
  --c-red-soft:#fff5f5;
  --c-orange:#f39a22;
  --c-ink:#153247;
  --c-text:#486273;
  --c-muted:#8294a0;
  --c-line:#dce7ec;
  --c-soft:#f7fafb;
  --c-white:#fff;
  --shadow:0 14px 40px rgba(25,66,86,.08);
  --shadow-soft:0 6px 20px rgba(25,66,86,.055);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#f5f9fb}
body{
  margin:0!important;
  min-height:100vh;
  background:linear-gradient(180deg,#f9fcfd 0%,#f4f8fa 100%)!important;
  color:var(--c-ink)!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
button,input,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}

/* ---------- MARCO ---------- */
.agenda-shell{width:100%;padding:12px 14px 26px}
.agenda-app{
  width:min(1180px,100%);
  margin:0 auto;
  overflow:hidden;
  border:1px solid #d9e4e9;
  border-radius:17px;
  background:#fff;
  box-shadow:var(--shadow);
}

/* ---------- HEADER DE CONFIANZA ---------- */
.clinic-header{
  min-height:66px;
  display:grid;
  grid-template-columns:220px 1fr;
  align-items:center;
  padding:8px 28px;
  border-bottom:2px solid var(--c-primary);
  background:#fff;
}
.clinic-brand{display:flex;align-items:center}
.clinic-brand img{
  display:block;
  width:auto;
  max-width:168px;
  max-height:49px;
  object-fit:contain;
  /* El logo actual es blanco; fondo teal discreto para conservarlo */
  padding:7px 12px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--c-primary-deep),#159cad);
}
.trust-strip{display:grid;grid-template-columns:repeat(3,1fr) 1.05fr;align-items:center;gap:16px}
.trust-item,.trust-help{min-width:0;display:flex;align-items:center;gap:8px;color:var(--c-ink);text-decoration:none}
.trust-icon,.wa-mark{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #b9dce6;border-radius:50%;color:var(--c-primary);font-size:13px;font-weight:900;background:#f6fcfd}
.wa-mark{border-color:#bde8d0;color:#14a060;background:#f4fcf7}
.trust-item b,.trust-help b{display:block;font-size:14px;line-height:1.1;font-weight:650}
.trust-item small,.trust-help small{display:block;margin-top:2px;color:var(--c-muted);font-size:8px;font-weight:600;white-space:nowrap}
.trust-help{justify-self:end}

/* ---------- INTRO ---------- */
.booking-intro{padding:15px 28px 12px;text-align:center}
.booking-intro h1{margin:0;color:var(--c-ink);font-size:21px;line-height:1.15;font-weight:850;letter-spacing:-.025em}
.booking-intro>p{margin:5px 0 13px;color:#607886;font-size:10.5px;font-weight:500}
.steps{max-width:900px;margin:0 auto;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:30px!important}
.step{
  position:relative;
  min-width:0;
  min-height:52px!important;
  padding:8px 12px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid var(--c-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--c-text)!important;
  box-shadow:none!important;
  text-align:left;
}
.step:not(:last-child):after{content:"";position:absolute;top:50%;left:100%;width:30px;height:1px;background:#dbe5e9}
.step .dot{width:27px!important;height:27px!important;min-width:27px!important;display:grid!important;place-items:center!important;border:1px solid #a9d0db!important;border-radius:50%!important;background:#fff!important;color:var(--c-primary)!important;font-size:10px!important;font-weight:850!important}
.step-copy{min-width:0;display:block}
.step-copy b{display:block;color:#345364;font-size:10px;line-height:1.05;font-weight:800}
.step-copy small{display:block!important;margin-top:3px!important;color:#8b9ba5!important;font-size:8px!important;line-height:1.1!important;font-weight:600!important}
.step.active{border-color:#8fc7d7!important;box-shadow:0 3px 10px rgba(8,124,157,.08)!important}
.step.active .dot{background:var(--c-primary)!important;border-color:var(--c-primary)!important;color:#fff!important}
.step.active .step-copy b{color:var(--c-primary-deep)!important}

/* ---------- FORM ---------- */
.booking-form{padding:0 28px}
.reprog-banner{margin:0 auto 10px;max-width:900px;padding:9px 12px;display:flex;gap:8px;align-items:center;border:1px solid #f0d9a8;border-radius:9px;background:#fff9ec;color:#72591f;font-size:14px}
.reprog-banner b{font-weight:850}.reprog-banner span{color:#826d3b}
.booking-grid{max-width:900px;margin:0 auto;display:grid;grid-template-columns:370px minmax(0,1fr);gap:12px;align-items:stretch}
.booking-card{border:1px solid var(--c-line);border-radius:11px;background:#fff;box-shadow:var(--shadow-soft)}
.calendar-card{padding:10px}
.times-card{padding:13px 14px}

/* ---------- FLATPICKR ---------- */
.flatpickr-calendar.inline{width:100%!important;max-width:none!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.flatpickr-rContainer,.flatpickr-days,.dayContainer{width:100%!important;max-width:none!important;min-width:0!important}
.flatpickr-months{height:36px!important;margin:0 0 4px!important;background:transparent!important}
.flatpickr-months .flatpickr-month{height:36px!important;color:var(--c-ink)!important}
.flatpickr-current-month{padding-top:6px!important;color:var(--c-ink)!important;font-size:13px!important;font-weight:800!important}
.flatpickr-current-month .flatpickr-monthDropdown-months,.flatpickr-current-month input.cur-year{color:var(--c-ink)!important;font-weight:800!important;background:transparent!important}
.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{height:36px!important;padding:10px!important;color:#567180!important;fill:#567180!important}
.flatpickr-weekdays{height:27px!important;margin-bottom:2px!important;border-radius:7px!important;background:#f5f9fa!important}
span.flatpickr-weekday{color:#506b79!important;font-size:8px!important;font-weight:800!important}
.flatpickr-day{position:relative;max-width:none!important;height:32px!important;line-height:32px!important;margin:1px 0!important;border:0!important;border-radius:50%!important;color:#314f60!important;font-size:9.5px!important;font-weight:700!important}
.flatpickr-day:hover{background:#eef7f9!important;color:var(--c-primary-deep)!important}
.flatpickr-day.today{box-shadow:inset 0 0 0 1px #97c7d4!important;background:#fff!important;color:var(--c-primary)!important}
.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange{background:var(--c-primary)!important;color:#fff!important;box-shadow:0 4px 10px rgba(8,124,157,.18)!important}
.flatpickr-day.flatpickr-disabled,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay{color:#b8c3c9!important;opacity:.78!important}
.flatpickr-day.flatpickr-disabled{background:#fafbfc!important;cursor:not-allowed!important}

.calendar-legend{margin:7px 4px 8px;display:flex;align-items:center;justify-content:center;gap:17px;color:#708590;font-size:7px;font-weight:650}
.calendar-legend span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.legend-dot{width:6px;height:6px;border-radius:50%;display:inline-block}.legend-dot.available{background:var(--c-primary)}.legend-dot.unavailable{background:#c6d1d7}.legend-lock{color:var(--c-red);font-size:7px}
.calendar-note{min-height:47px;padding:8px 10px;display:flex;align-items:center;gap:8px;border:1px solid #d6e9ee;border-radius:8px;background:#f6fbfc;color:#4c6573}
.note-icon{color:var(--c-primary);font-size:12px}.calendar-note b{display:block;font-size:8px;font-weight:750}.calendar-note small{display:block;margin-top:2px;color:#82949e;font-size:7px}

/* ---------- HORARIOS ---------- */
.times-heading{display:flex;align-items:flex-start;gap:8px;margin-bottom:9px}.heading-icon{width:23px;height:23px;display:grid;place-items:center;color:var(--c-primary);font-size:11px}.times-heading small{display:block;color:#647b88;font-size:8px;font-weight:700}.times-heading strong{display:block;margin-top:2px;color:var(--c-ink);font-size:10px;font-weight:800}
.availability-hint{padding:8px 10px;border:1px solid #d7e8ed;border-radius:8px;background:#f7fbfc;color:#607987;font-size:14px;line-height:1.35}.availability-hint.is-empty{border-color:#efd7d7;background:#fff8f8;color:#8b5d5d}
.turno-title{position:relative;margin:11px 0 6px!important;padding-left:15px;color:#365768!important;font-size:9px!important;font-weight:850!important;letter-spacing:0!important;text-align:left!important;text-transform:none!important}
.turno-title:before{position:absolute;left:0;top:50%;transform:translateY(-50%);color:var(--c-orange);font-size:10px}.turno-title:first-of-type:before{content:"☀"}.turno-title:not(:first-of-type):before{content:"☼"}
#horas .horas{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
.hora-btn{position:relative!important;min-width:0!important;min-height:32px!important;padding:6px 5px!important;border:1px solid var(--c-green-line)!important;border-radius:6px!important;background:var(--c-green-soft)!important;color:var(--c-green)!important;font-size:8.5px!important;font-weight:800!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important;transition:transform .14s ease,border-color .14s ease,background .14s ease,color .14s ease!important}
.hora-btn:not(:disabled):hover{transform:translateY(-1px)!important;border-color:#9dd1bb!important;background:#eaf9f2!important}
.hora-btn.selected,.hora-btn.is-selected{border-color:var(--c-primary)!important;background:linear-gradient(180deg,#0a8baa,var(--c-primary))!important;color:#fff!important;outline:none!important;box-shadow:0 5px 12px rgba(8,124,157,.16)!important}
.hora-btn:disabled,.hora-btn.is-ocupado,.hora-btn.is-disabled-time,.hora-btn.is-atendido,.hora-btn.is-past{border-color:#ead2d3!important;background:var(--c-red-soft)!important;color:var(--c-red)!important;opacity:1!important;cursor:not-allowed!important}
.hora-btn.is-ultimos:not(:disabled){border-color:#eed8a7!important;background:#fff9eb!important;color:#9a6b12!important}
.hora-badge{position:absolute!important;top:2px!important;right:3px!important;padding:1px 3px!important;border-radius:4px!important;background:transparent!important;color:inherit!important;font-size:4.8px!important;font-weight:900!important}
.resumen{margin-top:8px!important;padding:7px 8px!important;border:1px solid #bcdde6!important;border-radius:7px!important;background:var(--c-primary-soft)!important;color:var(--c-primary-deep)!important;font-size:13px!important}
.live-note{margin-top:12px;padding:8px 10px;text-align:center;border:1px solid #cae0f4;border-radius:6px;background:#f5faff;color:#4f87b2;font-size:7.5px;font-weight:650}.live-note span{margin-right:4px;color:#4a9ad5}

/* ---------- DATOS ---------- */
.patient-card{max-width:900px;margin:12px auto 0;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:16px}
.section-title{display:flex;align-items:center;gap:7px;margin-bottom:9px;color:var(--c-primary)}.section-title span{font-size:12px}.section-title h2{margin:0;color:var(--c-ink);font-size:13px;font-weight:850}
.patient-grid{display:grid;grid-template-columns:130px repeat(3,minmax(0,1fr));gap:8px 10px}.field{min-width:0}.field label{display:block;margin:0 0 4px;color:#395565;font-size:7.5px;font-weight:750}.field input,.field select{width:100%;height:34px;padding:0 9px;border:1px solid #d1e0e6;border-radius:7px;outline:0;background:#fff;color:var(--c-ink);font-size:8.5px;box-shadow:none}.field input::placeholder{color:#a0adb5}.field input:focus,.field select:focus{border-color:#78b8c9;box-shadow:0 0 0 3px rgba(8,124,157,.07)}.field-whatsapp{grid-column:1/-1}.input-with-icon{position:relative}.input-with-icon span{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#13a05f;font-size:8px}.input-with-icon input{padding-left:25px}.field-help{display:block;margin-top:4px;color:#8b9aa3;font-size:6.8px}
.clinic-location{padding:10px 11px;border:1px solid #d7e8ee;border-radius:9px;background:#f8fbfc}.location-title{display:flex;align-items:center;gap:5px;margin-bottom:7px;color:var(--c-primary);font-size:7.5px}.location-title b{color:#355466;font-weight:800}.clinic-location>strong{display:block;color:var(--c-ink);font-size:8.5px;font-weight:800}.clinic-location>p{margin:3px 0 7px;color:#778a95;font-size:7.5px}.location-thumb{height:63px;overflow:hidden;border-radius:6px;background:#eaf1f4}.location-thumb img{width:100%;height:100%;display:block;object-fit:cover}.location-btn{height:28px;margin-top:7px;display:flex;align-items:center;justify-content:center;border:1px solid #7bb8c8;border-radius:6px;background:#fff;color:var(--c-primary-deep);text-decoration:none;font-size:7.5px;font-weight:800}

/* ---------- CTA ---------- */
.booking-cta{position:sticky;z-index:40;bottom:0;margin:12px -28px 0;padding:9px max(28px,calc((100% - 900px)/2 + 28px));display:grid;grid-template-columns:250px 1fr;gap:22px;align-items:center;border-top:1px solid #dbe7ec;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);box-shadow:0 -5px 18px rgba(25,66,86,.055)}
.cta-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px}.summary-item{display:flex;align-items:center;gap:7px}.summary-item>span{color:var(--c-primary);font-size:14px}.summary-item small{display:block;color:#83949e;font-size:6.5px;font-weight:650}.summary-item b{display:block;margin-top:1px;color:#2d4c5e;font-size:8.5px;font-weight:800}
.btn-primary{width:min(100%,440px)!important;min-height:42px!important;margin:0 0 0 auto!important;padding:5px 14px!important;display:grid!important;grid-template-columns:22px 1fr 18px!important;align-items:center!important;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,#08708e,#0a8cac)!important;color:#fff!important;box-shadow:0 8px 18px rgba(8,124,157,.18)!important;cursor:pointer!important}.btn-icon{font-size:11px}.btn-copy{text-align:center}.btn-copy b{display:block;font-size:10px;font-weight:850}.btn-copy small{display:block;margin-top:1px;color:rgba(255,255,255,.82);font-size:6.5px;font-weight:600}.btn-arrow{font-size:13px;font-weight:800}.btn-primary:not(:disabled):hover{filter:brightness(1.03);transform:translateY(-1px)}.btn-primary:disabled{background:#e4eaed!important;color:#aab5bb!important;box-shadow:none!important;cursor:not-allowed!important}.btn-primary:disabled .btn-copy small{color:#b4bec3}
.toast-pro{position:fixed!important;z-index:9999!important;left:50%!important;bottom:68px!important;transform:translateX(-50%)!important;max-width:min(90vw,430px)!important;padding:8px 12px!important;border-radius:8px!important;background:#163b4d!important;color:#fff!important;font-size:8.5px!important;font-weight:700!important;box-shadow:0 12px 28px rgba(15,23,42,.16)!important}

/* ---------- TABLET ---------- */
@media(max-width:900px){
  .agenda-shell{padding:0}.agenda-app{border-radius:0;border-left:0;border-right:0;box-shadow:none}
  .clinic-header{grid-template-columns:160px 1fr;padding:8px 16px}.clinic-brand img{max-width:145px}.trust-strip{gap:8px}.trust-help{display:none}
  .booking-intro,.booking-form{padding-left:16px;padding-right:16px}.booking-grid{grid-template-columns:330px minmax(0,1fr)}
  #horas .horas{grid-template-columns:repeat(3,minmax(0,1fr))!important}.patient-card{grid-template-columns:1fr 210px}.patient-grid{grid-template-columns:120px repeat(3,1fr)}
  .booking-cta{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
}

/* ---------- MÓVIL ---------- */
@media(max-width:680px){
  body{background:#fff!important}.agenda-shell{padding:0 0 62px}.agenda-app{width:100%;border:0;border-radius:0}
  .clinic-header{min-height:52px;grid-template-columns:1fr;padding:6px 12px;border-bottom:1px solid #dbe7ec}.clinic-brand{justify-content:center}.clinic-brand img{max-width:142px;max-height:41px;padding:6px 10px}.trust-strip{grid-column:1/-1;margin-top:5px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.trust-item{justify-content:center;gap:4px}.trust-icon{width:18px;height:18px;font-size:8px}.trust-item b{font-size:7px}.trust-item small{font-size:7px}.trust-help{display:none}
  .booking-intro{padding:10px 10px 7px}.booking-intro h1{font-size:17px}.booking-intro>p{margin:4px 0 9px;font-size:8px}
  .steps{position:relative;width:100%;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important}.step{min-height:39px!important;padding:3px 2px!important;justify-content:center!important;gap:4px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important}.step:not(:last-child):after{top:13px;left:calc(50% + 13px);width:calc(100% - 26px);background:#cbdbe2}.step .dot{position:relative;z-index:2;width:24px!important;height:24px!important;min-width:24px!important;background:#fff!important}.step.active .dot{background:var(--c-primary)!important}.step-copy{display:block}.step-copy b{font-size:6.8px}.step-copy small{display:none!important}
  .booking-form{padding:0 9px}.reprog-banner{font-size:12px;flex-direction:column;align-items:flex-start}
  .booking-grid{grid-template-columns:1fr;gap:7px}.booking-card{border-radius:9px;box-shadow:none}.calendar-card{padding:8px}.times-card{padding:9px}
  .flatpickr-months{height:34px!important}.flatpickr-months .flatpickr-month{height:34px!important}.flatpickr-current-month{padding-top:6px!important;font-size:12px!important}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{height:34px!important}.flatpickr-weekdays{height:25px!important}.flatpickr-day{height:31px!important;line-height:31px!important;font-size:9px!important}
  .calendar-legend{gap:12px;font-size:6.4px}.calendar-note{display:none}
  .times-heading{margin-bottom:7px}.times-heading small{font-size:7px}.times-heading strong{font-size:9px}.availability-hint{font-size:10px;padding:7px 8px}.turno-title{font-size:8px!important;margin:9px 0 5px!important}
  #horas .horas{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.hora-btn{min-height:31px!important;font-size:8px!important}.hora-badge{display:none!important}.live-note{margin-top:9px;padding:7px;font-size:6.8px}
  .patient-card{margin-top:7px;padding:9px;grid-template-columns:1fr;gap:8px}.section-title{margin-bottom:7px}.section-title h2{font-size:12px}.patient-grid{grid-template-columns:1fr 1fr;gap:7px}.field-doc-type{grid-column:auto}.field-whatsapp{grid-column:1/-1}.field label{font-size:10px}.field input,.field select{height:34px;font-size:8px}.clinic-location{display:grid;grid-template-columns:1fr auto;gap:3px 8px;align-items:center;padding:8px}.location-title{grid-column:1/-1;margin:0}.clinic-location>strong{font-size:8px}.clinic-location>p{margin:0;font-size:14px}.location-thumb{display:none}.location-btn{grid-column:2;grid-row:2/4;width:92px;height:28px;margin:0;font-size:7px}
  .booking-cta{position:fixed;left:0;right:0;bottom:0;margin:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));grid-template-columns:105px 1fr;gap:7px;background:rgba(255,255,255,.98);box-shadow:0 -6px 20px rgba(25,66,86,.08)}.cta-summary{gap:4px}.summary-item{gap:3px}.summary-item>span{font-size:9px}.summary-item small{font-size:5px}.summary-item b{font-size:6.7px;white-space:nowrap}.btn-primary{min-height:38px!important;padding:4px 10px!important;grid-template-columns:16px 1fr 12px!important}.btn-copy b{font-size:8.5px}.btn-copy small{font-size:5.5px}.btn-icon,.btn-arrow{font-size:9px}.toast-pro{bottom:58px!important}
}

@media(max-width:390px){
  .clinic-brand img{max-width:132px}.booking-intro h1{font-size:16px}.flatpickr-day{height:29px!important;line-height:29px!important}
  #horas .horas{grid-template-columns:repeat(3,minmax(0,1fr))!important}.patient-grid{grid-template-columns:1fr}.field-whatsapp{grid-column:auto}.booking-cta{grid-template-columns:94px 1fr}.summary-item:first-child{display:none}.cta-summary{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}


/* =========================================================
   ANTUA DENT — LOGIN MATCH THEME
   Azul profundo + azul eléctrico + turquesa
   Misma familia visual del acceso La Pieza 32
   ========================================================= */

:root{
  --lp-blue-deep:#21457d;
  --lp-blue:#2366c6;
  --lp-blue-bright:#2f80ed;
  --lp-cyan:#22b8c7;
  --lp-cyan-light:#7fe3ea;
  --lp-ink:#10223a;
  --lp-muted:#63768f;
  --lp-line:#cfe0ef;
  --lp-white:#ffffff;
  --lp-success:#12a66a;
  --lp-warning:#f59e0b;
  --lp-danger:#ef5b67;
}

html{
  background:#dbeaf4 !important;
}

body{
  background:
    radial-gradient(900px 520px at 14% 6%,rgba(105,220,232,.22),transparent 56%),
    radial-gradient(780px 520px at 92% 12%,rgba(47,128,237,.18),transparent 58%),
    linear-gradient(135deg,#eaf5fb 0%,#dceef6 48%,#d9f3f5 100%) !important;
  color:var(--lp-ink) !important;
}

/* marco principal */
.agenda-shell{
  padding:16px 16px 32px !important;
}

.agenda-app{
  border:1px solid rgba(32,91,145,.18) !important;
  background:#fff !important;
  box-shadow:
    0 24px 65px rgba(32,75,123,.20),
    0 2px 12px rgba(32,75,123,.08) !important;
}

/* CABECERA: MISMO LENGUAJE QUE LOGIN */
.clinic-header{
  position:relative !important;
  overflow:hidden !important;
  min-height:84px !important;
  padding:12px 30px !important;
  border:0 !important;
  background:
    radial-gradient(circle at 72% 30%,rgba(255,255,255,.10),transparent 17rem),
    radial-gradient(circle at 92% 110%,rgba(98,220,231,.24),transparent 20rem),
    linear-gradient(112deg,#244783 0%,#2863bd 48%,#3184df 72%,#22b7c6 100%) !important;
}

.clinic-header:before{
  content:"";
  position:absolute;
  width:430px;
  height:430px;
  top:-285px;
  right:20%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  box-shadow:
    0 0 0 60px rgba(255,255,255,.025),
    0 0 0 125px rgba(255,255,255,.018);
  pointer-events:none;
}

.clinic-brand,
.trust-strip{
  position:relative;
  z-index:2;
}

.clinic-brand img{
  max-width:190px !important;
  max-height:55px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.10));
}

/* tarjetas superiores transparentes tipo login */
.trust-strip{
  gap:10px !important;
}

.trust-item,
.trust-help{
  border:1px solid rgba(255,255,255,.20) !important;
  background:rgba(255,255,255,.10) !important;
  backdrop-filter:blur(4px);
  box-shadow:none !important;
}

.trust-item:hover,
.trust-help:hover{
  background:rgba(255,255,255,.15) !important;
  transform:translateY(-1px);
}

.trust-icon,
.wa-mark{
  border:1px solid rgba(255,255,255,.25) !important;
  background:rgba(255,255,255,.14) !important;
  color:#fff !important;
}

.trust-item b,
.trust-help b{
  color:#fff !important;
}

.trust-item small,
.trust-help small{
  color:rgba(255,255,255,.78) !important;
}

/* intro */
.booking-intro{
  padding:20px 28px 16px !important;
  background:
    linear-gradient(180deg,#ffffff 0%,#f7fbff 100%) !important;
}

.booking-intro h1{
  color:#12263e !important;
  font-size:25px !important;
  font-weight:900 !important;
}

.booking-intro>p{
  color:#5c7189 !important;
  font-size:11px !important;
}

/* PASOS */
.step{
  border-color:#d4e2ee !important;
  background:#fff !important;
}

.step.active{
  border-color:#6eb7e8 !important;
  background:
    linear-gradient(135deg,#eef7ff 0%,#edfafd 100%) !important;
  box-shadow:0 8px 22px rgba(36,111,196,.12) !important;
}

.step.active .dot{
  border:0 !important;
  background:
    linear-gradient(135deg,#2471db 0%,#1aaec1 100%) !important;
  color:#fff !important;
  box-shadow:0 5px 15px rgba(36,113,219,.22) !important;
}

.step.active .step-copy b{
  color:#125fae !important;
}

/* TARJETAS DE RESERVA */
.booking-card,
.patient-card{
  border-color:#cfdfeb !important;
  background:#fff !important;
  box-shadow:0 10px 28px rgba(31,76,118,.09) !important;
}

.calendar-card{
  background:
    linear-gradient(180deg,#ffffff 0%,#fbfdff 100%) !important;
}

.times-card{
  background:
    linear-gradient(180deg,#ffffff 0%,#fbfeff 100%) !important;
}

/* Calendario: barra azul como login */
.flatpickr-months{
  background:
    linear-gradient(90deg,#2557a1 0%,#2474cf 58%,#1ca8bd 100%) !important;
  box-shadow:0 7px 18px rgba(36,101,185,.16) !important;
}

.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year{
  color:#fff !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month{
  color:#fff !important;
  fill:#fff !important;
}

.flatpickr-weekdays{
  background:#edf4fa !important;
}

span.flatpickr-weekday{
  color:#355a79 !important;
}

.flatpickr-day{
  color:#24435c !important;
}

.flatpickr-day:hover{
  background:#eaf5fb !important;
  color:#1562ad !important;
}

.flatpickr-day.today{
  color:#0d77a0 !important;
  box-shadow:inset 0 0 0 2px #21b7c7 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{
  border-color:transparent !important;
  background:
    linear-gradient(135deg,#246fde 0%,#16abc0 100%) !important;
  color:#fff !important;
  box-shadow:0 7px 18px rgba(36,111,222,.24) !important;
}

/* encabezados e información */
.heading-icon,
.section-title,
.location-title,
.note-icon{
  color:#1676c5 !important;
}

.times-heading strong,
.section-title h2,
.clinic-location>strong{
  color:#17344f !important;
}

.availability-hint,
.calendar-note,
.live-note{
  border-color:#bcdcf0 !important;
  background:
    linear-gradient(135deg,#eef8ff 0%,#f0fcfd 100%) !important;
  color:#3d6e91 !important;
}

/* HORARIOS: disponibles claros, selección fuerte */
.hora-btn{
  border:1px solid #bfe5d4 !important;
  background:
    linear-gradient(180deg,#f5fff9 0%,#ebf9f2 100%) !important;
  color:#078654 !important;
  box-shadow:0 3px 9px rgba(10,130,82,.05) !important;
}

.hora-btn:not(:disabled):hover{
  border-color:#72caa5 !important;
  background:#e3f7ed !important;
  box-shadow:0 7px 16px rgba(10,130,82,.12) !important;
}

.hora-btn.selected,
.hora-btn.is-selected{
  border-color:transparent !important;
  background:
    linear-gradient(90deg,#246bdd 0%,#1c91d6 55%,#16b1bf 100%) !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(32,116,211,.25) !important;
}

.hora-btn.is-ultimos:not(:disabled){
  border-color:#ffc75d !important;
  background:
    linear-gradient(180deg,#fff6df 0%,#ffe8ae 100%) !important;
  color:#9d6400 !important;
}

.hora-btn:disabled,
.hora-btn.is-ocupado,
.hora-btn.is-disabled-time,
.hora-btn.is-atendido,
.hora-btn.is-past{
  border-color:#f1c0c5 !important;
  background:
    linear-gradient(180deg,#fff6f7 0%,#ffedef 100%) !important;
  color:#d54957 !important;
}

/* resumen cita */
.resumen{
  border-color:#9fd4ea !important;
  background:
    linear-gradient(90deg,#e8f5ff 0%,#e8fbfc 100%) !important;
  color:#105f97 !important;
}

/* FORMULARIO */
.field label{
  color:#315471 !important;
}

.field input,
.field select{
  border-color:#c5d8e7 !important;
  background:#fbfdff !important;
  color:#193951 !important;
}

.field input:focus,
.field select:focus{
  border-color:#2d83df !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(45,131,223,.11) !important;
}

/* UBICACIÓN */
.clinic-location{
  border-color:#bcddec !important;
  background:
    linear-gradient(145deg,#eef8ff 0%,#edfafa 100%) !important;
}

.location-btn{
  border-color:#55aee0 !important;
  background:#fff !important;
  color:#146fb8 !important;
}

.location-btn:hover{
  background:#eaf6ff !important;
}

/* CTA inferior igual a login */
.booking-cta{
  border-top:1px solid #c7dbe8 !important;
  background:rgba(255,255,255,.98) !important;
  box-shadow:0 -8px 26px rgba(33,70,117,.09) !important;
}

.summary-item>span{
  color:#1978c8 !important;
}

.summary-item b{
  color:#1c405c !important;
}

.btn-primary{
  border:0 !important;
  background:
    linear-gradient(90deg,#176BE4 0%,#1B8EDE 54%,#1EB8C4 100%) !important;
  color:#fff !important;
  box-shadow:0 10px 24px rgba(26,111,215,.26) !important;
}

.btn-primary:not(:disabled):hover{
  transform:translateY(-1px) !important;
  box-shadow:0 14px 30px rgba(26,111,215,.32) !important;
}

.btn-primary:disabled{
  background:#dfe7ec !important;
  color:#9daab2 !important;
  box-shadow:none !important;
}

/* =========================================================
   MÓVIL — MISMO LOOK, MÁS COMPACTO
   ========================================================= */
@media(max-width:680px){

  body{
    background:
      linear-gradient(155deg,#dcecf6 0%,#e9f6f9 100%) !important;
  }

  .agenda-shell{
    padding:0 0 72px !important;
  }

  .agenda-app{
    border-radius:0 !important;
    border-left:0 !important;
    border-right:0 !important;
    box-shadow:none !important;
  }

  .clinic-header{
    padding:9px 10px 8px !important;
    background:
      radial-gradient(circle at 82% 4%,rgba(255,255,255,.12),transparent 10rem),
      linear-gradient(112deg,#244783 0%,#2b6cc7 55%,#22b7c6 100%) !important;
  }

  .clinic-brand img{
    max-width:155px !important;
    max-height:44px !important;
  }

  .trust-strip{
    margin-top:7px !important;
  }

  .trust-item{
    background:rgba(255,255,255,.10) !important;
    border-color:rgba(255,255,255,.18) !important;
  }

  .booking-intro{
    padding:11px 10px 8px !important;
  }

  .booking-intro h1{
    font-size:18px !important;
  }

  /* los 3 pasos EN UNA SOLA FILA */
  .steps{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:0 !important;
  }

  .step{
    width:auto !important;
    min-width:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  .step.active{
    background:transparent !important;
    box-shadow:none !important;
  }

  .step.active .dot{
    background:
      linear-gradient(135deg,#246fde,#15afbf) !important;
  }

  #horas .horas{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }

  .booking-cta{
    background:rgba(255,255,255,.985) !important;
    box-shadow:0 -8px 24px rgba(33,70,117,.12) !important;
  }

  .btn-primary{
    background:
      linear-gradient(90deg,#176BE4 0%,#1B8EDE 54%,#1EB8C4 100%) !important;
  }
}


/* =========================================================
   AJUSTE TOP PRO — APROBADO VISUALMENTE
   Solo parte superior: header, pasos, calendario y horarios
   ========================================================= */

/* LOGO: blanco puro, sin placa/fondo */
.clinic-brand{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.clinic-brand img{
  width:190px!important;
  max-width:190px!important;
  max-height:58px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.12))!important;
}

/* HEADER más premium */
.clinic-header{
  min-height:96px!important;
  padding:13px 34px!important;
  grid-template-columns:205px 1fr!important;
  gap:26px!important;
}

/* tarjetas confianza: mejor lectura y presencia */
.trust-strip{
  grid-template-columns:repeat(3,minmax(155px,1fr)) minmax(145px,.78fr)!important;
  gap:12px!important;
  align-items:center!important;
}

.trust-item,
.trust-help{
  min-height:58px!important;
  padding:8px 12px!important;
  border-radius:13px!important;
  border:1px solid rgba(255,255,255,.24)!important;
  background:rgba(255,255,255,.11)!important;
}

.trust-item{
  gap:10px!important;
}

.trust-help{
  gap:10px!important;
  background:rgba(255,255,255,.13)!important;
}

.trust-icon,
.wa-mark{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border-radius:11px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  background:rgba(255,255,255,.12)!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
}

.trust-icon svg,
.wa-mark svg{
  width:21px!important;
  height:21px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.trust-icon--fast svg{
  fill:#fff!important;
  stroke:#fff!important;
  stroke-width:1.2!important;
}

.wa-mark{
  background:linear-gradient(135deg,#20c76f,#08a957)!important;
  border-color:rgba(255,255,255,.35)!important;
  box-shadow:0 6px 15px rgba(0,108,65,.20)!important;
}

.trust-item b,
.trust-help b{
  font-size:14px!important;
  line-height:1.05!important;
  font-weight:650!important;
  letter-spacing:-.01em!important;
}

.trust-item small,
.trust-help small{
  margin-top:4px!important;
  font-size:11.5px!important;
  line-height:1.12!important;
  font-weight:600!important;
}

/* Título */
.booking-intro{
  padding-top:20px!important;
}
.booking-intro h1{
  font-size:27px!important;
  letter-spacing:-.035em!important;
}
.booking-intro>p{
  font-size:11.5px!important;
}

/* PASOS PC: textos más notorios */
.steps{
  margin-top:15px!important;
}
.step{
  min-height:64px!important;
  padding:11px 14px!important;
}
.step .dot{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  font-size:12px!important;
}
.step-copy b{
  font-size:14px!important;
  line-height:1.08!important;
  font-weight:850!important;
}
.step-copy small{
  margin-top:4px!important;
  font-size:10.8px!important;
}

/* CALENDARIO: más legible en PC */
.calendar-card{
  padding:14px!important;
}
.flatpickr-months{
  height:46px!important;
  margin-bottom:7px!important;
}
.flatpickr-months .flatpickr-month{
  height:46px!important;
}
.flatpickr-current-month{
  padding-top:10px!important;
  font-size:17px!important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month{
  height:46px!important;
  padding:13px!important;
}
.flatpickr-weekdays{
  height:34px!important;
}
span.flatpickr-weekday{
  font-size:10.5px!important;
  font-weight:900!important;
}
.flatpickr-day{
  height:36px!important;
  line-height:36px!important;
  font-size:11.5px!important;
  font-weight:780!important;
}
.calendar-legend{
  margin-top:10px!important;
  font-size:12.5px!important;
}
.calendar-note{
  margin-top:10px!important;
  min-height:48px!important;
}
.calendar-note b{
  font-size:13.5px!important;
}
.calendar-note small{
  font-size:11.5px!important;
}

/* HORARIOS: texto y botones más notorios */
.times-card{
  padding:16px!important;
}
.times-heading small{
  font-size:10.8px!important;
}
.times-heading strong{
  margin-top:2px!important;
  font-size:16px!important;
  font-weight:900!important;
}
.turno-title{
  margin:14px 0 8px!important;
  font-size:12.5px!important;
  font-weight:800!important;
  color:#234a67!important;
}
.turno-title::before{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:7px;
  border-radius:50%;
  vertical-align:1px;
  background:#f6a51a;
  box-shadow:0 0 0 3px rgba(246,165,26,.10);
}
#horas .horas{
  gap:8px!important;
}
.hora-btn{
  min-height:40px!important;
  padding:8px 7px!important;
  border-radius:8px!important;
  border-color:#a9dbc3!important;
  background:linear-gradient(180deg,#f4fff8 0%,#e5f7ed 100%)!important;
  color:#087b4d!important;
  font-size:10.8px!important;
  font-weight:900!important;
}
.hora-btn:not(:disabled):hover{
  background:linear-gradient(180deg,#ecfbf3,#dff4e8)!important;
  border-color:#71c49d!important;
}
.hora-btn:disabled,
.hora-btn.is-ocupado,
.hora-btn.is-disabled-time,
.hora-btn.is-atendido,
.hora-btn.is-past{
  font-size:10.5px!important;
  font-weight:900!important;
}
.hora-btn.is-ultimos:not(:disabled){
  font-size:10.8px!important;
  font-weight:900!important;
}
.hora-badge{
  top:3px!important;
  right:4px!important;
  padding:2px 4px!important;
  font-size:5.8px!important;
}
.live-note{
  margin-top:12px!important;
  padding:9px 10px!important;
  font-size:12px!important;
  font-weight:700!important;
}

/* No tocar aún la parte inferior: se ajustará en siguiente etapa */

/* TABLET */
@media(max-width:1100px){
  .clinic-header{
    grid-template-columns:185px 1fr!important;
    padding-left:22px!important;
    padding-right:22px!important;
    gap:18px!important;
  }
  .clinic-brand img{
    width:172px!important;
    max-width:172px!important;
  }
  .trust-strip{
    grid-template-columns:repeat(3,1fr)!important;
  }
  .trust-help{
    display:none!important;
  }
}

/* MÓVIL: mantener 3 pasos en una sola fila */
@media(max-width:680px){
  .clinic-header{
    min-height:auto!important;
    grid-template-columns:1fr!important;
    gap:4px!important;
    padding:10px 10px 8px!important;
  }
  .clinic-brand{
    justify-content:center!important;
  }
  .clinic-brand img{
    width:160px!important;
    max-width:160px!important;
    max-height:48px!important;
  }
  .trust-strip{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    margin-top:7px!important;
  }
  .trust-item{
    min-height:45px!important;
    padding:5px 4px!important;
    gap:4px!important;
    justify-content:center!important;
  }
  .trust-icon{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    border-radius:8px!important;
  }
  .trust-icon svg{
    width:14px!important;
    height:14px!important;
  }
  .trust-item b{
    font-size:11px!important;
  }
  .trust-item small{
    font-size:7.8px!important;
  }
  .trust-help{
    display:none!important;
  }

  .booking-intro h1{
    font-size:19px!important;
  }

  .steps{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
  }
  .step{
    min-width:0!important;
    min-height:46px!important;
    padding:4px 2px!important;
  }
  .step .dot{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    font-size:9px!important;
  }
  .step-copy b{
    font-size:10.4px!important;
  }

  /* En móvil no agrandar demasiado calendario/botones */
  .flatpickr-months{
    height:36px!important;
  }
  .flatpickr-months .flatpickr-month{
    height:36px!important;
  }
  .flatpickr-current-month{
    padding-top:7px!important;
    font-size:12.5px!important;
  }
  .flatpickr-weekdays{
    height:27px!important;
  }
  span.flatpickr-weekday{
    font-size:10.3px!important;
  }
  .flatpickr-day{
    height:31px!important;
    line-height:31px!important;
    font-size:9.3px!important;
  }
  #horas .horas{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
  }
  .hora-btn{
    min-height:34px!important;
    padding:6px 3px!important;
    font-size:8.8px!important;
  }
  .hora-btn:disabled,
  .hora-btn.is-ocupado,
  .hora-btn.is-disabled-time,
  .hora-btn.is-atendido,
  .hora-btn.is-past,
  .hora-btn.is-ultimos:not(:disabled){
    font-size:8.8px!important;
  }
  .hora-badge{
    display:none!important;
  }
}


/* =========================================================
   PARTE INFERIOR PRO — DATOS + UBICACIÓN + CTA
   Más visible, coherente con el login La Pieza 32
   ========================================================= */

/* CONTENEDOR INFERIOR */
.patient-card{
  margin-top:16px!important;
  padding:17px!important;
  border:1px solid #bfd8ea!important;
  border-radius:16px!important;
  background:
    linear-gradient(180deg,#ffffff 0%,#f8fbfe 100%)!important;
  box-shadow:
    0 10px 28px rgba(27,78,126,.10),
    inset 0 1px 0 rgba(255,255,255,.75)!important;
}

/* TÍTULO DE LA SECCIÓN */
.section-title{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin-bottom:13px!important;
  color:#176fc3!important;
}

.section-title::before{
  content:"";
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:10px;
  background:
    linear-gradient(135deg,#1f6fdd 0%,#1ab0bf 100%);
  box-shadow:0 7px 17px rgba(31,111,221,.20);
}

.section-title h2{
  margin:0!important;
  color:#16344f!important;
  font-size:16px!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:-.015em!important;
}

/* FORM GRID */
.patient-grid{
  gap:16px!important;
  align-items:stretch!important;
}

/* CAMPOS MÁS GRANDES Y LEGIBLES */
.fields-grid{
  gap:12px!important;
}

.field{
  margin:0!important;
}

.field label{
  margin-bottom:6px!important;
  color:#31536d!important;
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:.005em!important;
}

.field input,
.field select{
  min-height:46px!important;
  padding:0 13px!important;
  border:1px solid #bdd3e3!important;
  border-radius:10px!important;
  background:#fbfdff!important;
  color:#193950!important;
  font-size:11px!important;
  font-weight:650!important;
  box-shadow:0 2px 8px rgba(29,76,116,.025)!important;
}

.field input::placeholder{
  color:#9aabb7!important;
  font-weight:500!important;
}

.field input:focus,
.field select:focus{
  border-color:#2b83df!important;
  background:#fff!important;
  box-shadow:
    0 0 0 4px rgba(43,131,223,.10),
    0 6px 14px rgba(35,91,145,.06)!important;
}

/* WHATSAPP INPUT con toque verde */
.field--whatsapp input{
  border-color:#b7dfcc!important;
  background:
    linear-gradient(180deg,#fbfffd 0%,#f6fcf9 100%)!important;
}

.field--whatsapp input:focus{
  border-color:#34b879!important;
  box-shadow:
    0 0 0 4px rgba(52,184,121,.10),
    0 6px 14px rgba(35,91,145,.06)!important;
}

.field-help{
  margin-top:6px!important;
  color:#6f8798!important;
  font-size:8.5px!important;
  font-weight:600!important;
}

/* UBICACIÓN — más premium y visible */
.clinic-location{
  padding:13px!important;
  border:1px solid #a9d4e8!important;
  border-radius:14px!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(24,184,198,.10),transparent 10rem),
    linear-gradient(145deg,#eef8ff 0%,#edfafa 100%)!important;
  box-shadow:0 8px 22px rgba(27,78,126,.08)!important;
}

.location-title{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-bottom:7px!important;
  color:#1674c4!important;
  font-size:12px!important;
  font-weight:800!important;
}

.clinic-location>strong{
  display:block!important;
  margin-bottom:3px!important;
  color:#13344e!important;
  font-size:13px!important;
  font-weight:900!important;
}

.clinic-location>small{
  display:block!important;
  margin-bottom:9px!important;
  color:#6e8395!important;
  font-size:8.5px!important;
}

.clinic-location img{
  border:1px solid rgba(28,104,154,.12)!important;
  border-radius:10px!important;
  box-shadow:0 6px 16px rgba(28,104,154,.08)!important;
}

.location-btn{
  min-height:38px!important;
  margin-top:9px!important;
  border:1px solid #4ca9db!important;
  border-radius:9px!important;
  background:
    linear-gradient(180deg,#ffffff 0%,#f2f9fd 100%)!important;
  color:#0d68ad!important;
  font-size:9px!important;
  font-weight:850!important;
}

.location-btn:hover{
  border-color:#1f8fc9!important;
  background:#e9f6fc!important;
}

/* CTA INFERIOR — que se sienta parte del mismo producto */
.booking-cta{
  min-height:70px!important;
  padding:10px 22px!important;
  border-top:1px solid #bcd4e3!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.985) 0%,rgba(247,251,254,.985) 100%)!important;
  box-shadow:0 -9px 28px rgba(29,75,119,.10)!important;
}

.booking-summary{
  gap:24px!important;
}

.summary-item{
  min-width:120px!important;
}

.summary-item>span{
  width:28px!important;
  height:28px!important;
  border-radius:9px!important;
  background:
    linear-gradient(135deg,#eaf5ff 0%,#e9fbfc 100%)!important;
  color:#1476c8!important;
  font-size:12px!important;
}

.summary-item small{
  color:#71889a!important;
  font-size:14px!important;
  font-weight:700!important;
}

.summary-item b{
  margin-top:2px!important;
  color:#1a3d57!important;
  font-size:14px!important;
  font-weight:900!important;
}

/* BOTÓN RESERVA: más visible */
.btn-primary{
  min-height:50px!important;
  min-width:390px!important;
  border-radius:13px!important;
  background:
    linear-gradient(90deg,#176be4 0%,#1d88de 52%,#1eb8c4 100%)!important;
  color:#fff!important;
  box-shadow:
    0 11px 25px rgba(24,110,212,.25),
    inset 0 1px 0 rgba(255,255,255,.18)!important;
}

.btn-primary .btn-copy b,
.btn-primary b{
  color:#fff!important;
  font-size:17px!important;
  font-weight:800!important;
}

.btn-primary .btn-copy small,
.btn-primary small{
  color:rgba(255,255,255,.80)!important;
  font-size:12px!important;
  font-weight:600!important;
}

.btn-primary:not(:disabled):hover{
  transform:translateY(-1px)!important;
  box-shadow:
    0 14px 31px rgba(24,110,212,.32),
    inset 0 1px 0 rgba(255,255,255,.18)!important;
}

.btn-primary:disabled{
  background:#dbe4ea!important;
  color:#9eabb3!important;
  box-shadow:none!important;
}

.btn-primary:disabled .btn-copy b,
.btn-primary:disabled b,
.btn-primary:disabled .btn-copy small,
.btn-primary:disabled small{
  color:#a1adb5!important;
}

/* =========================================================
   TABLET
   ========================================================= */
@media(max-width:950px){
  .patient-grid{
    grid-template-columns:1fr!important;
  }

  .clinic-location{
    max-width:none!important;
  }

  .btn-primary{
    min-width:320px!important;
  }
}

/* =========================================================
   MÓVIL — más legible sin crecer demasiado
   ========================================================= */
@media(max-width:680px){

  .patient-card{
    margin-top:10px!important;
    padding:12px!important;
    border-radius:13px!important;
    box-shadow:none!important;
  }

  .section-title{
    margin-bottom:10px!important;
  }

  .section-title::before{
    width:28px!important;
    height:28px!important;
    flex-basis:28px!important;
    border-radius:8px!important;
  }

  .section-title h2{
    font-size:14px!important;
  }

  .fields-grid{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }

  .field label{
    font-size:11px!important;
  }

  .field input,
  .field select{
    min-height:42px!important;
    font-size:10px!important;
    border-radius:9px!important;
  }

  .field-help{
    font-size:9.7px!important;
  }

  .clinic-location{
    padding:10px!important;
    border-radius:12px!important;
  }

  .clinic-location>strong{
    font-size:10.5px!important;
  }

  .clinic-location>small{
    font-size:7.8px!important;
  }

  .location-btn{
    min-height:36px!important;
    font-size:10px!important;
  }

  .booking-cta{
    min-height:62px!important;
    padding:7px 9px!important;
  }

  .booking-summary{
    gap:7px!important;
  }

  .summary-item{
    min-width:0!important;
  }

  .summary-item>span{
    width:24px!important;
    height:24px!important;
    font-size:10px!important;
  }

  .summary-item small{
    font-size:11.5px!important;
  }

  .summary-item b{
    font-size:8px!important;
  }

  .btn-primary{
    min-width:0!important;
    min-height:44px!important;
    border-radius:10px!important;
  }

  .btn-primary .btn-copy b,
  .btn-primary b{
    font-size:10px!important;
  }

  .btn-primary .btn-copy small,
  .btn-primary small{
    font-size:6.5px!important;
  }
}


/* =========================================================
   AJUSTE PUNTUAL 2026-08-21
   - 3 pasos SIEMPRE en una sola fila
   - icono profesional Horarios disponibles
   - icono profesional Tus datos
   IMPORTANTE: no modifica tamaños ya personalizados.
   ========================================================= */

/* Iconos SVG nuevos */
.heading-icon,
.section-title .section-user-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
  color:#1777c8!important;
}

.heading-icon{
  width:27px!important;
  height:27px!important;
  border:1px solid #b8d9ee!important;
  border-radius:8px!important;
  background:linear-gradient(135deg,#eef8ff 0%,#effcfd 100%)!important;
  box-shadow:0 4px 12px rgba(31,111,190,.08)!important;
}

.heading-icon svg{
  width:16px!important;
  height:16px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.section-title .section-user-icon{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,#1f6fdd 0%,#1ab0bf 100%)!important;
  color:#fff!important;
  box-shadow:0 7px 17px rgba(31,111,221,.20)!important;
}

.section-title .section-user-icon svg{
  width:18px!important;
  height:18px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Evitar el cuadrado decorativo anterior en Tus datos */
.section-title:before{
  content:none!important;
  display:none!important;
}

/* =========================================================
   MÓVIL: los pasos 1 / 2 / 3 no pueden saltar de línea.
   Se fuerza el grid sólo aquí, sin cambiar tipografías.
   ========================================================= */
@media(max-width:680px){

  .booking-intro .steps{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:1fr!important;
    grid-auto-flow:column!important;
    grid-auto-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:none!important;
    gap:0!important;
    margin-left:0!important;
    margin-right:0!important;
    align-items:start!important;
  }

  .booking-intro .steps > .step{
    grid-row:1!important;
    grid-column:auto!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex:initial!important;
    flex-basis:auto!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  .booking-intro .steps > .step:nth-child(1){grid-column:1!important}
  .booking-intro .steps > .step:nth-child(2){grid-column:2!important}
  .booking-intro .steps > .step:nth-child(3){grid-column:3!important}

  /* La línea conectora queda dentro de su tercio y no provoca overflow */
  .booking-intro .step:not(:last-child):after{
    left:calc(50% + 13px)!important;
    width:calc(100% - 26px)!important;
  }

  .heading-icon{
    width:25px!important;
    height:25px!important;
    border-radius:7px!important;
  }

  .heading-icon svg{
    width:15px!important;
    height:15px!important;
  }

  .section-title .section-user-icon{
    width:28px!important;
    height:28px!important;
    border-radius:8px!important;
  }

  .section-title .section-user-icon svg{
    width:16px!important;
    height:16px!important;
  }
}











/* ============================================
   ICONOS PRO — notas, ubicación, resumen y CTA
   ============================================ */

.live-note{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}

.live-note-icon,
.calendar-wa-icon,
.location-icon,
.summary-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
}

.live-note-icon{
  width:22px!important;
  height:22px!important;
  border-radius:7px!important;
  background:#eaf6ff!important;
  color:#1779cc!important;
}

.calendar-wa-icon{
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#24c875,#0cab5a)!important;
  color:#fff!important;
  box-shadow:0 5px 13px rgba(14,170,88,.18)!important;
}

.location-icon{
  width:24px!important;
  height:24px!important;
  border-radius:7px!important;
  background:#eaf6ff!important;
  color:#1778c8!important;
}

.summary-icon{
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#e9f5ff,#e8fbfc)!important;
  color:#1778c8!important;
}

.live-note-icon svg,
.calendar-wa-icon svg,
.location-icon svg,
.summary-icon svg{
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.calendar-wa-icon svg{
  width:17px!important;
  height:17px!important;
}

/* BOTÓN RESERVAR */
.btn-primary{
  overflow:hidden!important;
}

.btn-icon,
.btn-arrow{
  display:grid!important;
  place-items:center!important;
}

.btn-icon{
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.14)!important;
}

.btn-icon svg{
  width:16px!important;
  height:16px!important;
  fill:none!important;
  stroke:#fff!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.btn-arrow{
  width:28px!important;
  height:28px!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.12)!important;
}

.btn-arrow svg{
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:#fff!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.btn-primary:not(:disabled):hover .btn-arrow{
  transform:translateX(2px)!important;
}

.btn-primary:disabled .btn-icon,
.btn-primary:disabled .btn-arrow{
  background:rgba(160,175,185,.12)!important;
}

.btn-primary:disabled .btn-icon svg,
.btn-primary:disabled .btn-arrow svg{
  stroke:#a5b1b8!important;
}

/* MÓVIL */
@media(max-width:680px){

  .calendar-wa-icon{
    width:26px!important;
    height:26px!important;
  }

  .location-icon{
    width:21px!important;
    height:21px!important;
  }

  .summary-icon{
    width:25px!important;
    height:25px!important;
  }

  .btn-icon{
    width:26px!important;
    height:26px!important;
  }

  .btn-arrow{
    width:24px!important;
    height:24px!important;
  }
}




/* =====================================================
   FOOTER MÓVIL FINAL
   Fecha + Hora + Reservar visibles
   ===================================================== */
@media(max-width:680px){

  .booking-cta{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:1000!important;

    width:100%!important;
    min-height:70px!important;

    display:grid!important;
    grid-template-columns:72px 72px minmax(0,1fr)!important;
    align-items:center!important;
    gap:6px!important;

    padding:
      7px
      8px
      calc(7px + env(safe-area-inset-bottom))
      8px!important;

    background:rgba(255,255,255,.98)!important;
    border-top:1px solid #c5dae7!important;

    box-shadow:
      0 -8px 25px rgba(30,74,117,.12)!important;
  }

  .cta-summary{
    display:contents!important;
  }

  .summary-item{
    min-width:0!important;
    width:auto!important;
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    margin:0!important;
  }

  .summary-item:nth-child(1){
    grid-column:1!important;
  }

  .summary-item:nth-child(2){
    grid-column:2!important;
  }

  .summary-icon{
    width:23px!important;
    height:23px!important;
    min-width:23px!important;
  }

  .summary-icon svg{
    width:13px!important;
    height:13px!important;
  }

  .summary-item small{
    display:block!important;
    font-size:6.8px!important;
    line-height:1!important;
  }

  .summary-item b{
    display:block!important;
    margin-top:2px!important;
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  .btn-primary{
    grid-column:3!important;

    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:47px!important;

    margin:0!important;
    padding:5px 7px!important;

    display:grid!important;
    grid-template-columns:28px minmax(0,1fr) 26px!important;
    align-items:center!important;
    gap:5px!important;

    border-radius:11px!important;
  }

  .btn-primary .btn-copy{
    min-width:0!important;
    text-align:center!important;
  }

  .btn-primary .btn-copy b{
    display:block!important;
    font-size:9.5px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }

  .btn-primary .btn-copy small{
    display:block!important;
    margin-top:2px!important;
    font-size:5.8px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  .btn-icon{
    width:27px!important;
    height:27px!important;
    min-width:27px!important;
  }

  .btn-arrow{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
  }

  /* espacio para que el footer fijo no tape el formulario */
  .agenda-shell{
    padding-bottom:82px!important;
  }
}














/* =========================================================
   FIX FINAL MÓVIL — FECHA + HORA + BOTÓN RESERVAR
   Pegar AL FINAL de agenda-premium.css
   ========================================================= */

@media (max-width:680px){

  /* Footer fijo completo */
  #formAgenda .booking-cta{
    position:fixed!important;
    z-index:9999!important;
    left:0!important;
    right:0!important;
    bottom:0!important;

    width:100%!important;
    max-width:none!important;
    min-height:68px!important;

    margin:0!important;
    padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;

    display:grid!important;
    grid-template-columns:71px 64px minmax(0,1fr)!important;
    align-items:center!important;
    gap:6px!important;

    background:rgba(255,255,255,.98)!important;
    border-top:1px solid #c6dbe8!important;

    box-shadow:
      0 -8px 24px rgba(24,70,110,.14)!important;

    overflow:visible!important;
  }


  /* IMPORTANTE:
     anula la regla antigua que ocultaba FECHA */
  #formAgenda .booking-cta
  .cta-summary
  .summary-item:first-child{
    display:flex!important;
  }


  /* El contenedor no ocupa una columna propia */
  #formAgenda .booking-cta .cta-summary{
    display:contents!important;
  }


  /* FECHA y HORA */
  #formAgenda .booking-cta .summary-item{
    display:flex!important;
    align-items:center!important;
    gap:4px!important;

    width:auto!important;
    min-width:0!important;

    margin:0!important;
    padding:0!important;
  }


  #formAgenda .booking-cta
  .summary-item:nth-child(1){
    grid-column:1!important;
  }


  #formAgenda .booking-cta
  .summary-item:nth-child(2){
    grid-column:2!important;
  }


  /* Iconos fecha/hora */
  #formAgenda .booking-cta .summary-icon{
    width:23px!important;
    height:23px!important;
    min-width:23px!important;

    display:grid!important;
    place-items:center!important;

    border-radius:8px!important;

    background:
      linear-gradient(
        135deg,
        #e9f5ff,
        #e7fafc
      )!important;

    color:#1778c8!important;
  }


  #formAgenda .booking-cta
  .summary-icon svg{
    width:13px!important;
    height:13px!important;
  }


  #formAgenda .booking-cta
  .summary-item small{
    display:block!important;

    font-size:13px!important;
    line-height:1!important;

    color:#71889a!important;
  }


  #formAgenda .booking-cta
  .summary-item b{
    display:block!important;

    margin-top:5px!important;

    font-size:8.3px!important;
    line-height:1!important;

    color:#173b56!important;

    white-space:nowrap!important;
  }


  /* ==========================================
     BOTÓN RESERVAR
     ========================================== */

  #formAgenda .booking-cta #btnReservar{
    grid-column:3!important;

    display:grid!important;
    visibility:visible!important;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    min-height:47px!important;

    margin:0!important;
    padding:5px 6px!important;

    grid-template-columns:27px minmax(0,1fr) 25px!important;
    align-items:center!important;
    gap:4px!important;

    border:0!important;
    border-radius:11px!important;

    opacity:1!important;
  }


  /* DESACTIVADO:
     debe seguir visible en gris */
  #formAgenda .booking-cta
  #btnReservar:disabled{

    display:grid!important;
    visibility:visible!important;

    background:#dfe7ec!important;

    color:#9daab2!important;

    opacity:1!important;

    box-shadow:none!important;
  }


  /* ACTIVO */
  #formAgenda .booking-cta
  #btnReservar:not(:disabled){

    display:grid!important;
    visibility:visible!important;

    background:
      linear-gradient(
        90deg,
        #176be4 0%,
        #1b8ede 54%,
        #1eb8c4 100%
      )!important;

    color:#fff!important;

    box-shadow:
      0 8px 20px rgba(24,110,212,.25)!important;
  }


  /* Texto del botón */
  #formAgenda .booking-cta
  #btnReservar .btn-copy{

    min-width:0!important;

    display:block!important;

    text-align:center!important;
  }


  #formAgenda .booking-cta
  #btnReservar .btn-copy b{

    display:block!important;

    font-size:13px!important;
    line-height:1.05!important;

    font-weight:800!important;

    white-space:nowrap!important;
  }


  #formAgenda .booking-cta
  #btnReservar .btn-copy small{

    display:block!important;

    margin-top:2px!important;

    font-size:7.5px!important;
    line-height:1!important;

    white-space:nowrap!important;
  }


  /* Icono botón */
  #formAgenda .booking-cta
  #btnReservar .btn-icon{

    width:27px!important;
    height:27px!important;
    min-width:27px!important;
  }


  #formAgenda .booking-cta
  #btnReservar .btn-arrow{

    width:25px!important;
    height:25px!important;
    min-width:25px!important;
  }


  /* El contenido no debe quedar escondido
     debajo de la barra fija */
  .agenda-shell{
    padding-bottom:86px!important;
  }
}














