/* v1867: Micrositio del proveedor — editor (vendor.html) y página pública (perfil.html). Colores Azul Océano. */

/* ---------- Editor ---------- */
.ms-status{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin:12px 0 16px}
.ms-chip{display:inline-block;border-radius:999px;padding:5px 12px;font-weight:750;font-size:14px}
.ms-st-draft{background:#EEF2F6;color:#3B4A5C}
.ms-st-pending{background:#FFF4D6;color:#7A5300}
.ms-st-ok{background:#EAF4FD;color:#092A59;box-shadow:inset 0 0 0 1.5px #1769AC}
.ms-st-bad{background:#FDECEA;color:#B42318}
.ms-live{font-weight:700;color:#1769AC;word-break:break-all}
.ms-note{flex-basis:100%;margin:0;color:#153453;background:#F3F8FD;border-radius:10px;padding:10px 12px}
.ms-form{display:grid;gap:12px}
.ms-sec{border:1px solid #D5E4F1;border-radius:14px;background:#fff;padding:0 16px}
.ms-sec>summary{cursor:pointer;font-weight:800;color:#092A59;padding:15px 0;font-size:17px;list-style-position:outside}
.ms-sec[open]{padding-bottom:16px}
.ms-sec[open]>summary{border-bottom:1px solid #EAF1F8;margin-bottom:14px}
.ms-count{display:inline-block;min-width:22px;text-align:center;border-radius:999px;background:#EAF4FD;color:#1769AC;font-size:13px;padding:1px 7px;margin-left:6px}
.ms-form label{display:flex;flex-direction:column;gap:6px;font-weight:650;color:#153453;margin:0 0 12px}
.ms-form small{font-weight:400;color:#526C85}
.ms-form input:not([type=checkbox]):not([type=file]),.ms-form select,.ms-form textarea{font:inherit;font-weight:400;min-height:44px;padding:9px 11px;border:1.5px solid #C7D9EA;border-radius:10px;background:#fff;color:#153453;width:100%;box-sizing:border-box}
.ms-form input:focus-visible,.ms-form select:focus-visible,.ms-form textarea:focus-visible{outline:3px solid #1769AC;outline-offset:1px}
.ms-slug{display:flex;align-items:center;border:1.5px solid #C7D9EA;border-radius:10px;overflow:hidden;background:#F3F8FD}
.ms-slug>span{padding:0 4px 0 11px;color:#526C85;font-weight:500;white-space:nowrap}
.ms-form .ms-slug input{border:0!important;border-radius:0!important;background:#fff!important;min-width:0}
.ms-cover{margin-top:4px}
.ms-cover img,.ms-cover-empty{width:100%;aspect-ratio:3/1;object-fit:cover;border-radius:12px;display:block;border:1px solid #D5E4F1}
.ms-cover-empty{display:grid;place-items:center;background:#F3F8FD;color:#526C85;font-weight:600}
.ms-cover-actions{display:flex;gap:12px;align-items:center;margin:10px 0 4px}
.ms-file{cursor:pointer;display:inline-flex!important;flex-direction:row!important;align-items:center;margin:0!important}
.ms-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 140px 40px;gap:8px;margin-bottom:8px;align-items:center}
@media (max-width:620px){.ms-row{grid-template-columns:76px minmax(0,1fr) 40px}.ms-row select{padding-left:8px!important;padding-right:4px!important}.ms-row>input:first-child{grid-column:1/-1}}
.ms-sec>small{display:block;margin-top:8px}
.ms-sec>button,.ms-sec>label.ms-file{margin-top:4px}
.ms-x{width:40px;height:40px;border-radius:10px;border:1px solid #D5E4F1;background:#fff;color:#526C85;font-size:22px;line-height:1;cursor:pointer}
.ms-x:hover{color:#B42318;border-color:#B42318}
.ms-faq{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #EAF1F8}
.ms-faq textarea{grid-column:1}
.ms-faq .ms-x{grid-row:1;grid-column:2}
.ms-works{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-bottom:12px}
.ms-work{margin:0;border:1px solid #D5E4F1;border-radius:12px;padding:8px;display:grid;gap:8px;background:#fff}
.ms-work-imgs{display:grid;grid-auto-flow:column;gap:6px}
.ms-work-imgs div{position:relative}
.ms-work-imgs img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block}
.ms-work-imgs span{position:absolute;left:6px;top:6px;background:rgba(9,42,89,.85);color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:2px 7px}
.ms-work-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ms-hours{display:grid;gap:6px;margin-bottom:12px}
.ms-day{display:grid;grid-template-columns:96px 100px minmax(0,1fr) 16px minmax(0,1fr);gap:8px;align-items:center}
.ms-day>span:first-child{font-weight:700;color:#153453}
.ms-form .ms-closed{flex-direction:row;align-items:center;gap:6px;margin:0;font-weight:500}
.ms-to{color:#526C85;text-align:center}
@media (max-width:560px){.ms-day{grid-template-columns:1fr 1fr;row-gap:4px}.ms-day .ms-to{display:none}.ms-day>span:first-child{grid-column:1}.ms-day .ms-closed{grid-column:2;justify-self:end}}
.ms-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:4px}
.ms-msg{flex-basis:100%;margin:0;font-weight:650;color:#153453}
.ms-msg.is-error{color:#B42318}

/* ---------- Página pública ---------- */
.msp-preview{background:#FFF4D6;color:#5C3F00;border-radius:12px;padding:12px 16px;margin:0 0 14px}
.msp-cover{margin:6px 0 18px}
.msp-cover img{width:100%;aspect-ratio:3/1;object-fit:cover;border-radius:16px;display:block;background:#EAF4FD}
@media (max-width:600px){.msp-cover img{aspect-ratio:16/9;border-radius:12px}}
.msp-tagline{font-size:clamp(17px,2.2vw,21px);color:#153453;margin:4px 0 8px;font-weight:500}
.msp-share{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0 4px}
.msp-wa{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:10px;background:#1C8C4E;color:#fff!important;font-weight:750;text-decoration:none}
.msp-wa:hover{background:#167240}
.msp-share .secondary{min-height:44px}
.msp-link{color:#526C85;font-weight:600;word-break:break-all}
.msp-promo{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;background:#EAF4FD;border:1.5px solid #1769AC;border-radius:14px;padding:12px 16px;margin:14px 0}
.msp-promo strong{color:#092A59;text-transform:uppercase;letter-spacing:.06em;font-size:13px}
.msp-promo span{color:#092A59;font-weight:700;font-size:17px}
.msp-promo small{color:#526C85}
.msp-sections{display:grid;gap:8px;margin:18px 0 22px}
.msp-sec{border-top:1px solid #D5E4F1;padding:18px 0 6px}
.msp-sec h2{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px}
.msp-prices{list-style:none;margin:0;padding:0;display:grid;gap:0;border:1px solid #D5E4F1;border-radius:14px;overflow:hidden;background:#fff}
.msp-prices li{display:flex;justify-content:space-between;gap:14px;align-items:baseline;padding:13px 16px;border-top:1px solid #EAF1F8}
.msp-prices li:first-child{border-top:0}
.msp-svc{color:#153453;font-weight:600}
.msp-price{font-weight:800;color:#092A59;white-space:nowrap;text-align:right}
.msp-price small{font-weight:500;color:#526C85}
.msp-ask{color:#526C85;font-weight:650}
@media (max-width:480px){.msp-prices li{flex-direction:column;gap:2px}.msp-price{text-align:left;white-space:normal}}
.msp-fine{color:#526C85;font-size:14px;margin:8px 0 0}
.msp-works{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.msp-work{margin:0;background:#fff;border:1px solid #D5E4F1;border-radius:14px;overflow:hidden}
.msp-work>img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.msp-ba{grid-column:span 2}
@media (max-width:560px){.msp-ba{grid-column:auto}}
.msp-pair{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.msp-pair div{position:relative}
.msp-pair img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.msp-pair span{position:absolute;left:8px;top:8px;background:rgba(9,42,89,.88);color:#fff;font-size:12px;font-weight:750;border-radius:6px;padding:3px 8px}
.msp-work figcaption{padding:10px 12px;color:#153453;font-weight:600;line-height:1.4}
.msp-open,.msp-closed{font-size:14px;border-radius:999px;padding:3px 10px;font-weight:750}
.msp-open{background:#EAF4FD;color:#1769AC;box-shadow:inset 0 0 0 1.5px #1769AC}
.msp-closed{background:#EEF2F6;color:#3B4A5C}
.msp-hours{margin:0;display:grid;gap:0;max-width:460px;border:1px solid #D5E4F1;border-radius:14px;overflow:hidden;background:#fff}
.msp-hours>div{display:flex;justify-content:space-between;padding:9px 16px;border-top:1px solid #EAF1F8}
.msp-hours>div:first-child{border-top:0}
.msp-hours dt{color:#153453;font-weight:600}
.msp-hours dd{margin:0;color:#153453}
.msp-today{background:#F3F8FD}
.msp-today dt,.msp-today dd{font-weight:800!important;color:#092A59!important}
.msp-faq{display:grid;gap:8px;max-width:820px}
.msp-faq details{border:1px solid #D5E4F1;border-radius:12px;background:#fff;padding:0 16px}
.msp-faq summary{cursor:pointer;font-weight:700;color:#092A59;padding:13px 0}
.msp-faq p{margin:0 0 14px;color:#153453;line-height:1.6;white-space:pre-line}
.msp-video{position:relative;width:100%;max-width:820px;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#092A59}
.msp-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.msp-social{display:flex;flex-wrap:wrap;gap:10px}
.ms-gap{margin-top:12px!important}

/* ---------- v1870: el perfil completo es un micrositio ---------- */
html.msp-pending #profilePageContent>*:not(p){visibility:hidden}
.msp-hero{position:relative;margin:4px 0 18px;border:1px solid #D5E4F1;border-radius:20px;overflow:hidden;background:#fff}
.msp-hero .msp-cover{margin:0;height:clamp(160px,28vw,280px);background:#EAF4FD}
.msp-hero .msp-cover img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0;display:block}
.msp-cover-empty{background:linear-gradient(135deg,#092A59 0%,#1769AC 100%)!important;position:relative}
.msp-cover-empty::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 20%,rgba(255,255,255,.18) 0 70px,transparent 71px),radial-gradient(circle at 70% 120%,rgba(255,255,255,.10) 0 140px,transparent 141px)}
.msp-id{display:flex;gap:18px;align-items:flex-end;padding:0 22px;margin-top:-52px;position:relative}
.msp-avatar{flex:none;width:112px;height:112px;border-radius:50%;border:5px solid #fff;background:#EAF4FD;overflow:hidden;box-shadow:0 6px 18px rgba(9,42,89,.18);display:grid;place-items:center}
.msp-avatar img{width:100%;height:100%;object-fit:cover}
.msp-avatar span{font-size:38px;font-weight:800;color:#092A59}
.msp-idtext{min-width:0;padding-bottom:4px}
.msp-kind{display:inline-block;font-size:13px;font-weight:750;letter-spacing:.05em;text-transform:uppercase;color:#1769AC;background:#EAF4FD;border-radius:999px;padding:3px 10px;margin-top:56px}
.msp-idtext h1{margin:6px 0 2px;font-size:clamp(26px,4vw,40px);line-height:1.1;color:#092A59;letter-spacing:-.02em;overflow-wrap:anywhere}
.msp-hero .msp-tagline{margin:0;font-size:clamp(16px,2vw,19px);color:#153453;font-weight:500}
.msp-facts{list-style:none;margin:16px 22px 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.msp-facts li{display:flex;align-items:baseline;gap:6px;background:#F3F8FD;border:1px solid #D5E4F1;border-radius:12px;padding:8px 12px}
.msp-facts strong{color:#092A59;font-size:16px}
.msp-facts span{color:#526C85;font-size:14px}
.msp-fact-open{border-color:#1769AC!important;background:#EAF4FD!important}
.msp-fact-open strong{color:#1769AC}
.msp-cta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:18px 22px 6px}
.msp-cta .primary{min-height:50px;padding:0 24px;font-size:17px}
.msp-cta .secondary,.msp-cta .msp-wa{min-height:50px}
.msp-hero .msp-link{padding:0 22px 18px;margin:6px 0 0;font-size:14px}
@media (max-width:600px){
  .msp-id{flex-direction:column;align-items:flex-start;gap:6px;padding:0 16px;margin-top:-48px}
  .msp-avatar{width:96px;height:96px}
  .msp-kind{margin-top:4px}
  .msp-facts{margin:12px 16px 0}
  .msp-cta{padding:14px 16px 4px}
  .msp-cta .primary{flex:1 1 100%}
  .msp-cta .msp-wa,.msp-cta .secondary{flex:1 1 0;justify-content:center;text-align:center}
  .msp-hero .msp-link{padding:0 16px 14px}
}
.msp-nav{position:sticky;top:calc(env(safe-area-inset-top,0px) + 74px);z-index:5;display:flex;gap:6px;overflow-x:auto;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border:1px solid #D5E4F1;border-radius:14px;padding:6px;margin:0 0 6px;scrollbar-width:none}
.msp-nav::-webkit-scrollbar{display:none}
.msp-nav:empty{display:none}
.msp-nav a{flex:none;padding:8px 14px;border-radius:10px;font-weight:700;color:#153453;text-decoration:none;white-space:nowrap}
.msp-nav a:hover,.msp-nav a:focus-visible{background:#EAF4FD;color:#092A59}
.msp-sections .msp-sec{scroll-margin-top:140px}
.msp-sections>.msp-sec:first-child{border-top:0}
.msp-about-facts{display:grid;gap:4px;margin-top:10px;color:#153453}
.msp-about-facts p{margin:0}
.msp-chips{display:flex;flex-wrap:wrap;gap:8px}
.msp-chip{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:999px;background:#F3F8FD;border:1px solid #D5E4F1;color:#153453;font-weight:650}
.msp-chip-main{background:#092A59;border-color:#092A59;color:#fff}
.msp-photos{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.msp-contact{background:linear-gradient(135deg,#092A59,#1769AC)!important;color:#fff!important;border:0!important;border-radius:18px!important;padding:22px!important;margin:22px 0!important;scroll-margin-top:140px}
.msp-contact h2{color:#fff!important;margin-top:0}
.msp-contact p{color:#EAF4FD!important}
.msp-contact #startContact{background:#fff!important;color:#092A59!important;border-color:#fff!important;min-height:50px;font-size:17px}
.msp-contact .form-error{color:#FFD9D4}
.reviews-section[data-msp-sec]{scroll-margin-top:140px}

/* ---------- v1871: emergencias, compartir en redes, secciones nuevas ---------- */
.msp-emergency{margin:14px 22px 0;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;background:#FDECEA;border:1.5px solid #E5534B;border-radius:14px;padding:12px 16px}
.msp-emergency strong{color:#9F1D14;font-size:17px}
.msp-emergency span{color:#5C1A14}
@media (max-width:600px){.msp-emergency{margin:12px 16px 0}}
.msp-share-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 22px 4px}
.msp-share-label{font-weight:800;color:#092A59;margin-right:2px}
.msp-sh{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:10px;font:inherit;font-weight:750;font-size:15px;text-decoration:none;border:0;cursor:pointer;color:#fff!important}
.msp-sh:focus-visible{outline:3px solid #1769AC;outline-offset:2px}
.msp-sh-wa{background:#1C8C4E}.msp-sh-wa:hover{background:#167240}
.msp-sh-fb{background:#1877F2}.msp-sh-fb:hover{background:#1263CC}
.msp-sh-ig{background:#C13584}.msp-sh-ig:hover{background:#A42C70}
.msp-sh-x{background:#111}.msp-sh-x:hover{background:#333}
.msp-sh-in{background:#0A66C2}.msp-sh-in:hover{background:#08529C}
.msp-sh-mail,.msp-sh-copy,.msp-sh-more{background:#fff;color:#092A59!important;border:1.5px solid #C7D9EA}
.msp-sh-mail:hover,.msp-sh-copy:hover,.msp-sh-more:hover{border-color:#1769AC}
.msp-share-msg{margin:4px 22px 0;min-height:1.2em;color:#1769AC;font-weight:650;font-size:14px}
@media (max-width:600px){.msp-share-bar{padding:12px 16px 4px}.msp-share-label{flex-basis:100%}.msp-sh{flex:1 1 calc(33% - 8px);padding:0 8px}.msp-share-msg{margin:4px 16px 0}}
.msp-why{list-style:none;margin:0;padding:0;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.msp-why li{background:#F3F8FD;border:1px solid #D5E4F1;border-radius:12px;padding:12px 14px 12px 40px;position:relative;color:#153453;font-weight:600}
.msp-why li::before{content:"✓";position:absolute;left:14px;top:11px;color:#1769AC;font-weight:900}
.msp-custom{white-space:pre-line;color:#153453;line-height:1.6;margin:0}
#msp-about .het-trust-panel{margin-top:14px}
.msp-idtext .het-badges{margin-top:8px}
/* editor v1871 */
.ms-share{display:grid;gap:8px;background:#F3F8FD;border:1px solid #D5E4F1;border-radius:14px;padding:14px 16px;margin:0 0 14px}
.ms-share>strong{color:#092A59;font-size:17px}
.ms-share-link{color:#1769AC;font-weight:700;word-break:break-all}
.ms-share-btns{display:flex;flex-wrap:wrap;gap:8px}
.ms-share small{color:#526C85}
.ms-emergency{display:flex;gap:12px;align-items:flex-start;background:#FDECEA;border:1.5px solid #E5534B;border-radius:14px;padding:14px 16px;margin:0 0 14px;cursor:pointer}
.ms-emergency input{width:24px;height:24px;margin-top:2px;flex:none;accent-color:#B42318}
.ms-emergency span{display:grid;gap:2px}
.ms-emergency strong{color:#9F1D14;font-size:17px}
.ms-emergency small{color:#5C1A14}
.ms-why{border:0;padding:0;margin:0 0 12px;display:grid;gap:8px}
.ms-why legend{font-weight:650;color:#153453;margin-bottom:6px;padding:0}
.ms-custom{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #EAF1F8}
.ms-custom textarea{grid-column:1}
.ms-custom .ms-x{grid-row:1;grid-column:2}

/* ---------- v1873: perfil más ordenado y compacto ---------- */
.msp-hero{border-radius:16px}
.msp-hero .msp-cover{height:clamp(150px,24vw,240px)}
.msp-id{gap:16px;margin-top:-44px;padding:0 20px}
.msp-avatar{width:96px;height:96px;border-width:4px}
.msp-kind{margin-top:50px;font-size:11.5px;padding:2px 9px}
.msp-idtext h1{font-size:clamp(24px,3.2vw,34px);margin:4px 0 2px}
.msp-hero .msp-tagline{font-size:16px;color:#3B5168}
.msp-emergency{margin:12px 20px 0;padding:10px 14px;border-radius:12px}
.msp-emergency strong{font-size:15px}
.msp-emergency span{font-size:14px}
.msp-facts{margin:12px 20px 0;gap:8px}
.msp-facts li{padding:6px 10px;border-radius:10px}
.msp-facts strong{font-size:14px}
.msp-facts span{font-size:13px}
.msp-cta{padding:14px 20px 0;gap:8px}
.msp-cta .primary{min-height:44px;padding:0 20px;font-size:15px;border-radius:10px}
.msp-share-bar{padding:10px 20px 2px;gap:6px}
.msp-share-label{font-size:13px;font-weight:700;color:#526C85;margin-right:4px}
.msp-sh{min-height:34px;padding:0 12px;font-size:13px;font-weight:700;border-radius:999px}
.msp-share-msg{margin:2px 20px 0;font-size:13px}
.msp-hero .msp-link{padding:0 20px 14px;margin:4px 0 0;font-size:13px}
.msp-promo{padding:10px 14px;margin:12px 0;border-radius:12px}
.msp-promo span{font-size:15px}
.msp-nav{padding:4px;border-radius:12px;gap:2px}
.msp-nav a{padding:7px 12px;font-size:14px;font-weight:650}
.msp-sec{padding:18px 0 4px}
.msp-sec h2{font-size:20px;margin:0 0 10px;color:#092A59}
.msp-sections{gap:4px;margin:14px 0 18px}
.msp-prices li{padding:10px 14px}
.msp-svc{font-size:15px}
.msp-price{font-size:15px}
.msp-chip{min-height:32px;padding:0 12px;font-size:14px;font-weight:600}
.msp-works{gap:10px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.msp-work figcaption{padding:8px 10px;font-size:14px}
.msp-why li{padding:10px 12px 10px 34px;font-size:14px}
.msp-why li::before{left:12px;top:9px}
.msp-hours>div{padding:7px 14px;font-size:14px}
.msp-faq summary{padding:11px 0;font-size:15px}
.msp-contact{padding:18px!important;border-radius:14px!important;margin:18px 0!important}
.msp-contact h2{font-size:19px!important}
.msp-contact #startContact{min-height:44px;font-size:15px}
#msp-about .profile-bio{font-size:15px;line-height:1.6;color:#153453;margin:0 0 10px}
.msp-about-facts{font-size:14px;gap:2px}
.msp-about-facts p{margin:2px 0}
@media (max-width:600px){
  .msp-id{margin-top:-40px;padding:0 14px}
  .msp-avatar{width:84px;height:84px}
  .msp-emergency,.msp-facts{margin-left:14px;margin-right:14px}
  .msp-cta,.msp-share-bar{padding-left:14px;padding-right:14px}
  .msp-share-label{flex-basis:auto}
  .msp-sh{flex:0 0 auto;padding:0 11px}
  .msp-hero .msp-link{padding:0 14px 12px}
}
/* editor: botones del editor del mismo tamaño que el resto del panel */
.ms-share .msp-sh{min-height:34px;font-size:13px}
.ms-x{width:36px;height:36px;font-size:20px}
.ms-row{grid-template-columns:minmax(0,1fr) 110px 140px 36px}
@media (max-width:620px){.ms-row{grid-template-columns:76px minmax(0,1fr) 36px}}
.ms-sec>summary{font-size:16px;padding:13px 0}
.ms-emergency strong{font-size:15px}
.ms-share>strong{font-size:15px}
@media (max-width:600px){
  .msp-kind{margin-top:2px}
  .msp-id{gap:4px}
  .msp-facts{gap:6px}
  .msp-facts li{padding:4px 8px;gap:4px}
  .msp-facts strong{font-size:13px}
  .msp-facts span{font-size:12px}
  .msp-emergency strong{font-size:14px}
  .msp-emergency span{font-size:13px}
  .msp-idtext h1{font-size:24px}
  .msp-hero .msp-tagline{font-size:15px}
}
/* En el teléfono ya hay una barra fija «Solicitar contacto» abajo: no se repite el botón arriba.
   Los botones de compartir van en una sola fila que se desliza. */
@media (max-width:760px){
  body:has(.het-sticky-cta) .msp-cta{display:none}
  .msp-share-bar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-top:12px;-webkit-overflow-scrolling:touch}
  .msp-share-bar::-webkit-scrollbar{display:none}
  .msp-share-bar>*{flex:0 0 auto}
}

/* v1877 responsive contact / microsite presentation */
.het1877-layout{display:grid;grid-template-columns:minmax(290px,2fr) minmax(0,3fr);gap:20px;align-items:start;margin-top:16px}
.het1877-request{position:sticky;top:14px;max-height:calc(100vh - 28px);overflow:auto;min-width:0}
.het1877-microsite{min-width:0;max-height:calc(100vh - 28px);overflow:auto;overscroll-behavior:contain}
.het1877-request .msp-contact{margin:0!important}
.het1877-switch{display:none;border:1px solid #1769AC;border-radius:10px;background:#092A59;color:#fff;font:inherit;font-weight:700;padding:12px 15px;cursor:pointer;min-height:48px}
.het1877-switch:focus-visible{outline:3px solid #1769AC;outline-offset:3px}
@media(max-width:767px){
 .het1877-layout{display:block;margin-top:10px}
 .het1877-request,.het1877-microsite{position:static;max-height:none;overflow:visible}
 .het1877-microsite{display:none}
 .het1877-show-ms .het1877-request{display:none}
 .het1877-show-ms .het1877-microsite{display:block}
 .het1877-switch{display:block;width:100%;margin:12px 0}
 .het1877-foot{position:sticky;bottom:8px;z-index:10;box-shadow:0 3px 12px #092A5933}
}
/* v1878: full-width microsite first, original contact gate on demand */
.het1878-layout{width:100%;min-width:0;margin-top:14px}
.het1878-microsite,.het1878-request{min-width:0;width:100%}
.het1878-layout [hidden]{display:none!important}
.het1878-cta{display:block;width:100%;min-height:52px;margin:0 0 18px;font-size:1.05rem}
.het1878-back{display:block;background:#fff;color:#092A59;border:1px solid #1769AC;border-radius:10px;padding:12px 16px;font:inherit;font-weight:700;margin-bottom:20px;cursor:pointer;min-height:46px}
.het1878-back:focus-visible,.het1878-cta:focus-visible{outline:3px solid #1769AC;outline-offset:3px}
.het1878-request #contactGate{display:block;max-width:760px;margin:0 auto}
.het1878-microsite .msp-hero,.het1878-microsite .msp-sections{width:100%;max-width:none}
.het1878-microsite .msp-cover{width:100%}
@media(max-width:767px){.het1878-cta{min-height:52px}.het1878-back{width:100%}}
/* Prevent the older two-column layout from affecting this release. */
.profile-page:has(.het1878-layout){grid-template-columns:minmax(0,1fr) minmax(0,290px)}
@media(max-width:900px){.profile-page:has(.het1878-layout){display:block}}
.profile-page:has(.het1878-layout) .profile-page-card{max-width:none;width:100%;box-sizing:border-box}
.profile-page:has(.het1878-layout){max-width:1440px;margin:0 auto}

/* v1881: three provider-selectable templates. No change to contact gate. */
.ms-template-picker{margin:18px 0;padding:18px;border:1px solid #cbdcf0;border-radius:16px;background:#f7fbff}
.ms-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ms-template-card{display:flex;flex-direction:column;gap:8px;padding:12px;border:2px solid #cbdcf0;border-radius:12px;cursor:pointer;background:#fff;color:#092A59}
.ms-template-card.selected,.ms-template-card:has(input:checked){border-color:#1769AC;box-shadow:0 0 0 2px #1769ac22}
.ms-template-card input{align-self:flex-start;accent-color:#1769AC}
.ms-template-card small{line-height:1.35}
.ms-template-art{display:flex;gap:5px;min-height:72px;background:#edf5ff;padding:9px;border-radius:8px;align-items:flex-end}
.ms-template-art i{display:block;background:#1769AC;border-radius:3px;flex:1;height:34px}
.ms-template-classic i:first-child{height:55px;background:#092A59}.ms-template-classic i:nth-child(2){height:20px}.ms-template-classic i:nth-child(3){height:20px}
.ms-template-gallery i{height:48px}.ms-template-gallery i:nth-child(2){height:60px}.ms-template-gallery i:nth-child(3){height:42px}
.ms-template-services i{height:40px}.ms-template-services i:nth-child(2){height:40px}.ms-template-services i:nth-child(3){height:40px}
/* Presentation changes are limited to the microsite; contact request remains untouched. */
.msp-template-gallery .msp-works{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.msp-template-gallery .msp-work img{width:100%;object-fit:cover}
.msp-template-gallery .msp-cover{min-height:280px}
.msp-template-services .msp-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;padding:0}
.msp-template-services .msp-prices li{border:1px solid #cbdcf0;border-radius:12px;padding:16px;background:#f7fbff}
.msp-template-classic .msp-sec{border-color:#d8e4f0}
@media(max-width:650px){.ms-template-grid{grid-template-columns:1fr}.msp-template-gallery .msp-works,.msp-template-services .msp-prices{grid-template-columns:1fr}}
/* v1883: en el teléfono ya está la barra fija «Solicitar contacto» abajo; no se repite el botón de arriba */
@media (max-width:760px){body:has(.het-sticky-cta) .het1878-cta{display:none}}
