/* Misoul · Análisis de Piel — scoped styles */
#misoul-sa{
  --p1:#6550BB; --p2:#B489B4; --p3:#6FC4E3;
  --grad:linear-gradient(135deg,#6550BB 0%,#B489B4 50%,#6FC4E3 100%);
  --ink:#1d1b26; --muted:#70707e; --line:#ececf2; --bg:#ffffff; --soft:#f7f6fb;
  --radius:22px; --shadow:0 22px 55px rgba(40,26,80,.09);
  font-family:Montserrat,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); max-width:860px; margin:0 auto; padding:34px 20px 70px;
  -webkit-font-smoothing:antialiased; box-sizing:border-box;
}
#misoul-sa *{box-sizing:border-box;}
#misoul-sa h1,#misoul-sa h2,#misoul-sa h3,#misoul-sa h4,#misoul-sa p{margin:0;}

.msa-card{
  background:var(--bg); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:40px 40px; opacity:0; transform:translateY(14px);
  transition:opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
}
.msa-card.msa-in{opacity:1; transform:none;}
.msa-card.msa-out{opacity:0; transform:translateY(-10px); transition:opacity .16s ease, transform .16s ease;}

.msa-h1{font-size:38px; line-height:1.12; font-weight:700; letter-spacing:-.5px; margin:18px 0 14px;}
.msa-h2{font-size:26px; line-height:1.22; font-weight:700; letter-spacing:-.3px;}
.msa-sub{font-size:16px; line-height:1.62; color:var(--muted); max-width:60ch;}
.msa-help{font-size:13.5px; color:var(--muted); margin-top:10px; line-height:1.5;}
.msa-block h3{font-size:19px; font-weight:700; margin-bottom:14px; letter-spacing:-.2px;}
.msa-block h4{font-size:14px; font-weight:700; margin-bottom:6px;}
.msa-block{padding:26px 0; border-top:1px solid var(--line);}
.msa-block:first-child{border-top:0; padding-top:6px;}

.msa-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:600; letter-spacing:.4px;
  padding:15px 30px; border-radius:13px; border:1px solid transparent; text-decoration:none;
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease; user-select:none;
}
.msa-btn-primary{background-image:var(--grad); color:#fff; box-shadow:0 10px 24px rgba(101,80,187,.28);}
.msa-btn-primary:hover{transform:translateY(-2px); filter:brightness(1.06);}
.msa-btn-primary[disabled]{opacity:.4; pointer-events:none; box-shadow:none;}
.msa-btn-ghost{background:#fff; color:var(--ink); border-color:var(--line);}
.msa-btn-ghost:hover{border-color:var(--p1); color:var(--p1);}
.msa-btn-ghost[disabled]{opacity:.4; pointer-events:none;}

.msa-hero{text-align:center;}
.msa-hero-badges{display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:6px;}
.msa-pill{font-size:12.5px; font-weight:600; color:var(--p1); background:var(--soft); border:1px solid var(--line); padding:8px 14px; border-radius:100px;}
.msa-hero .msa-sub{margin:0 auto 26px;}
.msa-hero .msa-btn{padding:17px 40px; font-size:15px;}
.msa-returning{margin-top:22px; font-size:14px; color:var(--muted);}
.msa-returning .msa-dot{display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; vertical-align:middle;}
.msa-returning a{color:var(--p1); font-weight:600;}
.msa-returning strong{color:var(--ink);}
.msa-returning>div{background:var(--soft); border:1px solid var(--line); border-radius:14px; padding:14px 18px;}

.msa-progress{height:6px; background:var(--line); border-radius:100px; overflow:hidden; margin-bottom:20px;}
.msa-progress span{display:block; height:100%; background-image:var(--grad); border-radius:100px; transition:width .4s cubic-bezier(.22,1,.36,1);}
.msa-step{font-size:12.5px; font-weight:600; letter-spacing:1.2px; text-transform:uppercase; color:var(--p2); margin-bottom:10px;}

.msa-opts{display:flex; flex-direction:column; gap:12px; margin-top:22px;}
.msa-opt{
  display:flex; align-items:center; gap:14px; text-align:left; width:100%; cursor:pointer;
  font-family:inherit; font-size:15.5px; color:var(--ink); background:#fff; border:1.5px solid var(--line);
  border-radius:15px; padding:17px 18px; transition:border-color .16s ease, background .16s ease, transform .12s ease;
}
.msa-opt:hover{border-color:var(--p2); transform:translateY(-1px);}
.msa-opt-mark{flex:0 0 20px; width:20px; height:20px; border-radius:50%; border:2px solid var(--line); transition:all .16s ease; position:relative;}
.msa-opt.sel{border-color:var(--p1); background:linear-gradient(135deg,rgba(101,80,187,.06),rgba(111,196,227,.06));}
.msa-opt.sel .msa-opt-mark{border-color:var(--p1); background-image:var(--grad);}
.msa-opt.sel .msa-opt-mark:after{content:"✓"; color:#fff; font-size:11px; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;}
.msa-nav{display:flex; justify-content:space-between; gap:12px; margin-top:26px;}

.msa-result-top{text-align:center;}
.msa-ready{font-size:13px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--p2); margin-bottom:16px;}
.msa-typewrap{display:flex; flex-direction:column; align-items:center; gap:16px;}
.msa-char{width:150px; height:150px; object-fit:contain;}
.msa-char-ph{border-radius:50%; display:flex; align-items:center; justify-content:center; border:1px solid var(--line);}
.msa-char-ph span{width:64px; height:64px; border-radius:50%; box-shadow:0 8px 24px rgba(0,0,0,.15);}
.msa-typelabel{font-size:12px; font-weight:700; letter-spacing:2px; color:var(--muted);}
.msa-typebadge{display:inline-block; margin-top:8px; font-size:26px; font-weight:700; color:#fff; background:var(--c,#6550BB); padding:8px 26px; border-radius:100px; letter-spacing:.3px;}
.msa-lead{font-size:16.5px; line-height:1.6;}
.msa-two{display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:18px;}
.msa-two p{color:var(--muted); font-size:14.5px; line-height:1.6;}
.msa-note{margin-top:18px; background:var(--soft); border:1px solid var(--line); border-radius:14px; padding:14px 18px; font-size:14px; line-height:1.55;}
.msa-note strong{color:var(--p1);}

.msa-metrics{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
.msa-metric{background:var(--soft); border:1px solid var(--line); border-radius:16px; padding:16px 14px; text-align:center;}
.msa-metric span{display:block; font-size:12px; color:var(--muted); margin-bottom:6px; line-height:1.3;}
.msa-metric strong{font-size:16px;}
.msa-concern-row{margin-top:18px; display:flex; flex-wrap:wrap; gap:9px; align-items:center;}
.msa-mini{font-size:12.5px; color:var(--muted); font-weight:600; margin-right:4px;}

.msa-badge{display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; padding:6px 13px; border-radius:100px; background:color-mix(in srgb, var(--bc) 12%, #fff); color:var(--bc); border:1px solid color-mix(in srgb, var(--bc) 30%, #fff);}
.msa-badge-dot{width:8px; height:8px; border-radius:50%; background:var(--bc);}

.msa-pris{display:flex; flex-direction:column; gap:10px;}
.msa-pri{display:flex; align-items:center; gap:14px; background:var(--soft); border:1px solid var(--line); border-radius:14px; padding:14px 18px; font-weight:600; font-size:15px;}
.msa-pri-n{flex:0 0 28px; width:28px; height:28px; border-radius:50%; background-image:var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px;}

.msa-chips{display:flex; flex-wrap:wrap; gap:10px;}
.msa-chip{font-size:13.5px; font-weight:600; padding:9px 16px; border-radius:100px; background:var(--soft); border:1px solid var(--line);}
.msa-chip-warn{background:linear-gradient(135deg,rgba(180,137,180,.12),rgba(101,80,187,.10)); border-color:rgba(101,80,187,.25); color:var(--p1);}
.msa-slow-h{margin-top:20px;}

.msa-routine h4{margin-bottom:10px;}
.msa-routine ol{margin:0; padding-left:20px;}
.msa-routine li{font-size:14.5px; line-height:1.5; margin-bottom:8px; color:var(--ink);}

.msa-why{font-size:14px; color:var(--muted); margin-bottom:16px;}
.msa-products{display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:16px;}
.msa-product{text-decoration:none; color:inherit; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; transition:transform .18s ease, box-shadow .18s ease;}
.msa-product:hover{transform:translateY(-3px); box-shadow:var(--shadow);}
.msa-product-img{aspect-ratio:1/1; background:var(--soft) center/cover no-repeat;}
.msa-product-body{padding:13px 14px 16px;}
.msa-product-name{font-size:14px; font-weight:600; line-height:1.35; margin-bottom:6px;}
.msa-product-price{font-size:13.5px; color:var(--p1); font-weight:700; margin-bottom:9px;}
.msa-product-badges{display:flex; flex-wrap:wrap; gap:6px;}
.msa-product-badges .msa-badge{font-size:11px; padding:4px 9px;}
.msa-loading,.msa-empty{grid-column:1/-1; text-align:center; color:var(--muted); font-size:14px; padding:26px; background:var(--soft); border-radius:14px;}

.msa-cta{margin-top:30px; text-align:center; background:linear-gradient(135deg,rgba(101,80,187,.06),rgba(111,196,227,.08)); border:1px solid var(--line); border-radius:var(--radius); padding:34px 28px;}
.msa-cta h3{font-size:22px; margin-bottom:20px;}
.msa-cta-btns{display:flex; gap:12px; justify-content:center; flex-wrap:wrap;}
.msa-redo{text-align:center; margin-top:22px;}
.msa-redo a{color:var(--muted); font-size:13.5px; text-decoration:underline;}

@media(max-width:720px){
  #misoul-sa{padding:20px 14px 54px;}
  .msa-card{padding:26px 20px;}
  .msa-h1{font-size:29px;}
  .msa-h2{font-size:22px;}
  .msa-two{grid-template-columns:1fr; gap:16px;}
  .msa-metrics{grid-template-columns:repeat(2,1fr);}
  .msa-typebadge{font-size:23px;}
  .msa-nav .msa-btn{flex:1;}
  .msa-cta-btns .msa-btn{flex:1 1 100%;}
}

/* ============ Prompt Maestro rebuild — nuevos componentes ============ */
.msa-center{text-align:center;}
.msa-nomt{margin-top:-4px; margin-bottom:14px;}
.msa-lead2{font-size:15.5px; line-height:1.6; color:var(--ink); margin-bottom:18px;}

/* Disclaimer en hero */
.msa-disclaimer{
  text-align:left; margin:22px auto 24px; max-width:58ch;
  background:var(--soft); border:1px solid var(--line); border-left:4px solid var(--p2);
  border-radius:14px; padding:16px 18px; font-size:13.5px; line-height:1.6; color:var(--muted);
}
.msa-disclaimer strong{color:var(--p1);}
.msa-hero .msa-help.msa-center{margin-top:12px;}

/* Gate / teaser */
.msa-result-top .msa-lead{margin:18px auto 0; max-width:56ch;}
.msa-gate{
  margin-top:26px; text-align:center;
  background:linear-gradient(135deg,rgba(101,80,187,.06),rgba(111,196,227,.09));
  border:1px solid var(--line); border-radius:var(--radius); padding:30px 26px;
}
.msa-gate-lock{font-size:30px; line-height:1; margin-bottom:8px;}
.msa-gate h3{font-size:21px; font-weight:700; margin-bottom:8px;}
.msa-gate-sub{font-size:14.5px; line-height:1.6; color:var(--muted); max-width:52ch; margin:0 auto 18px;}
.msa-locklist{list-style:none; margin:0 auto 22px; padding:0; max-width:420px; text-align:left;}
.msa-locklist li{position:relative; padding:8px 8px 8px 30px; font-size:14px; color:var(--ink); border-bottom:1px dashed var(--line);}
.msa-locklist li:last-child{border-bottom:0;}
.msa-locklist li:before{content:"🔓"; position:absolute; left:2px; top:7px; font-size:14px; filter:grayscale(.15);}
.msa-form{max-width:420px; margin:0 auto;}
.msa-form input{
  width:100%; box-sizing:border-box; height:52px; margin-bottom:12px; padding:0 16px;
  border-radius:13px; border:1.5px solid var(--line); background:#fff; color:var(--ink);
  font:400 15px Montserrat,sans-serif; transition:border-color .16s ease;
}
.msa-form input:focus{outline:none; border-color:var(--p1);}
.msa-form .msa-f-send{width:100%; height:54px; margin-top:2px;}
.msa-hp{position:absolute; left:-9999px; height:0!important; margin:0!important; opacity:0;}
.msa-f-msg{min-height:18px; margin-top:12px; font-size:13.5px; font-weight:500; color:var(--p1);}
.msa-f-msg.err{color:#c0392b;}
.msa-gate-fine{margin-top:14px; font-size:12px; color:var(--muted); line-height:1.5;}

/* Necesidades principales */
.msa-needs{display:flex; flex-direction:column; gap:12px;}
.msa-need{background:var(--soft); border:1px solid var(--line); border-radius:16px; padding:16px 18px;}
.msa-need-h{display:flex; align-items:center; gap:12px; margin-bottom:6px;}
.msa-need-n{flex:0 0 26px; width:26px; height:26px; border-radius:50%; background-image:var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700;}
.msa-need-t{font-size:15.5px; font-weight:700;}
.msa-need p{font-size:14px; line-height:1.55; color:var(--muted); margin:0;}

/* Factores que influyen */
.msa-factors{display:grid; grid-template-columns:repeat(2,1fr); gap:14px;}
.msa-factor{background:var(--soft); border:1px solid var(--line); border-radius:16px; padding:16px 18px;}
.msa-factor h4{font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--muted); margin-bottom:4px;}
.msa-factor-val{font-size:15px; font-weight:700; color:var(--ink); margin-bottom:6px;}
.msa-factor p{font-size:13.5px; line-height:1.55; color:var(--muted); margin:0;}

/* Rutina — pasos */
.msa-steps{display:flex; flex-direction:column; gap:12px;}
.msa-stepcard{display:flex; gap:14px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px;}
.msa-step-opt{background:linear-gradient(135deg,rgba(180,137,180,.08),rgba(111,196,227,.08)); border-style:dashed;}
.msa-step-n{flex:0 0 30px; width:30px; height:30px; border-radius:50%; background-image:var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700; margin-top:2px;}
.msa-step-body{flex:1; min-width:0;}
.msa-step-head{display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px; margin-bottom:8px;}
.msa-step-tipo{font-size:15.5px; font-weight:700; color:var(--ink);}
.msa-step-when{font-size:11.5px; font-weight:600; letter-spacing:.4px; text-transform:uppercase; color:var(--p1); background:var(--soft); border:1px solid var(--line); padding:3px 10px; border-radius:100px;}
.msa-step-row{font-size:14px; line-height:1.55; color:var(--muted); margin-top:4px;}
.msa-step-row b{color:var(--ink); font-weight:600;}

/* Precaución */
.msa-repair-note{background:linear-gradient(135deg,rgba(0,96,169,.07),rgba(74,175,231,.09)); border:1px solid rgba(0,96,169,.2); border-radius:16px; padding:16px 18px; font-size:14px; line-height:1.6; margin-bottom:16px;}
.msa-repair-note strong{color:var(--p1);}
.msa-cautions{display:flex; flex-direction:column; gap:12px;}
.msa-caution{background:var(--soft); border:1px solid var(--line); border-left:4px solid var(--p2); border-radius:14px; padding:14px 18px;}
.msa-caution h4{font-size:15px; font-weight:700; margin-bottom:5px;}
.msa-caution p{font-size:14px; line-height:1.55; color:var(--muted); margin:0 0 8px;}
.msa-caution-freq{font-size:13.5px; font-weight:600; color:var(--p1); background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 12px; display:inline-block;}

/* Consejos */
.msa-tips{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:11px;}
.msa-tips li{position:relative; padding:12px 16px 12px 42px; background:var(--soft); border:1px solid var(--line); border-radius:14px; font-size:14.5px; line-height:1.55;}
.msa-tips li:before{content:"✓"; position:absolute; left:14px; top:12px; width:18px; height:18px; border-radius:50%; background-image:var(--grad); color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center;}

@media(max-width:720px){
  .msa-factors{grid-template-columns:1fr;}
  .msa-gate{padding:24px 18px;}
  .msa-gate h3{font-size:19px;}
  .msa-stepcard{padding:14px 15px; gap:12px;}
  .msa-step-n{flex-basis:26px; width:26px; height:26px; font-size:13px;}
  .msa-disclaimer{margin:18px 0 20px;}
  .msa-form input,.msa-form .msa-f-send{height:50px;}
}
