/* =========================================================
   Dextail Intranet — identidad corporativa
   Turquesa #49A4AF · Magenta #CC3366 · Negro · esquinas rectas
   ========================================================= */
:root {
  --black: #0b0b0b;
  --ink: #15181b;
  --muted: #5d656e;
  --bg: #f3f4f4;
  --surface: #ffffff;
  --surface-2: #f8f9f9;
  --border: #e1e4e6;
  --teal: #49a4af;          /* color de marca (rellenos, detalles) */
  --teal-ink: #1f7883;      /* texto y botones sobre blanco (AA) */
  --teal-dark: #17626b;
  --teal-soft: #e5f3f4;
  --magenta: #cc3366;
  --magenta-ink: #b3265a;
  --magenta-soft: #fbe9ef;
  --amber-soft: #fff4dc;
  --amber-ink: #8a5a00;
  --ok-bg: #e5f4ea;
  --ok-ink: #1d6b3a;
  --err-bg: #fdecec;
  --err-ink: #b42318;
  --on-dark: #ffffff;
  --on-dark-muted: #a9b0b6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ebee;
    --muted: #9aa3ac;
    --bg: #101214;
    --surface: #181b1e;
    --surface-2: #1d2124;
    --border: #2b3035;
    --teal-ink: #6cc3cd;
    --teal-dark: #8fd3db;
    --teal-soft: #15343a;
    --magenta-ink: #f07ba3;
    --magenta-soft: #3a1823;
    --amber-soft: #3a2c10;
    --amber-ink: #f5c56b;
    --ok-bg: #16311f;
    --ok-ink: #8fdca9;
    --err-bg: #3b1a1a;
    --err-ink: #ff9b9b;
    --shadow: none;
    --shadow-hover: 0 6px 18px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.85rem; font-weight: 800; margin: .1rem 0 .4rem; }
h2 { font-size: 1.2rem; font-weight: 700; margin: .2rem 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
code { font-size: .85em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.kicker { display: block; margin: 0 0 .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); }
.lead { margin: 0; color: var(--muted); }

/* ---------- Cabecera ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--on-dark); border-bottom: 3px solid var(--teal); }
.topbar-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 1.75rem; padding: 0 1.25rem; height: 62px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--on-dark); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-txt { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.brand-txt b { color: var(--on-dark); font-weight: 800; }
.logo { width: 34px; height: 34px; flex: none; filter: invert(1); }   /* el PNG es negro sobre blanco: invertido queda blanco sobre negro */
.logo.inv { width: 64px; height: 64px; }
.mainnav { display: flex; align-self: stretch; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav a {
  display: flex; align-items: center; gap: .4rem; padding: 0 .9rem; color: var(--on-dark-muted);
  font-size: .9rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.mainnav a:hover { color: var(--on-dark); text-decoration: none; }
.mainnav a.on { color: var(--on-dark); border-bottom-color: var(--magenta); }
.navbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--magenta); color: #fff; font-size: .7rem; font-weight: 700; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: .55rem; cursor: pointer; color: var(--on-dark); font-size: .9rem; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu-pop {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 240px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--teal); box-shadow: var(--shadow-hover);
  padding: .9rem; display: grid; gap: .55rem;
}
.usermenu-pop a { color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; color: var(--magenta-ink); cursor: pointer; font: inherit; }

.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-txt { display: inline-grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); font-weight: 700; font-size: .8rem; }
.topbar .avatar-txt { background: var(--teal); color: #fff; }
.s24 { width: 24px; height: 24px; font-size: .62rem; } .s26 { width: 26px; height: 26px; font-size: .65rem; }
.s28 { width: 28px; height: 28px; font-size: .7rem; } .s30 { width: 30px; height: 30px; }
.s32 { width: 32px; height: 32px; } .s34 { width: 34px; height: 34px; }
.s44 { width: 44px; height: 44px; font-size: .95rem; } .s48 { width: 48px; height: 48px; font-size: 1rem; }
.s56 { width: 56px; height: 56px; font-size: 1.1rem; }

/* ---------- Estructura ---------- */
.wrap { max-width: 1240px; width: 100%; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.card { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: .9rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dim { opacity: .55; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.pagehead h1 { margin-bottom: .2rem; }
.pagehead-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; border-bottom: 2px solid var(--ink); padding-bottom: .4rem; margin: 0 0 .9rem; }
.sec-head h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 0; }
.h-sec { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 .6rem; font-weight: 700; }

.flash { background: var(--ok-bg); color: var(--ok-ink); border-left: 4px solid currentColor; padding: .65rem .9rem; margin-bottom: 1rem; }
.flash.err { background: var(--err-bg); color: var(--err-ink); }

.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; background: var(--black); color: var(--on-dark-muted); font-size: .78rem; letter-spacing: .06em; }
.foot b { color: var(--on-dark); letter-spacing: .2em; }

/* ---------- Botones y formularios ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--teal-ink); color: #fff; border: 1px solid var(--teal-ink); border-radius: 0;
  padding: .6rem 1.1rem; font: inherit; font-size: .88rem; font-weight: 700; letter-spacing: .03em; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-sm { padding: .32rem .7rem; font-size: .8rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); color: var(--ink); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-danger { background: transparent; color: var(--err-ink); border-color: currentColor; }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err-ink); }
.btn-google { background: var(--surface); color: var(--ink); border: 1px solid var(--ink); width: 100%; padding: .85rem; font-size: .95rem; }
.btn-google:hover { background: var(--surface-2); border-color: var(--ink); }

input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 0; padding: .55rem .65rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: var(--teal); }
input[type=file] { padding: .4rem; background: var(--surface-2); }
.form { display: grid; gap: .9rem; }
.form.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: end; }
.form label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.form label .small { font-weight: 400; }
.form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--ink); }
.form label.check input { width: auto; accent-color: var(--teal-ink); }
.form .span2 { grid-column: span 2; }
form.inline { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
form.inline select { width: auto; }
.search { max-width: 340px; }
.inline-pair { display: flex; gap: .4rem; }

/* ---------- Acceso ---------- */
body.is-login { background: var(--surface); }
.login-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.login-brandside { position: relative; overflow: hidden; background: var(--black); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.login-brandside h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; font-weight: 800; letter-spacing: -.02em; margin: .2rem 0 1rem; }
.login-brandside .kicker { color: var(--teal); }
.login-claim { color: var(--on-dark-muted); max-width: 34ch; margin: 0; }
.stripe { position: absolute; inset: 0; z-index: 0; background: linear-gradient(112deg, transparent 0 64%, var(--magenta) 64% 64.9%, transparent 64.9% 66.4%, var(--teal) 66.4%); }
.login-brandside > *:not(.stripe) { position: relative; z-index: 1; }
.login-brandside > div { max-width: 60%; }
.login-formside { display: grid; place-items: center; padding: 2rem 1.25rem; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 1.6rem; margin: 0 0 .3rem; }
.login-box .btn-google { margin-top: 1.4rem; }
.login-help { margin-top: 2rem; }
.devlogin { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--border); display: grid; gap: .5rem; }
body.is-login > main > .flash { position: fixed; top: 1rem; right: 1rem; z-index: 5; }

/* ---------- Portada ---------- */
.banner {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
  background: var(--black); color: #fff; padding: 2.2rem 2rem; margin-bottom: 1.75rem;
}
.banner::before { content: ""; position: absolute; right: -6%; top: -60%; width: 38%; height: 220%; background: var(--teal); transform: rotate(18deg); }
.banner::after { content: ""; position: absolute; right: calc(32% + 8px); top: -60%; width: 7px; height: 220%; background: var(--magenta); transform: rotate(18deg); }
.banner > * { position: relative; z-index: 1; }
.banner h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; color: #fff; }
.banner .kicker { color: var(--teal); }
.banner-claim { margin: .5rem 0 0; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); }
.banner-search { display: grid; gap: .7rem; width: min(380px, 100%); }
.banner-search .search { max-width: none; border-color: transparent; padding: .7rem .8rem; }
.banner-quick { display: flex; gap: .5rem; flex-wrap: wrap; }
.banner-quick .btn:not(.btn-light) { background: var(--magenta); border-color: var(--magenta); }
.banner-quick .btn:not(.btn-light):hover { background: var(--magenta-ink); border-color: var(--magenta-ink); }

.grid-home { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 2rem; align-items: start; }
.col-main > section, .col-main > .feature { margin-bottom: 2rem; }
.panel { background: var(--surface); border: 1px solid var(--border); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.panel .sec-head { border-bottom-width: 1px; border-color: var(--border); }

.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.feature:hover { text-decoration: none; box-shadow: var(--shadow-hover); }
.feature-cover, .cover { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.feature-cover img, .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.feature:hover .feature-cover img, .news-card:hover .cover img { transform: scale(1.03); }
.cover-empty { display: grid; place-items: center; background: linear-gradient(115deg, var(--black) 0 58%, var(--teal) 58% 86%, var(--magenta) 86% 88%, var(--teal) 88%); }
.cover-empty img { width: 64px !important; height: 64px !important; object-fit: contain !important; filter: invert(1); opacity: .9; transform: none !important; }
.feature-txt { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 1.6rem; border-top: 4px solid var(--teal); }
.feature-title { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.feature-ex { color: var(--muted); }
.more { margin-top: auto; font-weight: 700; font-size: .85rem; color: var(--teal-ink); letter-spacing: .03em; }

.appgroup { margin-bottom: 1.25rem; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .7rem; }
.app {
  display: flex; gap: .8rem; align-items: center; color: var(--ink); position: relative;
  background: var(--surface); border: 1px solid var(--border); padding: .85rem; transition: border-color .15s, box-shadow .15s;
}
.app::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.app:hover { text-decoration: none; box-shadow: var(--shadow-hover); }
.app:hover::after { transform: scaleX(1); }
.app-txt { display: grid; min-width: 0; }
.app-txt .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--teal-soft); font-size: 1.3rem; font-weight: 800; color: var(--teal-ink); }
.app-ico.has-img { background: #fff; border: 1px solid var(--border); }
.app-ico img { width: 80%; height: 80%; object-fit: contain; }
.app-ico.sm { display: inline-grid; width: 26px; height: 26px; font-size: .9rem; vertical-align: middle; }

.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.news-grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 1.5rem; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.news-card:hover { text-decoration: none; box-shadow: var(--shadow-hover); }
.news-card-txt { display: grid; gap: .3rem; padding: .9rem 1rem 1.1rem; }
.news-card-txt b { font-size: 1.02rem; line-height: 1.3; }

.fairlist, .peoplelist { list-style: none; margin: 0; padding: 0; }
.fairlist li + li { border-top: 1px solid var(--border); }
.fairlist a { display: flex; gap: .8rem; padding: .65rem 0; color: var(--ink); }
.fairlist a:hover { text-decoration: none; background: var(--surface-2); }
.fl-date, .fr-date { display: grid; place-items: center; align-content: center; flex: none; width: 48px; height: 52px; background: var(--black); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.fl-date b, .fr-date b { font-size: 1.25rem; letter-spacing: 0; line-height: 1; }
.fl-txt { display: grid; gap: .15rem; min-width: 0; }
.phase { display: inline-block; width: fit-content; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .45rem; margin-right: .3rem; }
.ph-proxima { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.ph-montaje { background: var(--teal-soft); color: var(--teal-ink); }
.ph-feria { background: var(--teal); color: #fff; }
.ph-desmontaje { background: var(--magenta-soft); color: var(--magenta-ink); }
.ph-mine { background: var(--black); color: #fff; }

.myticket { display: flex; gap: .45rem; align-items: center; padding: .5rem 0; color: var(--ink); border-bottom: 1px solid var(--border); }
.myticket:last-child { border-bottom: 0; }
.myticket:hover { text-decoration: none; background: var(--surface-2); }
.mt-subj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.peoplelist li { display: flex; gap: .65rem; align-items: center; padding: .45rem 0; }
.peoplelist li > span { display: grid; min-width: 0; }
.peoplelist.compact li { padding: .25rem 0; }
.today { color: var(--magenta-ink); font-weight: 700; }

/* ---------- Directorio ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.person { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 0; }
.person-sm { display: flex; gap: .6rem; align-items: center; }

/* ---------- Noticia ---------- */
.article { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--teal); padding: 2rem clamp(1.1rem, 4vw, 2.75rem) 2.25rem; }
.article h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.article-cover { margin: 1.2rem calc(-1 * clamp(1.1rem, 4vw, 2.75rem)); }
.article-cover img { width: 100%; display: block; max-height: 520px; object-fit: cover; }
.article-body { font-size: 1.03rem; line-height: 1.7; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1rem; }
.article-admin { display: flex; gap: .5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ---------- Ferias ---------- */
.fair-toolbar { margin-bottom: 1rem; }
.fair-toolbar .tabs { margin: 0; border: 0; }
.fair-filters { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.chip { font-size: .82rem; font-weight: 600; padding: .3rem .75rem; border: 1px solid var(--border); color: var(--ink); background: var(--surface); }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip.on { background: var(--black); color: #fff; border-color: var(--black); }
.legend { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; margin-left: .4rem; }
.lg.montaje, .cal-ev.montaje, .pp.montaje { background: var(--teal-soft); color: var(--teal-ink); }
.lg.feria, .cal-ev.feria, .pp.feria { background: var(--teal); color: #fff; }
.lg.desmontaje, .cal-ev.desmontaje, .pp.desmontaje { background: var(--magenta-soft); color: var(--magenta-ink); }

.cal-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.cal-head h2 { margin: 0 .4rem; text-transform: capitalize; font-size: 1.35rem; min-width: 9ch; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--surface); }
.cal-dow { padding: .45rem .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: #fff; background: var(--black); border-right: 1px solid #222; }
.cal-day { min-height: 118px; padding: .35rem .35rem .5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: var(--surface-2); }
.cal-day.out .cal-num { color: var(--muted); opacity: .6; }
.cal-num { font-size: .8rem; font-weight: 700; padding: 0 .2rem; }
.cal-day.today { box-shadow: inset 0 3px 0 var(--magenta); }
.cal-day.today .cal-num { color: var(--magenta-ink); }
.cal-ev { display: block; font-size: .72rem; font-weight: 600; line-height: 1.35; padding: .12rem .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { text-decoration: none; filter: brightness(.95); }
.cal-ev.st-provisional { outline: 1px dashed currentColor; outline-offset: -1px; opacity: .8; }
.cal-ev.st-cancelada { text-decoration: line-through; opacity: .5; }
.cal-more { font-size: .7rem; color: var(--muted); padding-left: .3rem; }

.fair-list { display: grid; gap: .6rem; }
.fair-row { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); padding: .8rem 1rem; color: var(--ink); }
.fair-row:hover { text-decoration: none; box-shadow: var(--shadow-hover); border-color: var(--teal); }
.fair-row.st-cancelada { opacity: .55; }
.fr-main { display: grid; gap: .25rem; flex: 1; min-width: 0; }
.fr-main > b { font-size: 1.05rem; }
.fr-phases { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .15rem; }
.pp { font-size: .72rem; font-weight: 600; padding: .1rem .45rem; }
.fr-side { display: grid; justify-items: end; gap: .45rem; }
.avatars { display: flex; }
.avatars > * { margin-left: -6px; border: 2px solid var(--surface); }
.fst-provisional { background: var(--amber-soft); color: var(--amber-ink); border-color: transparent; }
.fst-cancelada { background: var(--err-bg); color: var(--err-ink); border-color: transparent; }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.25rem; }
.tl-step { display: grid; gap: .15rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid; }
.tl-step + .tl-step { border-left: 0; }
.tl-step.montaje { border-top-color: #9fd0d6; }
.tl-step.feria { border-top-color: var(--teal); }
.tl-step.desmontaje { border-top-color: var(--magenta); }
.tl-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.tl-step b { font-size: 1.2rem; }

.member-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .3rem 1rem; margin-top: .7rem; max-height: 320px; overflow: auto; }
.member-pick label { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-weight: 500; color: var(--ink); }
.member-pick input { width: auto; accent-color: var(--teal-ink); }
.dates .lbl-montaje { border-left: 4px solid #9fd0d6; padding-left: .6rem; }
.dates .lbl-feria { border-left: 4px solid var(--teal); padding-left: .6rem; }
.dates .lbl-desmontaje { border-left: 4px solid var(--magenta); padding-left: .6rem; }

/* ---------- Admin y tablas ---------- */
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; flex-wrap: wrap; }
.tabs a { padding: .55rem .95rem; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-color: var(--teal); }
.tabs .count { font-size: .72rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 0 .4rem; margin-left: .2rem; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--black); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tr.warn td { background: var(--amber-soft); }
.tag { font-size: .7rem; font-weight: 700; background: var(--amber-soft); color: var(--amber-ink); padding: .1rem .4rem; margin-left: .4rem; text-transform: uppercase; letter-spacing: .05em; }
.empty { text-align: center; padding: 2.75rem 1rem; }

/* ---------- Tickets ---------- */
.mt { margin-top: .6rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1.55; padding: .02rem .5rem; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; letter-spacing: .02em; }
.st-abierto   { background: var(--teal-soft); color: var(--teal-ink); border-color: transparent; }
.st-en_curso  { background: var(--amber-soft); color: var(--amber-ink); border-color: transparent; }
.st-en_espera { background: #efe8fb; color: #5b3aa6; border-color: transparent; }
.st-resuelto  { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.st-cerrado   { background: var(--surface-2); color: var(--muted); }
.pr-baja    { color: var(--muted); }
.pr-media   { color: var(--ink); }
.pr-alta    { background: var(--amber-soft); color: var(--amber-ink); border-color: transparent; }
.pr-urgente { background: var(--magenta); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { .st-en_espera { background: #2d2145; color: #c9a8ff; } }
.tk-toolbar { margin: .25rem 0 1rem; align-items: flex-end; }
.tk-toolbar .tabs { margin-bottom: 0; border-bottom: 0; }
.tk-table tr.rowlink { cursor: pointer; }
.tk-table tr.rowlink:hover td { background: var(--surface-2); }
.tk-table td a { color: var(--ink); }
.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.tk-head h1 { margin-bottom: .5rem; }
.tk-badges { display: flex; gap: .35rem; flex-wrap: wrap; padding-top: .45rem; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1.25rem; align-items: start; margin-top: .5rem; }
.tk-msg .tk-author { display: flex; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.tk-msg .tk-body { overflow-wrap: anywhere; }
.tk-msg .tk-body p { margin: .35rem 0; }
.tk-msg.staff { border-left: 4px solid var(--teal); }
.tk-msg.note { background: var(--amber-soft); border-color: transparent; }
.note-badge { background: #ffe08a; color: #6b4e00; border-color: transparent; }
.tk-event { font-size: .85rem; color: var(--muted); margin: -.3rem 0 1rem .9rem; padding-left: .8rem; border-left: 2px solid var(--border); }
.tk-files { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.tk-file { display: inline-flex; gap: .35rem; align-items: center; font-size: .85rem; padding: .3rem .6rem; border: 1px solid var(--border); background: var(--surface-2); }
.tk-file.internal { background: var(--amber-soft); }
.tk-reply-actions { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tk-reply-actions .check { margin-right: auto; }
.form label.inline-lbl { display: flex; align-items: center; gap: .4rem; }
.form label.inline-lbl select { width: auto; }
.tk-side dl { margin: 0; display: grid; gap: .15rem; }
.tk-side dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: .6rem; font-weight: 700; }
.tk-side dt:first-child { margin-top: 0; }
.tk-side dd { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-home, .tk-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hide-sm, .brand-txt { display: none; }
  .topbar-in { gap: .75rem; padding: 0 1rem; height: 56px; }
  .mainnav a { padding: 0 .6rem; font-size: .85rem; }
  .wrap { padding: 1.1rem 1rem 2.5rem; }
  .search { max-width: none; }
  .banner { padding: 1.5rem 1.25rem; }
  .banner::before, .banner::after { opacity: .35; }
  .news-grid { grid-template-columns: 1fr; }
  .login-split { grid-template-columns: 1fr; min-height: 0; }
  .login-brandside { padding: 2rem 1.25rem; min-height: 280px; }
  .stripe { opacity: .35; }
  .login-brandside > div { max-width: none; }
  .form .span2 { grid-column: auto; }
  .cal-day { min-height: 74px; }
  .cal-ev { font-size: 0; height: 7px; padding: 0; }
  .fr-side { display: none; }
  .legend { display: none; }
}
.form label input, .form label select, .form label textarea { font-weight: 400; color: var(--ink); }
