@font-face{font-family:"Outfit";src:url(/fonts/outfit-var.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{
  --bg:#09090c;--bg-deep:#07070a;--surface:#14141c;--surface-2:#1c1c26;--line:#2a2a36;--ring:0 0 0 1px #ffffff14;
  --fg:#f4f4f6;--muted:#a1a1b0;--orange:#ff8a00;--link:#9eb0ff;--primary:#3b5bdb;--red:#E5383B;--blue:#4EA8DE;--magenta:#E07BC4;--teal:#3CC9B8;--ok:#3dd68c;--warn:#f5c451;
  --r:16px;--tap:44px;
  font-family:"Outfit",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg-deep);color:var(--fg);font-size:16px;line-height:1.5}
a{color:var(--link)}
img{max-width:100%}
h1,h2,h3{line-height:1.2;margin:0 0 .5rem;font-weight:700;letter-spacing:-.2px}
h1{font-size:1.65rem;font-weight:800}h2{font-size:1.2rem}h3{font-size:1.05rem}
p{margin:0 0 .75rem}
.muted{color:var(--muted)}
.small{font-size:.875rem}
.skip{position:absolute;left:-999px;top:0;background:var(--orange);color:#1b1206;padding:.5rem 1rem;z-index:100}
.skip:focus{left:8px}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Shell */
.shell{max-width:480px;margin:0 auto;min-height:100dvh;background:var(--bg);display:flex;flex-direction:column;border-inline:1px solid var(--line)}
.static-intro{max-width:480px;margin:0 auto;min-height:100dvh;background:var(--bg)}
@media (min-width:960px){.shell.wide{max-width:960px}}
.bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:.25rem;padding:calc(env(safe-area-inset-top) + .4rem) .5rem .4rem;background:rgba(9,9,12,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(6px)}
.brand{display:flex;align-items:center;gap:.6rem;min-width:0;flex:1;color:var(--fg);text-decoration:none}
.brand img{width:36px;height:36px;border-radius:9px;flex:none}
.brand-txt{display:flex;flex-direction:column;line-height:1.05;min-width:0}
.brand-name{font-weight:800;font-size:1.15rem;letter-spacing:-.2px;text-transform:uppercase;white-space:nowrap;line-height:1.1}.brand-name{color:#8b7cf6;background:linear-gradient(90deg,#5b7bf0 0%,#7c6cf2 45%,#d946ef 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.brand-sub{font-size:.74rem;font-weight:700;color:var(--orange);letter-spacing:1.4px;text-transform:uppercase}
.icon-btn{width:var(--tap);height:var(--tap);display:grid;place-items:center;border:0;background:transparent;color:var(--fg);border-radius:50%;cursor:pointer;flex:none}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn svg,.btn svg,.nav svg{width:22px;height:22px}
.layout{flex:1;display:flex;min-height:0}
.page{flex:1;min-width:0;padding:1rem 1rem 1.5rem}
.side{display:none}
@media (min-width:960px){.wide .side{display:block;width:316px;padding:1rem 1rem 1rem 0;flex:none}.wide .side .ad{position:sticky;top:76px}}

/* Bottom nav */
.nav{position:sticky;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(6,1fr);background:var(--bg);border-top:1px solid var(--line);padding-bottom:max(.2rem,env(safe-area-inset-bottom))}
.nav button{min-height:56px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.72rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;position:relative}
.nav button[aria-current=page]{color:var(--orange);font-weight:600}
.nav .dot{position:absolute;top:8px;right:22%;width:8px;height:8px;border-radius:50%;background:var(--red)}

/* Buttons */
.btn{min-height:var(--tap);display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:0 1.1rem;border-radius:999px;border:2px solid transparent;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;color:var(--fg);background:var(--surface-2)}
.btn-primary{background:var(--orange);color:#111}
.btn-blue{background:var(--primary);color:#fff}
.btn-red{background:var(--red);color:#fff}
.btn-outline{background:transparent;border-color:var(--fg);color:var(--fg)}
.btn-ghost{background:transparent;color:var(--muted)}
.btn-block{width:100%}
.btn-sm{min-height:36px;padding:0 .8rem;font-size:.875rem}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.link{background:none;border:0;color:var(--link);font:inherit;font-weight:600;cursor:pointer;padding:.6rem 0;min-height:var(--tap);text-decoration:underline}
.row{display:flex;gap:.5rem;align-items:center}
.wrap{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.stack{display:grid;gap:.75rem}
.between{justify-content:space-between}

/* Cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1rem;margin-bottom:1rem}
.card h2,.card h3{margin-bottom:.4rem}
.notice{background:var(--surface-2);border-left:4px solid var(--orange);border-radius:12px;padding:.8rem 1rem;margin-bottom:1rem}
.alert{display:block;width:100%;text-align:left;background:var(--orange);color:#1b1206;border:0;border-radius:var(--r);padding:.8rem 1rem;font:inherit;cursor:pointer;margin-bottom:1rem}
.empty{color:var(--muted);padding:.5rem 0}

/* Forms */
label.f{display:block;margin-bottom:.9rem}
label.f>span,.flabel{display:block;font-size:.9rem;font-weight:600;color:var(--muted);margin-bottom:.35rem}
.req{color:var(--orange)}
input,select,textarea{width:100%;min-height:var(--tap);border-radius:12px;border:1px solid var(--line);background:var(--bg-deep);color:var(--fg);font:inherit;font-size:16px;padding:.55rem .8rem}
textarea{min-height:90px;resize:vertical}
input::placeholder,textarea::placeholder{color:#8C8C99;opacity:1}
input[type=checkbox]{width:22px;height:22px;min-height:0;accent-color:var(--orange)}
input[type=file]{padding:.5rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:.25rem 0 .9rem}
.chip{min-height:40px;padding:0 .9rem;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--fg);font:inherit;font-size:.9rem;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem}
.chip[aria-pressed=true]{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:600}
.chip.helper{background:transparent;border-style:dashed;color:var(--blue);min-height:36px;font-size:.85rem}
.chip .ck{display:none}.chip[aria-pressed=true] .ck{display:inline}
.pw{position:relative}.pw input{padding-right:3.2rem}.pw .icon-btn{position:absolute;right:0;top:0}
.err{color:#FFB4A8;font-weight:600;margin:.5rem 0}
.switch{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--bg-deep);border:1px solid var(--line);border-radius:12px;padding:.7rem .9rem;margin-bottom:.9rem}
.sub{background:var(--bg-deep);border:1px solid var(--line);border-radius:14px;padding:.9rem;margin-bottom:.9rem}
fieldset{border:0;padding:0;margin:0 0 .9rem}
legend{font-size:.9rem;font-weight:600;color:var(--muted);margin-bottom:.35rem;padding:0}

/* Segmented */
.seg{display:flex;background:var(--surface-2);border-radius:999px;padding:4px;margin-bottom:1rem}
.seg button{flex:1;min-height:40px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-weight:600;cursor:pointer}
.seg button[aria-pressed=true]{background:var(--primary);color:#fff}

/* Calendar */
.cal{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-bottom:1rem}
.cal-head{display:flex;align-items:center;justify-content:space-between;padding:.4rem;border-bottom:1px solid var(--line)}
.cal-head h2{margin:0;font-size:1.05rem}.cal-head h2::first-letter,.cap::first-letter{text-transform:uppercase}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}
.cal-dow{font-size:.75rem;font-weight:700;color:var(--muted);text-align:center;padding:.4rem 0;text-transform:uppercase;background:var(--bg)}
.cal-day{min-height:52px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent;color:var(--fg);font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;padding:4px 0}
.cal-day:nth-child(7n){border-right:0}
.cal-day.out{color:#8696AD;background:rgba(0,0,0,.15)}
.cal-day .n{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-size:.9rem}
.cal-day.today .n{background:var(--orange);color:#1b1206;font-weight:700}
.cal-day[aria-pressed=true]{background:rgba(78,168,222,.25)}
.dots{display:flex;gap:3px;margin-top:2px;height:7px}
.dots i{width:7px;height:7px;border-radius:50%;display:block}
.k-ensayo{background:var(--blue)}.k-presentacion{background:var(--magenta)}.k-grabacion{background:var(--red)}.k-viaje{background:var(--teal)}
.tag{display:inline-flex;align-items:center;border-radius:999px;padding:.1rem .6rem;font-size:.78rem;font-weight:700;color:#06172b}
.tag.k-grabacion{color:#fff}

/* Lists */
.list{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.item{display:flex;gap:.75rem;align-items:flex-start;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:.8rem;color:var(--fg);font:inherit;cursor:pointer}
.item .when{font-weight:700;color:var(--orange);font-variant-numeric:tabular-nums;min-width:4.2rem}
.item .t{font-weight:600}
.item .s{font-size:.875rem;color:var(--muted)}
.avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:none;display:grid;place-items:center;background:var(--primary);color:#fff;font-weight:700}
.avatar.lg{width:72px;height:72px;font-size:1.3rem}
.members{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}
.member{display:flex;flex-direction:column;align-items:center;text-align:center;background:none;border:0;color:var(--fg);font:inherit;cursor:pointer;padding:.25rem;border-radius:12px;min-height:var(--tap)}
.member .nm{font-weight:600;font-size:.9rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member .rl{font-size:.8rem;color:var(--muted)}
.st{position:relative}.st::after{content:"";position:absolute;right:0;bottom:2px;width:12px;height:12px;border-radius:50%;border:2px solid var(--bg);background:var(--sc,transparent)}
.dcard{max-width:220px;margin:0 auto 1rem;background:linear-gradient(135deg,#F4EBD9,#E8D8B8);padding:6px;border-radius:22px;text-align:center}
.dcard img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:16px;display:block}
.dcard p{color:#1B2B44;font-weight:700;margin:.4rem 0 .2rem}
.msg{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:.8rem;margin-bottom:.6rem}
.msg header{display:flex;gap:.5rem;align-items:center;margin-bottom:.4rem}
.msg .avatar{width:34px;height:34px;font-size:.8rem}
.pre{white-space:pre-wrap}

/* Sheet / modal */
.overlay{position:fixed;inset:0;z-index:50;background:rgba(4,12,24,.75);display:flex;align-items:flex-end;justify-content:center}
.sheet{width:100%;max-width:480px;max-height:94dvh;background:var(--surface);border-radius:22px 22px 0 0;display:flex;flex-direction:column;border:1px solid var(--line)}
@media (min-width:700px){.overlay{align-items:center}.sheet{border-radius:22px;max-width:560px}}
.sheet-head{display:flex;align-items:center;gap:.5rem;padding:.5rem .6rem;border-bottom:1px solid var(--line)}
.sheet-head h2{margin:0;flex:1;font-size:1.1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet-body{overflow:auto;padding:1rem;overscroll-behavior:contain}
.sheet-foot{padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.clock-big{position:fixed;inset:0;z-index:70;background:var(--bg-deep);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1.5rem}
.clock{font-size:3rem;font-weight:700;color:var(--orange);font-variant-numeric:tabular-nums}
.clock-big .clock{font-size:clamp(3.5rem,18vw,7rem)}
.inout{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:1rem;width:100%;max-width:420px}
.inout div{background:var(--bg);border-radius:14px;padding:.8rem}
.inout b{display:block;font-size:clamp(1.25rem,6vw,1.8rem);white-space:nowrap;font-variant-numeric:tabular-nums}
.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%);z-index:90;background:var(--fg);color:#111;font-weight:600;padding:.6rem 1.1rem;border-radius:999px;max-width:min(92vw,420px);text-align:center;box-shadow:0 6px 24px rgba(0,0,0,.4)}
.install{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--surface);border-top:1px solid var(--line)}

/* Ads */
.ad{margin:1.25rem 0 .5rem;background:rgba(255,255,255,.03);border:1px dashed var(--line);border-radius:12px;padding:.4rem;text-align:center;overflow:hidden}
.ad-label{display:block;font-size:.72rem;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:.25rem}
.ad-banner{min-height:120px}
.ad-infeed{min-height:140px}
.ad-sidebar{width:300px;min-height:280px}
.ad ins{display:block}
.ad-preview{display:grid;place-items:center;color:#8696AD;font-size:.85rem;min-height:90px}
.ad-sidebar .ad-preview{height:250px}

/* Auth */
.auth{padding:1.5rem 1.25rem 2rem}
.auth h1{font-size:2.2rem;font-weight:800;letter-spacing:-.5px}
.credit{text-align:center;font-size:.85rem;color:var(--muted);padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.credit b{color:var(--fg);font-weight:600}
.doc .page h2{margin-top:1.5rem}
.doc .page li{margin-bottom:.4rem}
table{width:100%;border-collapse:collapse}
@media (prefers-reduced-motion:no-preference){.sheet{animation:up .18s ease-out}@keyframes up{from{transform:translateY(24px);opacity:.6}}}
.chip:has(input:checked){background:var(--primary);color:#fff;border-color:var(--primary);font-weight:600}
.chip input[type=checkbox],.chip input[type=radio]{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--orange)}
[data-show]{display:none}[data-show].on{display:block}
.small svg,svg.small{width:16px;height:16px;vertical-align:-3px}
/*RM-LEGAL-CSS*/
.legal-foot p{margin:.35rem 0 0}
.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.1rem .25rem;margin-bottom:.35rem}
.legal-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 .45rem;color:var(--fg);text-decoration:underline;text-underline-offset:3px;font-size:.85rem}
.legal-links a[aria-current=page]{color:var(--orange);text-decoration:none;font-weight:600}
.legal-list{list-style:none;padding:0;margin:.25rem 0 .5rem}
.legal-list li{border-bottom:1px solid var(--line)}
.legal-list a{display:flex;align-items:center;min-height:44px;color:var(--fg);text-decoration:none}
.legal-list a::after{content:"›";margin-left:auto;color:var(--muted);font-size:1.2rem}
.back-link{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.consent{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(72px + env(safe-area-inset-bottom));z-index:60;width:min(460px,calc(100% - 16px));background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:.75rem .85rem;box-shadow:0 8px 28px rgba(0,0,0,.45);font-size:.88rem}
.consent p{margin:0 0 .55rem;color:var(--fg)}
.consent a{color:var(--link)}
.consent-btns{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.consent-btns .btn{min-height:44px;width:100%}
.code-status{margin:.1rem 0 .55rem;min-height:1.3em}
.code-status.ok{color:var(--ok)}
.code-status.bad{color:var(--warn)}
.code-status .chip{margin-left:.35rem;vertical-align:middle}
.about-hero{text-align:center;margin:.5rem 0 1rem}
.about-hero img{border-radius:22px;width:96px;height:96px}
.about-credit{margin:1rem 0}
.about-credit p{margin:.2rem 0}
.doc .page h3{margin-top:1.1rem}
.doc .notice{margin:1rem 0}

[tabindex="-1"]:focus{outline:none}
body:has(input:focus,textarea:focus,select:focus) .consent{display:none}

/* RM-R2: fecha dd/mm/aaaa + hora 12 h, reloj, director, menú ⋯ */
.dt{border:0;padding:0;margin:0 0 1rem;min-width:0}
.dt legend{font-size:.9rem;font-weight:600;color:var(--muted);margin-bottom:.35rem;padding:0}
.dt-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.dp{position:relative;display:flex;flex:1 1 170px;min-width:0}
.dp input[type=text]{flex:1;min-width:0;padding-right:3rem;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.dp input[aria-invalid=true]{border-color:var(--red)}
.dp-btn{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--fg);cursor:pointer;border-radius:10px}
.dp-btn svg{width:22px;height:22px}
.dp-native{position:absolute;right:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.tp{display:inline-flex;align-items:center;gap:.25rem;flex:0 0 auto}
.tp select{width:auto;min-width:4.1rem;padding-left:.6rem;padding-right:1.6rem;font-variant-numeric:tabular-nums}
.tp select[data-part=p]{min-width:5.2rem}
.tp-sep{font-weight:700;color:var(--muted)}
.clock{white-space:nowrap;font-size:clamp(2rem,11vw,3rem);line-height:1.1}
.clock-big .clock{font-size:clamp(2.6rem,16vw,7rem)}
.clock .clk-p{font-size:.38em;margin-left:.18em;font-weight:600;letter-spacing:.5px}
.avatar.xl{width:64px;height:64px;font-size:1.25rem}
.dir-row{margin-bottom:1rem;gap:.9rem;align-items:center}
.more-btn{min-width:56px;font-size:1.5rem;line-height:1;padding:0 .9rem}
.more-menu{display:grid;gap:.5rem;margin-bottom:.6rem}
.btn-danger{background:transparent;color:#FF8587;border:1.5px solid #FF8587}
.btn-danger:hover,.btn-danger:focus-visible{background:rgba(229,56,59,.15)}

/* RM-R3: código del grupo, reloj flotante */
.codecard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:.8rem 1rem;margin:.5rem 0 1rem}
.codecard.fresh{border-color:#E9C46A;box-shadow:0 0 0 1px #E9C46A inset}
.code-big{font-size:1.6rem;font-weight:700;letter-spacing:3px;margin:.15rem 0 .5rem;font-variant-numeric:tabular-nums;word-break:break-all}
.btn-wa{background:#25D366;color:#06281a}
.forgot-hint{margin-top:1rem}
.fclock{position:fixed;left:0;top:0;z-index:60;display:flex;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform}
.fclock[hidden]{display:none}
.fclock.anim{transition:transform .22s ease-out}
.fclock.dim{opacity:.4;pointer-events:none}
.fc-main{min-width:132px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:.3rem .95rem;border-radius:999px;background:var(--surface);border:2px solid #E9C46A;color:var(--fg);font:inherit;cursor:grab;box-shadow:0 6px 18px rgba(0,0,0,.45)}
.fclock.drag .fc-main{cursor:grabbing;box-shadow:0 10px 26px rgba(0,0,0,.6)}
.fc-time{color:#F28C28;font-weight:700;font-size:1.02rem;line-height:1.1;white-space:nowrap;font-variant-numeric:tabular-nums}
.fc-sub{font-size:.72rem;line-height:1.15;white-space:nowrap;color:#F4EBD9}
.fc-x{position:absolute;top:-14px;right:-14px;width:44px;height:44px;border:0;background:transparent;padding:0;cursor:pointer;display:grid;place-items:center}
.fc-x span{width:24px;height:24px;border-radius:50%;background:#F4EBD9;color:#0B1F3A;font-size:18px;line-height:22px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.fc-main:focus-visible,.fc-x:focus-visible{outline:3px solid #4EA8DE;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.fclock.anim{transition:none}}
.fclock.dim{opacity:.92;pointer-events:none}
.fclock.dim .fc-x{display:none}
.fclock.dim .fc-main{box-shadow:none;min-height:40px}
body.has-float .sheet-head h2{padding-right:150px}

/* RM-R4: tipografía Outfit, acentos naranja, director de ejemplo */
.card h2 svg,.notice svg,.alert svg{color:var(--orange)}
.bar .icon-btn[data-a=tab],.bar .home-btn{color:var(--orange)}
.dcard-ex{position:relative;max-width:240px;margin:0 auto 1rem;background:#F4EBD9;padding:7px;border-radius:24px;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.dcard-ex img{display:block;width:100%;height:auto;aspect-ratio:480/713;object-fit:cover;border-radius:18px}
.dcard-ex .cap{display:block;background:#0E4A52;color:#F4EBD9;font-weight:700;margin:-2.4rem 6px 0;position:relative;padding:.55rem .5rem;border-radius:0 0 14px 14px}
.dcard-ex .tag-ex{position:absolute;top:14px;left:14px;background:#0B1F3A;color:#F4EBD9;border:1px solid #E9C46A;font-size:.72rem;font-weight:700;padding:.15rem .55rem;border-radius:999px;letter-spacing:.5px}
.dcard-ex + .ex-actions{display:flex;justify-content:center;margin:-.25rem 0 1rem}

/* RM-R5: estilo del original (fondo casi negro, tarjetas redondeadas, círculo de la banda) */
.card{border-radius:20px;border-color:#24242D}
.card h2{font-size:1.05rem;font-weight:700}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.6rem}
.card-head h2{margin:0;display:flex;align-items:center;gap:.5rem}
.card-head .link{font-size:.95rem;padding:.4rem 0;text-decoration:none;color:var(--link)}
.members{grid-template-columns:repeat(3,1fr);gap:1rem .5rem}
.member{gap:.15rem;padding:.25rem 0}
.member .avatar.lg{width:76px;height:76px;font-size:1.5rem;border:2px solid #2E2E38}
.member .st::after{width:16px;height:16px;right:4px;bottom:2px;border:3px solid var(--surface)}
.member .nm{font-size:.98rem;font-weight:700;display:inline-flex;align-items:center;gap:.3rem;margin-top:.35rem}
.member .nm svg{width:14px;height:14px;color:var(--muted);flex:none}
.member .rl{font-size:.85rem}
.member .inst{color:var(--muted);margin-top:.1rem}.member .inst svg{width:18px;height:18px}
.choir li .item{background:transparent;border:0;padding:.45rem 0;align-items:center}
.choir .avatar{width:52px;height:52px;background:var(--primary);color:#fff;font-size:1.05rem}
.choir .t{font-size:1.05rem;font-weight:700;display:inline-flex;align-items:center;gap:.3rem}.choir .t svg{width:14px;height:14px;color:var(--muted)}
.icon-purple{color:#B794F6}
.segbtn{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;margin:.6rem 0}
.segbtn label{min-height:48px;display:grid;place-items:center;border-radius:999px;background:var(--bg-deep);color:var(--muted);font-weight:600;cursor:pointer;border:1px solid transparent}
.segbtn input{position:absolute;opacity:0;width:1px;height:1px}
.segbtn label:has(input:checked){background:var(--primary);color:#fff}
.segbtn label:has(input:focus-visible){outline:3px solid var(--link);outline-offset:2px}
.idea-row{display:flex;gap:.5rem}.idea-row input{flex:1;border-radius:999px;padding-left:1rem}
.nav{background:var(--bg)}
.nav button svg{width:24px;height:24px}

/* RM-R6: tokens exactos del original (Tailwind compilado) */
.card,.cal,.codecard{border:0;border-radius:24px;background:var(--surface);box-shadow:var(--ring)}
.item,.msg{border:0;border-radius:16px;box-shadow:var(--ring)}
.sub,.switch{background:var(--bg);border:0;border-radius:16px}
input,select,textarea{background:var(--bg);border:1px solid var(--line);border-radius:12px;min-height:44px}
.btn{min-height:48px;border-radius:999px;font-weight:600}
.btn-sm{min-height:44px}
.btn:not(.btn-primary):not(.btn-blue):not(.btn-outline):not(.btn-ghost):not(.btn-danger):not(.btn-wa):not(.btn-red){background:var(--surface-2);color:var(--fg)}
.btn-primary{background:var(--orange);color:#09090c}
.btn-blue{background:var(--primary);color:var(--fg)}
.sheet{background:var(--surface);border:0;border-radius:24px 24px 0 0;box-shadow:var(--ring)}
.toast{background:var(--fg);color:var(--bg);border-radius:999px;font-weight:500}
.nav{border-top:1px solid var(--line)}
.nav button{min-height:3.25rem;font-size:.72rem;font-weight:500;gap:2px}
.nav button[aria-current=page]{color:var(--orange);font-weight:600}
.bar{border-bottom:1px solid var(--line)}
.brand img{border-radius:12px}
label.f>span,.flabel{font-weight:500;font-size:.875rem;color:var(--muted)}
.overlay{background:rgba(9,9,12,.75)}

/* RM-R7: header, grupos, hojas como el original */
.home-btn{color:var(--orange)}
.icon-btn.round{background:var(--surface-2)}
.groups-strip{text-align:center;padding:.25rem 0 1rem;margin:0 -1rem 1rem;border-bottom:1px solid var(--line)}
.groups-strip.compact{text-align:left;border:0;margin:0 0 .75rem;padding:0}
.groups-strip .chips{justify-content:center}.groups-strip.compact .chips{justify-content:flex-start}
.gs-label{color:var(--muted);font-size:.9rem;margin:0 0 .5rem}
.chip{min-height:44px;background:var(--surface-2);border:0;font-weight:500}
.gchip[aria-pressed=true]{background:var(--orange);color:#09090c;border-color:var(--orange);font-weight:700}
.groups-strip .codecard{text-align:left;margin:.75rem 1rem 0}
.sheet-head{padding:.6rem .75rem;gap:.6rem}
.sheet-head .home-pill{min-height:44px;padding:0 .9rem;gap:.35rem}
.sheet-head .home-pill svg{width:18px;height:18px}
.seg{background:var(--surface-2);padding:5px}
.seg button{min-height:44px;font-weight:600;border-radius:999px}
.bar .brand{min-width:0;flex:1 1 auto;gap:.5rem}
.bar .brand-txt{min-width:0;overflow:hidden;display:flex;flex-direction:column}
.bar .brand-name{overflow:hidden;text-overflow:ellipsis;display:block}
.bar .brand img{width:36px;height:36px;flex:none}

/* ===== RM-CLOUD: estado de sincronización, personas del grupo ===== */
.sync{display:flex;align-items:center;gap:.45rem;max-width:72rem;margin:.35rem auto 0;padding:.3rem .8rem;width:fit-content;border-radius:999px;background:var(--surface);box-shadow:var(--ring);font-size:.8125rem;font-weight:600;color:var(--fg);min-height:28px}
.sync i{width:.55rem;height:.55rem;border-radius:50%;background:var(--ok);flex:none}
.sync[data-k="off"]{background:#2a2410;color:#ffe3a3}
.sync[data-k="off"] i{background:var(--warn)}
.sync[data-k="busy"] i{background:var(--link);animation:rmPulse 1s ease-in-out infinite}
.sync[data-k="host"]{background:#1d1a33;color:#d9d3ff}
.sync[data-k="host"] i{background:#a78bfa}
@keyframes rmPulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.sync i{animation:none!important}}
.parts li.part{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:.5rem 0;border-bottom:1px solid var(--line)}
.parts li.part:last-child{border-bottom:0}
.role-sel{min-height:44px;width:auto;padding:.4rem .6rem}
.notice.migrate{border-color:var(--orange)}
button[aria-busy="true"]{opacity:.7;cursor:progress}
.parts li.part .grow{min-width:9rem;flex:1 1 9rem}
.parts li.part .role-sel{flex:1 1 9rem;max-width:12rem}
/* páginas legales v2: recuadros del texto del Lic. Javier */
.doc .nota{background:var(--surface-2);border-left:3px solid var(--orange);padding:.7rem 1rem;border-radius:12px}
.doc .pend{background:#2a1d10;border:1px dashed var(--orange);padding:.7rem 1rem;border-radius:12px;color:#ffe3c2}
/* selector de idioma ES/EN (v2.3.0) */
.lang-sw{display:inline-flex;gap:2px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:3px;flex:none}
.lang-sw button{min-width:40px;min-height:32px;padding:0 .55rem;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:.8rem;font-weight:700;letter-spacing:.5px;cursor:pointer}
.lang-sw button[aria-pressed=true]{background:var(--primary);color:#fff}
.lang-sw button:hover{color:var(--fg)}
.lang-sw.lang-bar{margin-left:auto}
.lang-sw.lang-foot{margin:0 auto .75rem;display:flex;width:max-content}
.lang-sw.lang-menu{margin:.25rem 0 .5rem}
.lang-sw a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:32px;padding:0 .55rem;border-radius:999px;color:var(--muted);font-size:.8rem;font-weight:700;letter-spacing:.5px;text-decoration:none}
.lang-sw a[aria-current=true]{background:var(--primary);color:#fff}
.lang-sw a:hover{color:var(--fg)}
