/* Sistema de diseño de la aplicación: el mismo del mockup. Blanco, sobrio, letra del sistema. */
:root {
  --tinta: #1d2125;
  --gris: #68707d;
  --gris-claro: #9aa1ab;
  --linea: #e6e8ec;
  --lateral: #f6f7f9;
  --suave: #f1f3f6;
  --foco: #2f6fde;
  --alerta: #9a5b00;
  --fondo-alerta: #fff5e5;
  --error: #b42318;
  --fondo-error: #fef3f2;
  --ok: #0e7a55;
  --azul: #2f6fde;
  --violeta: #7a4fd6;
  --verde: #0e9f6e;
  --naranja: #e07a10;
  --radio: 8px;
  color-scheme: light;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinta);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--radio); border: 1px solid var(--tinta); background: var(--tinta); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.boton:hover { background: #343a40; border-color: #343a40; }
.boton.secundario { background: #fff; color: var(--tinta); border-color: #cfd4da; }
.boton.secundario:hover { border-color: var(--tinta); }
.boton.chico { height: 34px; padding: 0 12px; font-size: 14px; }
.boton.ancho { width: 100%; }
.boton[disabled] { opacity: 0.55; cursor: progress; }
.enlace { background: none; border: 0; padding: 0; color: var(--foco); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Marca */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.marca-buho { width: 36px; height: 24px; flex: none; }

/* El búho: facetas junto a los títulos y en los vacíos */
.buho { flex: none; display: block; }
.con-buho { display: flex; align-items: center; gap: 12px; min-width: 0; }
.con-buho .buho { width: 44px; height: 38px; }
.buho-vacio { width: 88px; height: 76px; margin-bottom: 12px; }
.cb-vacia .buho-vacio { margin: 0 auto 12px; }
.t-vacio .buho-vacio { margin-bottom: 0; }
.vacio.con-buho { display: flex; align-items: center; gap: 12px; }
.vacio.con-buho .buho { width: 44px; height: 38px; }
@media (max-width: 640px) {
  .con-buho { gap: 10px; }
  .con-buho .buho { width: 36px; height: 31px; }
}

/* Formularios */
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; }
.campo input, .campo select { height: 44px; border: 1px solid #cfd4da; border-radius: var(--radio); padding: 0 12px; background: #fff; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--foco); box-shadow: 0 0 0 3px rgba(47, 111, 222, 0.15); }
.campo input[aria-invalid='true'] { border-color: var(--error); }
.ayuda { font-size: 13px; color: var(--gris); }
.mensaje-error { font-size: 13.5px; color: var(--error); }
.aviso { border-radius: 10px; padding: 12px 14px; font-size: 14px; background: var(--suave); }
.tenue { color: var(--gris); }
.aviso.error { background: var(--fondo-error); color: var(--error); }

/* Avatares y chips */
.av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: #e3e7ee; color: #2c3440; font-weight: 650; font-size: 12px; letter-spacing: 0.02em; }
/* Un tono por persona: fondo claro y letra oscura del mismo color, con contraste suficiente */
.av.t0 { background: #dbe7fb; color: #1b4593; }
.av.t1 { background: #ebe3fb; color: #4e2f9c; }
.av.t2 { background: #d4f0e3; color: #0a5d41; }
.av.t3 { background: #fde5cd; color: #7f3e00; }
.av.t4 { background: #fbdde7; color: #941d47; }
.av.t5 { background: #d2edf1; color: #0a5865; }
.av.t6 { background: #f1e7c9; color: #634c10; }
.av.t7 { background: #e3e7ee; color: #2c3440; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tinta); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.saltar:focus { top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--suave); color: #3a4049; white-space: nowrap; }
.punto { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Mensaje flotante de confirmación o error */
#mensaje-flotante { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; z-index: 50; max-width: min(560px, calc(100vw - 32px)); }
#mensaje-flotante.visible { opacity: 1; transform: translate(-50%, 0); }
#mensaje-flotante.error { background: var(--error); }

/* Mi espacio: sus dos partes, como pestañas de página (distintas de las vistas, que van en cápsula). */
.me-nav { display: flex; gap: 22px; margin-top: 14px; border-bottom: 1px solid var(--linea); }
.me-nav a { position: relative; padding: 8px 0 10px; color: var(--gris); font-size: 15px; font-weight: 550; text-decoration: none; }
.me-nav a:hover { color: var(--tinta); }
.me-nav a[aria-current='page'] { color: var(--tinta); font-weight: 650; }
.me-nav a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--tinta); }
.me-nav a:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 4px; }
@media (pointer: coarse) { .me-nav a { min-height: 44px; display: inline-flex; align-items: center; } }
