.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.2em;
}

.link {
  color: var(--blue);
  font-weight: 600;
}

/* Marca */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__name {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
}

.brand__place {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--navy-soft);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--muted);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover:not(:disabled) {
  background: #9c281e;
}

.btn--small {
  min-height: 40px;
  padding: 7px 13px;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.icon-btn:hover {
  background: var(--bg);
  color: var(--ink);
}

/* Estados */

.status {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.status--open {
  background: var(--success-tint);
  color: var(--success);
}

.status--scheduled {
  background: var(--warning-tint);
  color: var(--warning);
}

.status--closed {
  background: var(--bg);
  color: var(--muted);
}

/* Formularios */

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 0.86rem;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bcc7d6;
  border-radius: var(--radius-small);
  background: var(--surface);
  font-size: 1rem;
}

.input:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: -1px;
}

textarea.input {
  min-height: 72px;
  resize: vertical;
}

.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 500;
}

.form-error:empty {
  display: none;
}

/* Diálogos */

.dialog {
  width: min(100% - 32px, 460px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(10, 20, 40, 0.3);
}

.dialog::backdrop {
  background: rgba(10, 20, 40, 0.55);
}

.dialog__body {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.dialog__title {
  padding-right: 32px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.dialog__text {
  color: var(--muted);
  font-size: 0.92rem;
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* Aviso flotante */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-small);
  background: var(--success);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast[data-type='error'] {
  background: var(--danger);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
