/* Grilla de contenidos · Cable Visión Perú
   Marca: mismos tokens, formas y componentes que Inteligencia comercial, Market share FTTH,
   CVP Campo y Tablero comercial (Manual de marca 2026). Tipografía Montserrat, local. */

@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fuentes/montserrat-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fuentes/montserrat-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F4F5F8;
  --surface: #ffffff;
  --ink: #1D2920;
  --muted: #54626F;
  --line: #E4E4EB;
  --line-soft: #EEF0F3;
  --green: #019A5A;
  --green-dark: #00804A;
  --green-soft: #E3F4EB;
  --green-tint: #F3F9F6;
  --danger: #C42B25;
  --danger-soft: #FDECEA;
  --amber: #E8A33D;
  --amber-ink: #8A5A0A;
  --amber-soft: #FBF0D9;
  --blue-ink: #1D4F9F;
  --blue-soft: #E4EEFB;
  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(29, 41, 32, 0.06);
  --shadow-float: 0 12px 32px rgba(29, 41, 32, 0.16);
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--green) 22%, white); }
h1, h2, h3, h4 { text-align: left; letter-spacing: -0.01em; }

/* ---- Estructura: barra lateral + contenido --------------------------------------------------- */
.shell { display: flex; min-height: 100vh; }
.side-nav { width: 256px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 16px; background: #fff; border-right: 1px solid var(--line); z-index: 40; overflow-y: auto; }
.side-logo { display: block; margin: 0 0 18px; }
.side-logo img { display: block; width: 170px; max-width: 100%; height: auto; }
.side-cap { margin: 0 0 4px; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tabs .btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 100px; background: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.tabs .btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs .btn:hover { background: var(--bg); border-color: transparent; }
.tabs .btn.on { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-dark); }
.tabs .sep { height: 1px; background: var(--line); margin: 6px 12px; }
.srv { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--bg); font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.srv .pt { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.srv.ok .pt { background: var(--green); }
.srv.wait .pt { background: var(--amber); }
.srv.off { background: var(--danger-soft); color: var(--danger); }
.srv.off .pt { background: var(--danger); }
.content { flex: 1; min-width: 0; }
.wrap { max-width: 1500px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding: 22px max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px)); }

/* ---- Cabecera ----------------------------------------------------------------------------------- */
header.top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
h1 { display: flex; align-items: center; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.1; color: var(--green-dark); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Botones y campos ------------------------------------------------------------------------------- */
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 100px; min-height: 40px; padding: 0 18px; font-weight: 600; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--green-tint); border-color: #c9cad6; }
.btn.on, .btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover, .btn.on:hover { background: #179948; border-color: #179948; }
.btn.small { min-height: 30px; padding: 0 12px; font-size: 12px; }
.btn.danger { color: var(--danger); border-color: #f0c7c3; }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.danger.armed { background: var(--danger); color: #fff; border-color: var(--danger); }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 12px; }
.field input, .field select { height: 40px; padding-block: 0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9cad6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-dark); outline: none; }
.field textarea { resize: vertical; min-height: 64px; }

/* ---- Indicadores ------------------------------------------------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { flex: 1 1 150px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--muted); font-size: 12px; font-weight: 600; }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.stat.warn { box-shadow: var(--shadow), inset 4px 0 0 var(--danger); }
.stat.warn b { color: var(--danger); }

/* ---- Leyenda y equipo ------------------------------------------------------------------------------------ */
.meta { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.meta-row > .lbl { color: var(--muted); font-weight: 600; margin-right: 2px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; white-space: nowrap; }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; flex: none; overflow: hidden; }
.av.leslie { background: #CDEED9; color: #00804A; }
.av.luis { background: #DCE8F9; color: #1D4F9F; }
.av.angeles { background: #FBEBCB; color: #8A5A0A; }
.av.diego { background: #EADCE9; color: #7A3D75; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.sm { width: 18px; height: 18px; font-size: 9px; }
.avrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.avrow .av { width: 30px; height: 30px; }
.avrow b { min-width: 60px; }
.member { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
details.avatars { flex-basis: 100%; }
details.avatars summary { cursor: pointer; color: var(--green-dark); font-size: 12px; font-weight: 600; }
details.avatars .row { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
details.avatars input { width: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; background: var(--surface); }

/* ---- Panel principal -------------------------------------------------------------------------------------- */
.main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-head h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0 6px 0 0; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; line-height: 1; }
.icon-btn:hover { background: var(--green-tint); border-color: #c9cad6; }
.tz { font-size: 12px; color: var(--muted); }
.scroll-x { overflow-x: auto; }
.sec-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 760px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dow { padding: 8px 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); background: var(--green-tint); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--surface); cursor: pointer; transition: background .12s; }
.day:hover { background: var(--green-tint); }
.day.out { background: #F8F9FA; color: #9aa3ad; }
.day.out .dn { color: #9aa3ad; }
.dn { font-size: 12px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.day.today .dn { background: var(--green); color: #fff; }
.chip { display: flex; align-items: center; gap: 5px; width: 100%; text-align: left; border: 0; border-radius: 8px; padding: 4px 6px; font-size: 11px; font-weight: 600; background: var(--green-tint); min-width: 0; }
.chip:hover { filter: brightness(.96); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip .t { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.chip { flex-wrap: wrap; }
.chip .x { flex: 1 1 100%; min-width: 0; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.chip.pub { opacity: .62; }
.chip.late { box-shadow: inset 0 0 0 1px var(--danger); }
.chip.cancel .x { text-decoration: line-through; }
.hol { font-size: 10px; color: var(--green-dark); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Fechas clave y carga de trabajo ----------------------------------------------------------------------------- */
.side-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.side h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0; }
.side .sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.months button { border: 1px solid var(--line); background: var(--surface); border-radius: 100px; padding: 6px 0; font-size: 12px; font-weight: 600; }
.months button:hover { background: var(--green-tint); }
.months button.on { background: var(--green); color: #fff; border-color: var(--green); }
.kd { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.kd .d { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kd .n { font-weight: 700; font-size: 13px; }
.kd .k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.kd .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--muted); font-size: 13px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.work { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.wk { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.wk .av { width: 30px; height: 30px; grid-row: span 2; }
.wk .nm { font-weight: 700; font-size: 13px; }
.wk .num { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1; color: var(--green-dark); text-align: right; font-variant-numeric: tabular-nums; }
.wk .num small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--muted); }
.wk .det { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.meter { grid-column: 1 / 4; height: 6px; border-radius: 99px; background: var(--green-soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* ---- Prioridad y estados ---------------------------------------------------------------------------------------------- */
.pr { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-size: 9px; font-weight: 800; color: #fff; flex: none; }
.pr.urg { background: var(--danger); }
.pr.med { background: var(--amber); }
.pp { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-left: 6px; vertical-align: middle; }
.pp.urg { background: var(--danger-soft); color: var(--danger); }
.pp.med { background: var(--amber-soft); color: var(--amber-ink); }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; position: relative; display: block; }
.field .seg input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.seg .b { display: block; text-align: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 100px; font-weight: 600; background: var(--surface); }
.seg label:hover .b { background: var(--green-tint); }
.seg input:focus-visible + .b { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.seg input[value="Normal"]:checked + .b { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.seg input[value="Media"]:checked + .b { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-ink); }
.seg input[value="Urgente"]:checked + .b { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; white-space: nowrap; }
.e0 { background: #EEF0F3; color: var(--muted); }
.e1 { background: var(--amber-soft); color: var(--amber-ink); }
.e2 { background: var(--blue-soft); color: var(--blue-ink); }
.e3 { background: var(--green-soft); color: var(--green-dark); }
.e4 { background: var(--green); color: #fff; }

/* ---- Producción (tablero por estado) --------------------------------------------------------------------------------------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; }
.col { background: var(--bg); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col h4 { margin: 0 0 2px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.col h4 span:last-child { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: left; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.card:hover { border-color: var(--green); }
.card .cm { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card .adv { align-self: flex-start; }
.linkish { all: unset; cursor: pointer; font-weight: 700; font-size: 13px; }

/* ---- Lista --------------------------------------------------------------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); background: var(--green-tint); padding: 9px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--green-tint); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sm { display: block; font-size: 12px; color: var(--muted); }

/* ---- Ventanas ----------------------------------------------------------------------------------------------------------------------- */
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
dialog::backdrop { background: rgba(29, 41, 32, .35); }
dialog form, dialog .box { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
dialog h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 0; color: var(--green-dark); }
dialog .sub { color: var(--muted); margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.foot { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-top: 4px; }
.foot .r { display: flex; gap: 8px; margin-left: auto; }
.checks { border: 1px solid var(--line); border-radius: 12px; max-height: 170px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.checks label { display: flex; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.checks label:hover { background: var(--green-tint); }
.checks input { width: auto; height: auto; accent-color: var(--green); }
dialog textarea.csv { width: 100%; min-height: 220px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 100px; font-weight: 600; z-index: 80; max-width: calc(100vw - 32px); }

/* ---- Información en ícono (en vez de textos sueltos) ------------------------------------------------------------------------ */
.tip { position: relative; display: inline-flex; align-items: center; margin-left: 8px; color: var(--muted); cursor: help; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.tip:hover, .tip:focus, .tip:focus-within { color: var(--green-dark); outline: none; }
.tip > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tip-body { display: none; position: absolute; z-index: 70; top: calc(100% + 8px); left: -10px; width: min(340px, 72vw); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow-float); font-size: 12px; font-weight: 500; line-height: 1.5; text-align: left; letter-spacing: 0; }
.tip:hover .tip-body, .tip:focus .tip-body, .tip:focus-within .tip-body { display: block; }
.tip-body:empty { display: none !important; }

/* ---- Pantallas más angostas -------------------------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) { .main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .shell { flex-direction: column; }
  .side-nav { position: sticky; top: 0; width: auto; height: auto; flex-direction: column; gap: 8px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .side-logo { margin: 0; }
  .side-logo img { width: 140px; }
  .side-cap, .srv .pt + * { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .btn { width: auto; white-space: nowrap; }
  .tabs .sep { width: 1px; height: auto; margin: 4px 6px; flex: none; }
  .srv { position: absolute; top: 14px; right: 16px; margin: 0; padding: 6px 10px; font-size: 0; }
  .srv .pt { margin: 0; }
  .tip-body { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; }
}
@media (max-width: 820px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .filters, .two, .three { grid-template-columns: minmax(0, 1fr); } .panel { padding: 12px; } .wrap { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .side-nav, .actions, .filters { display: none; } .shell { display: block; } }

/* ---- Acceso (login, recuperar, cambiar contraseña) · modelo CVP Campo ---------------------------------- */
body.acceso { background: #fff; }
.acc-marco { display: flex; min-height: 100vh; }
.acc-franja { position: relative; flex: 0 0 44%; overflow: hidden; background: var(--green); color: #fff; display: flex; align-items: flex-end; padding: 56px; }
.acc-circ { position: absolute; border-radius: 50%; }
.acc-circ.c1 { width: 520px; height: 520px; top: -160px; right: -180px; background: #21B36E; }
.acc-circ.c2 { width: 300px; height: 300px; bottom: 120px; left: -110px; background: #E73932; }
.acc-circ.c3 { width: 140px; height: 140px; top: 38%; right: 18%; background: #00804A; }
.acc-lema { position: relative; max-width: 440px; }
.acc-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.acc-frase { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.acc-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px max(24px, env(safe-area-inset-right, 0px)) 40px max(24px, env(safe-area-inset-left, 0px)); }
.acc-col { width: 100%; max-width: 36rem; display: flex; flex-direction: column; gap: 24px; }
.acc-logo { width: 190px; height: auto; }
.acc-form { display: flex; flex-direction: column; gap: 16px; }
.acc-form[hidden] { display: none; }
.acc-titulo { margin: 0; font-size: 30px; font-weight: 800; color: var(--ink); }
.acc-sub { margin: -8px 0 4px; color: var(--muted); font-size: 15px; font-weight: 600; }
.acc-form .field > span { font-size: 13px; color: var(--ink); }
.acc-form .field input { height: 48px; font-size: 16px; }
.clave { position: relative; display: block; }
.clave input { padding-right: 96px !important; }
.clave .ver { position: absolute; top: 6px; right: 6px; height: 36px; min-width: 80px; border: 0; border-radius: 100px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--green-dark); }
.clave .ver:hover { background: var(--green-soft); }
.btn.grande { min-height: 56px; font-size: 16px; font-weight: 700; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn[disabled] { opacity: .75; cursor: progress; }
.giro { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: girar .8s linear infinite; }
.cargando .giro { display: inline-block; }
@keyframes girar { to { transform: rotate(360deg); } }
.acc-link { align-self: flex-start; min-height: 44px; border: 0; background: none; padding: 0; color: var(--green-dark); font-weight: 700; font-size: 14px; }
.acc-link:hover { text-decoration: underline; }
.acc-legal { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.aviso { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; line-height: 1.4; }
.aviso.error { background: var(--danger-soft); color: var(--danger); }
.aviso.ok { background: var(--green-soft); color: var(--green-dark); }
.aviso.info { background: var(--blue-soft); color: var(--blue-ink); }
.aviso.alerta { background: var(--amber-soft); color: var(--amber-ink); }
.aviso[hidden] { display: none; }
@media (max-width: 1023px) { .acc-franja { display: none; } .acc-panel { align-items: flex-start; padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) { .giro { animation-duration: 2s; } }

/* ---- Cuenta en la barra lateral ---------------------------------------------------------------------- */
.cuenta { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.cuenta-yo { display: flex; align-items: center; gap: 10px; padding: 4px 12px 6px; }
.cuenta-yo .av { width: 34px; height: 34px; }
.cuenta-yo b { display: block; font-size: 14px; line-height: 1.2; }
.cuenta-yo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.cuenta a, .cuenta button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 100px; background: none; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cuenta a:hover, .cuenta button:hover { background: var(--bg); }
.cuenta svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cuenta .salir { color: var(--danger); }
.side-cap.gestion { margin-top: 10px; }
.srv { margin-top: auto; }
@media (max-width: 1023px) {
  .cuenta { flex-direction: row; flex-wrap: wrap; border-top: 0; padding-top: 0; gap: 4px; }
  .cuenta-yo { display: none; }
  .cuenta a, .cuenta button { width: auto; min-height: 36px; font-size: 13px; }
}

/* ---- Panel administrador ------------------------------------------------------------------------------ */
.sec-h2 { display: flex; align-items: center; margin: 0 0 12px; font-size: 17px; font-weight: 700; color: var(--ink); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }
section[data-vista] { display: flex; flex-direction: column; gap: 18px; }
section[data-vista][hidden] { display: none; }
.field.fila { flex-direction: row; align-items: center; gap: 8px; }
.field.fila input, .field.fila select { width: auto; min-width: 160px; }
.tabla-adm { min-width: 680px; }
.tabla-adm td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tabla-adm td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla-adm .rojo, .rojo { color: var(--danger); font-weight: 700; }
.tabla-adm .acciones { display: flex; flex-wrap: wrap; gap: 6px; }
.tabla-adm .member .av { width: 28px; height: 28px; background: var(--green-soft); color: var(--green-dark); }
.barra-av { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.barra-av .b, .est-fila .b { flex: 1; height: 8px; border-radius: 100px; background: var(--green-soft); overflow: hidden; min-width: 60px; }
.barra-av i, .est-fila i { display: block; height: 100%; background: var(--green); border-radius: 100px; }
.barra-av b { font-variant-numeric: tabular-nums; font-size: 13px; }
.estados { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.estados:first-child { border-top: 0; padding-top: 0; }
.estados h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; }
.estados h3 span { color: var(--muted); font-variant-numeric: tabular-nums; }
.est-fila { display: grid; grid-template-columns: 140px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.est-fila b { text-align: right; font-variant-numeric: tabular-nums; }
.estado-vacio { display: flex; align-items: center; gap: 10px; padding: 18px 4px; color: var(--muted); font-weight: 600; }
.giro.oscuro { display: inline-block; border-color: var(--green-soft); border-top-color: var(--green); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.seg.rol input[value="equipo"]:checked + .b, .seg.rol input[value="admin"]:checked + .b { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.temporal { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; padding: 16px; border-radius: 12px; background: var(--bg); }
.temporal .lbl { color: var(--muted); font-weight: 600; }
.temporal code { font-size: 22px; font-weight: 700; letter-spacing: .06em; color: var(--ink); user-select: all; }
.panel.enlace { display: flex; flex-direction: column; gap: 12px; }
.panel.enlace .sec-h2 { margin: 0; }
.panel.enlace code.url { display: block; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 15px; font-weight: 700; word-break: break-all; color: var(--green-dark); user-select: all; }
.panel.enlace .r { display: flex; gap: 8px; flex-wrap: wrap; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.tabs a.btn { color: var(--ink); }
