:root {
  /* Identidad Club Plaza Colonia (Brand Kit) */
  --green-900: #064a1c;
  --green-800: #075e24;
  --green-700: #0d7a2e;
  --green-600: #12903a;
  --green-accent: #34c759;
  --green-100: #e3f2e7;
  --green-50: #f0f7f2;
  --ink: #121412;
  --ink-2: #5b635d;
  --ink-3: #848c86;
  --line: #dce3dd;
  --bg: #f4f3f0;
  --card: #ffffff;
  --amber: #b25e00;
  --amber-bg: #fff4e0;
  --red: #b42318;
  --red-bg: #fdecea;
  --blue: #1d5fbf;
  --blue-bg: #e8f0fc;
  --gray-bg: #eef1ef;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 40, 25, .06), 0 2px 8px rgba(10, 40, 25, .05);
  --sidebar: 248px;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
a { color: var(--green-700); text-decoration: none; }
a.card:hover, a.card:hover * { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; letter-spacing: .5px; color: var(--green-900); }
.stat .n, .match-date .dd, .score, .benefit .discount { font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--ink-3); }
.hidden { display: none !important; }
pre.body { white-space: pre-wrap; font-family: inherit; margin: 0; }

/* ===== Layout ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); background: linear-gradient(175deg, var(--green-700) 0%, var(--green-800) 45%, var(--green-900) 100%); color: #fff; position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; z-index: 40; transition: transform .2s ease;
}
.brand { display: flex; align-items: center; gap: .65rem; padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.brand b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: 1px; line-height: 1; }
.brand span { font-size: .75rem; opacity: .75; }
.nav { flex: 1; overflow-y: auto; padding: .6rem .5rem; }
.nav a {
  display: flex; align-items: center; gap: .7rem; color: #e3f1e8; padding: .6rem .75rem; border-radius: 9px;
  font-weight: 500; margin-bottom: 2px; position: relative;
}
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.active { background: #fff; color: var(--green-800); }
.nav .ico { width: 20px; text-align: center; font-size: 1.05rem; }
.nav .sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .55; padding: .9rem .75rem .3rem; }
.nav .count { margin-left: auto; background: var(--green-accent); color: #04310f; border-radius: 99px; font-size: .72rem; padding: 0 .45rem; font-weight: 700; }
.sidebar-foot { padding: .8rem 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.sidebar-foot .who { font-weight: 600; }
.sidebar-foot .role { opacity: .7; font-size: .78rem; }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: .75rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 30;
}
.topbar .title { font-weight: 600; font-size: 1.05rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  border: 0; background: transparent; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.2rem;
  position: relative; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--gray-bg); }
.icon-btn .dot {
  position: absolute; top: 4px; right: 3px; background: var(--red); color: #fff; font-size: .66rem; border-radius: 99px;
  min-width: 17px; height: 17px; line-height: 17px; font-weight: 700; padding: 0 4px;
}
.menu-btn { display: none; }
.content { padding: 1.4rem 1.4rem 5rem; max-width: 1280px; width: 100%; }
.backdrop { display: none; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head p { margin: .2rem 0 0; color: var(--ink-2); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ===== Cards & grid ===== */
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; min-width: 0; }
.card > h2, .card > h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-link { font-size: .85rem; font-weight: 500; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat .n { font-size: 1.9rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.stat .l { color: var(--ink-2); font-size: .88rem; }
.stat.warn .n { color: var(--amber); }
.stat.alert .n { color: var(--red); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .65rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; align-items: center; }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .s { color: var(--ink-3); font-size: .84rem; }
.list a.row { display: flex; gap: .75rem; align-items: center; color: inherit; flex: 1; min-width: 0; }
.list a.row:hover { text-decoration: none; }
.list a.row:hover .t { color: var(--green-700); }
.empty { color: var(--ink-3); text-align: center; padding: 1.5rem .5rem; }
.empty .big { font-size: 2rem; display: block; margin-bottom: .3rem; }

/* ===== Badges ===== */
.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; background: var(--gray-bg); color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--green-100); color: var(--green-800); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.solid-red { background: var(--red); color: #fff; }
.chip-row { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .55rem 1rem; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 40px;
}
.btn:hover { background: var(--green-50); text-decoration: none; }
.btn.primary { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn.primary:hover { background: var(--green-800); }
.btn.danger { color: var(--red); border-color: #f1c4bf; }
.btn.danger:hover { background: var(--red-bg); }
.btn.big { padding: .8rem 1.4rem; font-size: 1.02rem; }
.btn.sm { padding: .3rem .65rem; min-height: 32px; font-size: .85rem; }
.btn.link { border: 0; background: none; color: var(--green-700); padding: 0; min-height: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ===== Forms ===== */
form .row { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: .85rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; min-width: 0; }
form .row .field { margin-bottom: 0; }
.field label, .label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input[type=url], input[type=tel], select, textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #cfd9d3; border-radius: 9px; background: #fff; color: var(--ink); min-height: 42px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-600); outline-offset: 0; border-color: var(--green-600); }
input[type=file] { font: inherit; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-700); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem .9rem; }
.form-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 150px; flex: 1 1 150px; max-width: 260px; }
.alert { padding: .75rem .9rem; border-radius: 10px; margin-bottom: .9rem; border: 1px solid; }
.alert.error { background: var(--red-bg); border-color: #f3c0ba; color: #7a1a12; }
.alert.warn { background: var(--amber-bg); border-color: #f5d49b; color: #6b4100; }
.alert.info { background: var(--blue-bg); border-color: #c4d6f5; color: #173f7c; }
.alert.ok { background: var(--green-100); border-color: #b9e0c7; color: var(--green-900); }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-50); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--green-50); }

/* ===== Tabs ===== */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--green-700); border-color: var(--green-700); }
.tabs a:hover { text-decoration: none; color: var(--green-700); }

/* ===== Progress ===== */
.progress { height: 8px; background: var(--gray-bg); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--green-600); border-radius: 99px; }

/* ===== Message detail ===== */
.msg-head { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.ack-box { margin-top: 1.2rem; padding: 1rem; border-radius: 12px; background: var(--amber-bg); border: 1px solid #f5d49b; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.ack-box.done { background: var(--green-100); border-color: #b9e0c7; }
.prio-urgente { border-left: 4px solid var(--red); }
.prio-alta { border-left: 4px solid var(--amber); }
.unread .t { color: var(--ink); }
.unread::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--green-600); flex: 0 0 8px; }

/* ===== Files ===== */
.files { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.file { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.file .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.gallery img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--gray-bg); }
.gallery .ph { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--gray-bg); }
.gallery figcaption { padding: .4rem .5rem; font-size: .78rem; display: flex; justify-content: space-between; gap: .3rem; align-items: center; }
.gallery figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Calendar ===== */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; gap: .5rem; }
.cal-head h3 { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal .dow { background: var(--green-50); font-size: .74rem; font-weight: 700; text-transform: uppercase; padding: .4rem; text-align: center; color: var(--ink-2); }
.cal .d { min-height: 92px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: .25rem; font-size: .78rem; }
.cal .d:nth-child(7n+1) { border-left: 0; }
.cal .d.out { background: #fafbfa; color: var(--ink-3); }
.cal .d.sun { background: #f7f7f7; }
.cal .d.today .num { background: var(--green-700); color: #fff; border-radius: 99px; }
.cal .num { display: inline-block; min-width: 22px; text-align: center; font-weight: 700; padding: 1px 4px; margin-bottom: 2px; }
.cal .ev { display: block; padding: 1px 5px; border-radius: 5px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: inherit; }
.cal .ev:hover { text-decoration: none; filter: brightness(.96); }
.ev.aprobada { background: var(--green-100); color: var(--green-800); }
.ev.pendiente { background: var(--amber-bg); color: var(--amber); border: 1px dashed #e6b866; }
.ev.rechazada { background: var(--red-bg); color: var(--red); text-decoration: line-through; }
.ev.match { background: var(--blue-bg); color: var(--blue); }
.legend { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .8rem; margin-top: .5rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

/* ===== Matches ===== */
.match-card { display: flex; gap: .9rem; align-items: center; }
.match-date { text-align: center; min-width: 58px; background: var(--green-50); border-radius: 10px; padding: .35rem .3rem; }
.match-date .dd { font-size: 1.35rem; font-weight: 800; color: var(--green-700); line-height: 1; }
.match-date .mm { font-size: .7rem; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.match-date .wd { font-size: .7rem; color: var(--ink-3); text-transform: capitalize; }
.score { font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.score.ganado { color: var(--green-700); }
.score.perdido { color: var(--red); }
.score.empatado { color: var(--amber); }
.day-group h3 { margin: 1.1rem 0 .5rem; color: var(--green-800); font-size: .95rem; }

/* ===== Benefits ===== */
.benefit { display: flex; flex-direction: column; gap: .5rem; }
.benefit .top { display: flex; gap: .8rem; align-items: center; }
.benefit .logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--gray-bg); flex: 0 0 56px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.benefit .discount { font-size: 1.25rem; font-weight: 800; color: var(--green-700); }
.benefit.inactive { opacity: .6; }

/* ===== Inclusion ===== */
.privacy-note { display: flex; gap: .6rem; align-items: flex-start; background: #f3f0fb; border: 1px solid #ddd3f3; color: #3e2c74; padding: .7rem .9rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; }
.section-private { border-left: 4px solid #7c5cc4; }
.section-op { border-left: 4px solid var(--green-600); }
.sheet-section { padding: .8rem 1rem; background: var(--green-50); border-radius: 10px; margin-bottom: .7rem; }
.sheet-section h3 { color: var(--green-800); }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .45rem 1rem; }
.kv dt { color: var(--ink-3); font-size: .86rem; }
.kv dd { margin: 0; white-space: pre-wrap; }

/* ===== Login ===== */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--green-700) url(/img/fondo.webp) center bottom / cover no-repeat; color: #fff; padding: 9vh 3rem 3rem; display: flex; flex-direction: column; justify-content: flex-start; position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,74,28,.15) 0%, rgba(6,74,28,.55) 100%); pointer-events: none; }
.login-art > * { position: relative; z-index: 1; }
.login-art img { width: 96px; margin-bottom: 1.2rem; border-radius: 50%; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.login-art h1 { font-size: 3.4rem; margin-bottom: .4rem; color: #fff; letter-spacing: 1.5px; }
.login-art .tag { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 2px; opacity: .9; margin-bottom: 1rem; }
.login-art p { opacity: .9; max-width: 420px; font-size: 1.05rem; }
.login-art ul { padding-left: 1.1rem; opacity: .95; }
.login-art p, .login-art ul { text-shadow: 0 1px 3px rgba(0,0,0,.45); }
@media (max-height: 720px) { .login-art ul { display: none; } }
.login-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-form .card { width: 100%; max-width: 400px; padding: 1.8rem; }

/* ===== Toast & modal ===== */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: .5rem; z-index: 100; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 380px; animation: pop .2s ease; cursor: pointer; }
.toast.ok { background: var(--green-800); }
.toast.error { background: var(--red); }
.toast b { display: block; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(8, 25, 15, .45); z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 900px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.modal-h h2 { margin: 0; }
.modal-b { padding: 1.1rem 1.2rem; }
.dropdown { position: absolute; right: 12px; top: 54px; width: min(380px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.15); z-index: 50; max-height: 70vh; overflow-y: auto; }
.dropdown .list > li { padding: .6rem .9rem; }
.dropdown-h { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }

.spinner { width: 28px; height: 28px; border: 3px solid var(--green-100); border-top-color: var(--green-700); border-radius: 50%; animation: spin .8s linear infinite; margin: 3rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .content { padding: 1rem 16px 5rem; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { padding: 2rem 1.4rem; }
  .login-art h1 { font-size: 2.6rem; }
  .login-art ul { display: none; }
  .cal .d { min-height: 64px; font-size: .68rem; }
  .cal .ev { padding: 0 3px; }
  .kv { grid-template-columns: 1fr; gap: .1rem; }
  .kv dd { margin-bottom: .5rem; }
  .topbar { padding: 0 .5rem; }
}
@media (max-width: 520px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .field { max-width: none; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .hide-sm { display: none; }
}
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main { margin: 0; }
  .card { box-shadow: none; }
}

/* ===== Íconos de línea y etiquetas de tipo ===== */
svg.i { display: block; flex: 0 0 auto; }
.nav .ico { display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg.i { width: 22px; height: 22px; }
.ftype {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 26px; padding: 0 .35rem;
  border-radius: 6px; background: var(--green-100); color: var(--green-800); font-size: .7rem; font-weight: 700; letter-spacing: .03em;
}
.benefit .logo { font-family: var(--font-display); color: var(--green-700); font-size: 1.6rem; }
.gallery .ph { font-weight: 700; color: var(--ink-2); font-size: .9rem; letter-spacing: .05em; }

/* ===== Instalación como app ===== */
.install-card {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--green-700); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1.1rem; margin-bottom: 1rem;
}
.install-card img { border-radius: 12px; }
.install-card .grow { flex: 1; min-width: 200px; }
@media (display-mode: standalone) { .login-form .card { margin-top: env(safe-area-inset-top); } }

/* ===== Reportes ===== */
.choice-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.choice { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { font-weight: 700; }
.choice small { font-size: .78rem; color: var(--ink-3); line-height: 1.3; }
.choice:has(input:checked) { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 2px var(--green-100); }
.choice:has(input:checked) span { color: var(--green-800); }
.choice:has(input:focus-visible) { outline: 2px solid var(--green-600); }
.photo-preview { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.photo-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.report-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 48px; }
.steps { display: flex; margin-bottom: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.steps span { flex: 1; text-align: center; padding: .45rem .3rem; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.steps span.done { background: var(--green-100); color: var(--green-800); }
.steps span.now { background: var(--green-700); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 .9rem .4rem; }
.timeline li::before { content: ''; position: absolute; left: -1.38rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 2px solid #fff; }
.timeline li.st-pronto::before { background: var(--green-600); }
.timeline li.st-en_proceso::before { background: var(--blue); }
.timeline li small { display: block; color: var(--ink-3); }
.timeline .note { background: var(--bg); border-radius: 8px; padding: .4rem .6rem; margin-top: .25rem; white-space: pre-wrap; }

/* ===== Logo +Plaza (recorta los márgenes blancos de la imagen original 1672×941) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mas-plaza-logo { width: min(340px, 100%); aspect-ratio: 1195 / 370; overflow: hidden; margin-bottom: .6rem; }
.mas-plaza-logo img { display: block; width: 139.9%; margin-left: -21.3%; margin-top: -22.6%; mix-blend-mode: multiply; }
.mas-plaza-logo.sm { width: 132px; margin: 0; }

/* ===== Asistentes IA ===== */
.assistant { display: flex; flex-direction: column; gap: .6rem; }
.assistant.inactive { opacity: .65; }
.assistant-head { display: flex; gap: .8rem; align-items: center; }
.assistant-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--green-700); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.4rem; }
.examples { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .92rem; }
.examples li { margin-bottom: .2rem; }

.ev.hol { background: var(--gray-bg); color: var(--ink-2); font-style: italic; }

/* ===== Suplencias ===== */
.sub-date { text-align: center; min-width: 52px; background: var(--green-50); border-radius: 10px; padding: .3rem; }
.sub-date b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--green-700); line-height: 1; }
.sub-date span { font-size: .7rem; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }

@media (max-width: 520px) { .list .t { white-space: normal; } }

/* ===== Visor "solo ver" ===== */
.viewer { display: flex; flex-direction: column; align-items: center; gap: 12px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.viewer canvas, .viewer img, .viewer video { display: block; max-width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.gallery img, .report-thumb { -webkit-touch-callout: none; }
.viewer pre { white-space: pre-wrap; max-width: 100%; width: 100%; }
