:root {
  --bg0: #05110c;
  --bg1: #061613;

  --panel: rgba(255, 255, 255, 0.05);
  --panel2: rgba(255, 255, 255, 0.07);

  --card: #0b1f18;
  --card2: #0c241c;

  --stroke: rgba(255, 255, 255, 0.10);
  --stroke2: rgba(255, 255, 255, 0.14);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.64);

  --green: #22c55e;
  --cyan: #22d3ee;
  --yellow: #fbbf24;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(1000px 700px at 15% 0%, rgba(34, 197, 94, 0.20), transparent 60%),
    radial-gradient(1000px 700px at 85% 10%, rgba(34, 211, 238, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: .4px
}

.badge {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, .92), rgba(34, 211, 238, .62));
  box-shadow: 0 14px 45px rgba(0, 0, 0, .45);
}

.topbar-welcome {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 0 14px;
  min-width: 0;
}

.topbar-welcome strong {
  color: #bbf7d0;
  font-weight: 900;
}

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

.notif-wrap {
  position: relative;
  margin-left: auto;
  margin-right: 8px;
}

.notif-btn {
  position: relative;
  min-width: 44px;
  padding: 8px 12px;
}

.notif-btn-icon {
  font-size: 18px;
  line-height: 1;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border: 2px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.65);
}

.notif-badge.is-hidden {
  display: none;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(420px, 70vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: linear-gradient(165deg, rgba(15, 35, 28, 0.98), rgba(8, 18, 14, 0.99));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 197, 94, 0.15);
  z-index: 120;
}

.notif-panel.is-hidden {
  display: none;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-panel-body {
  overflow-y: auto;
  padding: 8px;
}

.notif-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.notif-item:hover {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.notif-item-title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
}

.notif-item-meta {
  font-size: 11px;
  opacity: 0.85;
  color: #bbf7d0;
}

.notif-empty {
  padding: 16px 12px;
  text-align: center;
  opacity: 0.8;
}

/* ===== INPUTS / BUTTONS ===== */
.btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0px)
}

.btn.primary {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.15);
  color: #fff;
}

.btn.primary:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.btn.danger {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.10)
}

.btn.ghost {
  background: transparent
}

.iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.iconbtn:hover {
  background: rgba(255, 255, 255, 0.10)
}

.iconbtn.danger {
  border-color: rgba(255, 107, 107, 0.30)
}

.iconbtn.danger:hover {
  background: rgba(255, 107, 107, 0.14)
}

.icon {
  display: block;
  margin: auto;
  width: 18px;
  height: 18px;
  opacity: .92
}

.input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
  transition: all .2s ease;
}

.input:focus {
  border-color: rgba(34, 197, 94, .45);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
  background: rgba(0, 0, 0, 0.32);
}

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

.small {
  font-size: 12px;
  color: var(--muted)
}

.kbd {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  min-width: 240px;
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(10px);
  display: none;
}

.toast.ok {
  border-color: rgba(34, 197, 94, 0.35)
}

.toast.bad {
  border-color: rgba(255, 107, 107, 0.35)
}

/* ===== HEADER DEL TABLERO ===== */
.kanban-wrap {
  padding: 18px 0 30px 0;
}

.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 12px 0;
}

/* ✅ Asegura que "Nueva columna + Agregar" sea una fila */
.addbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all .2s ease;
}

.addbar .input {
  flex: 1;
  background: transparent;
  border-color: transparent;
  padding: 8px 4px;
}

.addbar .input:focus {
  box-shadow: none;
}

.addbar:focus-within {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.05);
}

.addbar .btn {
  padding: 8px 20px;
  font-size: 13px;
}

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

.kanban-header .top-actions .input {
  width: 360px;
  max-width: 45vw;
}

.h-title {
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: .2px
}

.h-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px
}

/* ===== KANBAN ===== */
.kanban {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  overflow: auto;
  padding-bottom: 12px;
  align-items: flex-start;
}

.col {
  min-width: 380px;
  max-width: 460px;
  flex: 1 1 380px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 40, 32, .62), rgba(9, 28, 23, .55));
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .35);
  height: max-content;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Lista con todas las tareas del checklist corroboradas */
.col.col--all-corroborado {
  border: 2px solid #3dff9a;
  background: linear-gradient(180deg, rgba(14, 58, 40, .78), rgba(8, 36, 26, .62));
  box-shadow:
    0 0 0 1px rgba(61, 255, 154, 0.55),
    0 0 22px rgba(34, 255, 136, 0.45),
    0 0 44px rgba(34, 255, 136, 0.22),
    0 24px 90px rgba(0, 0, 0, .35);
  animation: col-corroborado-pulse 2.2s ease-in-out infinite alternate;
}

.col.col--all-corroborado .col-title {
  border-color: rgba(61, 255, 154, 0.55);
  background: rgba(34, 255, 136, 0.12);
  color: #d6ffe8;
  box-shadow: 0 0 14px rgba(34, 255, 136, 0.25);
}

.col-status-title {
  display: block;
  text-align: center;
  font-weight: 950;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  margin: 0 0 10px;
  border-radius: 14px;
  line-height: 1.2;
}

.col-status-title--corroborado {
  color: #d6ffe8;
  background: linear-gradient(90deg, rgba(34, 255, 136, 0.28), rgba(61, 255, 154, 0.38));
  border: 1px solid rgba(61, 255, 154, 0.65);
  box-shadow: 0 0 16px rgba(34, 255, 136, 0.35);
}

.col-status-title--terminado {
  color: #ecfccb;
  background: linear-gradient(90deg, rgba(132, 204, 22, 0.22), rgba(163, 230, 53, 0.3));
  border: 1px solid rgba(163, 230, 53, 0.5);
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.2);
}

.col-status-title--en-proceso {
  color: #dbeafe;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.28));
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.18);
}

.col.col--status-terminado {
  border-color: rgba(163, 230, 53, 0.45);
  box-shadow:
    0 0 0 1px rgba(163, 230, 53, 0.25),
    0 0 18px rgba(132, 204, 22, 0.15),
    0 24px 90px rgba(0, 0, 0, .35);
}

.col.col--status-en-proceso {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.2),
    0 0 14px rgba(59, 130, 246, 0.12),
    0 24px 90px rgba(0, 0, 0, .35);
}

@keyframes col-corroborado-pulse {
  from {
    border-color: #22ff88;
    box-shadow:
      0 0 0 1px rgba(34, 255, 136, 0.45),
      0 0 18px rgba(34, 255, 136, 0.38),
      0 0 36px rgba(34, 255, 136, 0.16),
      0 24px 90px rgba(0, 0, 0, .35);
  }
  to {
    border-color: #6dffb8;
    box-shadow:
      0 0 0 1px rgba(109, 255, 184, 0.7),
      0 0 28px rgba(61, 255, 154, 0.55),
      0 0 56px rgba(34, 255, 136, 0.3),
      0 24px 90px rgba(0, 0, 0, .35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .board-card--unread {
    animation: none;
  }
  .col.col--all-corroborado {
    animation: none;
  }
}

.col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 10px 4px;
}

.col-title {
  font-weight: 950;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.16);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.col-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
  padding: 6px 4px 10px 4px;
  border-radius: 18px;
}

.drop-hint {
  border: 1px dashed rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.col-dragging {
  opacity: 0.4;
  transform: scale(0.96);
  transition: opacity .2s, transform .2s;
}

.col-insert-before {
  box-shadow: -4px 0 0 0 rgba(34, 197, 94, 0.7), 0 -4px 0 0 rgba(34, 197, 94, 0.7);
  border-color: rgba(34, 197, 94, 0.4);
}

.col-insert-after {
  box-shadow: 4px 0 0 0 rgba(34, 197, 94, 0.7), 0 4px 0 0 rgba(34, 197, 94, 0.7);
  border-color: rgba(34, 197, 94, 0.4);
}

/* ===== TARJETA ===== */
.task {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 35, 28, .72), rgba(9, 28, 23, .62));
  border-radius: 20px;
  padding: 12px;
  position: relative;
  box-shadow: 0 16px 55px rgba(0, 0, 0, .30);
  width: 100%;
}

.task:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 45, 36, .72), rgba(9, 28, 23, .62));
}

.task.dragging {
  opacity: .65
}

.task.insert-before {
  box-shadow: 0 -3px 0 0 rgba(34, 197, 94, 0.55) inset;
}

.task.insert-after {
  box-shadow: 0 3px 0 0 rgba(34, 197, 94, 0.55) inset;
}

.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Drag handle visible */
.dragHandle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: grab;
  flex: 0 0 auto;
}

.dragHandle:hover {
  background: rgba(255, 255, 255, 0.08)
}

.dragHandle:active {
  cursor: grabbing
}

.dragDots {
  width: 16px;
  height: 16px;
  opacity: .9
}

.task-title {
  font-weight: 1000;
  font-size: 13px;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chev {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  flex: 0 0 auto;
}

.chev:hover {
  background: rgba(255, 255, 255, 0.10)
}

.task-body {
  margin-top: 10px
}

.task-collapsed .task-body {
  display: none
}

.task-collapsed .task-foot {
  display: none
}

/* Footer de tarjeta */
.task-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.task-foot>div {
  display: flex;
  align-items: flex-end;
}

/* Chips/pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== TABS ===== */
.tabs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tabbtn {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.tabbtn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tabbtn.active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.16);
}

/* ===== ORDEN SELECT ===== */
.sortrow {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 14px;
  font-weight: 950;
  font-size: 12px;
  outline: none;
  color-scheme: dark;
}

.select option {
  background-color: #0b1f18;
  color: #ecfdf5;
}

.select option:checked,
.select option:hover {
  background-color: #166534;
  color: #ffffff;
}

.select:focus {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .10)
}

/* ===== LISTA ===== */
.checkWrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ✅ CLAVE: itemRow vertical para que acciones se peguen abajo */
.itemRow {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
  border-radius: 16px;
  width: 100%;

  display: flex;
  flex-direction: column;
}

/* arriba: estado + texto */
.itemTop {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  margin-bottom: 10px;
}

.itemTop-main {
  flex: 1;
  min-width: 0;
}

.itemPriorityNum {
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  margin-top: 2px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  color: #ecfdf5;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.itemNote .itemPriorityNum {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.itemDragHandle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: grab;
  touch-action: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.itemDragHandle:active {
  cursor: grabbing;
}

.itemDragHandle .dragDots {
  width: 18px;
  height: 18px;
}

.itemRow.item-dragging {
  opacity: 0.96;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(34, 197, 94, 0.35);
}

.itemRow-placeholder {
  border: 2px dashed rgba(34, 197, 94, 0.35) !important;
  background: rgba(34, 197, 94, 0.08) !important;
  min-height: 48px;
}

.sort-hint {
  opacity: 0.75;
}

/* ===== NOTAS CHECKLIST (contraste vs tema verde) ===== */
.itemNote {
  border-width: 2px;
  border-style: solid;
}

.itemNote--pos {
  border-color: #4ade80;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.22), rgba(20, 50, 35, 0.95));
  box-shadow: inset 4px 0 0 #4ade80, 0 0 0 1px rgba(74, 222, 128, 0.15);
}

.itemNote--neg {
  border-color: #f87171;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.22), rgba(50, 18, 18, 0.95));
  box-shadow: inset 4px 0 0 #f87171, 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.itemNote-top .itemTop-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.noteBadge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.itemNote--pos .noteBadge {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.35);
  border: 1px solid #4ade80;
}

.itemNote--neg .noteBadge {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.35);
  border: 1px solid #f87171;
}

.noteText {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.itemNote--pos .noteText {
  color: #ecfdf5;
  background: rgba(0, 0, 0, 0.2);
}

.itemNote--neg .noteText {
  color: #fef2f2;
  background: rgba(0, 0, 0, 0.22);
}

.noteText--readonly {
  opacity: 0.95;
}

/* Observaciones de usuarios invitados (distinto de notas admin verde/rojo) */
.itemGuestNotes {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.itemGuestNote {
  border: 2px solid #a78bfa;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.28), rgba(49, 32, 86, 0.92));
  box-shadow: inset 4px 0 0 #a78bfa, 0 0 0 1px rgba(167, 139, 250, 0.2);
}

.itemGuestNote--pos {
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(6, 78, 59, 0.92));
  box-shadow: inset 4px 0 0 #34d399, 0 0 0 1px rgba(52, 211, 153, 0.25);
}

.itemGuestNote--pos .guestNoteBadge {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.5);
  border-color: #6ee7b7;
}

.itemGuestNote--pos .guestNoteWho,
.itemGuestNote--pos .guestNoteMeta {
  color: #a7f3d0;
}

.itemGuestNote--pos .guestNoteText {
  color: #ecfdf5;
}

.itemGuestNote--neg {
  border-color: #f87171;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(127, 29, 29, 0.92));
  box-shadow: inset 4px 0 0 #f87171, 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.itemGuestNote--neg .guestNoteBadge {
  color: #fef2f2;
  background: rgba(220, 38, 38, 0.5);
  border-color: #fca5a5;
}

.itemGuestNote--neg .guestNoteWho,
.itemGuestNote--neg .guestNoteMeta {
  color: #fecaca;
}

.itemGuestNote--neg .guestNoteText {
  color: #fef2f2;
}

.itemGuestNote-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.guestNoteDelBtn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.45);
  color: #fecaca;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.guestNoteDelBtn:hover {
  background: rgba(185, 28, 28, 0.65);
  color: #fff;
}

.guestNoteBadge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ede9fe;
  background: rgba(139, 92, 246, 0.45);
  border: 1px solid #c4b5fd;
  margin-right: 8px;
}

.guestNoteWho {
  font-size: 11px;
  font-weight: 800;
  color: #ddd6fe;
  opacity: 0.95;
}

.guestNoteText {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #f5f3ff;
}

.guestNoteMeta {
  margin-top: 6px;
  opacity: 0.8;
  color: #ddd6fe;
}

.guestNoteAdd {
  border: 1px dashed rgba(167, 139, 250, 0.55);
  border-radius: 12px;
  padding: 10px;
  background: rgba(49, 32, 86, 0.35);
}

.guestNoteAdd .noteTonePick {
  margin: 8px 0 10px;
}

.guestNoteAdd.is-hidden,
.noteAddBox.is-hidden {
  display: none !important;
}

.cardNoteToolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  margin-bottom: 4px;
}

.icon-tip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.icon-tip::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 300;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  max-width: 260px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.icon-tip::before {
  content: '';
  position: absolute;
  z-index: 299;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(167, 139, 250, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.icon-tip:hover::after,
.icon-tip:hover::before,
.icon-tip:focus-within::after,
.icon-tip:focus-within::before {
  opacity: 1;
  visibility: visible;
}

.iconAction.violet {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(91, 33, 182, 0.25);
}

.iconAction.violet:hover,
.iconAction.violet.is-active {
  border-color: rgba(196, 181, 253, 0.75);
  background: rgba(109, 40, 217, 0.45);
}

.guestNoteAdd-label {
  margin-bottom: 8px;
  color: #ddd6fe;
  font-weight: 700;
}

.guestNoteInput {
  margin-bottom: 8px;
  min-height: 56px;
}

.btn.guestNoteSave {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-color: #a78bfa;
  color: #fff;
  font-weight: 800;
}

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

.guestNoteImgBtn {
  background: rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(167, 139, 250, 0.55);
  color: #ede9fe;
}

.guestNoteImgBtn:hover {
  background: rgba(139, 92, 246, 0.55);
}

.guestNoteImgs {
  margin-top: 8px;
}

.guestNotePending {
  margin-top: 8px;
}

.btn.guestNoteSave:hover {
  filter: brightness(1.08);
}

.noteTonePick {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.noteToneSwatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.noteToneSwatch--pos {
  background: #22c55e;
}

.noteToneSwatch--neg {
  background: #ef4444;
}

.noteToneSwatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.45);
  transform: scale(1.06);
}

.noteDelBtn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #fecaca;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.noteAddBox {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.noteAdd-title {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.noteAdd-text {
  width: 100%;
  resize: vertical;
  min-height: 56px;
}

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

.noteAdd-actions .btn {
  margin-left: auto;
}

/* ===== LEYENDA ÚLTIMA MODIFICACIÓN ===== */
.modLegend {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.modLegend-who {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.col-head + .modLegend {
  margin: 0 0 8px 4px;
  padding-left: 2px;
}

.itemRow .modLegend,
.itemNote .modLegend {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.task-foot .modLegend {
  margin-top: 4px;
  width: 100%;
}

.board-card .modLegend {
  margin-top: 8px;
}

.kanban-wrap .h-sub .modLegend {
  display: block;
  margin-top: 6px;
}

.itemText {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.90);
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 1 1 auto;
  min-width: 0;
}

.itemText.muted {
  opacity: .86
}

.itemText.done {
  text-decoration: line-through;
  opacity: .70
}

/* Estado pill */
.stpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  white-space: nowrap;
  letter-spacing: .3px;
  font-weight: 1000;
  flex: 0 0 auto;
}

.st-pending {
  margin-bottom: 10px;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.10);
}

.st-progress {
  margin-bottom: 10px;
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.10);
}

.st-done {
  margin-bottom: 10px;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
}

.st-corroborado {
  margin-bottom: 10px;
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.14);
}

/* ✅ CLAVE: acciones abajo SIEMPRE */
.itemActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
  /* <-- ESTO las empuja al fondo */
  padding-top: 10px;
}

.iconAction {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .92;
  transition: background .12s ease, border-color .12s ease, transform .12s ease, opacity .12s ease;
}

.iconAction:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  opacity: 1;
}

.iconAction svg {
  width: 16px;
  height: 16px;
  opacity: .9
}

.iconAction.ok {
  border-color: rgba(34, 197, 94, 0.25)
}

.iconAction.cyan {
  border-color: rgba(34, 211, 238, 0.25)
}

.iconAction.warn {
  border-color: rgba(251, 191, 36, 0.25)
}

.iconAction.neutral {
  border-color: rgba(148, 163, 184, 0.35)
}

.itemImgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.itemImgWrap {
  position: relative;
  flex: 0 0 auto;
}

.itemImgLink {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 10px;
}

.itemImgThumb {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.itemImgDel {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  font-weight: bold;
}

/* ===== MODAL ===== */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.modal {
  max-width: 620px;
  margin: 7vh auto 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 20, 16, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  padding: 16px;
}

.modal h3 {
  margin: 0 0 10px 0;
  font-weight: 1000
}

.modal .row {
  display: flex;
  gap: 10px
}

.modal .row .input {
  flex: 1
}

.modal .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px
}

#modalImgPreview {
  z-index: 100;
  display: none;
}

.modal-img-preview {
  position: relative;
  max-width: min(94vw, 960px);
  margin: 4vh auto 0 auto;
  padding: 12px;
  text-align: center;
}

.modal-img-preview #imgPreviewFull {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-img-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-img-close:hover {
  background: rgba(239, 68, 68, 0.9);
}

/* ===== COMPARTIR TABLERO ===== */
.modal-share {
  max-width: 480px;
}

.share-hint {
  margin: 0 0 12px 0;
  opacity: 0.85;
}

.share-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.share-add-row .select {
  flex: 1;
  min-width: 0;
}

.share-list-label {
  margin-bottom: 8px;
  font-weight: 700;
}

.share-list {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.share-row-name {
  font-size: 13px;
  font-weight: 700;
}

.share-empty {
  padding: 12px;
  opacity: 0.75;
}

.board-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}

.board-card-foot {
  flex-wrap: wrap;
  gap: 8px;
}

.board-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 11px;
}

.pill-muted {
  opacity: 0.9;
  font-size: 10px;
}

.danger-text {
  color: #fca5a5 !important;
}

/* ===== LOGIN ===== */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.login-box {
  width: min(100%, 400px);
  padding: 28px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(11, 31, 24, 0.98), rgba(9, 28, 23, 0.95));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.login-box h2 {
  margin: 0 0 18px 0;
  font-weight: 1000;
  font-size: 1.35rem;
}

.login-box .input {
  margin-bottom: 10px;
}

.login-box .btn {
  width: 100%;
  margin-top: 4px;
}

.login-error {
  color: var(--danger);
  margin-bottom: 12px;
  font-size: 13px;
}

/* ===== LISTADO TABLEROS ===== */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-top: 10px;
}

.board-card {
  cursor: pointer;
}

.board-card--unread {
  border-color: rgba(74, 222, 128, 0.75) !important;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.35),
    0 0 24px rgba(34, 197, 94, 0.28),
    inset 0 0 0 1px rgba(74, 222, 128, 0.2);
  animation: boardUnreadPulse 2.2s ease-in-out infinite;
}

.board-card--unread .task-head::after {
  content: 'Nuevo';
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ecfdf5;
  background: rgba(34, 197, 94, 0.55);
  border: 1px solid rgba(134, 239, 172, 0.65);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.45);
}

@keyframes boardUnreadPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 0 20px rgba(34, 197, 94, 0.22); }
  50% { box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.55), 0 0 28px rgba(34, 197, 94, 0.42); }
}

.board-card .task-title {
  white-space: normal;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .kanban-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .kanban-header .h-left {
    width: 100%;
  }

  .kanban-header-spacer,
  .kanban-header > .kanban-header-spacer,
  .kanban-header > div[style*="flex:1"] {
    display: none;
  }

  .kanban-add-col-wrap,
  #wrapAddCol {
    min-width: 0 !important;
    width: 100%;
  }

  .addbar {
    width: 100%;
  }

  .addbar .btn {
    flex-shrink: 0;
  }

  .kanban {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 12px;
    margin: 0 -4px;
    padding: 4px 4px 16px;
  }

  .col {
    min-width: min(calc(100vw - 40px), 420px);
    max-width: calc(100vw - 40px);
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 14px 12px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .topbar-welcome {
    order: 2;
    flex: 1 1 100%;
    text-align: left;
    padding: 0;
    font-size: 13px;
  }

  .top-actions {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .top-actions .btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .top-actions .kbd,
  .top-actions .small:not(.login-box *) {
    display: none;
  }

  .h-title {
    font-size: 17px;
  }

  .h-sub {
    font-size: 12px;
  }

  .modal {
    max-width: calc(100vw - 24px);
    margin: 12px auto 0;
    padding: 14px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .modal .row {
    flex-direction: column;
  }

  .modal .actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .modal .actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 6px);
  }

  .share-add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .share-add-row .btn {
    width: 100%;
  }

  .share-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .share-row .btn {
    width: 100%;
  }

  .board-card-foot {
    flex-direction: column;
    align-items: stretch !important;
  }

  .board-card-actions {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }

  .board-card-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .task-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .task-foot>div {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .task-foot .btn.ghost {
    width: 100%;
    justify-content: center;
  }

  .tabs {
    gap: 6px;
  }

  .tabbtn {
    padding: 7px 10px;
    font-size: 11px;
  }

  .sortrow {
    justify-content: stretch;
  }

  .sortrow .select {
    width: 100%;
  }

  .itemActions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-width: 0;
    max-width: none;
  }

  .input,
  .select,
  textarea.input {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 12px 10px;
  }

  .brand .small {
    font-size: 11px;
  }

  .col {
    min-width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .col-title {
    max-width: 55%;
    font-size: 13px;
  }

  .task {
    padding: 10px;
  }

  .task-title {
    font-size: 12px;
    white-space: normal;
  }

  .dragHandle,
  .chev {
    width: 32px;
    height: 32px;
  }

  .iconAction {
    width: 38px;
    height: 38px;
  }

  .boards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-box {
    padding: 22px 16px;
  }
}

/* ===== PERFIL ===== */
.perfil-page {
  max-width: 560px;
  margin: 0 auto;
}

.perfil-card {
  margin-top: 8px;
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(11, 31, 24, 0.98), rgba(9, 28, 23, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.perfil-title {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
  font-weight: 1000;
}

.perfil-sub {
  margin: 0 0 20px 0;
}

.perfil-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.perfil-section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.perfil-section-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.perfil-avatar-section {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.perfil-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

.perfil-avatar-wrap .perfil-avatar,
.perfil-avatar-wrap .perfil-avatar-ph {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-sizing: border-box;
}

.perfil-avatar-wrap .perfil-avatar {
  display: block;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.perfil-avatar-wrap .perfil-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 1000;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(34, 211, 238, 0.25));
  color: var(--text);
}

.perfil-avatar-wrap .perfil-avatar.is-hidden,
.perfil-avatar-wrap .perfil-avatar-ph.is-hidden,
.perfil-avatar-wrap .perfil-avatar[hidden],
.perfil-avatar-wrap .perfil-avatar-ph[hidden] {
  display: none !important;
}

.perfil-avatar-meta {
  flex: 1;
  min-width: 200px;
}

.perfil-login {
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 4px;
}

.perfil-rol {
  margin-bottom: 12px;
  opacity: 0.85;
}

.perfil-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.perfil-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perfil-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

@media (max-width: 520px) {
  .perfil-avatar-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .perfil-form .btn {
    width: 100%;
    align-self: stretch;
  }

  .perfil-avatar-actions .btn {
    flex: 1;
    min-width: 0;
  }
}