/* ===========================================================================
 * MapFI · design-system.css
 * Identidad visual Facultad de Ingeniería · Universidad de Concepción.
 * Paleta navy #12395E (logo oficial) + dorado institucional.
 * Tipografía Poppins (títulos) + Open Sans (cuerpo).
 * ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Marca UdeC FI */
  --brand:         #0E3257;   /* navy profundo (deriva del logo #12395E) */
  --brand-2:       #1A4C82;
  --brand-dark:    #081F39;   /* navy muy profundo */
  --brand-contrast:#FFFFFF;
  --brand-soft:    #E7EEF6;   /* tinte para fondos/hover */
  --gold:          #C8A24B;   /* dorado institucional */
  --gold-dark:     #8A6D26;

  /* Semáforo (compatibilidad / mapa de calor) */
  --verde:    #16A34A; --verde-bg:    #DCFCE7; --verde-text:    #15803D;
  --amarillo: #CA8A04; --amarillo-bg: #FEF9C3; --amarillo-text: #A16207;
  --rojo:     #DC2626; --rojo-bg:     #FEE2E2; --rojo-text:     #B91C1C;

  /* Superficies (claro) */
  --bg:        #F4F7FA;
  --surface:   #FFFFFF;
  --surface-2: #FAFBFD;
  --border:    #E3E9F0;
  --text:      #0F2033;
  --text-soft: #566678;
  --ring:      rgba(14, 50, 87, .40);

  /* Forma y profundidad */
  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(18,34,54,.06), 0 2px 8px rgba(18,34,54,.06);
  --shadow-lg: 0 12px 30px rgba(18,34,54,.14);
  --space: 16px;
  --topbar-h: 64px;
}

[data-theme="dark"] {
  --brand:      #3B6FA0;
  --brand-2:    #4C82B6;
  --brand-dark: #2C5982;
  --brand-soft: #15314A;
  --gold:       #D8B45E;
  --bg:        #0A1622;
  --surface:   #0F2235;
  --surface-2: #13283D;
  --border:    #20384F;
  --text:      #E6EDF4;
  --text-soft: #93A6B8;
  --ring:      rgba(76, 130, 182, .45);
  --shadow:    none;
  --shadow-lg: 0 12px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

/* El atributo [hidden] debe ganar siempre, incluso sobre .btn (display:flex). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--space); }
.muted { color: var(--text-soft); }
.center { text-align: center; }

/* ── Topbar ──────────────────────────────────────────────────────────── */
.topbar {
  background: var(--surface); /* fallback */
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  animation: slideDown .4s ease both;
}
.topbar .inner {
  display: flex; align-items: center; gap: var(--space);
  height: var(--topbar-h); max-width: 1160px; margin: 0 auto; padding: 0 var(--space);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--brand); }
.brand:hover { color: var(--brand); }
.brand-logo { height: 38px; width: auto; display: block; }
[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); opacity: .92; }
[data-theme="dark"] .giia-logo { filter: brightness(0) invert(1); opacity: .92; }
.brand-name { font-size: 1.15rem; letter-spacing: .02em; }

.topbar nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.topbar nav a {
  position: relative; color: var(--text-soft); padding: 8px 12px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; transition: color .15s ease, background .15s ease;
}
.topbar nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.topbar nav a:hover { color: var(--brand); text-decoration: none; }
.topbar nav a:hover::after, .topbar nav a.active::after { transform: scaleX(1); }
.topbar nav a.active { color: var(--brand); }

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; min-height: 42px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem; cursor: pointer;
  background: var(--brand); color: var(--brand-contrast);
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }
.btn.gold { background: var(--gold); color: #2A2410; }
.btn.gold:hover { background: var(--gold-dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text-soft); cursor: pointer; transition: all .15s ease;
}
.btn-icon:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }
.btn-icon:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card.interactive:hover { transform: translateY(-3px); border-color: var(--brand-soft); }

.grid { display: grid; gap: var(--space); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Hero (portada) ──────────────────────────────────────────────────── */
.hero {
  background: var(--brand); /* fallback solido si no hay color-mix */
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(255,255,255,.10), transparent),
    linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 48px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 22px; }
.hero .btn.secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn.secondary:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }

/* ── Formularios ─────────────────────────────────────────────────────── */
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface); color: var(--text); margin-bottom: 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }

/* ── Badges / semáforo ───────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.alto  { background: var(--verde-bg);    color: var(--verde-text); }
.badge.medio { background: var(--amarillo-bg); color: var(--amarillo-text); }
.badge.bajo  { background: var(--rojo-bg);     color: var(--rojo-text); }
.badge.gold  { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-dark); }

/* ── Mapa de calor ───────────────────────────────────────────────────── */
.heat { display: inline-block; width: 100%; height: 30px; border-radius: var(--radius-sm); transition: transform .15s ease; }
.heat:hover { transform: scaleY(1.12); }
.heat.VERDE    { background: var(--verde); }
.heat.AMARILLO { background: var(--amarillo); }
.heat.ROJO     { background: var(--rojo); }

/* ── Tablas ──────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { color: var(--text-soft); font-weight: 600; font-family: var(--font-head); }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: var(--brand-soft); }

/* ── Iconos ──────────────────────────────────────────────────────────── */
.icon { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -3px; }
.icon svg { width: 100%; height: 100%; }
.title-icon { color: var(--brand); }

/* ── Utilidades ──────────────────────────────────────────────────────── */
.section { padding: 28px 0; }
.stack > * + * { margin-top: var(--space); }
.row { display: flex; gap: var(--space); align-items: center; flex-wrap: wrap; }
.placeholder {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px;
  text-align: center; color: var(--text-soft); background: var(--surface-2);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { flex-shrink: 0; background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.site-footer .inner {
  max-width: 1160px; margin: 0 auto; padding: 26px var(--space); display: flex;
  align-items: center; justify-content: space-between; gap: var(--space); flex-wrap: wrap;
  color: var(--text-soft); font-size: .88rem; line-height: 1.5;
}
.site-footer .foot-brand strong { color: var(--text); font-family: var(--font-head); }
.site-footer .credits { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.giia-logo { height: 42px; width: auto; opacity: .95; }
[data-theme="dark"] .giia-logo { filter: brightness(0) invert(1); opacity: .9; }
.foot-bottom { border-top: 1px solid var(--border); text-align: center; padding: 12px; color: var(--text-soft); font-size: .78rem; }

/* ── Lista de eventos cercanos ───────────────────────────────────────── */
.evento-item { display: flex; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--border); transition: background .12s ease; }
.evento-item:last-child { border-bottom: none; }
.evento-item:hover { background: var(--brand-soft); }
.evento-fecha {
  flex-shrink: 0; width: 60px; text-align: center; font-family: var(--font-head);
  font-weight: 700; color: var(--brand); line-height: 1.15; text-transform: capitalize;
}
.evento-fecha span { display: block; font-size: .72rem; font-weight: 500; color: var(--text-soft); }
.evento-info { min-width: 0; }

/* ── Toast ───────────────────────────────────────────────────────────── */
#toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: grid; gap: 8px; }
.toast {
  background: var(--text); color: var(--surface); padding: 12px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: .9rem; animation: toastIn .22s ease;
}
.toast.error   { background: var(--rojo); color: #fff; }
.toast.success { background: var(--verde); color: #fff; }

/* ── Animaciones ─────────────────────────────────────────────────────── */
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

main > .section { animation: fadeUp .5s ease both; }
main > .section:nth-child(2) { animation-delay: .06s; }
main > .section:nth-child(3) { animation-delay: .12s; }

/* ── Encabezado de página ─────────────────────────────────────────────── */
.page-head { margin-bottom: 18px; }
.page-head .subtitle { color: var(--text-soft); margin: -2px 0 0; max-width: 72ch; }
.filters { padding: 16px 18px; }

/* ── Horario semanal (timetable) ──────────────────────────────────────── */
.timetable {
  display: grid; grid-template-columns: 54px repeat(5, 1fr); gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; overflow-x: auto;
}
.tt-corner { grid-column: 1; grid-row: 1; }
.tt-day {
  text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 6px; padding: 7px 4px;
  display: flex; align-items: center; justify-content: center;
}
.tt-hour { font-size: .7rem; color: var(--text-soft); text-align: right; padding-right: 6px; }
.tt-block {
  border-radius: 6px; padding: 4px 6px; color: #fff; overflow: hidden; position: relative;
  display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow);
}
.tt-block strong { font-weight: 600; font-size: .76rem; line-height: 1.12; }
.tt-block span { opacity: .9; font-size: .68rem; }
.tt-block.CLASE { background: var(--brand); }
.tt-block.PROTEGIDO { background: var(--gold-dark); }
.tt-block.LIBRE { background: var(--verde); }
.tt-del {
  position: absolute; top: 1px; right: 4px; background: transparent; border: none;
  color: #fff; cursor: pointer; font-size: 15px; line-height: 1; opacity: .75;
}
.tt-del:hover { opacity: 1; }
.tt-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 0; font-size: .85rem; color: var(--text-soft); }
.tt-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* Calendario con creación al hacer clic en un día */
.cal-pickable .fc-daygrid-day, .cal-pickable .fc-timegrid-slot { cursor: pointer; }

/* Evento con choque detectado (mismo público, horario solapado) */
.fc-event.evento-conflicto {
  border: 2px solid #F59E0B !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .35);
}
.fc-event.evento-conflicto .fc-event-title::before {
  content: "!"; display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; margin-right: 4px; border-radius: 50%;
  background: #F59E0B; color: #1F2937; font-weight: 800; font-size: .68rem; line-height: 1;
}

/* ── Tabla "Mis eventos" (edición inline) ────────────────────────────── */
.event-table .acciones { white-space: nowrap; text-align: right; }
.event-table .acciones .btn-icon { width: 34px; height: 34px; }
.event-table tr.editando { background: var(--brand-soft); }
.event-table tr.editando td { vertical-align: top; }
.event-table tr.editando input, .event-table tr.editando select { margin-bottom: 4px; }
.req { color: var(--rojo); margin-left: 2px; }
.link-btn { background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* Selector de público múltiple (carreras / años) */
.checklist { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 140px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; background: var(--surface); }
.checklist label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.checklist input { width: auto; margin: 0; }
.help-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .85rem; margin: 10px 0; }
.help-box code { background: var(--brand-soft); color: var(--brand-dark); padding: 1px 5px; border-radius: 4px; }
.help-box pre { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 10px; overflow-x: auto; font-size: .8rem; }

/* ── Banner de bienvenida (onboarding) ───────────────────────────────── */
.onboarding-banner {
  background: var(--brand-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  animation: fadeUp .5s ease both;
}
.onboarding-banner .ob-icon { flex-shrink: 0; padding-top: 4px; }
.onboarding-banner .ob-body { flex: 1; min-width: 0; }
.onboarding-banner .ob-body h3 {
  font-family: var(--font-head);
  color: var(--brand);
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.onboarding-banner .ob-body p { margin: 0 0 10px; }
.onboarding-banner .ob-body ul {
  list-style: none; padding: 0; margin: 0 0 16px;
}
.onboarding-banner .ob-body li {
  padding: 4px 0; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.onboarding-banner .ob-body li svg { color: var(--brand); flex-shrink: 0; }
.onboarding-banner .ob-actions {
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0; min-width: 200px;
}

/* ── Modal del tour ──────────────────────────────────────────────────── */
.tour-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 31, 57, .72);
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp .2s ease;
  padding: 20px;
}
.tour-modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 600px; width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tour-steps {
  display: flex; gap: 8px; justify-content: center;
  padding: 20px 0 0;
}
.tour-steps .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: background .2s ease;
}
.tour-steps .dot.active { background: var(--gold); }
.tour-image {
  width: 100%; aspect-ratio: 16/9;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.tour-icon { display: flex; color: var(--gold); }
.tour-body { padding: 22px 24px; }
.tour-body h2 {
  font-family: var(--font-head); color: var(--brand);
  margin: 0 0 10px; font-size: 1.2rem;
}
.tour-body p {
  color: var(--text-soft); line-height: 1.65; margin: 0;
}
.tour-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px 22px; gap: 12px;
}

/* ── Tooltips contextuales ───────────────────────────────────────────── */
.tooltip-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-soft); font-size: .72rem; font-weight: 700;
  cursor: help; margin-left: 6px; position: relative;
  transition: all .15s ease; user-select: none;
  flex-shrink: 0;
}
.tooltip-trigger:hover,
.tooltip-trigger:focus-visible {
  border-color: var(--brand); color: var(--brand);
  background: var(--brand-soft); outline: none;
}
.tooltip-bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); z-index: 60;
  background: var(--text); color: var(--surface);
  padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: .82rem; max-width: 280px;
  box-shadow: var(--shadow-lg); line-height: 1.5;
  text-align: left; font-weight: 400; white-space: normal;
  animation: fadeUp .15s ease;
  pointer-events: none;
}
.tooltip-bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--text);
}

/* ── Centro de ayuda ─────────────────────────────────────────────────── */
.help-sidebar {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  align-items: start;
}
.help-nav {
  position: sticky; top: calc(var(--topbar-h) + 20px);
}
.help-nav a {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--text-soft); transition: all .15s ease;
  text-decoration: none; border-left: 3px solid transparent;
}
.help-nav a:hover,
.help-nav a.active {
  background: var(--brand-soft); color: var(--brand);
  border-left-color: var(--gold);
}
.help-content section { scroll-margin-top: calc(var(--topbar-h) + 16px); }

/* ── FAQ (acordeones) ────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden;
}
.faq-q {
  width: 100%; background: var(--surface); border: none;
  padding: 14px 16px; text-align: left; font: inherit;
  font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); transition: background .15s ease;
}
.faq-q:hover { background: var(--brand-soft); }
.faq-q .chevron { transition: transform .2s ease; font-size: .75rem; color: var(--text-soft); }
.faq-q[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.faq-q[aria-expanded="true"] { color: var(--brand); }
.faq-a {
  padding: 0 16px 16px; color: var(--text-soft);
  line-height: 1.65; display: none;
}
.faq-q[aria-expanded="true"] + .faq-a { display: block; }

/* ── Skip link (accesibilidad) ────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--brand); color: var(--brand-contrast);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 10px; }

/* ── Responsivo ──────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .topbar nav { gap: 0; }
  .topbar nav a { padding: 8px 8px; font-size: .85rem; }
  .brand-name { display: none; }
  .hero { padding: 36px 20px; }
  .help-sidebar { grid-template-columns: 1fr; }
  .help-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 8px; }
  .help-nav a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .help-nav a.active { border-left: none; border-bottom-color: var(--gold); }
  .onboarding-banner { flex-direction: column; }
  .onboarding-banner .ob-actions { flex-direction: row; }
  .tour-modal { max-width: 95vw; }
  .tooltip-bubble { max-width: 220px; }
}

/* ── Accesibilidad: movimiento reducido ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
