/* ===========================================================
   GIMADD MENTOR — SIMULACRO de la ficha de jugador (vista entrenador)
   Réplica visual del workspace real (Lato/Lexend, tinta #373A36, amarillo #EBE717)
   =========================================================== */
:root{
  --ink:#373a36;
  --yellow:#ebe717;
  --paper:#f1f5f9;
  --line:#ddd;
  --muted:#888;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{overflow-x:clip}
body.mx{
  font-family:Lato,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  min-height:100vh;
  position:relative;
}
.mx img{display:block}
.mx a{color:inherit;text-decoration:none}
.mx button{font-family:inherit;border:0;background:none;color:inherit;cursor:pointer}
.mx ul{list-style:none}

/* ---------- fondo: banda amarilla superior + lóbulo del sidebar + pelota ---------- */
.mx-bg{position:absolute;inset:0;overflow:clip;pointer-events:none;z-index:0}
.mx-bg__sun{
  position:absolute;inset:0 0 auto;height:clamp(211px,16.146vw,279px);
  background:url('../assets/mentor/sun.svg') 0 0/100% 100% no-repeat;
}
.mx-bg__lobe{
  position:absolute;top:0;left:0;width:min(30vw,470px);height:720px;
  background:linear-gradient(180deg,#f8ef16 0%,#ebe717 70%,#e9ef00 100%);
  border-bottom-right-radius:100% 38%;
  border-bottom-left-radius:0;
}
.mx-bg__ball{
  position:fixed;right:clamp(18px,3vw,48px);bottom:clamp(14px,3vh,32px);
  width:clamp(154px,16.8vw,252px);opacity:.78;
}

/* ---------- barra DEMO ---------- */
.mx-demobar{
  position:fixed;left:50%;bottom:18px;transform:translateX(-50%);
  z-index:60;display:flex;align-items:center;gap:14px;
  background:var(--ink);color:#fff;border-radius:999px;
  padding:9px 10px 9px 20px;font-size:12.5px;box-shadow:0 10px 30px rgba(0,0,0,.35);
  white-space:nowrap;
}
.mx-demobar strong{color:var(--yellow);font-weight:900}
.mx-demobar a{
  background:var(--yellow);color:var(--ink);font-weight:700;
  border-radius:999px;padding:7px 14px;transition:transform .25s;
}
.mx-demobar a:hover{transform:translateY(-2px)}

/* ---------- shell ---------- */
.mx-shell{
  position:relative;z-index:1;
  display:grid;grid-template-columns:clamp(300px,19.7vw,341px) minmax(0,1fr);
  gap:clamp(16px,2.5vw,40px);
  max-width:1760px;margin:0 auto;
  padding:18px clamp(20px,4vw,70px) 80px clamp(20px,5vw,90px);
}

/* ---------- sidebar ---------- */
.mx-side{position:relative;padding-top:8px}
.mx-side__logo{width:150px;margin:6px auto 22px;position:relative;left:-6px}
.mx-side__card{
  border:1px solid #ffffffb3;border-radius:30px;
  background:#ffffff66;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  box-shadow:0 4px 4px #0003;
  padding:26px 20px 20px;
  display:flex;flex-direction:column;gap:4px;
  position:sticky;top:18px;
}
.mx-side__item{
  display:flex;align-items:center;gap:12px;
  padding:11px 16px;border-radius:999px;
  font-size:16px;font-weight:700;color:var(--ink);
  transition:background .25s;
  cursor:pointer;
}
.mx-side__item img{width:21px;height:21px}
.mx-side__item:hover{background:#ffffffa8}
.mx-side__item.is-active{background:var(--ink);color:#fff}
.mx-side__item.is-active img{filter:brightness(0) invert(1)}
.mx-side__item.is-active .mx-side__dot{display:grid}
.mx-side__dot{display:none;place-items:center;width:21px;height:21px}
.mx-side__dot img{width:21px;height:21px;filter:none!important}
.mx-side__sep{height:1px;background:#d9d9d9;margin:14px 10px}
.mx-side__item--sm{font-size:15px;font-weight:400;padding:9px 16px}
.mx-side__item--sm img{width:19px;height:19px}

/* invita a tus jugadores */
.mx-invite{
  margin-top:18px;position:relative;
  background:var(--yellow);border-radius:22px;
  padding:16px 14px 14px;
  box-shadow:0 4px 10px rgba(60,60,0,.25);
}
.mx-invite__head{display:flex;gap:10px;padding-right:96px}
.mx-invite__ico{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:var(--ink)}
.mx-invite__ico img{width:16px;height:16px;filter:brightness(0) invert(1)}
.mx-invite__head strong{font-size:13.5px;font-weight:900;display:block}
.mx-invite__head small{font-size:9.5px;line-height:1.35;display:block;margin-top:4px;color:#3c3c10}
.mx-invite__photo{position:absolute;right:4px;top:-34px;width:104px}
.mx-invite__qr{
  position:absolute;right:52px;top:62px;
  display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.25);
}
.mx-invite__qr img{width:16px;height:16px}
.mx-invite__field{
  display:flex;align-items:center;gap:7px;
  background:#fff;border-radius:999px;
  padding:7px 7px 7px 14px;margin-top:10px;
  font-family:ui-monospace,Menlo,monospace;font-size:11px;
}
.mx-invite__field span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-invite__field--code span{font-size:15px;font-weight:700}
.mx-invite__btn{
  display:grid;place-items:center;flex:none;
  width:26px;height:26px;border-radius:8px;background:var(--ink);
}
.mx-invite__btn img{width:14px;height:14px;filter:brightness(0) invert(1)}
.mx-invite__btn--y{background:var(--yellow)}
.mx-invite__btn--y img{filter:none}
.mx-invite__btn.is-ok{background:#1d8d3a}

/* ---------- cabecera main ---------- */
.mx-top{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:16px;padding:10px 4px 22px;
}
.mx-top__nav{display:flex;flex-direction:column;gap:12px}
.mx-back{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:400}
.mx-back i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2)}
.mx-back i img{width:15px;height:15px}
.mx-crumb{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:900}
.mx-crumb i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--ink)}
.mx-crumb i img{width:18px;height:18px;filter:brightness(0) invert(1)}
.mx-hello{display:flex;align-items:center;gap:13px;position:relative}
.mx-hello__bell{
  position:absolute;left:-16px;bottom:-12px;
  display:grid;place-items:center;width:30px;height:30px;border-radius:12px;background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.mx-hello__bell img{width:16px;height:16px}
.mx-hello__bell b{
  position:absolute;top:-6px;right:-5px;
  display:grid;place-items:center;min-width:17px;height:17px;border-radius:50%;
  background:var(--yellow);font-size:10px;font-weight:900;border:2px solid #fff;
}
.mx-hello__avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;object-position:top;border:3px solid #fff;box-shadow:0 3px 7px rgba(0,0,0,.2)}
.mx-hello small{display:block;font-size:12.5px}
.mx-hello strong{font-size:20px;font-weight:900;display:flex;align-items:center;gap:7px}
.mx-hello strong img{width:19px;height:19px}

/* ---------- superficie con tabs ---------- */
.mx-surface{
  min-height:760px;padding:32px;
  border:1px solid #ffffffb3;border-radius:30px;
  background:#ffffff59;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  box-shadow:0 4px 4px #0004;
  display:flex;flex-direction:column;gap:36px;
}
.mx-tabs{
  display:flex;padding:4px;gap:4px;border-radius:999px;background:var(--paper);
  width:86%;margin:0 auto;flex:none;
}
.mx-tabs button{
  display:flex;align-items:center;justify-content:center;
  min-height:32px;min-width:90px;flex:1;padding:7px 12px;border-radius:999px;
  font-size:13px;font-weight:700;color:#64748b;white-space:nowrap;
  transition:background .2s,color .2s;
}
.mx-tabs button[aria-current="page"]{background:var(--ink);color:var(--yellow);font-weight:900}
.mx-content{min-width:0;flex:1;display:flex;flex-direction:column}
.mx-panel{display:none;flex:1;flex-direction:column;animation:mxIn .35s ease}
.mx-panel.is-on{display:flex}
@keyframes mxIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* subtabs oscuras */
.mx-subtabs{
  display:flex;width:max-content;max-width:100%;gap:4px;padding:4px;
  border-radius:999px;background:var(--ink);margin:0 auto 28px;
}
.mx-subtabs button{
  display:flex;align-items:center;justify-content:center;gap:7px;
  padding:7px 16px;border-radius:999px;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;
}
.mx-subtabs button img{width:18px;height:18px;filter:brightness(0) invert(1)}
.mx-subtabs button[aria-selected="true"]{background:var(--yellow);color:var(--ink)}
.mx-subtabs button[aria-selected="true"] img{filter:brightness(0)}
.mx-sub{display:none}
.mx-sub.is-on{display:block}

/* encabezado de sección dentro de un tab */
.mx-h2{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:900;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:22px;width:max-content;min-width:230px}
.mx-h2 i{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:50%;background:var(--yellow)}
.mx-h2 i img{width:18px;height:18px}

/* tarjetas */
.mx-card{min-width:0;border:1px solid var(--line);border-radius:24px;background:#ffffffd9;box-shadow:0 3px 4px #0003;overflow:hidden}
.mx-card__body{padding:20px}
.mx-cardhead{
  display:flex;align-items:center;gap:8px;justify-content:space-between;
  border-radius:999px;min-height:50px;padding:9px 18px;
  background:var(--yellow);color:var(--ink);font-size:14px;font-weight:900;
}
.mx-cardhead>span{display:flex;align-items:center;gap:8px}
.mx-cardhead .mx-face{display:grid;place-items:center;background:#fff;border-radius:50%;width:30px;height:30px}
.mx-cardhead .mx-face img{width:20px;height:20px}
.mx-cardhead time{font-size:10px;font-weight:300;white-space:nowrap}

/* chips, pills, círculos */
.mx-pill{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:38px;border-radius:999px;padding:8px 20px 8px 8px;
  background:var(--ink);color:#fff;font-size:13px;font-weight:700;cursor:pointer;
  transition:transform .2s;
}
.mx-pill:hover{transform:translateY(-1px)}
.mx-pill i{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--yellow)}
.mx-pill i img{width:15px;height:15px}
.mx-pill--y{background:var(--yellow);color:var(--ink)}
.mx-pill--y i{background:var(--ink)}
.mx-pill--y i img{filter:brightness(0) invert(1)}
.mx-pill--red{background:#e00000;color:#fff;min-height:30px;padding:6px 14px 6px 8px;font-size:11.5px}
.mx-pill--ghost{background:#fff;color:var(--ink);border:1px solid var(--line);padding:8px 18px;font-weight:400;font-size:12px}
.mx-circle{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:var(--yellow);cursor:pointer;box-shadow:0 2px 5px rgba(0,0,0,.15)}
.mx-circle img{width:17px;height:17px}
.mx-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 11px;font-size:10px;font-weight:700}
.mx-chip--dark{background:var(--ink);color:#fff}
.mx-chip--y{background:var(--yellow);color:var(--ink)}
.mx-chip--green{background:#d9f3e1;color:#1d8d3a}
.mx-chip--paper{background:var(--paper);color:var(--ink);font-weight:400}
.mx-chip img{width:12px;height:12px}

/* ===================== PERFIL ===================== */
.mx-perfil{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.mx-perfil__notes{grid-row:1/3;grid-column:3}
@media(min-width:1150px){.mx-perfil{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.92fr)}}
.mx-id{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.mx-id__photo{width:82px;height:82px;border-radius:50%;object-fit:cover;border:3px solid var(--yellow)}
.mx-id strong{font-size:19px;font-weight:900;display:flex;align-items:center;gap:7px}
.mx-id strong img{width:17px;height:17px}
.mx-id small{display:flex;gap:10px;align-items:baseline;margin-top:6px;font-size:9.5px;font-weight:900}
.mx-id small b{font-size:12.5px;font-weight:400}
.mx-field{padding:16px 0;border-bottom:1px solid var(--line)}
.mx-field:last-child{border-bottom:0}
.mx-field h4{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:900;margin-bottom:10px}
.mx-field h4 img{width:17px;height:17px}
.mx-field p{font-size:12.5px;color:#555;line-height:1.5}
.mx-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.mx-row:last-child{border-bottom:0}
.mx-row>span{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:900}
.mx-row>span img{width:17px;height:17px}
.mx-row>div{display:flex;align-items:center;gap:10px;font-size:12px;color:#444}
.mx-row .mx-circle{width:30px;height:30px}
.mx-row .mx-circle img{width:14px;height:14px}
.mx-perfil__actions{grid-column:1/3;display:flex;gap:14px;align-items:center}
.mx-perfil__actions .mx-pill{flex:1;max-width:340px}
.mx-notes{display:flex;flex-direction:column;min-height:480px;height:100%}
.mx-notes__list{flex:1;padding:4px 2px;display:flex;flex-direction:column;gap:10px}
.mx-notes__empty{font-size:12px;color:#999;padding-top:8px}
.mx-note{background:#fdfbd7;border:1px solid #efe9a0;border-radius:14px 14px 14px 4px;padding:10px 13px;font-size:12.5px;line-height:1.45}
.mx-note small{display:block;font-size:9px;color:#9a9548;margin-top:5px}
.mx-notes__form{display:flex;align-items:flex-end;gap:8px;margin-top:14px}
.mx-notes__form textarea{
  flex:1;resize:none;border:1px solid var(--line);border-radius:14px;background:#fff;
  padding:10px 13px;font-family:inherit;font-size:12px;min-height:44px;outline-color:var(--yellow);
}
.mx-notes__send{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--yellow);box-shadow:0 2px 5px rgba(0,0,0,.15)}
.mx-notes__send img{width:16px;height:16px}

/* ===================== SERVICIOS ===================== */
.mx-service{position:relative;border:1px solid #fff;border-radius:24px;background:#ffffffd9;box-shadow:0 3px 8px #0002;padding:26px 28px}
.mx-service h3{font-size:21px;font-weight:900;letter-spacing:-.01em}
.mx-service>p{font-size:11.5px;color:#777;margin:8px 0 14px;max-width:62ch}
.mx-service__badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.mx-service__thumb{position:absolute;right:26px;top:26px;width:92px;height:76px;object-fit:cover;border-radius:12px}
.mx-service__foot{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-top:18px;flex-wrap:wrap}
.mx-price{text-align:right}
.mx-price small{font-size:10px;color:#999;display:block}
.mx-price strong{font-size:26px;font-weight:900}
.mx-price span{display:block;font-size:9.5px;color:#999;margin-top:2px}
.mx-service__right{display:flex;align-items:center;gap:16px}
.mx-fin{margin-top:26px;border-top:1px solid var(--line)}
.mx-fin>button{display:flex;align-items:center;gap:10px;width:100%;padding:18px 6px;font-size:14px;font-weight:900}
.mx-fin>button b{font-weight:400;font-size:12px;color:#888}
.mx-fin>button img{width:16px;height:16px;margin-left:auto;transition:transform .3s}
.mx-fin.is-open>button img{transform:rotate(180deg)}
.mx-fin__body{display:none;padding:4px 6px 18px}
.mx-fin.is-open .mx-fin__body{display:block}
.mx-finrow{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px 18px;font-size:13px}
.mx-finrow strong{font-weight:900}
.mx-finrow small{color:#999;font-size:11px}
.mx-fab{position:absolute;right:26px;bottom:22px}

/* ===================== VIDEOANÁLISIS ===================== */
.mx-videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.mx-video{border:1px solid #fff;border-radius:20px;background:#fff;box-shadow:0 3px 8px #0002;overflow:hidden}
.mx-video__frame{position:relative;aspect-ratio:4/3;background:#101010}
.mx-video__frame video{width:100%;height:100%;object-fit:cover}
.mx-video__ball{position:absolute;left:10px;top:10px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ink)}
.mx-video__ball img{width:16px;height:16px}
.mx-video__meta{position:absolute;right:10px;top:10px;display:flex;gap:6px}
.mx-video__body{padding:14px 16px 16px}
.mx-video__body strong{font-size:13px;font-weight:900;display:block;margin-bottom:9px}
.mx-video__tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.mx-video__tags p{font-size:11px;color:#777}
.mx-video .mx-pill{min-height:32px;font-size:11.5px;padding:6px 16px 6px 6px}
.mx-video .mx-pill i{width:24px;height:24px}
.mx-video .mx-pill i img{width:13px;height:13px}
.mx-video__del{margin-left:auto;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fde8e8}
.mx-video__del img{width:16px;height:16px}
.mx-video__row{display:flex;align-items:center;gap:10px}
.mx-empty{font-size:13px;color:#888;text-align:center;padding:60px 10px}
/* modal de análisis */
.mx-modal{position:fixed;inset:0;margin:auto;width:900px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 60px);border:1px solid var(--line);border-radius:24px;background:#fffffffa;color:var(--ink);padding:24px;overflow:auto;box-shadow:0 10px 40px #0004;font-family:Lato,Arial,sans-serif;z-index:80}
.mx-modal::backdrop{backdrop-filter:blur(7px);background:#ffffff26}
.mx-modal__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.mx-modal__head h3{font-size:15px;font-weight:900}
.mx-modal video{width:100%;border-radius:16px;background:#000;max-height:52vh}
.mx-modal__grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;margin-top:16px}
.mx-moments h4{font-size:12.5px;font-weight:900;margin-bottom:10px}
.mx-moment{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--line);border-radius:999px;background:#fff;padding:8px 14px;font-size:12px;margin-bottom:8px;text-align:left}
.mx-moment b{background:var(--yellow);border-radius:999px;padding:2px 9px;font-size:10.5px}
.mx-moment.is-on{border-color:var(--ink);background:var(--ink);color:#fff}
.mx-comment{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px 16px}
.mx-comment strong{display:block;font-size:12.5px;font-weight:900;margin-bottom:6px}
.mx-comment p{font-size:12px;color:#555;line-height:1.55}
.mx-tools{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.mx-tools span{border:1px dashed #bbb;border-radius:999px;padding:5px 12px;font-size:10.5px;color:#777}

/* ===================== OBJETIVOS ===================== */
.mx-plan{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.mx-goalcol>h3{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:900;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}
.mx-goalcol>h3 i{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--yellow)}
.mx-goalcol>h3 i img{width:18px;height:18px}
.mx-goalcol{display:flex;flex-direction:column;gap:16px}
.mx-goal{position:relative;border:1px solid var(--line);border-radius:14px;background:#fff;padding:18px 22px;display:flex;gap:12px;align-items:flex-start}
.mx-goal__copy{flex:1;min-width:0}
.mx-goal__meta{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.mx-goal__type{display:flex;align-items:center;justify-content:center;gap:7px;min-width:85px;border-radius:999px;padding:3px 10px;background:var(--ink);color:#fff;font-size:10px}
.mx-goal__type img{width:12px;height:12px;filter:brightness(0) invert(89%) sepia(99%) saturate(1100%)}
.mx-goal__date{display:flex;align-items:center;gap:6px;border-radius:999px;background:var(--yellow);padding:4px 10px;font-size:9.5px}
.mx-goal__date img{width:13px;height:13px}
.mx-goal h3{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:900}
.mx-goal h3 img{width:36px;height:36px;padding:9px;border-radius:50%;background:var(--yellow)}
.mx-goal__label{display:flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;margin:12px 0 6px}
.mx-goal__label img{width:15px;height:15px}
.mx-goal p{font-size:13.5px;line-height:1.55;color:#444}
.mx-goal small{display:block;margin-top:10px;font-size:11.5px}
.mx-goal__actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}
.mx-goal__actions .mx-circle{margin-left:auto}
.mx-ring{display:grid;place-items:center;width:70px;height:70px;flex:none;align-self:center;border-radius:50%;background:conic-gradient(var(--yellow) calc(var(--p)*1%),#eee 0);position:relative;font-size:10px;font-weight:900}
.mx-ring::before{content:'';position:absolute;inset:8px;background:#fff;border-radius:50%}
.mx-ring span{position:relative}
.mx-goal--dark{background:var(--ink);color:#fff;border-color:var(--ink)}
.mx-goal--dark p{color:#ddd}
.mx-goal--dark .mx-ring::before{background:var(--ink)}
.mx-goal--dark .mx-ring span{color:#fff}
.mx-goal--dark .mx-goal__label img{filter:brightness(0) invert(1)}
.mx-goal__sens{margin-top:12px;font-size:12px}
.mx-goal__sens summary{cursor:pointer;font-weight:900;font-size:12px;list-style:none;display:flex;align-items:center;gap:6px}
.mx-goal__sens summary::before{content:'▸'}
.mx-goal__sens[open] summary::before{content:'▾'}
.mx-goal__sens p{padding:8px 0 0 14px;font-size:12px}
.mx-done{background:#1d8d3a;color:#fff;border-radius:999px;padding:4px 10px;font-size:10px;font-weight:700}

/* ===================== DIARIO ===================== */
.mx-diary{display:grid;grid-template-columns:minmax(0,350fr) minmax(0,468fr);gap:36px;align-items:start}
.mx-chart{padding:24px;border-radius:24px;background:#fff;box-shadow:0 3px 4px #0003}
.mx-chart h2{text-align:center;font-size:19px;font-weight:900}
.mx-chart__legend{display:flex;gap:16px;font-size:11px;margin-top:14px}
.mx-chart__legend i{display:inline-block;width:10px;height:10px;background:var(--yellow);border-radius:3px;margin-right:5px}
.mx-chart__legend span:last-child i{background:var(--ink)}
.mx-chart svg{width:100%;height:auto;margin:24px 0 6px}
.mx-chart svg text{font-size:10px;fill:#888;font-family:Lato,Arial,sans-serif}
.mx-chart__foot{font-size:12px;margin-top:16px;line-height:1.6}
.mx-chart__foot b{display:block;font-weight:900}
.mx-latest>h2{font-size:16px;font-weight:900;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}
.mx-event{margin-bottom:18px}
.mx-score{display:grid;grid-template-columns:auto repeat(4,34px);gap:6px 10px;align-items:center;font-size:26px;font-weight:300;margin:18px 0 20px;padding:0 20px}
.mx-score b{font-size:12px;font-weight:900}
.mx-score i{font-style:normal;text-align:center}
.mx-score i.win{font-weight:700}
.mx-score i.dim{color:#bbb}
.mx-score u{text-decoration:none;font-size:9px;color:#999;text-align:center}
.mx-event__goals{padding:15px 20px 20px;border-top:1px solid #aaa;border-bottom:1px solid #aaa;margin:0 20px}
.mx-event__goals h4{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:900;margin-bottom:12px}
.mx-event__goals h4 img{box-sizing:content-box;width:18px;height:18px;padding:8px;background:var(--yellow);border-radius:50%}
.mx-event__goals li{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin:9px 0}
.mx-event__goals li b{font-weight:400;color:#555;font-size:11px;white-space:nowrap}
.mx-event__foot{display:flex;justify-content:center;padding:18px 0 6px}
.mx-history{display:block;margin:26px auto 0;font-size:12px;color:#888;text-align:center;text-decoration:underline;text-underline-offset:3px}

/* ===================== AGENDA ===================== */
.mx-agenda__top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:26px;flex-wrap:wrap}
.mx-days{display:flex;align-items:center;gap:7px}
.mx-days__arrow{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--ink)}
.mx-days__arrow img{width:13px;height:13px;filter:brightness(0) invert(1)}
.mx-day{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px;color:#777}
.mx-day button{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--yellow);font-size:11.5px;font-weight:700;transition:transform .2s}
.mx-day button:hover{transform:translateY(-2px)}
.mx-day.is-on button{background:var(--ink);color:#fff}
.mx-booking{border:1px solid #fff;border-radius:24px;background:#ffffffd9;box-shadow:0 3px 8px #0002;padding:18px 20px 16px;position:relative;margin-bottom:26px}
.mx-booking__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.mx-booking__head>span{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:900}
.mx-booking__head>span i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--yellow)}
.mx-booking__head>span i img{width:17px;height:17px}
.mx-booking__head>div{display:flex;gap:8px;align-items:center}
.mx-msg{border:1px solid #efe9a0;border-left:5px solid var(--yellow);border-radius:12px;background:#fdfce9;padding:14px 18px;font-size:12.5px;line-height:1.7}
.mx-msg strong{display:block;font-weight:900;margin-bottom:4px}
.mx-booking .mx-circle{position:absolute;right:18px;bottom:14px}

/* responsive básico */
@media(max-width:1149px){
  .mx-perfil{grid-template-columns:1fr}
  .mx-perfil__notes{grid-row:auto;grid-column:auto}
  .mx-perfil__actions{grid-column:auto}
}
@media(max-width:1000px){
  .mx-shell{grid-template-columns:1fr;padding:16px 16px 120px}
  .mx-side__card{position:static}
  .mx-bg__lobe{width:100%;height:340px;border-radius:0}
  .mx-videos{grid-template-columns:1fr}
  .mx-plan,.mx-diary{grid-template-columns:1fr}
  .mx-surface{padding:22px 16px}
  .mx-tabs{width:100%;overflow-x:auto;scrollbar-width:none}
  .mx-modal__grid{grid-template-columns:1fr}
  .mx-demobar{white-space:normal;max-width:calc(100vw - 24px)}
}

/* ---------- overrides de especificidad (el reset .mx button pisaba los pills) ---------- */
.mx .mx-pill{background:var(--ink);color:#fff}
.mx .mx-pill--y{background:var(--yellow);color:var(--ink)}
.mx .mx-pill--red{background:#e00000;color:#fff}
.mx .mx-pill--ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}
.mx .mx-circle{background:var(--yellow)}
.mx .mx-notes__send{background:var(--yellow)}
.mx .mx-invite__btn{background:var(--ink)}
.mx .mx-invite__btn--y{background:var(--yellow)}
.mx .mx-invite__btn.is-ok{background:#1d8d3a}
.mx .mx-invite__qr{background:#fff}
.mx .mx-video__del{background:#fde8e8}
.mx .mx-moment{background:#fff;border:1px solid var(--line)}
.mx .mx-moment.is-on{border-color:var(--ink);background:var(--ink);color:#fff}
.mx .mx-days__arrow{background:var(--ink)}
.mx .mx-day button{background:var(--yellow)}
.mx .mx-day.is-on button{background:var(--ink);color:#fff}

/* ---------- normalización de iconos (muchos SVG vienen blancos o amarillos) ---------- */
.mx-row>span img,
.mx-field h4 img,
.mx-circle img,
.mx-notes__send img,
.mx-h2 i img,
.mx-goal h3 img,
.mx-goal__label img,
.mx-event__goals h4 img,
.mx-booking__head>span i img,
.mx-cardhead .mx-face img,
.mx-chip--y img,
.mx-id strong img,
.mx-hello strong img,
.mx-back i img,
.mx-side__item--sm img,
.mx-modal .mx-circle img{filter:brightness(0)}
.mx img[src*="tennis-ball"]{filter:none!important}
.mx .mx-side__item.is-active img[src*="tennis-ball"]{filter:none!important}
.mx-goal--dark .mx-goal h3 img{filter:brightness(0)}
.mx-invite__ico img{filter:brightness(0) invert(1)!important}
.mx-subtabs button img{filter:brightness(0) invert(1)!important}
.mx-subtabs button[aria-selected="true"] img{filter:brightness(0)!important}
.mx-days__arrow img{filter:brightness(0) invert(1)!important}

/* ===========================================================
   V2 — logo sobre la esquina, fondo angular, vista de análisis,
   reproductor, marcas, agenda por días
   =========================================================== */

/* logo grande sobre la esquina superior del bloque amarillo */
.mx .mx-side__logo{width:200px;margin:-6px auto 14px;left:0;filter:drop-shadow(0 6px 14px rgba(60,60,0,.18))}

/* fondo angular como el original: corte diagonal bajo el sidebar + acento verde */
.mx .mx-bg__lobe{
  width:min(31vw,490px);height:760px;border-radius:0;
  background:linear-gradient(176deg,#f6ee12 0%,#ebe717 62%,#e9ef00 100%);
  clip-path:polygon(0 0,100% 0,100% 56%,62% 78%,0 88%);
}
.mx-bg__accent{
  position:absolute;top:0;right:0;width:22vw;height:240px;
  background:linear-gradient(115deg,#d6f20a 0%,#b7f000 100%);
  clip-path:polygon(58% 0,100% 0,100% 72%);
}

/* servicios en lista */
.mx-services{display:flex;flex-direction:column;gap:20px}
.mx-service__thumb{box-shadow:0 3px 8px rgba(0,0,0,.18)}
.mx-chip--green{background:#d9f3e1;color:#1d8d3a}

/* cabecera de registro perdido (partido perdido = cabecera oscura) */
.mx .mx-cardhead--loss{background:var(--ink);color:#fff}
.mx .mx-cardhead--loss .mx-face{background:#fff}

/* anillo de progreso como el real: más grande y grueso */
.mx .mx-ring{width:64px;height:64px;font-size:10.5px}
.mx .mx-ring::before{inset:7px}
.mx-goal__type img{width:12px;height:12px;filter:brightness(0) invert(1)!important}

/* ---------- vista de análisis ---------- */
.mx-analysis{display:flex;flex-direction:column;gap:18px;animation:mxIn .35s ease}
.mx-analysis__top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.mx-analysis__top small{display:block;font-size:9.5px;font-weight:900;letter-spacing:.12em;color:#9a9a92}
.mx-analysis__top h3{font-size:15px;font-weight:900;margin-top:3px}
.mx-analysis__topright{display:flex;align-items:center;gap:12px}
.mx .mx-analysis__close{font-size:12.5px;color:#555;text-decoration:underline;text-underline-offset:3px}
.mx-player{position:relative;border-radius:18px;overflow:hidden;background:#000;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.mx-player video{display:block;width:100%;max-height:56vh;object-fit:cover;cursor:pointer}
.mx-player__tag{
  position:absolute;left:14px;top:12px;z-index:3;
  display:flex;align-items:center;gap:7px;
  background:rgba(0,0,0,.55);color:#fff;border-radius:999px;
  padding:6px 13px;font-size:9.5px;font-weight:900;letter-spacing:.08em;
}
.mx-player__tag i{width:7px;height:7px;border-radius:50%;background:var(--yellow)}
.mx .mx-player__big{
  position:absolute;inset:0;margin:auto;width:64px;height:64px;z-index:2;
  display:grid;place-items:center;border-radius:50%;
  background:rgba(55,58,54,.8);color:#fff;
  transition:opacity .3s,transform .3s;
}
.mx .mx-player__big svg{width:30px;height:30px}
.mx .mx-player__big.is-hidden{opacity:0;transform:scale(.8);pointer-events:none}
.mx-player__bar{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  padding:18px 14px 10px;color:#fff;
  background:linear-gradient(transparent,rgba(0,0,0,.72));
}
.mx-player__progress{position:relative;height:14px;cursor:pointer;display:flex;align-items:center;margin-bottom:4px}
.mx-player__progress::before{content:'';position:absolute;left:0;right:0;height:4px;border-radius:99px;background:rgba(255,255,255,.3)}
.mx-player__progress i{position:absolute;left:0;width:0;height:4px;border-radius:99px;background:var(--yellow)}
.mx-player__progress b{position:absolute;left:0;width:11px;height:11px;border-radius:50%;background:#fff;transform:translateX(-50%)}
.mx-player__row{display:flex;align-items:center;gap:13px;font-size:11px}
.mx .mx-player__row button{display:grid;place-items:center;color:#fff;font-size:15px;line-height:1}
.mx-player__row svg{width:17px;height:17px}
.mx-player__time{font-size:10.5px;opacity:.9}
.mx-player__spacer{flex:1}
.mx-analysis__comments h4{font-size:12.5px;font-weight:900;border-top:1px dashed #ccc;padding-top:18px}
.mx-analysis__comments>p{font-size:13px;margin:10px 0 14px}
.mx-marks{display:flex;flex-direction:column;gap:10px}
.mx-mark{
  position:relative;display:flex;flex-direction:column;gap:4px;
  border:1px solid var(--line);border-radius:16px;background:#fff;
  padding:12px 110px 12px 18px;cursor:pointer;
  transition:border-color .25s,box-shadow .25s;
}
.mx-mark:hover{box-shadow:0 3px 10px rgba(0,0,0,.08)}
.mx-mark.is-on{border:2px solid var(--yellow);box-shadow:0 3px 12px rgba(190,185,0,.25)}
.mx-mark span{font-size:12px;color:#777}
.mx-mark span b{color:var(--ink);font-weight:900}
.mx-mark small{font-size:11.5px;color:#999;line-height:1.5}
.mx-mark__btns{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;gap:8px}
.mx .mx-mark__go{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--yellow);box-shadow:0 2px 5px rgba(0,0,0,.15)}
.mx-mark__go img{width:14px;height:14px;filter:brightness(0)}
.mx .mx-mark__rec{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;border:2px solid #e00000}
.mx-mark__rec i{width:14px;height:14px;border-radius:50%;background:#e00000}
.mx-analysis__status{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-radius:14px;background:#d9f3e1;color:#1d8d3a;
  padding:12px 16px;font-size:13px;font-weight:700;margin-top:16px;
}
.mx-analysis__status.is-draft{background:#fdf3d7;color:#9a6b00}

/* ---------- agenda por días ---------- */
.mx-agday{display:none}
.mx-agday.is-on{display:block}
.mx-aglist.is-swap .mx-agday.is-on{animation:mxAg .45s cubic-bezier(.22,.9,.3,1)}
@keyframes mxAg{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.mx-day button{transition:transform .2s,background .25s,color .25s}
.mx-event__notes{padding:4px 20px 0}
.mx-event__notes h4{font-size:12px;font-weight:900;margin:12px 0 6px}
.mx-event__notes p{font-size:12px;color:#777;font-weight:300}
@media(max-width:1000px){
  .mx-bg__accent{display:none}
  .mx-mark{padding-right:18px}
  .mx-mark__btns{position:static;transform:none;margin-top:8px}
}
.mx-analysis[hidden]{display:none}
/* el filtro negro pisaba el FONDO amarillo del propio img (glifo ya es oscuro) */
.mx .mx-goal h3 img,.mx .mx-event__goals h4 img{filter:none}

/* ===========================================================
   V3 — app multipantalla: Inicio, Jugadores, Mi agenda, Cobros, Perfil
   =========================================================== */
.mx-screen{display:none}
.mx-screen.is-on{display:block;animation:mxIn .32s ease}
body.is-embed .mx-demobar{display:none}
body.is-embed .mx-shell{padding-bottom:40px}
.mx-side__item .mx-side__base{display:block}
.mx-side__item.is-active .mx-side__base{display:none}

/* avatar/iniciales mini */
.mx-mini{
  display:inline-grid;place-items:center;width:22px;height:22px;flex:none;
  border-radius:50%;background:var(--yellow);font-size:11px;font-weight:900;color:var(--ink);
  overflow:hidden;font-style:normal;
}
.mx-mini--img img{width:100%;height:100%;object-fit:cover}
.mx-mini--lg{width:52px;height:52px;font-size:20px;border:2px solid var(--yellow);background:#fdfbe0}
.mx .mx-circle--dark{background:var(--ink)}
.mx-circle--dark img{filter:brightness(0) invert(1)!important}

/* ---------- INICIO: dashboard ---------- */
.mx-dash{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr) minmax(260px,320px);gap:22px;align-items:stretch}
/* las 3 columnas a la misma altura: la mini-agenda es flex y su botón baja al fondo */
.mx-miniagenda .mx-card__body{display:flex;flex-direction:column;height:100%}
.mx-dash__col{display:flex;flex-direction:column}
.mx-dash__col .mx-finresumen{flex:1}
.mx-tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mx .mx-tile{
  position:relative;min-height:128px;border-radius:18px;padding:14px 16px;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;
  text-align:left;box-shadow:0 3px 8px rgba(60,60,0,.14);
  transition:transform .22s;
}
.mx .mx-tile:hover{transform:translateY(-3px)}
.mx .mx-tile--y{background:var(--yellow);color:var(--ink)}
.mx .mx-tile--dark{background:var(--ink);color:#fff}
.mx .mx-tile--gray{background:#e9e9e4;color:var(--ink)}
.mx-tile strong{font-size:13.5px;font-weight:900;position:relative;z-index:1}
.mx-tile em{font-style:normal;font-size:30px;font-weight:900;position:relative;z-index:1}
.mx-tile em small{font-size:14px}
.mx-tile>img,.mx-tile .mx-tile__big{
  position:absolute;right:10px;bottom:10px;width:58px;height:58px;opacity:.6;
}
.mx-tile--y>img,.mx-tile--y svg.mx-tile__big{filter:brightness(0);opacity:.28}
.mx-tile--gray>img{filter:brightness(0);opacity:.22}
.mx-tile--dark>img,.mx-tile--dark svg.mx-tile__big{filter:brightness(0) invert(1);opacity:.75}
.mx-tile--dark svg.mx-tile__big,.mx-tile--y svg.mx-tile__big{color:currentColor}
.mx-finresumen{margin-top:16px}
.mx-finresumen__h{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:900;margin-bottom:14px}
.mx-finresumen__h i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--yellow)}
.mx-finresumen__h i img{width:15px;height:15px}
.mx-finresumen__nums{display:flex;gap:0;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:12px}
.mx-finresumen__nums>div{flex:1;padding:0 10px;border-left:1px solid var(--line)}
.mx-finresumen__nums>div:first-child{border-left:0;padding-left:0}
.mx-finresumen__nums small{display:block;font-size:9.5px;color:#999}
.mx-finresumen__nums strong{font-size:19px;font-weight:900}
.mx-finresumen__lbl{font-size:9px;color:#999}
.mx-finbars{display:flex;align-items:flex-end;gap:12px;height:86px;margin:10px 2px 6px}
.mx-finbars span{flex:1;height:var(--h);min-height:6px;border-radius:7px;background:#ececec}
.mx-finbars span.on{background:var(--ink)}
.mx-finbars__lbls{display:flex;gap:12px}
.mx-finbars__lbls u{flex:1;text-align:center;text-decoration:none;font-size:8.5px;color:#999}

/* acciones pendientes */
.mx-acciones{
  background:var(--yellow);border-radius:22px;padding:18px 16px;
  box-shadow:0 4px 12px rgba(60,60,0,.2);
  display:flex;flex-direction:column;gap:12px;min-height:420px;
}
.mx-acciones h4{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:900}
.mx-acciones h4 i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ink)}
.mx-acciones h4 i img{width:15px;height:15px;filter:brightness(0) invert(1)}
.mx-accion{background:#f3ef4c;border:1px solid #d9d414;border-radius:16px;padding:13px 14px}
.mx-accion__row{display:flex;align-items:flex-start;gap:11px}
.mx-accion__ico{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:var(--ink);color:#fff}
.mx-accion__ico img{width:17px;height:17px;filter:brightness(0) invert(1)}
.mx-accion__ico svg{width:17px;height:17px}
.mx-accion__row>div{flex:1;min-width:0}
.mx-accion__row strong{display:block;font-size:13px;font-weight:900}
.mx-accion__row small{display:block;font-size:10.5px;color:#55521a;margin-top:2px}
.mx-accion__row em{display:flex;align-items:center;gap:6px;font-style:normal;font-size:11px;font-weight:700;margin-top:7px}
.mx-accion__row em .mx-mini{width:17px;height:17px;font-size:9px;background:#fff}
.mx .mx-accion__link{display:inline-block;margin-top:8px;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.mx-accion__go{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--ink)}
.mx-accion__go img{width:13px;height:13px;filter:brightness(0) invert(1)}
.mx .mx-accion__pay{margin:10px 0 0 auto;min-height:32px;font-size:11.5px;padding:6px 16px}
.mx .mx-accion__pay.is-done{background:#1d8d3a;color:#fff}
.mx .mx-acciones__all{margin-top:auto;align-self:center}

/* mini agenda */
.mx-days--mini{gap:4px}
.mx-days--mini .mx-day button{width:26px;height:26px;font-size:10px}
.mx-days--mini .mx-day em{font-style:normal;font-size:8px}
.mx-miniagenda__item{border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px 14px;margin-top:14px}
.mx-miniagenda__item strong{display:block;font-size:12.5px;font-weight:900}
.mx-miniagenda__item small{display:flex;align-items:center;gap:6px;font-size:11px;color:#777;margin-top:6px}
.mx-miniagenda__item .mx-mini{width:18px;height:18px}
.mx .mx-miniagenda__all{margin-top:auto;width:100%;justify-content:center}
.mx-miniagenda .mx-miniagenda__item:last-of-type{margin-bottom:16px}

/* ---------- JUGADORES ---------- */
.mx-players__top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.mx-players{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
.mx-player-card{
  border:1px solid var(--line);border-radius:20px;background:#fff;
  box-shadow:0 3px 8px rgba(0,0,0,.08);padding:22px 18px 18px;
  display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;
  transition:transform .22s;
}
.mx-player-card:hover{transform:translateY(-4px)}
.mx-player-card__photo{width:76px;height:76px;border-radius:50%;object-fit:cover;border:3px solid var(--yellow)}
.mx-player-card__initial{
  display:grid;place-items:center;width:76px;height:76px;border-radius:50%;
  background:#fdfbe0;border:3px solid var(--yellow);font-size:28px;font-weight:900;
}
.mx-player-card strong{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:900}
.mx-player-card strong img{width:15px;height:15px}
.mx-player-card small{font-size:11px;color:#888}
.mx-player-card .mx-pill{margin-top:8px}
.mx-players__hint{font-size:10.5px;color:#aaa;text-align:center;margin-top:18px}

/* ---------- MI AGENDA (entrenador) ---------- */
.mx-coachag__top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:4px}
.mx-coachag{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.mx-coachag.is-swap{animation:mxAg .45s cubic-bezier(.22,.9,.3,1)}
.mx-cgcard{border:1px solid #fff;border-radius:20px;background:#ffffffd9;box-shadow:0 4px 10px rgba(0,0,0,.1);padding:18px 18px 16px}
.mx-cgcard__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.mx-cgcard__head strong{font-size:16px;font-weight:900;margin-right:auto}
.mx-cgcard__when{display:flex;align-items:center;gap:6px;font-size:10px;color:#777}
.mx-cgcard__when img{width:14px;height:14px}
.mx-cgcard__player{
  display:flex;align-items:center;gap:13px;
  border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px 14px;margin-bottom:13px;
}
.mx-cgcard__player small{display:block;font-size:8.5px;font-weight:900;letter-spacing:.08em;color:#999}
.mx-cgcard__player strong{display:flex;align-items:center;gap:6px;font-size:14.5px;font-weight:900;margin:2px 0}
.mx-cgcard__player strong img{width:14px;height:14px}
.mx-cgcard__player em{font-style:normal;font-size:10.5px;color:#888}
.mx-cgcard__foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mx-cgcard__btns{display:flex;gap:8px}
.mx .mx-cgcard__pay{width:100%;justify-content:center;margin-top:12px}
.mx .mx-cgcard__pay.is-done{background:#1d8d3a;color:#fff}
.mx .mx-accion__pay.is-done,.mx .mx-cgcard__pay.is-done,.mx .mx-cobro__pay.is-done{background:#1d8d3a;color:#fff}

/* ---------- COBROS ---------- */
.mx-cobros__tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:26px}
.mx-cobro-tile{border-radius:18px;background:#fff;border:1px solid var(--line);padding:16px 18px;box-shadow:0 3px 8px rgba(0,0,0,.06)}
.mx-cobro-tile small{display:block;font-size:10px;color:#999}
.mx-cobro-tile strong{font-size:26px;font-weight:900}
.mx-cobro-tile.is-mid{background:var(--yellow);border-color:var(--yellow)}
.mx-cobro-tile.is-mid small{color:#6a660c}
.mx-cobro-tile.is-dark{background:var(--ink);border-color:var(--ink);color:#fff}
.mx-cobro-tile.is-dark small{color:#bbb}
.mx-cobros{display:flex;flex-direction:column;gap:10px}
.mx-cobro{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  border:1px solid var(--line);border-radius:16px;background:#fff;padding:13px 16px;
}
.mx-cobro__who{display:flex;align-items:center;gap:11px;flex:1;min-width:200px}
.mx-cobro__who .mx-mini{width:34px;height:34px;font-size:14px}
.mx-cobro__who strong{display:block;font-size:13.5px;font-weight:900}
.mx-cobro__who small{font-size:10.5px;color:#999}
.mx-cobro__amt{font-size:16px;font-weight:900;min-width:76px;text-align:right}
.mx .mx-cobro__pay{min-height:30px;font-size:11px;padding:5px 14px}

/* ---------- PERFIL ---------- */
.mx-perfilpro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:24px;align-items:start}
.mx-profields{display:flex;flex-direction:column;gap:14px}
.mx-profields label{display:flex;flex-direction:column;gap:6px}
.mx-profields small{font-size:9px;font-weight:900;letter-spacing:.08em;color:#999}
.mx-profields input{
  border:1px solid #dfe5ee;border-radius:10px;background:#eef2f8;
  padding:10px 13px;font-family:inherit;font-size:12.5px;color:var(--ink);
}
.mx-profields__chips{display:flex;gap:7px;flex-wrap:wrap}

@media(max-width:1200px){.mx-dash{grid-template-columns:1fr 1fr}.mx-miniagenda{grid-column:1/-1}}
@media(max-width:1000px){
  .mx-dash,.mx-coachag,.mx-perfilpro{grid-template-columns:1fr}
  .mx-cobros__tiles{grid-template-columns:1fr}
}
/* toast de la demo */
.mx-toast{
  position:fixed;left:50%;bottom:74px;transform:translateX(-50%) translateY(14px);
  z-index:70;background:var(--ink);color:#fff;border-radius:999px;
  padding:9px 18px;font-size:12px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.3);
  opacity:0;pointer-events:none;transition:opacity .3s,transform .3s;
}
.mx-toast.is-on{opacity:1;transform:translateX(-50%) translateY(0)}
body.is-embed .mx-toast{bottom:24px}

/* ---------- sidebar v2: logo ENCIMA del card (solapado) y bloque compacto ---------- */
.mx .mx-side{padding-top:4px}
.mx .mx-side__logo{
  /* -109px = mitad visible del PNG (contenido 38-209 de 250): el borde del card cruza el centro del logo */
  width:216px;margin:0 auto -109px;left:0;position:relative;z-index:2;
  filter:drop-shadow(0 8px 16px rgba(60,60,0,.22));
}
.mx .mx-side__card{padding:92px 18px 18px;gap:3px}
.mx .mx-side__item{padding:10px 15px}
.mx .mx-side__sep{margin:11px 10px}
/* invita: foto y QR anclados como el original */
.mx .mx-invite{margin-top:16px;padding:15px 13px 13px}
.mx .mx-invite__head{padding-right:92px;min-height:86px}
/* foto 94px: el PNG es 673x1000 → alto 139px; con top -42 el borde inferior queda a 97px, justo sobre el input del enlace */
.mx .mx-invite__photo{right:0;top:-42px;width:94px}
.mx .mx-invite__qr{right:70px;top:62px}

/* ---------- perfil full: stats, oferta, valoraciones ---------- */
.mx-prostats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;text-align:center}
.mx-prostats>div{background:#fafaf2;border:1px solid var(--line);border-radius:14px;padding:16px 8px}
.mx-prostats strong{display:block;font-size:24px;font-weight:900}
.mx-prostats small{display:block;font-size:10px;color:#888;margin-top:4px;text-transform:uppercase;letter-spacing:.04em}
.mx-prolist{list-style:none;margin:0;padding:0}
.mx-prolist li{display:flex;align-items:center;gap:10px;padding:11px 2px;border-bottom:1px solid var(--line);font-size:13px}
.mx-prolist li:last-child{border-bottom:0}
.mx-prolist li>span:first-child{flex:1;font-weight:700;min-width:0}
.mx-prolist li em{font-style:normal;font-weight:900;font-size:13.5px;white-space:nowrap}
.mx-review{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}
.mx-review:last-child{border-bottom:0}
.mx-review>div{flex:1;min-width:0}
.mx-review strong{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:900}
.mx-review__stars{color:#d9a400;font-size:12px;letter-spacing:1px}
.mx-review p{font-size:12.5px;margin:4px 0 3px;color:#4a4a42}
.mx-review small{font-size:10.5px;color:#999}

/* ---------- mensajes (clon de la real: lista blanca + hilo flotante) ---------- */
.mx-surface--msgs{position:relative;min-height:720px}
.mx-msgs{display:grid;grid-template-columns:340px minmax(0,1fr);gap:26px;align-items:start;flex:1}
.mx-msgs__list{background:#fff;border:1px solid var(--line);border-radius:22px;padding:12px;box-shadow:0 4px 10px rgba(0,0,0,.06)}
.mx-msgs__tools{display:flex;justify-content:flex-end;gap:10px;padding:4px 4px 10px}
.mx .mx-msgs__tool{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:19px;font-weight:700}
.mx .mx-msgs__tool img{width:16px;height:16px}
.mx .mx-msgs__tool--y{background:var(--yellow)}
.mx .mx-convo{display:flex;align-items:flex-start;gap:11px;width:100%;padding:12px 10px;border-top:1px solid #eee;text-align:left;position:relative;cursor:pointer}
.mx .mx-convo:hover{background:#fafaf0}
.mx .mx-convo.is-on{background:#fbf9e2}
.mx-convo>span{flex:1;min-width:0}
.mx-convo strong{display:block;font-size:13px;font-weight:900}
.mx-convo small{display:block;font-size:10.5px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.mx-convo time{font-size:9.5px;color:#aaa;margin-top:3px}
.mx-convo__badge{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;min-width:17px;height:17px;border-radius:9px;background:#e03131;color:#fff;font-style:normal;font-size:9.5px;font-weight:900;padding:0 5px}
.mx-msgs__thread{display:flex;flex-direction:column;min-width:0;min-height:600px}
.mx-msgs__scroll{flex:1;display:flex;flex-direction:column;overflow-y:auto;padding:4px 8px 18px}
.mx-thread{display:none;flex-direction:column;gap:16px}
.mx-thread.is-on{display:flex}
.mx-cmsg{display:flex;gap:10px;max-width:70%;align-self:flex-start}
.mx-cmsg--me{align-self:flex-end}
.mx-cmsg>div{min-width:0}
.mx-cmsg small{display:block;font-size:10.5px;font-weight:700;color:#777;margin-bottom:4px}
.mx-cmsg__bub{display:inline-block;background:#fff;border-radius:10px;padding:8px 12px;font-size:12.5px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.mx-cmsg--me .mx-cmsg__bub{background:var(--yellow);box-shadow:0 2px 6px rgba(120,110,0,.18)}
.mx-cmsg time{display:block;font-size:9px;color:#999;margin-top:4px}
.mx-cmsg--me time{text-align:right}
.mx-msgs__bar{display:flex;align-items:center;gap:8px;background:#fff;border-radius:999px;box-shadow:0 6px 18px rgba(0,0,0,.12);padding:8px 10px 8px 16px;margin:0 8px}
.mx .mx-msgs__icon{display:grid;place-items:center;width:30px;height:30px;color:#9a9a8a}
.mx .mx-msgs__icon svg{width:19px;height:19px}
.mx-msgs__bar input{flex:1;border:0;font:inherit;font-size:13px;background:transparent;min-width:0}
.mx-msgs__bar input:focus{outline:none}
.mx .mx-msgs__send{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--yellow)}
.mx .mx-msgs__send img{width:15px;height:15px}

/* ---------- servicios (clon de la real) ---------- */
.mx-svgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px 40px;align-items:start}
.mx-svcol{display:flex;flex-direction:column;gap:18px}
.mx-svhead{display:flex;align-items:baseline;justify-content:space-between;margin-top:10px}
.mx-svhead strong{font-size:14px;font-weight:900}
.mx-svhead small{font-size:9px;letter-spacing:.08em;color:#999;font-weight:900}
.mx-svcard{position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px 22px;box-shadow:0 3px 8px rgba(0,0,0,.07)}
.mx-svcard--y{background:var(--yellow);border-color:#d9d414}
.mx-svcard__meta{position:absolute;right:18px;top:16px;display:inline-flex;align-items:center;gap:6px;background:var(--yellow);border-radius:999px;padding:4px 11px;font-size:10px;font-weight:900}
.mx-svcard--y .mx-svcard__meta{background:#fff}
.mx-svcard__meta img{width:12px;height:12px}
.mx-svcard__photo{position:absolute;right:18px;top:46px;width:86px;height:104px;object-fit:cover;border-radius:12px}
.mx-svcard h3{font-size:19px;font-weight:900;padding-right:120px}
.mx-svcard p{font-size:11.5px;color:#666;margin-top:8px;padding-right:120px;line-height:1.5}
.mx-svcard--y p{color:#3c3c10}
.mx-svcard__note{display:inline-block;margin-top:9px;background:#f1f1ea;border-radius:6px;padding:3px 8px;font-size:9px;color:#888}
.mx-svcard--y .mx-svcard__note{background:#ffffff8a;color:#55521a}
.mx-svcard__chips{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.mx-svcard__chips em{display:inline-flex;align-items:center;gap:6px;font-style:normal;font-size:10.5px;font-weight:900;background:#f6f6ec;border-radius:999px;padding:5px 11px}
.mx-svcard--y .mx-svcard__chips em{background:#ffffffb0}
.mx-svcard__chips em img{width:13px;height:13px}
.mx-svcard__foot{display:flex;align-items:center;gap:9px;margin-top:16px}
.mx-svcard__foot .mx-pill{min-height:38px;font-size:12px}
.mx-svcard--y .mx-svcard__foot .mx-pill{background:#fff}
.mx .mx-circle--red{background:#e03131}
.mx .mx-circle--red img{filter:brightness(0) invert(1)}
.mx-svcard__price{margin-left:auto;text-align:right}
.mx-svcard__price small{display:block;font-size:9.5px;color:#999}
.mx-svcard--y .mx-svcard__price small{color:#55521a}
.mx-svcard__price strong{font-size:26px;font-weight:900}
.mx-svadd{display:flex;justify-content:flex-end;margin-top:18px}
.mx .mx-pill--dark{background:var(--ink);color:#fff}
.mx .mx-pill--dark img{filter:brightness(0) invert(1)}
.mx .mx-pill--sm{min-height:30px;font-size:10.5px;padding:4px 13px}

/* ---------- analítica (clon de la real) ---------- */
.mx-anatabs.mx-subtabs{justify-content:flex-start}
.mx-anagrid{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:34px;align-items:start}
.mx-anagrid>div{display:flex;flex-direction:column;gap:16px}
.mx-ana__sub{display:block;font-size:9px;color:#999;margin-top:-6px;margin-bottom:6px}
.mx-anahead{display:flex;align-items:center;justify-content:space-between}
.mx-anahead>span:first-child{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:900}
.mx-anahead i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ink)}
.mx-anahead i img{width:15px;height:15px;filter:brightness(0) invert(1)}
.mx-mov{position:relative;background:#ffffffd9;border:1px solid var(--line);border-radius:18px;padding:30px 18px 14px;box-shadow:0 2px 6px rgba(0,0,0,.05)}
.mx-mov>.mx-chip{position:absolute;left:14px;top:10px;font-size:8.5px}
.mx-mov>time{position:absolute;right:16px;top:12px;font-size:9px;color:#999}
.mx-mov__row{display:flex;align-items:center;gap:13px}
.mx-mov__row>div{flex:1;min-width:0}
.mx-mov__row small{display:block;font-size:11px;color:#888}
.mx-mov__row strong{display:block;font-size:14.5px;font-weight:900}
.mx-mov__row em{display:block;font-style:normal;font-size:10.5px;color:#999;margin-top:2px}
.mx-mov__amt{font-size:21px;font-weight:900;white-space:nowrap}
.mx-anapend{background:var(--yellow);border-radius:20px;padding:16px;box-shadow:0 4px 10px rgba(60,60,0,.2)}
.mx-anapend h4{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:900;margin-bottom:12px}
.mx-anapend h4 i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ink)}
.mx-anapend h4 i img{width:14px;height:14px;filter:brightness(0) invert(1)}
.mx-cfg{display:flex;flex-direction:column;gap:10px}
.mx-cfgrow{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:999px;padding:10px 16px;font-size:12px;font-weight:700}
.mx-cfgrow img{width:15px;height:15px}
.mx-cfgrow em{margin-left:auto;font-style:normal;font-size:11px;color:#999;font-weight:400}
.mx-anaexp{margin-top:14px;width:100%;justify-content:center}
.mx-stats{display:grid;grid-template-columns:1fr 1fr;gap:26px 40px;align-content:start;padding-top:8px}
.mx-stats>div{border-left:1px solid #d9d9ce;padding-left:16px}
.mx-stats small{display:block;font-size:9px;letter-spacing:.06em;color:#999;font-weight:900}
.mx-stats strong{display:block;font-size:23px;font-weight:900;margin-top:6px}
.mx-stats__who{display:flex;align-items:center;gap:9px;font-size:15px!important}


/* anatabs reales: pills sueltas, inactiva gris, activa tinta */
.mx-subtabs.mx-anatabs{background:transparent;padding:0;gap:9px;width:auto;margin:0 auto}
.mx-subtabs.mx-anatabs button{flex:0 0 auto;min-width:0;background:#d7d7cc;color:#4a4a42;font-size:11.5px;font-weight:900;min-height:30px;padding:6px 16px}
.mx-subtabs.mx-anatabs button[aria-selected="true"]{background:var(--ink);color:#fff}
/* pills blancas en las cards de servicios (como la real) */
.mx-svcard .mx-pill{background:#fff;border:1px solid var(--line);color:var(--ink)}
.mx-svcard .mx-pill img{filter:none}

/* ---------- repaso profesional (fix overlaps + fidelidad real) ---------- */
/* servicios: el precio ya no queda detrás de la foto (foot baja del todo) */
.mx-svcard{display:flex;flex-direction:column;min-height:220px}
.mx-svcard__foot{margin-top:auto;padding-top:14px}
/* analítica */
.mx-anagrid>.mx-stats{display:grid}
.mx-subtabs.mx-anatabs{margin:0;justify-content:flex-start}
.mx-finbars span.on--y{background:var(--yellow)}
.mx-cfgrow img{filter:brightness(0);opacity:.8}
.mx-cfgrow em::after{content:" ▾";font-size:10px;color:#c2c2b5}
.mx-stats__who .mx-mini{width:30px;height:30px}
.mx-mov__row small{font-size:11.5px}
.mx-mov__row strong{font-size:15.5px}
.mx-mov__amt{font-size:22px}
.mx-ana__go{position:absolute;right:16px;top:16px}
.mx-card{position:relative}
/* mensajes */
.mx .mx-msgs__tool img{filter:brightness(0);opacity:.75}
.mx-msgs__bar{margin-left:auto;width:min(640px,100%)}

/* modo mini (dentro de los móviles de "La plataforma"): solo la pantalla, sin sidebar */
body.is-mini .mx-side{display:none}
body.is-mini .mx-shell{grid-template-columns:1fr;padding:14px 14px 40px}
body.is-mini .mx-bg__lobe{height:150px}
