.trx-hor { padding-block: clamp(var(--space-7), 9vw, var(--space-9)); background: var(--bg-base); border-top: 1px solid var(--line); }

/* ── Head ─────────────────────────────────────────────────────────── */
.trx-hor__head { margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.trx-hor__head-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-5); align-items: end; margin-top: var(--space-4); }
@media (max-width: 880px) { .trx-hor__head-grid { grid-template-columns: 1fr; gap: var(--space-4); } }
.trx-hor__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 var(--space-3); max-width: 22ch; }
.trx-hor__lede { font-size: var(--fs-300); color: var(--ink-muted); margin: 0; line-height: 1.6; max-width: 56ch; }

/* Live status */
.trx-hor__status { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-3); padding: var(--space-4); background: var(--brand-primary); color: var(--bg-base); border-radius: var(--radius-md); position: relative; overflow: hidden; justify-self: end; max-width: 360px; width: 100%; }
.trx-hor__status::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; border-radius: 999px; background: radial-gradient(closest-side, rgba(232,117,26,0.32), transparent 70%); pointer-events: none; }
.trx-hor__status > * { position: relative; z-index: 1; }
@media (max-width: 880px) { .trx-hor__status { justify-self: start; max-width: none; } }
.trx-hor__status-dot { width: 12px; height: 12px; border-radius: 999px; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(74,222,128,0.22); animation: trx-hor-pulse 2.2s var(--ease-in-out) infinite; }
.trx-hor__status[data-state="open"] .trx-hor__status-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,0.22); }
.trx-hor__status[data-state="after"] .trx-hor__status-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(232,117,26,0.22); }
.trx-hor__status[data-state="holiday"] .trx-hor__status-dot { background: var(--secondary); box-shadow: 0 0 0 4px rgba(184,168,138,0.32); }
@keyframes trx-hor-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .trx-hor__status-dot { animation: none; } }
.trx-hor__status-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trx-hor__status-label { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.15; margin: 0; color: var(--bg-base); }
.trx-hor__status[data-state="open"]    .trx-hor__status-label { color: #4ade80; }
.trx-hor__status[data-state="after"]   .trx-hor__status-label { color: var(--accent); }
.trx-hor__status[data-state="holiday"] .trx-hor__status-label { color: var(--secondary-soft); }
.trx-hor__status-sub { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.06em; color: var(--secondary-soft); margin: 2px 0 0; }
.trx-hor__status-time { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.12em; color: var(--bg-base); margin: 6px 0 0; padding-top: 6px; border-top: 1px dashed rgba(245,241,234,0.18); }

/* ── Layout ───────────────────────────────────────────────────────── */
.trx-hor__layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(var(--space-5), 3vw, var(--space-7)); align-items: start; margin-bottom: var(--space-7); }
@media (max-width: 960px) { .trx-hor__layout { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Week table */
.trx-hor__week { padding: var(--space-5); background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-md); }
.trx-hor__week-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px dashed var(--line-strong); margin-bottom: var(--space-3); flex-wrap: wrap; }
.trx-hor__week-head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin: 0; color: var(--ink-primary); }
.trx-hor__week-head p { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.06em; color: var(--ink-muted); margin: 0; max-width: 56ch; }

.trx-hor__week-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.trx-hor__week-head-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr; gap: var(--space-3); padding: 8px var(--space-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
@media (max-width: 540px) { .trx-hor__week-head-row { display: none; } }
.trx-hor__week-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr; gap: var(--space-3); padding: var(--space-3) var(--space-2); align-items: center; border-bottom: 1px dashed var(--line); transition: background var(--dur-fast) var(--ease-out); }
.trx-hor__week-row:last-child { border-bottom: 0; }
.trx-hor__week-row.is-weekend { background: var(--bg-base-soft); }
.trx-hor__week-row.is-today { background: rgba(232,117,26,0.08); border-color: rgba(232,117,26,0.32); border-radius: var(--radius-sm); position: relative; }
.trx-hor__week-row.is-today::before { content: ''; position: absolute; left: -8px; top: 4px; bottom: 4px; width: 3px; background: var(--accent); border-radius: 999px; }
@media (max-width: 540px) { .trx-hor__week-row { grid-template-columns: 1fr; gap: 4px; padding: var(--space-3); } .trx-hor__week-row.is-today::before { left: 0; } }
.trx-hor__week-day { font-family: var(--font-display); font-size: var(--fs-300); color: var(--ink-primary); display: inline-flex; align-items: center; gap: 8px; }
.trx-hor__week-today-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: var(--radius-sm); line-height: 1; }
.trx-hor__week-oficina, .trx-hor__week-almacen { font-family: var(--font-mono); font-size: var(--fs-200); letter-spacing: 0.04em; color: var(--ink-primary); }
.trx-hor__week-almacen { color: var(--accent); }
.trx-hor__week-row.is-weekend .trx-hor__week-almacen { color: var(--brand-primary); }
@media (max-width: 540px) {
  .trx-hor__week-oficina::before, .trx-hor__week-almacen::before { display: inline-block; width: 64px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-muted); text-transform: uppercase; margin-right: 8px; }
  .trx-hor__week-oficina::before { content: 'Oficina'; }
  .trx-hor__week-almacen::before { content: 'Almacén'; color: var(--accent); }
}

/* ── Side ─────────────────────────────────────────────────────────── */
.trx-hor__side { display: flex; flex-direction: column; gap: var(--space-4); }

/* Escalado */
.trx-hor__escalado { padding: var(--space-5); background: var(--brand-primary); color: var(--bg-base); border-radius: var(--radius-md); position: relative; overflow: hidden; }
.trx-hor__escalado::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 999px; background: radial-gradient(closest-side, rgba(232,117,26,0.22), transparent 70%); pointer-events: none; }
.trx-hor__escalado > * { position: relative; }
.trx-hor__escalado-head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.7vw, 1.35rem); margin: 0 0 6px; color: var(--bg-base); letter-spacing: -0.015em; }
.trx-hor__escalado-head p { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.06em; color: var(--secondary-soft); margin: 0 0 var(--space-4); }
.trx-hor__escalado-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); position: relative; }
.trx-hor__escalado-list::before { content: ''; position: absolute; left: 12px; top: 12px; bottom: 12px; width: 1px; background: rgba(232,117,26,0.4); }
.trx-hor__escalado-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--space-3); align-items: center; position: relative; }
.trx-hor__escalado-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.04em; box-shadow: 0 0 0 3px rgba(232,117,26,0.22); position: relative; z-index: 1; line-height: 1; }
.trx-hor__escalado-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trx-hor__escalado-hour { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary-soft); }
.trx-hor__escalado-person { font-family: var(--font-display); font-size: var(--fs-300); color: var(--bg-base); line-height: 1.15; letter-spacing: -0.005em; font-style: italic; }
.trx-hor__escalado-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--accent); }
.trx-hor__escalado-channel { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(245,241,234,0.24); border-radius: var(--radius-pill); color: var(--bg-base); text-decoration: none; font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.04em; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); white-space: nowrap; }
.trx-hor__escalado-channel:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.trx-hor__escalado-channel svg { color: var(--accent); }
.trx-hor__escalado-channel:hover svg { color: #fff; }
@media (max-width: 540px) { .trx-hor__escalado-list li { grid-template-columns: 28px 1fr; } .trx-hor__escalado-channel { grid-column: 1 / -1; justify-self: start; margin-left: 40px; } }

/* Festivos */
.trx-hor__festivos { padding: var(--space-5); background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-md); }
.trx-hor__festivos-head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 0 0 4px; color: var(--ink-primary); }
.trx-hor__festivos-head p { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.06em; color: var(--ink-muted); margin: 0 0 var(--space-4); }
.trx-hor__festivos-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.trx-hor__festivos-list li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px dashed var(--line); align-items: center; }
.trx-hor__festivos-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.trx-hor__festivos-date { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; background: var(--bg-base-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); position: relative; }
.trx-hor__festivos-date::before { content: ''; position: absolute; left: 4px; right: 4px; top: 0; height: 2px; background: var(--accent); border-radius: 0 0 2px 2px; }
.trx-hor__festivos-d { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-500); line-height: 1; color: var(--ink-primary); letter-spacing: -0.025em; }
.trx-hor__festivos-m { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--accent); }
.trx-hor__festivos-w { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-muted); }
.trx-hor__festivos-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trx-hor__festivos-label { font-family: var(--font-display); font-size: var(--fs-300); color: var(--ink-primary); line-height: 1.15; letter-spacing: -0.005em; }
.trx-hor__festivos-reach { font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.04em; color: var(--ink-muted); }

/* ── Foot ─────────────────────────────────────────────────────────── */
.trx-hor__foot { display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: center; padding-top: var(--space-5); border-top: 1px solid var(--line); }
@media (max-width: 720px) { .trx-hor__foot { grid-template-columns: 1fr; gap: var(--space-3); } }
.trx-hor__foot-note { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-muted); font-size: var(--fs-300); line-height: 1.6; margin: 0; max-width: 64ch; }
.trx-hor__foot-note > span:first-child { color: var(--accent); font-size: var(--fs-500); line-height: 1; }
.trx-hor__foot .trx-btn { white-space: nowrap; }
.trx-hor__foot .trx-btn__arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.trx-hor__foot .trx-btn:hover .trx-btn__arrow { transform: translateX(3px); }
