:root{
  --dm-blue:#1267d6;--dm-blue-soft:#eef5ff;--dm-text:#16233a;--dm-muted:#7c899d;
  --dm-border:#dbe4ef;--dm-bg:#f5f8fc;--dm-shadow:0 18px 50px rgba(29,54,86,.10)
}
*{box-sizing:border-box}html{background:var(--dm-bg);-webkit-text-size-adjust:100%}
body.dm-portal-body{margin:0;background:var(--dm-bg);color:var(--dm-text);font-family:Arial,Helvetica,sans-serif}
button,a{font:inherit}
.dm-portal{min-height:100svh;padding:18px 12px;display:flex;justify-content:center}
.dm-shell{width:min(100%,860px);background:#fff;border:1px solid var(--dm-border);border-radius:24px;box-shadow:var(--dm-shadow);padding:24px}
.dm-header{text-align:center;padding:4px 8px 22px}.dm-logo{width:min(170px,46vw);height:auto;display:block;margin:0 auto 12px}
.dm-header h1{margin:0;font-size:clamp(26px,4vw,38px);line-height:1.08;letter-spacing:-.5px}
.dm-header p{margin:9px 0 0;color:var(--dm-muted);font-size:15px}
.dm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dm-card{appearance:none;text-decoration:none;border:1px solid var(--dm-border);background:#fff;color:var(--dm-text);border-radius:18px;min-height:138px;padding:18px 14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;cursor:pointer;transition:.15s}
.dm-card:hover,.dm-card:focus-visible{transform:translateY(-2px);border-color:#a9c8f2;box-shadow:0 10px 25px rgba(25,79,144,.10);outline:none}
.dm-icon{height:38px;min-width:38px;border-radius:12px;background:var(--dm-blue-soft);display:inline-flex;align-items:center;justify-content:center;font-size:22px;color:var(--dm-blue);font-weight:700;margin-bottom:13px}
.dm-title{font-weight:700;font-size:17px;line-height:1.2}.dm-sub{font-size:13px;line-height:1.35;color:var(--dm-muted);margin-top:5px}
.dm-button{width:100%}.dm-footer{text-align:center;color:#8c98aa;font-size:11px;font-weight:400;padding:22px 4px 2px}
.dm-modal[hidden]{display:none}.dm-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center}
.dm-modal-backdrop{position:absolute;inset:0;background:rgba(14,27,44,.48)}
.dm-modal-panel{position:relative;width:min(100%,620px);max-height:82svh;overflow:auto;background:#fff;border-radius:24px 24px 0 0;padding:24px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -20px 45px rgba(0,0,0,.15)}
.dm-modal-panel h2{margin:0 44px 18px 0;font-size:23px}.dm-close{position:absolute;right:16px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:#f1f4f8;color:#25334a;font-size:26px;cursor:pointer}
.dm-store-list{display:grid;gap:12px}.dm-store{border:1px solid var(--dm-border);border-radius:16px;padding:16px}.dm-store h3{margin:0 0 5px;font-size:17px}
.dm-store p{margin:0;color:var(--dm-muted);font-size:14px;line-height:1.45}.dm-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.dm-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 15px;border-radius:12px;background:var(--dm-blue);color:#fff;text-decoration:none;font-weight:700;font-size:14px}
@media (min-width:700px){.dm-portal{padding:34px 18px}.dm-shell{padding:34px}.dm-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dm-card{min-height:155px}.dm-modal{align-items:center;padding:20px}.dm-modal-panel{border-radius:24px}}
@media (max-width:380px){.dm-shell{padding:18px 14px;border-radius:20px}.dm-grid{gap:9px}.dm-card{min-height:130px;padding:15px 11px}.dm-title{font-size:15px}.dm-sub{font-size:12px}.dm-footer{font-size:10px}}

.dm-reg{font-size:.42em;vertical-align:super;margin-left:2px;font-weight:500}
.dm-icon svg{width:23px;height:23px;display:block;fill:currentColor}
.dm-whatsapp .dm-icon{width:56px;height:56px;border-radius:17px;background:#eefaf2;color:#168c46}
.dm-whatsapp .dm-icon svg{width:36px;height:36px}
.dm-zone{font-size:12px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;color:#7c899d;padding:5px 3px 0}
.dm-hours{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 15px;border:1px solid #dbe4ef;border-radius:12px;background:#fff;color:#16233a;font-weight:700;font-size:14px}

/* V1.0.4 VISUAL — identidad Doctor Mobile */
:root{
  --dm-brand:#0b67d8;
  --dm-brand-dark:#074f9f;
  --dm-brand-soft:#edf5ff;
  --dm-navy:#13233f;
  --dm-muted-2:#73819a;
  --dm-whatsapp:#1fae62;
  --dm-gold:#d9a71f;
  --dm-violet:#7657d6;
  --dm-cyan:#1f8fbf;
}

.dm-header h1{
  color:var(--dm-brand);
  font-weight:800;
  letter-spacing:-.7px;
}
.dm-header p{
  color:var(--dm-muted-2);
  font-weight:500;
}
.dm-reg{
  color:var(--dm-brand-dark);
}

.dm-card{
  position:relative;
  overflow:hidden;
  border-color:#d6e2f1;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
}
.dm-card::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  background:var(--dm-brand);
  opacity:.85;
}
.dm-card:hover,.dm-card:focus-visible{
  border-color:#91b8e8;
  box-shadow:0 12px 28px rgba(11,103,216,.12);
}
.dm-title{
  color:var(--dm-brand);
  font-size:17px;
  font-weight:800;
}
.dm-sub{
  color:var(--dm-muted-2);
  font-weight:500;
}

.dm-icon{
  width:48px;
  height:48px;
  min-width:48px;
  border-radius:14px;
  background:var(--dm-brand-soft);
  color:var(--dm-brand);
  box-shadow:inset 0 0 0 1px rgba(11,103,216,.08);
}
.dm-icon svg{
  width:26px;
  height:26px;
}
.dm-card-budget .dm-icon{
  background:#eef6ff;
  color:#0b67d8;
}
.dm-card-case .dm-icon{
  background:#f3f0ff;
  color:var(--dm-violet);
}
.dm-card-points .dm-icon{
  background:#fff8e7;
  color:var(--dm-gold);
}
.dm-card-reviews .dm-icon{
  background:#fff8e7;
  color:var(--dm-gold);
}
.dm-card-stores .dm-icon{
  background:#eef8fc;
  color:var(--dm-cyan);
}
.dm-whatsapp::before{
  background:var(--dm-whatsapp);
}
.dm-whatsapp .dm-icon{
  width:58px;
  height:58px;
  min-width:58px;
  border-radius:18px;
  background:#eaf8f0;
  color:var(--dm-whatsapp);
}
.dm-whatsapp .dm-icon svg{
  width:38px;
  height:38px;
}
.dm-whatsapp .dm-title{
  color:var(--dm-whatsapp);
}

.dm-zone{
  color:var(--dm-brand-dark);
  font-size:12px;
}
.dm-store h3{
  color:var(--dm-brand);
}
.dm-actions a{
  background:var(--dm-brand);
}
.dm-actions a:hover{
  background:var(--dm-brand-dark);
}
.dm-hours{
  border-color:#bcd1ec;
  color:var(--dm-brand-dark);
  background:#f8fbff;
}
.dm-close{
  color:var(--dm-brand-dark);
}
.dm-modal-panel h2{
  color:var(--dm-navy);
}
.dm-footer{
  color:#7d8ca2;
}

@media (max-width:480px){
  .dm-card{
    min-height:136px;
  }
  .dm-title{
    font-size:16px;
  }
  .dm-icon{
    width:46px;
    height:46px;
    min-width:46px;
  }
  .dm-whatsapp .dm-icon{
    width:56px;
    height:56px;
    min-width:56px;
  }
}

/* Doctor Mobile Portal V1.0.5 - cache-busted visual build */
.dm-shell{border-top:3px solid rgba(11,103,216,.20)}

/* V1.0.6 — Quick Link mobile dashboard style */
.dm-shell{border-top:0!important}
.dm-grid{gap:12px}
.dm-card{
  min-height:150px;
  padding:18px 12px 16px;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px solid #e3e9f2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 3px 9px rgba(24,55,90,.08);
  overflow:visible;
}
.dm-card::before{display:none!important}
.dm-card:hover,.dm-card:focus-visible{
  transform:translateY(-2px);
  border-color:#c6d9ef;
  box-shadow:0 7px 18px rgba(11,103,216,.12)
}
.dm-icon{
  width:58px;height:58px;min-width:58px;
  margin:0 0 13px;
  border-radius:16px;
  background:#edf5ff;
  color:#0b67d8;
  box-shadow:none;
}
.dm-icon svg{width:29px;height:29px}
.dm-title{
  color:#0b67d8;
  font-size:16px;
  line-height:1.18;
  font-weight:750;
}
.dm-sub{
  margin-top:5px;
  color:#7b879a;
  font-size:12.5px;
  line-height:1.3;
  font-weight:400;
}
.dm-budget .dm-icon{background:#edf5ff;color:#0b67d8}
.dm-case .dm-icon{background:#f0f5ff;color:#245fc7}
.dm-points .dm-icon{background:#fff7df;color:#b8860b}
.dm-reviews .dm-icon{background:#fff7df;color:#b8860b}
.dm-stores .dm-icon{background:#eaf7fb;color:#167ba3}
.dm-whatsapp .dm-icon{
  width:58px;height:58px;min-width:58px;
  background:#e9f8ef;color:#159447;border-radius:16px;
}
.dm-whatsapp .dm-icon svg{width:32px;height:32px}
.dm-whatsapp .dm-title{color:#159447}
.dm-header{padding-bottom:25px}
.dm-header h1{color:#0b67d8}
@media (min-width:700px){
  .dm-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:680px;margin:0 auto}
  .dm-card{min-height:165px}
}
@media (max-width:480px){
  .dm-shell{padding:20px 14px}
  .dm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dm-card{min-height:142px;padding:15px 9px}
  .dm-icon{width:54px;height:54px;min-width:54px}
  .dm-title{font-size:15px}
  .dm-sub{font-size:11.5px}
}

.dm-zone-menu{display:grid;grid-template-columns:1fr;gap:12px}
.dm-zone-card{width:100%;border:1px solid #dbe6f3;background:#fff;border-radius:16px;padding:16px;display:flex;align-items:center;gap:13px;text-align:left;cursor:pointer;box-shadow:0 3px 9px rgba(24,55,90,.06)}
.dm-zone-icon{width:44px;height:44px;border-radius:13px;background:#edf5ff;color:#0b67d8;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:18px}
.dm-zone-card strong{display:block;color:#0b67d8;font-size:16px}.dm-zone-card small{display:block;margin-top:3px;color:#7b879a;font-size:12px}
.dm-zone-detail{display:grid;gap:12px}.dm-zone-back{justify-self:start;border:0;background:transparent;color:#0b67d8;font-weight:700;padding:2px 0 4px;cursor:pointer}
.dm-zone-heading{font-size:18px;font-weight:800;color:#13233f}.dm-store-hours{margin-top:7px!important;color:#0b67d8!important;font-weight:700!important;background:#f4f8ff;border-radius:10px;padding:9px 10px}
.dm-hours-highlight{box-shadow:0 0 0 2px rgba(11,103,216,.18);background:#edf5ff!important}
@media(min-width:520px){.dm-zone-menu{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V1.0.8 — zonas con miniatura tipo mapa */
.dm-zone-map{
  position:relative;
  min-height:132px;
  padding:0;
  overflow:hidden;
  border:1px solid #dbe6f3;
  background:
    linear-gradient(90deg, transparent 46%, rgba(210,220,232,.65) 47%, rgba(210,220,232,.65) 50%, transparent 51%),
    linear-gradient(0deg, transparent 43%, rgba(210,220,232,.6) 44%, rgba(210,220,232,.6) 47%, transparent 48%),
    linear-gradient(25deg, transparent 40%, rgba(227,205,132,.6) 41%, rgba(227,205,132,.6) 44%, transparent 45%),
    linear-gradient(155deg, transparent 58%, rgba(172,213,176,.6) 59%, rgba(172,213,176,.6) 66%, transparent 67%),
    #f3f7fb;
  box-shadow:0 4px 14px rgba(24,55,90,.08);
}
.dm-zone-map::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.22));
}
.dm-zone-map-lleida{background-color:#eef4f9}
.dm-zone-map-tarrega{background-color:#f5f3ee}
.dm-map-overlay{
  position:absolute;
  inset:auto 10px 10px 10px;
  z-index:2;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(214,226,241,.95);
  border-radius:13px;
  padding:10px 12px;
  text-align:left;
  box-shadow:0 5px 16px rgba(24,55,90,.10);
}
.dm-map-overlay strong{
  display:block;
  color:#0b67d8;
  font-size:17px;
  font-weight:800;
}
.dm-map-overlay small{
  display:block;
  margin-top:3px;
  color:#6f7e94;
  font-size:12px;
  font-weight:700;
}

/* V1.0.9 — branded icons + strict zone interaction */
[hidden]{display:none!important}

.dm-icon{
  width:60px!important;
  height:60px!important;
  min-width:60px!important;
  border-radius:17px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  overflow:hidden;
}
.dm-icon svg{width:54px!important;height:54px!important;display:block}
.dm-icon-budget{background:#edf5ff!important}
.dm-icon-case{background:#edf5ff!important}
.dm-icon-points{background:#fffaf0!important}
.dm-icon-whatsapp{background:transparent!important;box-shadow:none!important}
.dm-icon-whatsapp svg{width:58px!important;height:58px!important}
.dm-icon-maps{background:transparent!important;box-shadow:none!important}
.dm-icon-maps svg{width:56px!important;height:56px!important}
.dm-zone-menu[hidden], .dm-zone-detail[hidden]{display:none!important}

/* V1.0.10 */
.dm-store-hours{margin-bottom:0!important}

/* V1.0.11 favicon/logo sync */

/* V1.1.0 — sistema visual homogéneo Doctor Mobile */
:root{
  --dm-blue:#1769ff;
  --dm-brand:#1769ff;
  --dm-brand-dark:#0b4fd4;
  --dm-brand-soft:#eaf2ff;
  --dm-text:#101828;
  --dm-navy:#101828;
  --dm-muted:#667085;
  --dm-muted-2:#667085;
  --dm-border:#e4e9f1;
  --dm-bg:#f4f7fb;
  --dm-shadow:0 12px 34px rgba(15,35,70,.09);
}
html{background:#f4f7fb}
body.dm-portal-body{
  min-width:320px;
  color:#101828;
  font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:radial-gradient(circle at 50% 0,#fff 0,#f4f7fb 38rem);
}
.dm-portal{padding:28px 18px 54px}
.dm-shell{
  width:min(100%,920px);
  padding:32px;
  border:1px solid #e4e9f1;
  border-radius:28px;
  box-shadow:var(--dm-shadow);
  background:rgba(255,255,255,.97);
}
.dm-header{padding:4px 8px 28px}
.dm-logo{
  width:min(210px,52vw);
  margin:0 auto 5px;
  filter:drop-shadow(0 12px 20px rgba(15,35,70,.11));
}
.dm-header h1{
  color:#101828;
  font-size:clamp(28px,4vw,40px);
  line-height:1;
  letter-spacing:-1.1px;
}
.dm-header h1 .dm-reg{color:#1769ff}
.dm-header p{margin-top:10px;color:#667085;font-size:15px}
.dm-grid{gap:14px}
.dm-card{
  min-height:160px;
  padding:19px 14px 17px;
  border:1px solid #e4e9f1;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0,#fbfdff 100%);
  box-shadow:0 5px 20px rgba(15,35,70,.045);
}
.dm-card:hover,.dm-card:focus-visible{border-color:#b8cef5;box-shadow:0 10px 25px rgba(23,105,255,.10)}
.dm-title{color:#1769ff;font-weight:800}
.dm-sub{color:#667085}
.dm-icon{background:#eaf2ff!important;color:#1769ff}
.dm-whatsapp .dm-icon,.dm-icon-whatsapp,.dm-icon-maps{background:transparent!important}
.dm-modal-panel{font-family:inherit;border:1px solid #e4e9f1;box-shadow:0 20px 55px rgba(15,35,70,.18)}
.dm-zone-card,.dm-store{border-color:#e4e9f1;border-radius:16px}
.dm-actions a{border-radius:12px;background:#1769ff}
.dm-actions a:hover{background:#0b4fd4}
.dm-footer{font-family:inherit;color:#98a2b3}
@media(min-width:700px){
  .dm-portal{padding:34px 18px 58px}
  .dm-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:720px}
  .dm-card{min-height:168px}
}
@media(max-width:480px){
  .dm-portal{padding:0}
  .dm-shell{min-height:100svh;padding:24px 14px 20px;border:0;border-radius:0;box-shadow:none}
  .dm-header{padding-bottom:24px}
  .dm-logo{width:min(178px,54vw)}
  .dm-grid{gap:10px}
  .dm-card{min-height:146px;padding:16px 9px}
}

/* V1.2.7 — cabecera en flujo normal (sin sticky/fixed ni lógica de compactación) */
.dm-shell{
  --dm-shell-pad-x:32px;
  overflow:visible;
}
.dm-header{
  margin-right:calc(var(--dm-shell-pad-x) * -1);
  margin-bottom:25px;
  margin-left:calc(var(--dm-shell-pad-x) * -1);
  padding:4px var(--dm-shell-pad-x) 22px;
  background:#fff;
}
.dm-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
}
.dm-logo{
  width:132px;
  height:132px;
  max-width:132px;
  margin:0!important;
  object-fit:contain;
  display:block;
}
.dm-header h1{
  margin:0;
  color:#1769ff!important;
  font-size:clamp(26px,4vw,38px);
  font-weight:800;
  line-height:1.08;
}
.dm-header .dm-reg{color:#1769ff!important}
@media(max-width:480px){
  .dm-shell{--dm-shell-pad-x:14px}
}

/* V1.1.2 — compatibilidad con la plantilla 1.1.0 almacenada en caché */
.dm-header > .dm-logo{
  margin-right:auto!important;
  margin-bottom:7px!important;
  margin-left:auto!important;
}

/* V1.2.0 — selector de tiendas, reseñas y rutas */
.dm-modal-backdrop{
  background:rgba(11,22,40,.58);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.dm-modal-panel{
  width:min(100%,700px);
  max-height:90svh;
  padding:30px;
  border:1px solid rgba(228,233,241,.92);
  border-radius:28px;
  background:#fff;
  box-shadow:0 28px 80px rgba(15,35,70,.25);
  scrollbar-width:thin;
  scrollbar-color:#cfd9e7 transparent;
}
.dm-modal-heading{
  margin:0 54px 24px 0;
}
.dm-modal-kicker{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  margin-bottom:8px;
  padding:0 10px;
  border-radius:999px;
  color:#1769ff;
  background:#eaf2ff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.dm-modal-panel .dm-modal-heading h2{
  margin:0;
  color:#101828;
  font-size:clamp(25px,5vw,32px);
  line-height:1.12;
  letter-spacing:-.7px;
}
.dm-modal-heading p{
  margin:7px 0 0;
  color:#667085;
  font-size:14px;
  line-height:1.5;
}
.dm-close{
  top:22px;
  right:22px;
  width:42px;
  height:42px;
  color:#344054;
  background:#f2f4f7;
  font-size:25px;
  line-height:1;
  transition:transform .18s ease,background .18s ease;
}
.dm-close:hover,.dm-close:focus-visible{
  background:#e4e7ec;
  outline:3px solid rgba(23,105,255,.18);
  transform:rotate(4deg);
}
.dm-location-flow{
  color:#101828;
  animation:dm-flow-in .24s ease both;
}
.dm-picker-intro{
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:14px;
  padding:13px 15px;
  border:1px solid #dce7fb;
  border-radius:16px;
  background:linear-gradient(135deg,#f5f9ff 0,#edf4ff 100%);
}
.dm-section-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#1769ff;
  background:#fff;
  box-shadow:0 5px 14px rgba(23,105,255,.10);
}
.dm-section-icon svg{width:22px;height:22px;fill:currentColor}
.dm-picker-intro strong,.dm-picker-intro small{display:block}
.dm-picker-intro strong{font-size:14px;line-height:1.25}
.dm-picker-intro small{margin-top:3px;color:#667085;font-size:12px;line-height:1.35}
.dm-location-flow-reviews .dm-picker-intro{
  border-color:#f3dfab;
  background:linear-gradient(135deg,#fffaf0 0,#fff5d9 100%);
}
.dm-location-flow-reviews .dm-section-icon{color:#b77900;box-shadow:0 5px 14px rgba(183,121,0,.10)}

.dm-location-flow .dm-zone-menu{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.dm-location-flow .dm-zone-card{
  isolation:isolate;
  position:relative;
  min-height:170px;
  padding:18px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  overflow:hidden;
  border:1px solid #e1e8f2;
  border-radius:20px;
  background:linear-gradient(145deg,#fff 0,#f7faff 100%);
  box-shadow:0 7px 22px rgba(15,35,70,.07);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.dm-location-flow .dm-zone-card::before{
  content:"";
  position:absolute;
  z-index:-1;
  width:150px;
  height:150px;
  top:-72px;
  right:-55px;
  border-radius:50%;
  background:rgba(23,105,255,.08);
}
.dm-location-flow .dm-zone-card::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:24px;
  bottom:28px;
  width:50px;
  height:1px;
  background:rgba(23,105,255,.15);
  box-shadow:14px -16px 0 rgba(23,105,255,.10),-10px -32px 0 rgba(23,105,255,.08);
  transform:rotate(-22deg);
}
.dm-location-flow .dm-zone-card:hover,.dm-location-flow .dm-zone-card:focus-visible{
  border-color:#a9c5f7;
  box-shadow:0 14px 30px rgba(23,105,255,.13);
  outline:none;
  transform:translateY(-3px);
}
.dm-zone-visual{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#1769ff;
  background:#eaf2ff;
}
.dm-zone-visual svg{width:25px;height:25px;fill:currentColor}
.dm-zone-copy{display:block;width:100%;text-align:left}
.dm-location-flow .dm-zone-copy strong{
  display:block;
  color:#101828;
  font-size:20px;
  font-weight:800;
  line-height:1.2;
}
.dm-location-flow .dm-zone-copy small{
  display:block;
  margin-top:4px;
  color:#667085;
  font-size:12px;
  line-height:1.35;
}
.dm-zone-copy > span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
  color:#1769ff;
  font-size:13px;
  font-weight:800;
}
.dm-zone-copy > span b{font-size:19px;line-height:1;transition:transform .18s ease}
.dm-zone-card:hover .dm-zone-copy > span b{transform:translateX(3px)}

.dm-location-flow .dm-zone-detail{display:grid;gap:12px;animation:dm-flow-in .22s ease both}
.dm-location-flow .dm-zone-back{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 3px;
  color:#1769ff;
  border:0;
  border-radius:8px;
  background:transparent;
  font-size:13px;
  font-weight:800;
}
.dm-location-flow .dm-zone-back:hover,.dm-location-flow .dm-zone-back:focus-visible{
  color:#0b4fd4;
  outline:3px solid rgba(23,105,255,.13);
}
.dm-location-flow .dm-zone-heading{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:3px 8px;
  margin-bottom:2px;
  padding:14px 16px;
  border:1px solid #dce7fb;
  border-radius:16px;
  background:#f5f9ff;
}
.dm-zone-heading > span{
  width:100%;
  color:#1769ff;
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.dm-zone-heading > strong{font-size:19px;line-height:1.25}
.dm-zone-heading > small{color:#667085;font-size:12px;font-weight:500}
.dm-location-flow .dm-store{
  padding:17px;
  border:1px solid #e1e7ef;
  border-radius:19px;
  background:#fff;
  box-shadow:0 6px 20px rgba(15,35,70,.055);
}
.dm-store-main{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.dm-store-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#1769ff;
  background:#eaf2ff;
}
.dm-store-icon svg{width:21px;height:21px;fill:currentColor}
.dm-location-flow .dm-store h3{margin:0 0 3px;color:#101828;font-size:16px;line-height:1.25}
.dm-location-flow .dm-store p{color:#667085;font-size:12px}
.dm-store-tag{
  align-self:start;
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  color:#1769ff;
  background:#eef4ff;
  font-size:9px;
  font-weight:800;
  letter-spacing:.03em;
}
.dm-location-flow .dm-store-hours{
  display:flex;
  align-items:center;
  gap:9px;
  margin:13px 0 0!important;
  padding:10px 12px;
  color:#344054!important;
  border:1px solid #e8edf4;
  border-radius:12px;
  background:#f8fafc;
  font-size:12px!important;
  font-weight:700!important;
}
.dm-store-hours svg{width:19px;height:19px;flex:0 0 19px;fill:#1769ff}
.dm-store-hours span,.dm-store-hours small{display:block}
.dm-store-hours small{margin-bottom:1px;color:#98a2b3;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.dm-review-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:13px;
  padding:9px 11px;
  border:1px solid #f3dfab;
  border-radius:12px;
  background:#fffaf0;
}
.dm-review-note span{color:#f5a800;font-size:14px;letter-spacing:1px;white-space:nowrap}
.dm-review-note small{color:#7a5b14;font-size:10px;font-weight:700;text-align:right}
.dm-location-flow .dm-actions{margin-top:11px}
.dm-location-flow .dm-actions a{
  width:100%;
  min-height:48px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:0 14px;
  border-radius:13px;
  background:linear-gradient(135deg,#1769ff 0,#0b55db 100%);
  box-shadow:0 8px 18px rgba(23,105,255,.18);
  font-size:12px;
  text-align:left;
  transition:transform .18s ease,box-shadow .18s ease;
}
.dm-location-flow .dm-actions a:hover,.dm-location-flow .dm-actions a:focus-visible{
  background:linear-gradient(135deg,#0b5bea 0,#0846bd 100%);
  box-shadow:0 11px 22px rgba(23,105,255,.26);
  outline:3px solid rgba(23,105,255,.18);
  transform:translateY(-1px);
}
.dm-actions a svg{width:20px;height:20px;fill:currentColor}
.dm-actions a b{font-size:17px;font-weight:700}
.dm-location-flow-reviews .dm-store-icon{color:#b77900;background:#fff4cf}

@keyframes dm-flow-in{
  from{opacity:0;transform:translateY(5px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:699px){
  .dm-modal{align-items:flex-end;padding:0}
  .dm-modal-panel{
    width:100%;
    max-height:92svh;
    padding:24px 16px calc(20px + env(safe-area-inset-bottom));
    border-right:0;
    border-bottom:0;
    border-left:0;
    border-radius:26px 26px 0 0;
  }
  .dm-modal-heading{margin-right:48px;margin-bottom:20px}
  .dm-close{top:17px;right:15px}
}
@media(max-width:519px){
  .dm-location-flow .dm-zone-menu{grid-template-columns:1fr}
  .dm-location-flow .dm-zone-card{
    min-height:auto;
    padding:15px;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    gap:13px;
  }
  .dm-zone-visual{width:46px;height:46px;flex:0 0 46px}
  .dm-zone-copy > span{margin-top:8px}
  .dm-location-flow .dm-zone-copy strong{font-size:17px}
  .dm-location-flow .dm-zone-card::after{display:none}
}
@media(max-width:380px){
  .dm-picker-intro{padding:11px}
  .dm-store-main{grid-template-columns:auto minmax(0,1fr)}
  .dm-store-tag{display:none}
  .dm-review-note{align-items:flex-start;flex-direction:column}
  .dm-review-note small{text-align:left}
}
@media(prefers-reduced-motion:reduce){
  .dm-location-flow,.dm-location-flow .dm-zone-detail{animation:none}
  .dm-location-flow .dm-zone-card,.dm-location-flow .dm-actions a,.dm-close{transition:none}
}

/* Doctor Mobile Portal V1.2.2 — Acceso personal */
.dm-card-staff .dm-icon{
  background:#eef1ff;
  color:#4355c8;
}
.dm-card-staff .dm-title{color:#4052c3}
.dm-modal-panel[data-modal-type="staff"]{width:min(100%,500px)}
.dm-staff-login{display:grid;gap:16px}
.dm-staff-lock{
  width:62px;height:62px;display:grid;place-items:center;margin:0 auto 2px;
  border-radius:19px;background:#eef1ff;color:#4052c3;
}
.dm-staff-lock svg{width:37px;height:37px;fill:currentColor}
.dm-staff-copy{text-align:center}
.dm-staff-copy strong{display:block;color:#17233b;font-size:17px;font-weight:800;line-height:1.25}
.dm-staff-copy small{display:block;margin-top:6px;color:#748198;font-size:12px;line-height:1.5}
.dm-staff-form{display:grid;gap:13px;margin-top:2px}
.dm-field{display:grid;gap:6px;color:#344054;font-size:12px;font-weight:800}
.dm-field input{
  width:100%;height:49px;padding:0 14px;border:1px solid #d7dfeb;border-radius:13px;
  background:#fff;color:#17233b;font-size:14px;font-weight:500;outline:none;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.dm-field input:focus{border-color:#7da2eb;box-shadow:0 0 0 4px rgba(64,82,195,.10)}
.dm-password-wrap{position:relative;display:block}
.dm-password-wrap input{padding-right:50px}
.dm-password-toggle{
  position:absolute;right:5px;top:5px;width:39px;height:39px;display:grid;place-items:center;
  border:0;border-radius:10px;background:transparent;color:#7a879b;cursor:pointer;
}
.dm-password-toggle:hover,.dm-password-toggle:focus-visible{background:#f2f5fa;color:#4052c3;outline:none}
.dm-password-toggle svg{width:21px;height:21px;fill:currentColor}
.dm-staff-error{
  margin:0;padding:10px 12px;border:1px solid #f2c2c2;border-radius:11px;
  background:#fff4f4;color:#b42318;font-size:12px;font-weight:700;line-height:1.4;
}
.dm-staff-submit{
  min-height:50px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 18px;
  border:0;border-radius:13px;background:linear-gradient(135deg,#4052c3 0,#26399e 100%);
  color:#fff;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 9px 20px rgba(64,82,195,.20);
}
.dm-staff-submit:hover,.dm-staff-submit:focus-visible{filter:brightness(.97);outline:3px solid rgba(64,82,195,.16)}
.dm-staff-submit:disabled{opacity:.65;cursor:wait}
.dm-staff-submit svg{width:20px;height:20px;fill:currentColor}
.dm-staff-note{
  display:flex;align-items:flex-start;justify-content:center;gap:7px;margin:0!important;
  padding-top:2px;color:#7a879b!important;font-size:10px!important;line-height:1.45!important;text-align:center;
}
.dm-staff-note svg{width:16px;height:16px;flex:0 0 16px;fill:#4052c3}
@media(max-width:480px){
  .dm-modal-panel[data-modal-type="staff"]{padding-left:18px;padding-right:18px}
  .dm-staff-lock{width:58px;height:58px;border-radius:17px}
  .dm-staff-copy strong{font-size:16px}
}

/* V1.2.3 — asegurar que Acceso personal siempre forme parte de la rejilla visible */
.dm-grid > .dm-card-staff{display:flex!important;visibility:visible!important;opacity:1!important;}
.dm-card-staff::before{background:#4052c3!important;}
/* V1.2.8 · acceso MarketPlace integrado en la cuadrícula principal */
.dm-card-market .dm-icon{background:linear-gradient(180deg,#f3f7ff 0,#eaf2ff 100%)!important;color:#1769ff}
.dm-card-market .dm-icon svg{width:58px!important;height:58px!important}
.dm-card-market .dm-title{color:#1769ff}
