/* ==========================================================================
   DISPOSICIÓN · escala y distribución
   Solo afecta tamaños, espacios y la forma de repartir el espacio; no toca colores, textos ni funciones.
   Criterio: el inicio es un lanzador (se llega para ir a una herramienta), así que la portada deja de ocupar la
   pantalla entera y las herramientas se reparten en una rejilla densa de tres columnas. Dentro de los módulos
   se trabaja: tarjetas más bajas, títulos de 18 px, botones de 40 px y un ancho de lectura de 1040 px.
   Escala de espacios: 4 · 8 · 12 · 16 · 24 · 32 · 48.
   ========================================================================== */

/* ---------- portada (expediente) ---------- */
.ex{height:calc(100svh * 5.8)}
.ex .hero-title{max-width:min(100%,520px)}
.ex .hero-title h1{font-size:clamp(26px,3.3vw,46px);line-height:1.1;letter-spacing:-.02em;margin-bottom:12px}
.ex .hero-s{font-size:clamp(14px,1.25vw,16px);line-height:1.55;max-width:46ch}
.ex .hero-k{margin-bottom:12px}
.ex .hero-play{margin-top:16px;min-height:40px;padding:0 16px;font-size:13px}
.hc{padding:16px 18px 14px;border-radius:8px}
.hc .k{margin-bottom:8px}
.hc h2{font-size:clamp(19px,1.7vw,24px);margin:0 0 6px}
.hc p{font-size:13.5px;line-height:1.5;margin:0 0 12px}
.hc .row{gap:6px}
.hc .btn{min-height:38px;padding:0 14px;font-size:13px}
.hero-rail button{width:30px;height:30px}
.hero-rail button::before{width:7px;height:7px}
@media (min-width:900px){
  .ex .hc{max-width:330px;margin-top:0;translate:0 -50%}
  .ex .hero-title{margin-top:0;translate:0 -50%}
}
@media (max-width:899px){
  .ex .hc{bottom:max(5vh,28px)}
}

/* ---------- herramientas: rejilla densa ---------- */
.sistemas{padding:clamp(32px,6vh,64px) clamp(16px,3vw,32px) 8px;max-width:1120px}
.sistemas>h2{font-size:clamp(22px,2.2vw,30px);letter-spacing:-.015em;margin:0 0 8px;max-width:none}
.sistemas>p{font-size:14px;line-height:1.55;margin:0 0 20px;max-width:60ch}
.sys-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
@media (min-width:1100px){.sys.g1,.sys.g2,.sys.g3,.sys.g4,.sys.g5{grid-column:auto}}
.sys{min-height:0;padding:16px 18px 40px;border-radius:10px;gap:6px}
.sys .pieza{width:22px;height:22px;margin:0 0 2px}
.sys small{font-size:10px;letter-spacing:.14em}
.sys b{font-size:19px;line-height:1.15}
.sys span{font-size:13px;line-height:1.5;max-width:none}
.sys i{right:16px;bottom:12px;font-size:18px}
.sys-mas{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin-top:10px}
.sys-mas .hub-card{min-height:0;padding:12px 14px;border-radius:10px;gap:4px}
.sys-mas .hub-card .ti{width:20px;height:20px}
.sys-mas .hub-card b{font-size:15px}
.sys-mas .hub-card span{font-size:12.5px}

/* ---------- cuenta, carta, compartir ---------- */
.sesion{margin:32px auto 16px;padding:14px 18px;border-radius:10px;gap:12px}
.sesion-av{width:44px;height:44px;border-radius:10px;font-size:18px}
.sesion b{font-size:clamp(16px,1.5vw,19px)}
.sesion span.s2{font-size:13px;margin-top:2px}
.ses-main{gap:12px}
@media (min-width:900px){.sesion{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;align-items:center}}
.carta{margin-top:24px;padding:20px;gap:16px;border-radius:10px}
.carta h3{font-size:clamp(20px,2vw,26px);margin:0 0 10px}
.carta p{font-size:14px;line-height:1.6;margin:0 0 8px}
.carta-firma{margin-top:12px!important}
.carta-firma b{font-size:18px}
.carta-prom{gap:8px}
.carta-prom li{padding:12px 14px;border-radius:8px}
.carta-prom b{font-size:14px}
.carta-prom span{font-size:13px}
@media (min-width:900px){.carta{grid-template-columns:1.1fr 1fr;align-items:start}}
.share-row{margin:24px 16px 12px}

/* ---------- módulos: ancho, ritmo y densidad ---------- */
.wrap{max-width:1040px}
.panel{padding-block:12px;gap:12px}
.card{padding:14px 16px;border-radius:10px}
.card h2,.panel h2{font-size:18px}
.card h3{font-size:16px}
a.btn,button.btn{min-height:40px;padding:9px 14px;font-size:13.5px;border-radius:8px}
.qbtn{min-height:0;padding:10px 12px}
.qbtn b{font-size:14px}
.qbtn span{font-size:12.5px}
nav.tabs button{padding:12px 10px;font-size:13.5px}
.bar-in{padding-top:8px;gap:4px}
.rd-app h1{font-size:20px}

/* ---------- pantallas angostas ---------- */
@media (max-width:640px){
  .sistemas{padding-top:28px}
  .sys-grid{grid-template-columns:1fr}
  .sys{padding:14px 16px 36px}
  .sesion,.carta{margin-inline:12px}
  .card{padding:12px 14px}
}

/* ==========================================================================
   COMPOSICIÓN DEL INICIO (menos cuadrada)
   Las herramientas dejan de ser tarjetas iguales: son un índice de filas con el nombre grande, que se
   resalta al pasar o enfocar, junto a un encabezado en columna propia. La cuenta y la carta pierden sus
   cajas: la cuenta es un panel suave y la carta es texto sobre el fondo. Las esquinas son redondeadas
   (18-24 px) y el avatar es un círculo.
   ========================================================================== */
.sys::before,.hub-card::before{display:none}

/* encabezado a la izquierda, índice a la derecha (en pantallas anchas) */
.sis-cab>h2{margin:0 0 10px}
.sis-cab>p{margin:0}
@media (min-width:980px){
  .sistemas{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);column-gap:clamp(32px,5vw,72px);align-items:start;max-width:1120px}
  .sis-cab{grid-column:1;grid-row:1 / span 2;position:sticky;top:76px}
  .sistemas>.sys-grid{grid-column:2;grid-row:1}
  .sistemas>.sys-mas{grid-column:2;grid-row:2;margin-top:20px}
}
.sys-grid{display:flex;flex-direction:column;gap:2px}
.sys,.sys-mas .hub-card{
  display:grid;grid-template-columns:28px minmax(150px,230px) minmax(0,1fr) 20px;grid-template-areas:"ico nom desc flecha" "ico tag desc flecha";
  column-gap:14px;row-gap:0;align-items:center;min-height:0;padding:14px 16px;border:0;border-radius:18px;background:transparent;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;text-align:left;text-decoration:none;color:inherit;transition:background-color .2s var(--ease-out,ease)}
.sys .pieza,.sys-mas .hub-card .ti{grid-area:ico;width:22px;height:22px;margin:0;align-self:center}
.sys b,.sys-mas .hub-card b{grid-area:nom;font-size:clamp(19px,1.7vw,24px);line-height:1.15;letter-spacing:-.01em;align-self:end}
.sys small{grid-area:tag;display:block;margin:2px 0 0;font:500 12.5px/1.3 var(--font-ui);letter-spacing:0;text-transform:none;color:var(--fg-dim,#9a9588);align-self:start}
.sys span,.sys-mas .hub-card span{grid-area:desc;font-size:13px;line-height:1.5;color:var(--fg-dim,#a6a9ad);max-width:58ch}
.sys i,.sys-mas .hub-card i{grid-area:flecha;position:static;display:block;font-size:18px;text-align:right;transition:transform .2s var(--ease-out,ease)}
.sys-mas .hub-card i{display:none}
@media (hover:hover) and (pointer:fine){
  .sys:hover,.sys-mas .hub-card:hover{background:rgba(255,255,255,.045)}
  .sys:hover i{transform:translateX(4px)}
}
.sys:focus-visible,.sys-mas .hub-card:focus-visible{background:rgba(255,255,255,.06)}
.sys-mas{display:flex;flex-direction:column;gap:2px;grid-template-columns:none}
.sys-mas .hub-card{grid-template-columns:28px minmax(150px,230px) minmax(0,1fr);grid-template-areas:"ico nom desc";padding:10px 16px}
.sys-mas .hub-card b{font-size:16px;align-self:center}
.sys-mas .hub-card span{font-size:12.5px}
@media (max-width:979px){
  .sys,.sys-mas .hub-card{grid-template-columns:24px 1fr 18px;grid-template-areas:"ico nom flecha" "ico tag flecha" "ico desc flecha";row-gap:2px;padding:12px 10px}
  .sys-mas .hub-card{grid-template-columns:24px 1fr;grid-template-areas:"ico nom" "ico desc"}
}

/* cuenta: panel suave, avatar en círculo, sin bordes ni degradados */
.sesion{background:var(--surface,#0f1114);border:0;border-radius:22px;box-shadow:none;padding:18px 22px}
.sesion::before{display:none}
.sesion-av{border-radius:50%;box-shadow:none}
.ses-pro li{border:0;border-radius:999px;background:rgba(255,255,255,.05)}
.sesion .btn{border-radius:999px;border:0;background:rgba(255,255,255,.08)}
.sesion .btn.primary{border-radius:999px}

/* carta: texto sobre el fondo, sin caja; promesas como lista simple */
.carta{background:none;border:0;border-radius:0;padding:0;margin-top:56px;gap:clamp(24px,5vw,64px)}
@media (min-width:900px){.carta{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
.carta small{font:500 13px/1.3 var(--font-ui);letter-spacing:0;text-transform:none;color:var(--fg-dim,#9a9588);margin-bottom:8px}
.carta-prom{gap:0}
.carta-prom li{padding:0 0 14px;margin:0 0 14px;border:0;border-radius:0;background:none}
.carta-prom li:last-child{margin:0;padding:0}
.carta-prom b{font-size:15px}

/* botones y chips del inicio: más redondos */
#hub .btn{border-radius:999px}
.ex .hc{border-radius:20px}
.ex .hc .btn.primary,.hero-play{border-radius:999px}

.sis-cab>h2::before{display:none}

/* iconos Lucide: trazo de 1,75 px en todo el sitio */
.ti,.gl{stroke-width:1.75}

/* ==========================================================================
   EL ÍNDICE DEL EXPEDIENTE
   La sección de herramientas seguía en negro frío, desconectada de la portada (una mesa cálida con hojas de papel).
   Ahora todo el inicio comparte la mesa, y las herramientas son un índice mecanografiado sobre una hoja, con el mismo
   papel, las mismas sombras y el mismo resaltador amarillo de los documentos de la portada.
   ========================================================================== */
#hub{background-color:#0f0c09;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .36  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),linear-gradient(180deg,#14100c,#0c0a07 70%)}
body[data-vista="hub"]{background:#0c0a07}
#hub>.sistemas{padding-top:clamp(48px,8vh,88px);padding-bottom:16px}
.sis-cab>h2{color:#f2ece0}
.sis-cab>p{color:#b9b2a3}

/* hoja de papel */
#hub .sys-grid,#hub .sys-mas{
  --tinta:#27241f;
  background:linear-gradient(115deg,rgba(255,255,255,.34),rgba(255,255,255,0) 38%,rgba(70,55,30,.08)),#ece7da;
  color:var(--tinta);border-radius:3px;padding:10px 12px;gap:0;
  box-shadow:0 1px 1px rgba(0,0,0,.35),0 14px 34px -10px rgba(0,0,0,.7),0 0 0 .5px rgba(70,55,30,.25)}
#hub .sys-grid{transform:rotate(-.35deg)}
#hub .sys-mas{transform:rotate(.3deg);margin-top:22px;padding:6px 12px}
#hub .sys,#hub .sys-mas .hub-card{
  border-radius:4px;color:var(--tinta);padding:12px 12px;
  border-bottom:1px dotted rgba(39,36,31,.38)}
#hub .sys:last-child,#hub .sys-mas .hub-card:last-child{border-bottom:0}
#hub .sys .pieza,#hub .sys-mas .hub-card .ti{color:#4a443a}
#hub .sys b,#hub .sys-mas .hub-card b{color:#1d1b17;font-size:clamp(18px,1.5vw,21px)}
#hub .sys small{color:#6d675b}
#hub .sys span,#hub .sys-mas .hub-card span{color:#4d493f;font-size:13px}
#hub .sys i{color:#a3281f}
@media (hover:hover) and (pointer:fine){
  #hub .sys:hover,#hub .sys-mas .hub-card:hover{background:rgba(255,208,0,.34)}
}
#hub .sys:focus-visible,#hub .sys-mas .hub-card:focus-visible{background:rgba(255,208,0,.42);outline:2px solid #1d1b17;outline-offset:-2px}

/* cuenta, carta, compartir: sobre la misma mesa */
#hub .sesion{background:rgba(255,236,205,.06);color:#ecebe6}
#hub .ses-pro li,#hub .sesion .btn{background:rgba(255,236,205,.09)}
#hub .carta{color:#ecebe6}
#hub .carta-prom li{border-bottom:1px dotted rgba(236,231,218,.22)}
#hub .carta-prom li:last-child{border-bottom:0}
#hub .share-row .tooltip-container,#hub .share-row .button-content{background:rgba(255,236,205,.07)}

/* ==========================================================================
   CUENTA: identidad, tres beneficios con icono y una llamada a la acción clara
   ========================================================================== */
#hub .sesion{display:grid;grid-template-columns:1fr;gap:20px;align-items:center;padding:20px 22px;border-radius:24px;background:rgba(255,236,205,.06)}
@media (min-width:900px){#hub .sesion{grid-template-columns:minmax(0,1.1fr) minmax(0,1.3fr) auto;gap:clamp(20px,3vw,40px);padding:22px 28px}}
#hub .sesion-av{width:56px;height:56px;font-size:22px;border-radius:50%;border:1.5px solid #d8c58a;background:rgba(216,197,138,.12);color:#d8c58a}
#hub .ses-main{align-items:center;gap:16px}
#hub .sesion b{font-size:clamp(17px,1.5vw,20px)}
#hub .sesion span.s2{font-size:13.5px;line-height:1.5;color:#b9b2a3}

/* beneficios: icono en un círculo dorado, título y una línea */
#hub .ses-pro{display:grid;gap:14px;margin:0}
#hub .ses-pro li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:14px;align-items:center;padding:0;border:0;border-radius:0;background:none}
#hub .ses-pro .ti{width:38px;height:38px;padding:9px;margin:0;border-radius:50%;background:rgba(216,197,138,.14);color:#e6d6a2;stroke-width:1.75;box-sizing:border-box}
#hub .ses-pro li span{display:block;font-size:13px;line-height:1.4;color:#b9b2a3}
#hub .ses-pro li span b{display:block;font:700 15px/1.25 var(--font-ui);color:#f2ece0;margin:0 0 1px}

/* llamada a la acción */
#hub .ses-btn{justify-content:flex-end;margin:0}
#hub #hub-acceso{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 28px;border:0;border-radius:999px;background:#d8c58a;color:#17130c;font:700 15px/1 var(--font-ui);box-shadow:0 10px 24px -12px rgba(216,197,138,.65);white-space:nowrap;transition:background-color .2s var(--ease-out,ease),transform .2s var(--ease-out,ease)}
#hub #hub-acceso::before{content:"";width:18px;height:18px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m10 17 5-5-5-5'/><path d='M15 12H3'/><path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m10 17 5-5-5-5'/><path d='M15 12H3'/><path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/></svg>") center/contain no-repeat}
@media (hover:hover) and (pointer:fine){#hub #hub-acceso:hover{background:#e6d6a2;transform:translateY(-1px)}}
#hub #hub-acceso:active{transform:scale(.98)}
#hub #hub-acceso:focus-visible{outline:2px solid #f2ece0;outline-offset:3px}
@media (max-width:899px){#hub .ses-btn{justify-content:stretch}#hub #hub-acceso{width:100%}}

/* avatar de la cuenta: sin sesión muestra la silueta de una persona (Lucide); con sesión, la inicial */
#hub .sesion-av{position:relative;width:56px;height:56px;border:0;border-radius:50%;background:rgba(216,197,138,.16);color:#e6d6a2;box-shadow:inset 0 0 0 1px rgba(216,197,138,.35)}
#hub #hub-cuenta[data-dentro="0"] .sesion-av{font-size:0}
#hub #hub-cuenta[data-dentro="0"] .sesion-av::before{content:"";position:absolute;inset:0;margin:auto;width:28px;height:28px;background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='5'/><path d='M20 21a8 8 0 0 0-16 0'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='5'/><path d='M20 21a8 8 0 0 0-16 0'/></svg>") center/contain no-repeat}
#hub #hub-cuenta[data-dentro="1"] .sesion-av{font:700 22px var(--font-ui)}

/* acceso a la cuenta (encabezado): silueta de persona sin sesión, inicial con sesión */
.tac-user{position:relative;color:#e6d6a2;background:rgba(216,197,138,.14);border:0;box-shadow:inset 0 0 0 1px rgba(216,197,138,.35)}
.tac-user[data-dentro="0"]::before{content:"";position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='5'/><path d='M20 21a8 8 0 0 0-16 0'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='5'/><path d='M20 21a8 8 0 0 0-16 0'/></svg>") center/contain no-repeat}

/* ==========================================================================
   HERRAMIENTAS: texto directo sobre la mesa (sin cajas ni papel)
   Cada herramienta es una fila de índice: icono, nombre en serif grande, descripción y flecha, separadas por una línea
   fina cálida. Al pasar el mouse, el nombre se vuelve dorado y la línea se dibuja de izquierda a derecha.
   ========================================================================== */
#hub .sys-grid,#hub .sys-mas{background:none;box-shadow:none;transform:none;padding:0;border-radius:0;color:inherit}
#hub .sys-mas{margin-top:36px}
#hub .sys,#hub .sys-mas .hub-card{position:relative;background:transparent;border:0;border-bottom:1px solid rgba(236,231,218,.14);border-radius:0;padding:20px 4px;color:#ecebe6}
#hub .sys:last-child,#hub .sys-mas .hub-card:last-child{border-bottom:0}
#hub .sys::after,#hub .sys-mas .hub-card::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:#d8c58a;transform:scaleX(0);transform-origin:left;transition:transform .4s var(--ease-out,cubic-bezier(.22,1,.36,1))}
#hub .sys:last-child::after,#hub .sys-mas .hub-card:last-child::after{display:none}
#hub .sys .pieza,#hub .sys-mas .hub-card .ti{width:24px;height:24px;color:#d8c58a}
#hub .sys b{color:#f5efe2;font:600 clamp(23px,2.3vw,31px)/1.1 var(--font-display);letter-spacing:-.015em;transition:color .25s}
#hub .sys-mas .hub-card b{color:#f5efe2;font:600 18px/1.2 var(--font-display)}
#hub .sys small{color:#9c9486;font-size:13px}
#hub .sys span,#hub .sys-mas .hub-card span{color:#b9b2a3;font-size:13.5px;line-height:1.55}
#hub .sys i{color:#d8c58a}
@media (hover:hover) and (pointer:fine){
  #hub .sys:hover,#hub .sys-mas .hub-card:hover{background:transparent}
  #hub .sys:hover b,#hub .sys-mas .hub-card:hover b{color:#e6d6a2}
  #hub .sys:hover::after,#hub .sys-mas .hub-card:hover::after{transform:scaleX(1)}
}
#hub .sys:focus-visible,#hub .sys-mas .hub-card:focus-visible{background:transparent;outline:2px solid #d8c58a;outline-offset:4px;border-radius:6px}
#hub .sys:focus-visible::after,#hub .sys-mas .hub-card:focus-visible::after{transform:scaleX(1)}

/* ==========================================================================
   FONDO: grafito azulado liso (sin textura de cuero)
   Mismo carácter serio que antes, sin el grano ni el marrón. El dorado queda como único acento.
   ========================================================================== */
.ex-mesa{background:
  radial-gradient(52% 58% at var(--lx,62%) 44%,rgba(170,190,215,.08),rgba(170,190,215,0) 70%),
  radial-gradient(120% 100% at 50% 50%,rgba(0,0,0,0) 45%,rgba(0,0,0,.6) 100%),
  linear-gradient(160deg,#11151b,#0a0d11 60%,#0c1015)}
#hub{background-color:#0a0d11;background-image:linear-gradient(180deg,#0d1116,#0a0d11 55%,#090b0f)}
body[data-vista="hub"]{background:#090b0f}
#hub .sesion{background:rgba(190,205,225,.06)}
#hub .ses-pro li,#hub .sesion .btn{background:rgba(190,205,225,.08)}
#hub .share-row .tooltip-container,#hub .share-row .button-content{background:rgba(190,205,225,.06)}

/* CUENTA, alineada: arriba identidad y botón en una misma línea; debajo, tres beneficios en columnas sin cajas */
#hub .sesion{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "btn" "pro";gap:18px;align-items:center;padding:22px 24px}
#hub .sesion .ses-main{grid-area:main;display:flex;align-items:center;gap:16px;min-width:0}
#hub .sesion .ses-txt{min-width:0}
#hub .sesion .ses-btn{grid-area:btn;display:flex;justify-content:stretch;margin:0}
#hub .sesion .ses-pro{grid-area:pro;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;padding:18px 0 0;border-top:1px solid rgba(190,205,225,.12);list-style:none}
#hub .sesion .ses-pro li{background:none;border-radius:0;padding:0;min-height:0;align-items:center}
@media (min-width:900px){
  #hub .sesion{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main btn" "pro pro";column-gap:32px;row-gap:20px;padding:26px 32px}
  #hub .sesion .ses-btn{justify-content:flex-end}
  #hub .sesion .ses-pro{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,40px)}
}

/* Las tarjetas de capítulo se centran contra TODA la pantalla (antes colgaban de una franja de 36 px al pie y se cortaban en monitores bajos) */
.ex:not(.estatico) .hero-cards{top:0;bottom:0;padding:0}
@media (min-width:900px){
  .ex .hc{max-width:340px}
  .ex .hc,.ex .hero-title{left:clamp(32px,6vw,110px);right:auto;width:min(340px,34vw)}
  .ex .hero-title{width:min(520px,38vw);max-width:none;padding:0}
}

/* ESCALA DE PANTALLA: ultrawide centrada, TV/4K proporcional, monitores altos */
@media (min-width:900px){
  .ex .hc,.ex .hero-title{left:calc(var(--x0,0px) + var(--stg,100vw) * .06);transform-origin:0 50%;scale:var(--k,1)}
}
/* contenido de las demás secciones: más ancho en pantallas grandes */
@media (min-width:1700px){
  .sistemas,.corp{max-width:1320px}
  #hub>.sesion,#hub>.carta,#hub>.share-row{width:min(1320px,calc(100% - 64px))}
  .wrap,.bar-in{max-width:1320px}
}
@media (min-width:2300px) and (min-height:1000px){
  .sistemas,.corp{max-width:1600px}
  #hub>.sesion,#hub>.carta,#hub>.share-row{width:min(1600px,calc(100% - 96px))}
  .wrap,.bar-in{max-width:1600px}
}

/* Monitor vertical y tablets en vertical (ancho ≥ 900 px pero más alto que ancho): textos al pie, la hoja arriba */
@media (min-width:900px) and (max-aspect-ratio:54/50){
  .ex .hero-title{top:auto;bottom:max(9vh,64px);margin-top:0;translate:none;scale:1;left:clamp(20px,6vw,96px);width:auto;max-width:min(88vw,640px)}
  .ex .hc,.ex .hc.fin{top:auto;bottom:max(6vh,32px);margin-top:0;translate:none;scale:1;left:clamp(20px,6vw,96px);width:min(560px,calc(100% - 2 * clamp(20px,6vw,96px)));max-width:none}
}

/* ADMINISTRACIÓN */
.adm-res{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:14px 0}
.adm-res div{padding:12px 14px;border-radius:14px;background:rgba(190,205,225,.07)}
.adm-res b{display:block;font:700 22px/1.1 var(--font-ui);color:#f2ece0}
.adm-res span{font-size:12.5px;color:#a9afb6}
.adm-seg{flex-wrap:wrap;margin:6px 0 10px}
.adm-seg i{font-style:normal;color:#e6d6a2}
.adm-barra{gap:8px;margin:0 0 12px;flex-wrap:nowrap}
.adm-barra input{flex:1;min-width:0}
.adm-lista{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.adm-fila,.adm-vacio{padding:12px 14px;border-radius:14px;background:rgba(190,205,225,.06)}
.adm-fila b{display:block;font-size:15px;overflow-wrap:anywhere}
.adm-fila small{display:block;color:#a9afb6;margin:2px 0 0}
.adm-fila p{margin:6px 0 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.adm-ac{margin-top:10px;gap:8px;flex-wrap:wrap}
.adm-peligro{color:#f0a9a0}
#hub-admin{margin-left:8px}
@media (max-width:899px){#hub-admin{margin:8px 0 0;width:100%}}
