  :root {
    /* Paleta clara */
    --bg: #ffffff;
    --bg-soft: #f7f7f5;
    --bg-card: #ffffff;
    --bg-hover: #f0efeb;
    --line: #e5e3dd;
    --line-soft: #efeee9;
    --line-strong: #d4d1c9;

    --ink: #1a1a1a;
    --ink-mid: #5e5e5e;
    --ink-mute: #9a9a96;

    --brand: #8b1d2e;            /* granate foodVAC */
    --brand-soft: #c25266;
    --gold: #b8893d;
    --olive: #6b7d3a;
    --sage: #8a9466;
    --rust: #b85c2a;

    --r1: #8b1d2e;
    --r2: #b85c2a;
    --r3: #b8893d;
    --r4: #6b7d3a;
    --r5: #4a6b6f;
    --r6: #7a4a6b;
    --r7: #c97b3c;
    --r8: #5a6b4a;

    --asana: #1f2a44;
    --asana-soft: #5e6a85;

    --live: #2e8b3a;             /* verde en vivo */
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Cairo', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .app {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
  }

  /* ===== SIDEBAR ===== */
  .sidebar {
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    padding: 26px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .brand {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .brand-mark {
    font-family: 'Cairo', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .brand-mark em {
    font-style: normal;
    color: var(--brand);
    font-weight: 800;
  }
  .brand-sub {
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 8px;
    font-weight: 500;
  }
  .brand-tag {
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-mid);
    line-height: 1.35;
    font-style: italic;
    font-weight: 400;
  }

  .nav-label {
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 22px 0 10px;
    padding: 0 4px;
    font-weight: 600;
  }

  .room-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-mid);
    transition: all .15s ease;
    font-weight: 500;
  }
  .room-pill:hover { background: var(--bg-card); color: var(--ink); border: 1px solid var(--line); padding: 7px 9px; }
  .room-pill .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .room-pill .cap {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--ink-mute);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
  }

  /* ===== MAIN ===== */
  .main {
    padding: 24px 36px 60px;
    max-width: 1700px;
    width: 100%;
  }

  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .title-block h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--ink);
  }
  .title-block h1 em {
    font-style: normal;
    color: var(--brand);
    font-weight: 800;
  }
  .title-block .meta {
    font-size: 11px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 6px;
    font-weight: 600;
  }

  .top-actions {
    display: flex; align-items: center; gap: 10px;
  }

  .view-switcher {
    display: flex;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 3px;
    gap: 0;
  }
  .view-btn {
    background: transparent;
    border: none;
    color: var(--ink-mid);
    padding: 8px 16px;
    border-radius: 3px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all .15s ease;
  }
  .view-btn:hover { color: var(--ink); }
  .view-btn.active {
    background: var(--brand);
    color: white;
  }
  .view-btn.live-btn {
    display: flex; align-items: center; gap: 6px;
    padding-left: 12px;
  }
  .view-btn.live-btn::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--live);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(46,139,58,.2);
    animation: pulse 1.6s ease-in-out infinite;
  }
  .view-btn.live-btn.active::before {
    background: white;
    box-shadow: 0 0 0 2px rgba(255,255,255,.4);
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  .refresh-btn {
    width: 38px; height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-mid);
    transition: all .15s ease;
    font-size: 16px;
  }
  .refresh-btn:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--bg-soft);
  }
  .refresh-btn.spinning svg {
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  .last-update {
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 4px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  /* ===== STATS BAR ===== */
  .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
  }
  .stat {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px 20px;
    position: relative;
  }
  .stat::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent-bar, var(--brand));
    border-radius: 6px 0 0 6px;
  }
  .stat .label {
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
  }
  .stat .value {
    font-size: 32px;
    font-weight: 800;
    margin-top: 2px;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .stat .delta {
    font-size: 11px;
    color: var(--ink-mid);
    margin-top: 6px;
    font-weight: 500;
  }
  .stat .delta.up { color: var(--olive); }
  .stat .delta.down { color: var(--brand); }

  /* ===== SECTIONS ===== */
  .section {
    margin-bottom: 30px;
  }
  .section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
  }
  .section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .section-title em {
    font-style: normal;
    color: var(--brand);
    font-weight: 800;
  }
  .section-meta {
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
  }

  /* ===== EN VIVO HERO ===== */
  .live-hero {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 28px;
    border-top: 3px solid var(--live);
  }
  .live-hero-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .live-hero-title {
    display: flex; align-items: center; gap: 10px;
  }
  .live-hero-title h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .live-pulse {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(46,139,58,.12);
    color: var(--live);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  .live-pulse::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--live);
    border-radius: 50%;
    animation: pulse 1.6s ease-in-out infinite;
  }
  .live-clock {
    font-size: 13px;
    color: var(--ink-mid);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
  }

  .live-rooms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .live-card {
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 14px;
    border-left: 3px solid var(--room-color);
    position: relative;
  }
  .live-card .lc-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
  }
  .live-card .lc-state {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .live-card.busy .lc-state { color: var(--brand); }
  .live-card.free .lc-state { color: var(--olive); }
  .live-card.soon .lc-state { color: var(--gold); }
  .live-card .lc-status-dot {
    position: absolute;
    top: 14px; right: 14px;
    width: 8px; height: 8px;
    border-radius: 50%;
  }
  .live-card.busy .lc-status-dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(139,29,46,.15); }
  .live-card.free .lc-status-dot { background: var(--olive); box-shadow: 0 0 0 3px rgba(107,125,58,.15); }
  .live-card.soon .lc-status-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,61,.15); }

  .lc-now {
    background: white;
    border-radius: 3px;
    padding: 8px 10px;
    border-left: 2px solid var(--room-color);
    font-size: 12px;
  }
  .lc-now .lc-time {
    font-size: 10px;
    color: var(--ink-mute);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .lc-now .lc-title {
    font-weight: 600;
    color: var(--ink);
    margin-top: 1px;
  }
  .lc-now .lc-empty {
    color: var(--ink-mute);
    font-style: italic;
    font-size: 11px;
  }
  .lc-next {
    margin-top: 6px;
    font-size: 11px;
    color: var(--ink-mid);
    font-weight: 500;
  }
  .lc-next strong { color: var(--ink); font-weight: 700; }

  /* Tareas Asana de hoy en bloque dedicado */
  .live-tasks {
    grid-column: span 2;
    background: rgba(31,42,68,.04);
    border-color: var(--asana);
    border-left-color: var(--asana);
  }
  .live-tasks .lc-name { color: var(--asana); }
  .live-tasks .task-row {
    background: white;
    border-left: 2px dashed var(--asana);
    padding: 7px 10px;
    border-radius: 0 3px 3px 0;
    margin-bottom: 5px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px;
  }
  .live-tasks .task-row:last-child { margin-bottom: 0; }
  .live-tasks .task-row .tag {
    font-size: 9px;
    background: var(--asana);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    flex-shrink: 0;
  }
  .live-tasks .task-row.late .tag { background: var(--brand); }
  .live-tasks .task-row .task-name {
    font-weight: 500;
    color: var(--ink);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .live-tasks .task-row .task-due {
    font-size: 10.5px;
    color: var(--ink-mute);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
  }

  /* Legenda */
  .legend {
    display: flex; gap: 16px; margin-bottom: 12px;
    font-size: 10.5px;
    color: var(--ink-mid);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
  }
  .legend-item { display: flex; align-items: center; gap: 6px; }
  .legend-item .swatch {
    width: 16px; height: 11px; border-radius: 2px;
  }
  .legend-item .swatch.solid { background: var(--brand); }
  .legend-item .swatch.task {
    border: 1px dashed var(--asana);
    background-color: rgba(31,42,68,0.08);
  }
  .legend-item .swatch.milestone {
    background: var(--asana); border-radius: 50%;
    width: 11px; height: 11px;
  }

  /* ===== TIMELINE ===== */
  .timeline {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: visible;
  }
  .timeline-head {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
  }
  .timeline-head .room-col {
    padding: 12px 18px;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border-right: 1px solid var(--line);
    font-weight: 700;
  }
  .timeline-head .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
  .timeline-head .day {
    padding: 8px 8px;
    font-size: 10px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    border-right: 1px solid var(--line-soft);
    font-weight: 700;
  }
  .timeline-head .day:last-child { border-right: none; }
  .timeline-head .day .num {
    display: block;
    font-size: 18px;
    color: var(--ink);
    margin-top: 2px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  .timeline-head .day.today {
    background: rgba(139,29,46,0.04);
  }
  .timeline-head .day.today .num { color: var(--brand); }

  .timeline-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--line-soft);
    min-height: 58px;
  }
  .timeline-row:last-child { border-bottom: none; }
  .timeline-row.asana-row {
    background: rgba(31,42,68,0.02);
    border-top: 1px dashed var(--line-strong);
  }
  .timeline-row .room-label {
    padding: 12px 18px;
    border-right: 1px solid var(--line);
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
    background: var(--bg-soft);
    font-weight: 600;
  }
  .timeline-row.asana-row .room-label {
    background: rgba(31,42,68,0.04);
  }
  .timeline-row .room-label .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .timeline-row .room-label .name {
    color: var(--ink);
  }
  .timeline-row .room-label .cap {
    font-size: 10.5px;
    color: var(--ink-mute);
    margin-left: auto;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }
  .timeline-row .room-label .asana-tag {
    font-size: 9px;
    color: var(--asana);
    background: rgba(31,42,68,0.1);
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
  }

  .timeline-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
  .timeline-track .cell {
    border-right: 1px solid var(--line-soft);
    min-height: 58px;
  }
  .timeline-track .cell:last-child { border-right: none; }
  .timeline-track .cell.today {
    background: rgba(139,29,46,0.025);
  }

  .booking {
    position: absolute;
    /* top y height vienen del style inline para soportar lanes */
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11.5px;
    line-height: 1.3;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid;
    transition: transform .15s ease, box-shadow .15s ease;
    color: white;
    font-weight: 500;
  }
  .booking:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,26,26,.15);
    z-index: 5;
  }
  .booking .b-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .booking .b-time {
    font-size: 9.5px;
    opacity: .9;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }

  .task-item {
    position: absolute;
    /* top y height vienen del style inline para soportar lanes */
    border-radius: 4px;
    padding: 5px 10px 5px 22px;
    font-size: 11.5px;
    line-height: 1.3;
    cursor: pointer;
    overflow: hidden;
    border: 1px dashed var(--asana);
    background: rgba(31,42,68,0.06);
    color: var(--asana);
    transition: all .15s ease;
    font-weight: 500;
  }
  .task-item:hover {
    background: rgba(31,42,68,0.12);
    transform: translateY(-1px);
    z-index: 5;
  }
  .task-item::before {
    content: '';
    position: absolute;
    left: 7px; top: 50%;
    transform: translateY(-50%);
    width: 9px; height: 9px;
    border: 1.5px solid var(--asana);
    border-radius: 2px;
  }
  .task-item.done {
    opacity: 0.55;
    text-decoration: line-through;
  }
  .task-item.done::before {
    background: var(--asana);
  }
  .task-item.late {
    background: rgba(139,29,46,0.08);
    border-color: var(--brand);
    color: var(--brand);
  }
  .task-item.late::before {
    border-color: var(--brand);
  }
  .task-item .t-title {
    font-weight: 600;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
  }
  .task-item .t-meta {
    font-size: 9.5px;
    opacity: .85;
    font-weight: 500;
    margin-top: 2px;
  }

  .milestone {
    position: absolute;
    top: 14px;
    width: 28px; height: 28px;
    background: var(--asana);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(31,42,68,0.3);
    transition: transform .15s ease;
  }
  .milestone:hover { transform: scale(1.12); z-index: 10; }
  .milestone.late {
    background: var(--brand);
    box-shadow: 0 2px 6px rgba(139,29,46,0.3);
  }

  /* ===== WEEK GRID ===== */
  .week-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
  }
  .week-grid {
    display: grid;
    grid-template-columns: 60px repeat(8, 1fr);
    font-size: 11px;
  }
  .week-grid .wg-head {
    background: var(--bg-soft);
    padding: 10px 6px;
    font-size: 9.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line-soft);
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
  }
  .week-grid .wg-head:last-child { border-right: none; }
  .week-grid .wg-head .rid {
    display: block;
    font-size: 14px;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 800;
    color: var(--ink);
  }
  .week-grid .wg-time {
    background: var(--bg-soft);
    padding: 6px 6px 0;
    font-size: 9.5px;
    color: var(--ink-mute);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .week-grid .wg-cell {
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    height: 28px;
    position: relative;
  }
  .week-grid .wg-cell:nth-child(9n+9) { border-right: none; }
  .wg-event {
    position: absolute;
    inset: 1px;
    border-radius: 2px;
    cursor: pointer;
  }
  .wg-event:hover { filter: brightness(1.08); z-index: 5; }

  /* ===== DAY VIEW ===== */
  .day-view-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 22px 24px;
  }
  .day-rooms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .room-block {
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 16px;
    border-top: 3px solid var(--room-color);
    position: relative;
  }
  .room-block .rb-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 2px;
  }
  .room-block .rb-cap {
    font-size: 9.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    font-weight: 600;
  }
  .room-block .rb-status {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 9px; height: 9px;
    border-radius: 50%;
  }
  .rb-status.busy { background: var(--brand); box-shadow: 0 0 0 3px rgba(139,29,46,.15); }
  .rb-status.free { background: var(--olive); box-shadow: 0 0 0 3px rgba(107,125,58,.15); }
  .rb-status.soon { background: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,61,.15); }

  .rb-event {
    background: var(--bg-card);
    border-left: 2px solid var(--room-color);
    padding: 7px 10px;
    border-radius: 0 3px 3px 0;
    margin-bottom: 6px;
    font-size: 11.5px;
  }
  .rb-event.task {
    border-left: 2px dashed var(--asana);
    background: rgba(31,42,68,0.04);
  }
  .rb-event:last-child { margin-bottom: 0; }
  .rb-event .ev-time {
    font-size: 9.5px;
    color: var(--ink-mute);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .rb-event .ev-title {
    font-weight: 600;
    color: var(--ink);
    margin-top: 1px;
  }
  .rb-event.task .ev-title {
    color: var(--asana);
  }

  /* ===== PROJECT STATUS ===== */
  .project-status {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-top: 3px solid var(--asana);
  }
  .project-status .ps-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .project-status .ps-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
  }
  .project-status .ps-title em { font-style: normal; color: var(--asana); font-weight: 800; }
  .project-status .ps-status {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
  }
  .ps-status.green { background: rgba(107,125,58,.12); color: var(--olive); }
  .ps-status.yellow { background: rgba(184,137,61,.15); color: var(--gold); }
  .ps-status.red { background: rgba(139,29,46,.1); color: var(--brand); }

  .ps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
  }
  .ps-cell .label {
    font-size: 9.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
    font-weight: 700;
  }
  .ps-cell .value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .ps-cell .value.brand { color: var(--brand); }
  .ps-cell .value.gold { color: var(--gold); }
  .ps-cell .value.asana { color: var(--asana); }
  .ps-cell .value-sub {
    font-size: 10px;
    color: var(--ink-mute);
    margin-top: 4px;
    font-weight: 500;
  }

  .progress-track {
    margin-top: 8px;
    height: 5px;
    background: var(--bg-soft);
    border-radius: 3px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--asana), var(--asana-soft));
    border-radius: 3px;
  }

  .footer-note {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
  }
  .footer-note em {
    font-style: italic;
    text-transform: none;
    color: var(--ink-mid);
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 400;
  }

  .view { display: none; }
  .view.active { display: block; animation: fadeIn .25s ease; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 1100px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .live-rooms { grid-template-columns: repeat(2, 1fr); }
    .day-rooms { grid-template-columns: repeat(2, 1fr); }
    .ps-grid { grid-template-columns: repeat(2, 1fr); }
  }

/* ===== LOGIN SCREEN ===== */
#login-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.login-content {
  text-align: center;
  max-width: 360px;
  padding: 40px;
}
.login-mark {
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.login-mark em { font-style: normal; color: var(--brand); }
.login-sub {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 10px;
  font-weight: 600;
}
.login-tag {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mid);
  font-style: italic;
  margin-bottom: 36px;
}
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.login-btn:hover {
  border-color: var(--brand);
  background: var(--bg-soft);
}
.login-info {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0;
  font-weight: 500;
}
.login-info strong { color: var(--brand); font-weight: 700; }
#login-error {
  margin-top: 16px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
}

/* ===== USER BOX ===== */
.user-box {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-mid);
}
.user-box img {
  width: 24px; height: 24px;
  border-radius: 50%;
}
.user-box .user-name {
  flex: 1;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.user-box .logout {
  background: none;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
}
.user-box .logout:hover { color: var(--brand); }

/* ============================================================
   v1.1 — NAVEGACIÓN, FILTROS, EN VIVO HORARIO, SEMANAL COMPLETA
   ============================================================ */

/* ----- Navegación de fechas ----- */
.date-nav {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.nav-btn, .nav-today {
  background: transparent;
  border: none;
  color: var(--ink-mid);
  padding: 7px 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  border-right: 1px solid var(--line);
}
.nav-btn:last-child, .nav-today:last-child { border-right: none; }
.nav-btn { font-size: 18px; line-height: 1; padding: 4px 10px; }
.nav-btn:hover, .nav-today:hover {
  background: var(--bg-card);
  color: var(--brand);
}
.nav-today {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
}

/* ----- Sidebar como filtros ----- */
.nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-toggle-all {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Cairo', sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-toggle-all:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.room-filter {
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: all .15s ease;
  border-left: 2px solid transparent;
  padding-left: 8px;
}
.room-filter.active {
  background: var(--bg-card);
}
.room-filter:not(.active) {
  opacity: 0.4;
}
.room-filter:not(.active) .dot {
  background: var(--ink-mute) !important;
}
.room-filter:hover {
  opacity: 1;
  background: var(--bg-hover, var(--bg-card));
}

/* ----- VISTA EN VIVO: timeline horario ----- */
.hour-timeline {
  position: relative;
  max-height: 65vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-soft);
}
.ht-grid {
  display: grid;
  grid-template-columns: 60px repeat(var(--rooms), 1fr);
  position: relative;
}
.ht-corner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  height: 44px;
}
.ht-room-head {
  background: var(--bg-soft);
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 5;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ht-room-head:last-child { border-right: none; }
.ht-room-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
.ht-hours {
  position: relative;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  height: var(--total-h);
}
.ht-hour-mark {
  position: absolute;
  left: 0; right: 0;
  font-size: 10px;
  color: var(--ink-mute);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px 0;
  text-align: right;
  background: var(--bg-soft);
}
.ht-room-col {
  position: relative;
  border-right: 1px solid var(--line-soft);
  background: var(--bg-card);
  height: var(--total-h);
}
.ht-room-col:last-child { border-right: none; }
.ht-hour-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-soft);
}
.ht-event {
  position: absolute;
  left: 4px; right: 4px;
  border-radius: 4px;
  padding: 4px 8px;
  color: white;
  font-size: 11.5px;
  line-height: 1.25;
  border: 1px solid;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ht-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  z-index: 4;
}
.ht-event-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ht-event-time {
  font-size: 10px;
  opacity: .9;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.ht-now {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-top: 2px solid var(--live);
  z-index: 6;
  pointer-events: none;
}
.ht-now::before {
  content: '';
  position: absolute;
  left: 60px;
  top: -5px;
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46,139,58,.25);
}
.ht-now-label {
  position: absolute;
  left: 4px;
  top: -8px;
  background: var(--live);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

/* ----- VISTA SEMANAL completa ----- */
.week-full-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
  max-height: 70vh;
}
.week-full {
  display: grid;
  grid-template-columns: 50px repeat(7, 1fr);
  position: relative;
}
.wf-corner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  height: 42px;
}
.wf-day-head {
  background: var(--bg-soft);
  padding: 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 5;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wf-day-head.today { background: rgba(139,29,46,.05); }
.wf-day-head:last-child { border-right: none; }
.wf-dow {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.wf-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.wf-day-head.today .wf-num { color: var(--brand); }

.wf-hours {
  position: relative;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  height: var(--total-h);
}
.wf-hour-mark {
  position: absolute;
  left: 0; right: 0;
  font-size: 9.5px;
  color: var(--ink-mute);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 2px 4px 0;
  text-align: right;
}
.wf-day-col {
  position: relative;
  border-right: 1px solid var(--line-soft);
  background: var(--bg-card);
  height: var(--total-h);
}
.wf-day-col.today { background: rgba(139,29,46,.02); }
.wf-day-col:last-child { border-right: none; }
.wf-hour-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-soft);
}
.wf-event {
  position: absolute;
  border-radius: 3px;
  padding: 3px 5px;
  color: white;
  font-size: 10.5px;
  line-height: 1.2;
  border: 1px solid;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
}
.wf-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  z-index: 4;
}
.wf-event-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-event-time {
  font-size: 9px;
  opacity: .9;
  font-variant-numeric: tabular-nums;
}
.wf-now {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-top: 2px solid var(--live);
  z-index: 5;
  pointer-events: none;
}
.wf-now::before {
  content: '';
  position: absolute;
  left: 0;
  top: -4px;
  width: 6px; height: 6px;
  background: var(--live);
  border-radius: 50%;
}

/* ============================================================
   v1.2 — Live Gantt horizontal + botón Hoy disabled
   ============================================================ */

/* Botón Hoy - estado activo (cuando ya estás en hoy) */
.nav-today.is-active,
.nav-today:disabled {
  background: var(--brand);
  color: white;
  cursor: default;
  opacity: 1;
}
.nav-today:disabled:hover {
  background: var(--brand);
  color: white;
}

/* ----- Live Gantt horizontal ----- */
.live-gantt-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow-x: auto;
  overflow-y: visible;
  background: var(--bg-soft);
  position: relative;
}
.lg-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  position: relative;
  min-width: max-content;
}
.lg-corner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: sticky;
  left: 0;
  z-index: 5;
  height: 36px;
}
.lg-hours-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  height: 36px;
  position: relative;
}
.lg-hour-mark {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4px;
  font-size: 10px;
  color: var(--ink-mute);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line-soft);
}
.lg-hour-mark:first-child { border-left: none; }

.lg-room-label {
  background: var(--bg-soft);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  position: sticky;
  left: 0;
  z-index: 4;
  height: 50px;
}
.lg-room-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lg-room-row {
  position: relative;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
}
.lg-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.lg-event {
  position: absolute;
  border-radius: 4px;
  border: 1px solid;
  color: white;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lg-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  z-index: 4;
}
.lg-event-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lg-event-time {
  font-size: 9.5px;
  opacity: .9;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.lg-now {
  position: absolute;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--live);
  z-index: 6;
  pointer-events: none;
}
.lg-now-label {
  position: absolute;
  top: -34px;
  left: -22px;
  background: var(--live);
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  white-space: nowrap;
}
/* Pequeña flecha hacia abajo desde el label hacia la línea */
.lg-now-label::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--live);
}

/* ============================================================
   v1.3 — Vista Diaria reorganizada
   ============================================================ */

.asana-day-block {
  background: rgba(31,42,68,.04);
  border: 1px solid rgba(31,42,68,.2);
  border-top: 3px solid var(--asana);
  padding: 16px 20px;
}
.rb-header-asana {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31,42,68,.1);
}
.rb-header-asana .rb-name {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}
.rb-header-asana .rb-count {
  font-size: 11px;
  color: var(--asana);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.asana-day-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.asana-day-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px dashed var(--asana);
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.asana-day-item:hover {
  background: var(--bg-soft);
  border-color: var(--asana);
}
.asana-day-item.late {
  border-left-color: var(--brand);
  border-left-style: solid;
  background: rgba(139,29,46,.04);
}
.asana-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.asana-day-meta .task-section {
  color: var(--ink-mute);
}
.task-late-tag {
  background: var(--brand);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
}
.task-milestone-tag {
  background: var(--asana);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
}
.asana-day-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}
.asana-day-item.late .asana-day-title {
  color: var(--brand);
}

/* Vista Diaria — limpieza */
.room-block .rb-name {
  margin-bottom: 12px;
}
.empty-row .ev-title {
  font-size: 18px;
  color: var(--ink-mute);
  text-align: center;
  font-weight: 400;
}

/* ============================================================
   v1.3 fix — Asegurar altura dinámica del Timeline
   ============================================================ */

.timeline-row {
  align-items: stretch;
}
.timeline-track {
  position: relative;
  /* La altura inline (style="height:...") debe respetarse */
}
.timeline-track .cell {
  /* Que crezca a la altura del padre, no a 58px fijos */
  height: 100%;
  min-height: 0;
}
.booking, .task-item {
  /* Asegurar que se ven aunque estén bien abajo */
  z-index: 2;
}
.booking:hover, .task-item:hover {
  z-index: 10;
}

/* ============================================================
   v1.3.2 — Timeline track sin grid (fix definitivo del solapamiento)
   ============================================================ */

.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line-soft);
  /* la altura ahora la pone el JS inline */
}

.timeline-track-v2 {
  position: relative;
  background: var(--bg-card);
  height: 100%;
  overflow: hidden;
}
.track-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
  pointer-events: none;
}
.track-today {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(139,29,46,.025);
  pointer-events: none;
}

/* En semanal cuando hay muchos eventos, asegurar que se vean los del lane más alto */
.wf-day-col {
  overflow: visible;
}

/* ============================================================
   v1.4.1 — Vista Diaria Asana rediseñada (formato Timeline)
   ============================================================ */

.asana-day-block {
  background: rgba(31,42,68,.04);
  border: 1px solid var(--line);
  border-top: 3px solid var(--asana);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 4px;
}
.asana-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(31,42,68,.1);
}
.asana-day-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.asana-day-title-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.asana-day-h {
  font-size: 16px;
  font-weight: 800;
  color: var(--asana);
}
.asana-day-count {
  font-size: 10px;
  color: var(--asana);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.asana-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.task-item-day {
  background: rgba(31,42,68,0.06);
  border: 1px dashed var(--asana);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--asana);
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.task-item-day:hover {
  background: rgba(31,42,68,0.12);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(31,42,68,.12);
}
.task-item-day.late {
  background: rgba(139,29,46,.06);
  border-color: var(--brand);
  border-style: solid;
  color: var(--brand);
}
.task-item-day.done {
  opacity: .55;
  text-decoration: line-through;
}
.t-day-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}
.t-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.t-day-section {
  color: var(--ink-mute);
  opacity: .85;
}
.t-tag {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
}
.late-tag {
  background: var(--brand);
  color: white;
}
.milestone-tag {
  background: var(--asana);
  color: white;
}

/* ============================================================
   v1.5 — Marca foodVAC consistente + subtítulo más visible
   ============================================================ */

/* Loader mark con misma identidad: food negro, VAC granate */
.loader-mark {
  font-family: 'Cairo', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.loader-mark em {
  font-style: normal;
  color: var(--brand);
  font-weight: 800;
}

/* Subtítulo de fecha más prominente bajo "Salas & tareas" */
.title-block .meta {
  font-size: 14px !important;
  color: var(--ink-mid) !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  margin-top: 8px !important;
  font-weight: 600 !important;
}

/* footer-meta: misma marca consistente */
.footer-note span:first-child em {
  font-style: normal;
  color: var(--brand);
  font-weight: 700;
}

/* ============================================================
   v1.6 — Sección Asana en vista Semanal + ajustes finales
   ============================================================ */

.week-asana {
  margin-top: 16px;
  background: rgba(31,42,68,.04);
  border: 1px solid var(--line);
  border-top: 3px solid var(--asana);
  border-radius: 6px;
  padding: 14px 16px;
}
.week-asana-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(31,42,68,.1);
}
.week-asana-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.week-asana-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--asana);
}
.week-asana-sub {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 600;
  margin-left: auto;
}
.week-asana-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week-asana-day {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  min-height: 90px;
}
.week-asana-day.today {
  border-color: var(--brand);
  border-width: 2px;
}
.week-asana-day-head {
  background: var(--bg-soft);
  padding: 6px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.wad-dow {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.wad-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.week-asana-day.today .wad-num { color: var(--brand); }
.week-asana-tasks {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.wad-empty {
  color: var(--ink-mute);
  text-align: center;
  font-size: 13px;
  padding-top: 8px;
}
.wad-task {
  font-size: 10.5px;
  line-height: 1.3;
  background: rgba(31,42,68,0.06);
  border: 1px dashed var(--asana);
  border-radius: 3px;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--asana);
  font-weight: 600;
  transition: all .15s ease;
  word-break: break-word;
}
.wad-task:hover {
  background: rgba(31,42,68,0.12);
}
.wad-task.late {
  border-color: var(--brand);
  border-style: solid;
  background: rgba(139,29,46,.06);
  color: var(--brand);
}
.wad-task.done {
  opacity: .55;
  text-decoration: line-through;
}
.wad-milestone {
  color: var(--asana);
  font-weight: 800;
  margin-right: 2px;
}

/* ============================================================
   v1.8 — Timeline sin recortes en fila Asana
   ============================================================ */

.timeline-row.asana-row {
  overflow: visible;
}
.timeline-row.asana-row .timeline-track-v2 {
  overflow: visible;
}

/* v2.0 — Bloque Asana en Timeline con margin extra */
#timeline-asana-block .week-asana {
  margin-top: 20px;
}

/* v2.1 — Footer brand sin uppercase, food negro / VAC granate */
.footer-brand {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}
.footer-brand em {
  font-style: normal !important;
  color: var(--brand) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
}
