/* ===========================================================
   EXPO APS 2026 — Design tokens & custom CSS
   (Tailwind is loaded via CDN; this file contains the
    brand palette, glassmorphism, animations and edge cases.)
   =========================================================== */

:root {
  /* Palette (oficial) */
  --navy-900:   #041d67;  /* R4 G29 B103 */
  --navy-700:   #062e91;  /* R6 G46 B145 */
  --blue-500:   #1e54c1;  /* R30 G84 B193 */
  --teal-400:   #00be9c;  /* R0 G190 B156 */
  --green-600:  #009f55;  /* R0 G159 B85  */
  --green-400:  #10c46e;  /* R16 G196 B110 */

  --ink-0:      #ffffff;
  --ink-1:      rgba(255,255,255,.92);
  --ink-2:      rgba(255,255,255,.72);
  --ink-3:      rgba(255,255,255,.55);

  --glass-bg:    rgba(255,255,255,.06);
  --glass-bg-2:  rgba(255,255,255,.10);
  --glass-stroke: rgba(255,255,255,.14);

  --grad-hero:  radial-gradient(120% 80% at 10% -10%, #062e91 0%, transparent 55%),
                radial-gradient(100% 70% at 90% 0%,  #00be9c 0%, transparent 50%),
                radial-gradient(110% 80% at 50% 120%, #10c46e 0%, transparent 55%),
                linear-gradient(180deg, #02123f 0%, #020922 100%);

  --grad-cta:   linear-gradient(135deg, #00be9c 0%, #10c46e 100%);
  --grad-cta-2: linear-gradient(135deg, #1e54c1 0%, #00be9c 100%);
  --grad-text:  linear-gradient(90deg, #ffffff 0%, #a5e8d5 60%, #10c46e 100%);

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 60px -20px rgba(4,29,103,.55);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 80px -10px rgba(0,190,156,.25);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--grad-hero);
  background-attachment: fixed;
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--teal-400); color: #02123f; }

.font-display { font-family: 'Sora', 'Inter', system-ui, sans-serif; letter-spacing:-.02em; }

/* ---------- Animated aurora blobs ---------- */
.aurora {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 55vmax; height: 55vmax;
  filter: blur(90px); opacity: .55; border-radius: 50%;
  animation: float 22s ease-in-out infinite alternate;
}
.aurora::before {
  background: radial-gradient(circle at 30% 30%, var(--teal-400), transparent 60%);
  top: -20vmax; left: -10vmax;
}
.aurora::after {
  background: radial-gradient(circle at 60% 60%, var(--blue-500), transparent 60%);
  bottom: -25vmax; right: -15vmax; animation-duration: 28s;
}
@keyframes float {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(4vmax, -3vmax,0) scale(1.08); }
  100% { transform: translate3d(-3vmax, 3vmax,0) scale(.95); }
}

/* subtle grid overlay to add depth */
.grid-veil {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
}
.glass-strong {
  background: var(--glass-bg-2);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.glass-card {
  position: relative; overflow: hidden;
}
.glass-card::before {
  content:""; position:absolute; inset: -1px; border-radius: inherit; padding:1px;
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 30%, rgba(0,190,156,.45) 75%, rgba(30,84,193,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none; opacity:.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap:.55rem;
  padding: .9rem 1.35rem; border-radius: 999px; font-weight: 600;
  transition: transform .2s ease, box-shadow .25s ease, filter .25s;
  will-change: transform;
}
.btn-primary {
  background: var(--grad-cta); color: #022a1b;
  box-shadow: 0 10px 35px -10px rgba(16,196,110,.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 45px -10px rgba(16,196,110,.75); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.22); color: var(--ink-1); background: rgba(255,255,255,.04);
}
.btn-ghost:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); }

/* text gradient helper */
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-grad-teal {
  background: linear-gradient(90deg, #00be9c, #10c46e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 40; width: min(1200px, calc(100% - 24px));
}

/* Brand mark (only the X-icon) — works on any background */
.logo-mark {
  width: 40px; height: 40px; display: block; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,190,156,.25));
}
.logo-mark.lg { width: 56px; height: 56px; }
.logo-mark.sm { width: 28px; height: 28px; }

/* Full horizontal lockup — bounded by BOTH max-height and max-width
   so it scales correctly regardless of the logo's aspect ratio.
   width/height = auto + object-fit: contain makes the browser pick
   the tighter constraint and shrink proportionally. */
.logo-full {
  display: block;
  width: auto; height: auto;
  max-width: 100%; max-height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,190,156,.2));
  transition: transform .25s ease, filter .25s ease;
}
.logo-full:hover { transform: translateY(-1px); filter: drop-shadow(0 8px 20px rgba(0,190,156,.4)); }

.logo-full.sz-nav     { max-height: 36px; max-width: 180px; }
.logo-full.sz-sidebar { max-height: 42px; max-width: 200px; }
.logo-full.sz-login   { max-height: 58px; max-width: 280px; }
.logo-full.sz-footer  { max-height: 26px; max-width: 130px; }

/* legacy size modifiers kept for compatibility */
.logo-full.sm  { max-height: 28px; max-width: 140px; }
.logo-full.nav { max-height: 36px; max-width: 180px; }

/* Back-compat: old .logo-slot class still renders as a soft pill if ever used */
.logo-slot {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; color: var(--ink-0); font-weight: 800;
  font-family: 'Sora', sans-serif; letter-spacing:-.04em;
}
.logo-slot.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.05rem; }

/* ---------- Section titles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap:.5rem;
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(0,190,156,.12); border:1px solid rgba(0,190,156,.35);
  color: #a5f3de; font-size: .78rem; font-weight: 600; letter-spacing:.08em; text-transform: uppercase;
}

/* Horizontal marquee */
.marquee {
  overflow: hidden; cursor: grab;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee.dragging { cursor: grabbing; }
.marquee-track {
  display: flex; gap: 18px; width: max-content; will-change: transform;
}
.marquee-item {
  display: block; position: relative; overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: zoom-in;
}
.marquee-item img {
  height: 260px; width: auto; display: block;
  transition: transform .5s ease, filter .35s ease;
}
.marquee-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,29,103,.55));
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.marquee-item::before {
  content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/><path d='M11 8v6M8 11h6'/></svg>");
  background-repeat: no-repeat; background-position: center;
  opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.marquee-item:hover { transform: translateY(-6px); box-shadow: 0 20px 45px -12px rgba(0,190,156,.35); }
.marquee-item:hover img { transform: scale(1.04); filter: saturate(1.1); }
.marquee-item:hover::after { opacity: 1; }
.marquee-item:hover::before { opacity: 1; transform: scale(1); }
.marquee.dragging .marquee-item { pointer-events: none; }

@media (max-width: 640px) {
  .marquee-item img { height: 200px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(2,9,34,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox.open { display: flex; animation: fadeIn .25s ease; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; border-radius: 16px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.7);
  animation: zoomIn .35s cubic-bezier(.2,.7,.2,1);
}
.lightbox .lb-close { position:absolute; top:18px; right:24px; color:#fff; font-size:30px; cursor:pointer; }
.lightbox .lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:#fff; font-size:22px; display:grid; place-items:center; cursor:pointer; }
.lightbox .lb-prev { left: 24px; } .lightbox .lb-next { right: 24px; }

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes zoomIn { from { transform: scale(.92); opacity:0; } to { transform: scale(1); opacity:1; } }

/* ---------- Participation cards ---------- */
.part-card {
  position: relative; padding: 2rem; border-radius: 24px; cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  overflow: hidden; isolation: isolate;
}
.part-card::before {
  content:""; position:absolute; inset:-2px; border-radius:inherit; z-index:-1;
  background: conic-gradient(from 120deg, transparent 0 25%, rgba(0,190,156,.5) 40%, rgba(30,84,193,.55) 55%, transparent 70%);
  opacity: 0; transition: opacity .4s ease; filter: blur(14px);
}
.part-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.part-card:hover::before { opacity: 1; }
.part-card.active { border-color: rgba(0,190,156,.6); box-shadow: var(--shadow-glow); }
.part-card .ico {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,190,156,.25), rgba(30,84,193,.25));
  border: 1px solid rgba(255,255,255,.22); display:grid; place-items:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

/* ---------- Forms ---------- */
.field label { display:block; font-size:.82rem; color: var(--ink-2); margin-bottom: .4rem; font-weight:500; }
.field .req::after { content:"*"; color: #7be0b7; margin-left:4px; }
.input, .select, .textarea {
  width:100%; padding:.78rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14);
  color: var(--ink-0); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(0,190,156,.6); background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(0,190,156,.15);
}
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,.4); }

/* Custom select: hide native chevron, draw our own */
.select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 2.4rem;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23a8b3c7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  cursor: pointer;
}
.select::-ms-expand { display: none; }
select.select option { color:#0a0f22; background:#f3f6ff; }
select.select option:checked { background:#1e54c1; color:#fff; }
.select-wrap { position: relative; display: inline-block; }
.field .select-wrap { display: block; width: 100%; }
.select-wrap .select { width:100%; }

.chips { display:flex; gap:.5rem; flex-wrap:wrap; }
.chip {
  padding:.55rem 1rem; border-radius:999px; border:1px solid rgba(255,255,255,.18);
  cursor:pointer; font-size:.9rem; color: var(--ink-2); background: rgba(255,255,255,.03);
  transition: all .2s;
}
.chip:hover { color: var(--ink-0); border-color: rgba(0,190,156,.5); }
.chip.active {
  color:#022a1b; background: var(--grad-cta); border-color: transparent; font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(16,196,110,.6);
}

.check {
  display:flex; gap:.65rem; align-items:flex-start; padding:.6rem .25rem;
  color: var(--ink-2); font-size:.88rem; cursor:pointer; user-select:none;
}
.check input {
  appearance:none; width: 22px; height:22px; border-radius:6px; border:1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.05); display:grid; place-items:center; cursor:pointer;
  flex-shrink:0;
}
.check input:checked { background: var(--grad-cta); border-color: transparent; }
.check input:checked::after { content:"✓"; color:#022a1b; font-size:14px; font-weight:800; }

.field-error { border-color: #ff7f96 !important; box-shadow: 0 0 0 4px rgba(255,127,150,.15) !important; }
.error-msg { color: #ffb8c3; font-size:.78rem; margin-top:.35rem; display:block; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 22px; right: 22px; z-index: 100; display:flex; flex-direction:column; gap:10px; }
.toast {
  min-width: 280px; max-width: 380px; padding: .95rem 1.1rem; border-radius: 14px;
  background: var(--glass-bg-2); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.5);
  animation: slideIn .35s cubic-bezier(.2,.7,.2,1);
  display:flex; gap:.75rem; align-items:flex-start;
}
.toast.success { border-color: rgba(16,196,110,.55); }
.toast.error   { border-color: rgba(255,127,150,.55); }
.toast .dot { width:10px; height:10px; border-radius:50%; margin-top:6px; flex-shrink:0; }
.toast.success .dot { background: var(--green-400); box-shadow: 0 0 14px var(--green-400); }
.toast.error   .dot { background: #ff7f96; box-shadow: 0 0 14px #ff7f96; }
@keyframes slideIn { from { transform: translateX(120%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Hero stat pills */
.stat {
  display:flex; flex-direction:column; padding:1rem 1.3rem; border-radius:16px;
  background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); min-width:160px;
}
.stat b {
  font-family:'Sora', sans-serif; font-size:1.9rem; font-weight:700; color:#fff;
  line-height:1.05; letter-spacing:-.02em;
  display:inline-flex; align-items:center; gap:.05em;
}
.stat .stat-plus { font-size:1em; line-height:1; }
.stat span { color: var(--ink-2); font-size:.82rem; margin-top:.5rem; }

/* Utility */
.section { padding: 110px 0; position: relative; z-index: 1; }
.section-tight { padding: 80px 0; position: relative; z-index: 1; }
.container-x { width: min(1200px, 92%); margin-inline: auto; }

/* Admin styles (basic) */
.adm-body { background: linear-gradient(180deg,#02123f,#020922); min-height:100vh; }
.adm-sidebar { width: 260px; position:fixed; top:0; bottom:0; left:0; padding:28px 22px; background: rgba(255,255,255,.03); border-right: 1px solid rgba(255,255,255,.1); overflow-y:auto; }
.adm-main { margin-left: 260px; padding: 28px; max-width: calc(100vw - 260px); }

/* Clickable stat tiles */
.stat-tile {
  display:block; padding:1.1rem 1.25rem; border-radius:18px;
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10);
  transition: background .2s, border-color .2s, transform .2s;
  text-decoration: none; min-width: 0; overflow: hidden;
}
.stat-tile:hover { background: rgba(255,255,255,.08); border-color: rgba(0,190,156,.4); transform: translateY(-1px); }
.stat-tile.active { border-color: rgba(0,190,156,.6); background: rgba(0,190,156,.08); }
.stat-tile-head { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-width:0; }
.stat-tile-label { font-size:.7rem; text-transform:uppercase; letter-spacing:.12em; color: rgba(255,255,255,.5); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:1; }

/* Table */
.adm-table-scroll { overflow-x: auto; }
.is-loading { opacity:.6; pointer-events:none; transition: opacity .15s; }
.adm-spin { animation: adm-spin .8s linear infinite; display:block; width:100%; height:100%; }
@keyframes adm-spin { to { transform: rotate(360deg); } }

/* Analytics */
.chart-box { position: relative; width: 100%; height: 280px; }
.chart-box > canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.dot-live { display:inline-block; width:8px; height:8px; border-radius:50%; background:#10c46e; box-shadow:0 0 0 0 rgba(16,196,110,.6); animation: pulseLive 1.6s infinite; }
@keyframes pulseLive { 0%{box-shadow:0 0 0 0 rgba(16,196,110,.6);} 70%{box-shadow:0 0 0 10px rgba(16,196,110,0);} 100%{box-shadow:0 0 0 0 rgba(16,196,110,0);} }

.bar-row { display:grid; grid-template-columns: 1fr 50% 56px; align-items:center; gap:.7rem; padding:.55rem 0; border-bottom:1px dashed rgba(255,255,255,.06); }
.bar-row:last-child { border-bottom:none; }
.bar-lab { color: rgba(255,255,255,.85); font-size:.85rem; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:flex; gap:.5rem; align-items:center; }
.brand-ico { display:inline-block; flex-shrink:0; vertical-align:middle; }
.ico-row { display:inline-flex; gap:.4rem; align-items:center; }
.bar-track { height:8px; background: rgba(255,255,255,.06); border-radius:6px; overflow:hidden; }
.bar-fill { height:100%; background: linear-gradient(90deg,#10c46e,#00be9c); border-radius:6px; min-width:2px; }
.bar-fill.alt { background: linear-gradient(90deg,#1e54c1,#3a8df0); }
.bar-val { font-variant-numeric: tabular-nums; text-align:right; color: rgba(255,255,255,.8); font-size:.85rem; }

.src-tag { display:inline-block; padding:2px 8px; border-radius: 999px; font-size:.7rem; font-weight:600; background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); border:1px solid rgba(255,255,255,.1); }
.src-google     { background: rgba(66,133,244,.15);  color:#a5c2ff; border-color: rgba(66,133,244,.35); }
.src-facebook   { background: rgba(24,119,242,.15);  color:#9ec3ff; border-color: rgba(24,119,242,.35); }
.src-instagram  { background: rgba(225,48,108,.15);  color:#ffb3c8; border-color: rgba(225,48,108,.35); }
.src-twitter    { background: rgba(29,161,242,.15);  color:#a8dcff; border-color: rgba(29,161,242,.35); }
.src-linkedin   { background: rgba(10,102,194,.15);  color:#9fc8ff; border-color: rgba(10,102,194,.35); }
.src-youtube    { background: rgba(255,0,0,.12);     color:#ffb1b1; border-color: rgba(255,0,0,.35); }
.src-whatsapp   { background: rgba(37,211,102,.15);  color:#a5e9c5; border-color: rgba(37,211,102,.35); }
.src-tiktok     { background: rgba(0,0,0,.25);       color:#fff;    border-color: rgba(255,255,255,.25); }
.src-directo    { background: rgba(0,190,156,.12);   color:#9ff0d8; border-color: rgba(0,190,156,.30); }
.src-referido   { background: rgba(255,200,80,.12);  color:#ffe2a8; border-color: rgba(255,200,80,.30); }

.hours-grid { display:grid; grid-template-columns: repeat(24, 1fr); gap:4px; }
.hour-cell { aspect-ratio: 1/1; border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.05); }
.hour-h { font-size:.65rem; color: rgba(255,255,255,.55); font-weight:600; }
.hour-v { font-size:.7rem; color:#fff; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .hours-grid { grid-template-columns: repeat(12, 1fr); }
}
.adm-table { width:100%; min-width: 640px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.adm-table th, .adm-table td { padding: 12px 12px; text-align:left; font-size:.85rem; vertical-align: top; overflow: hidden; }
.adm-table thead th { color: var(--ink-2); font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; border-bottom:1px solid rgba(255,255,255,.12); padding-top:14px; padding-bottom:14px; background: rgba(255,255,255,.02); }
.adm-table tbody tr { background: rgba(255,255,255,.02); transition: background .2s; }
.adm-table tbody tr:hover { background: rgba(255,255,255,.07); }
.adm-table tbody td { border-bottom: 1px solid rgba(255,255,255,.06); }
.adm-table td > div, .adm-table td > a:not(.adm-ico) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Responsive column hiding (drop dense cols first as space tightens) */
@media (max-width: 1380px) {
  .adm-table .col-meta { display: none; }
}
@media (max-width: 1180px) {
  .adm-table .col-detail { display: none; }
}
@media (max-width: 960px) {
  .adm-table .col-contact { display: none; }
}
@media (max-width: 720px) {
  .adm-table .col-date { display: none; }
  .adm-table th, .adm-table td { padding: 10px 8px; font-size: .8rem; }
}

/* Icon-sized action buttons */
.adm-ico {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; color: var(--ink-2); border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); transition: all .2s; vertical-align: middle;
}
.adm-ico + .adm-ico { margin-left: 4px; }
.adm-ico:hover { color:#fff; background: rgba(255,255,255,.10); border-color: rgba(0,190,156,.5); }
.adm-ico-danger:hover { color: #fff; background: rgba(255,127,150,.18); border-color: rgba(255,127,150,.5); }

.badge { display:inline-block; padding: 3px 10px; border-radius: 999px; font-size:.72rem; font-weight:600; }
.badge.empresa   { background: rgba(30,84,193,.2); color:#b8d2ff; border:1px solid rgba(30,84,193,.4); }
.badge.municipio { background: rgba(0,190,156,.18); color:#9ff0d8; border:1px solid rgba(0,190,156,.4); }
.badge.publico   { background: rgba(255,180,0,.18); color:#ffd97a; border:1px solid rgba(255,180,0,.45); }

/* Status pills */
.pill { display:inline-block; padding: 2px 8px; border-radius: 6px; font-size:.68rem; font-weight:500; line-height:1.4; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pill-ok    { background: rgba(16,196,110,.14); color: #a4ecc4; border:1px solid rgba(16,196,110,.3); }
.pill-warn  { background: rgba(255,127,150,.12); color: #ffb8c3; border:1px solid rgba(255,127,150,.3); }
.pill-muted { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.12); }

/* Admin avatar */
.adm-avatar {
  position: relative; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, #00be9c 0%, #10c46e 50%, #1e54c1 110%);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px rgba(0,190,156,.4), inset 0 0 0 1px rgba(255,255,255,.2);
}
.adm-avatar-initials {
  color: #fff;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
  line-height: 1;
}
.adm-avatar-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #10c46e; border: 2px solid #02123f;
  box-shadow: 0 0 0 0 rgba(16,196,110,.5);
  animation: avatarPulse 2s infinite;
}
@keyframes avatarPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,196,110,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(16,196,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,196,110,0); }
}
.adm-logout {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  color: rgba(255,255,255,.55); flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  transition: all .2s;
}
.adm-logout:hover {
  color: #ffb8c3; border-color: rgba(255,127,150,.4);
  background: rgba(255,127,150,.1);
}

.nav-link { display:flex; align-items:center; gap:.7rem; padding:.75rem .9rem; border-radius: 12px; color: var(--ink-2); position:relative; transition: background .2s, color .2s; border:1px solid transparent; }
.nav-link:hover { background: rgba(255,255,255,.06); color:#fff; }
.nav-link.active { background: rgba(0,190,156,.12); color:#fff; border-color: rgba(0,190,156,.35); }
.nav-link.active::before { content:""; position:absolute; left:-22px; top:25%; bottom:25%; width:3px; border-radius:2px; background: linear-gradient(180deg,#10c46e,#00be9c); }

/* Detail view (read-only) */
.dt-grid { display:grid; grid-template-columns: 200px 1fr; gap: 0; }
.dt-grid > .dt-k { color: var(--ink-2); font-size:.78rem; padding: 10px 14px; border-bottom:1px solid rgba(255,255,255,.06); text-transform: uppercase; letter-spacing:.05em; }
.dt-grid > .dt-v { color: #fff; font-size:.92rem; padding: 10px 14px; border-bottom:1px solid rgba(255,255,255,.06); word-break: break-word; }
.dt-grid > .dt-v.muted { color: rgba(255,255,255,.4); font-style: italic; }
@media (max-width: 640px) {
  .dt-grid { grid-template-columns: 1fr; }
  .dt-grid > .dt-k { padding-bottom: 0; border-bottom: 0; }
}

@media (max-width: 960px) {
  .adm-sidebar { position: static; width: 100%; border-right:0; border-bottom:1px solid rgba(255,255,255,.1); height:auto; }
  .adm-main { margin-left: 0; max-width: 100%; }
}
