/* Botones base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--accent-primary);
  color: #0B0F17;
}

.btn--primary:hover:not(:disabled) {
  background-color: var(--accent-primary-hover);
  color: #FFFFFF;
}

.btn--secondary {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover:not(:disabled) {
  background-color: var(--bg-hover);
}

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

/* Formularios Dark Mode */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Alertas y mensajes de estado */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.4;
  border: 1px solid transparent;
}

.alert--error {
  background-color: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #FCA5A5;
}

.alert[hidden] {
  display: none;
}


/* Pantalla de Autenticación */
.auth-screen {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #161D2C 0%, var(--bg-app) 70%);
}

/* Burbujas luminosas flotantes en el fondo */
.auth-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.42;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.auth-orb--blue {
  width: 280px;
  height: 280px;
  background: #3B82F6;
  top: -60px;
  left: -60px;
  animation-duration: 15s;
}

.auth-orb--violet {
  width: 300px;
  height: 300px;
  background: #8B5CF6;
  bottom: -80px;
  right: -50px;
  animation-duration: 18s;
  animation-delay: -4s;
}

.auth-orb--emerald {
  width: 210px;
  height: 210px;
  background: #10B981;
  top: 52%;
  left: 8%;
  opacity: 0.26;
  animation-duration: 13s;
  animation-delay: -2s;
}

.auth-orb--amber {
  width: 190px;
  height: 190px;
  background: #F59E0B;
  top: 16%;
  right: 10%;
  opacity: 0.24;
  animation-duration: 16s;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -28px) scale(1.08);
  }
  100% {
    transform: translate(-18px, 20px) scale(0.95);
  }
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 410px;
  background-color: rgba(22, 26, 32, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #60A5FA, #A78BFA, #34D399, #FBBF24);
}

.auth-card__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(96, 165, 250, 0.38);
  color: #93C5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.auth-card__title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 20%, #93C5FD 65%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-card__subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 300px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: rgba(14, 16, 20, 0.75);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.auth-tabs__btn {
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-tabs__btn.is-active {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(139, 92, 246, 0.2));
  color: #FFFFFF;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn--gradient {
  background: linear-gradient(135deg, #60A5FA 0%, #818CF8 100%);
  color: #090D16;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.28);
}

.btn--gradient:hover:not(:disabled) {
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  color: #FFFFFF;
}

.btn--google {
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--google:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.google-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-subtle);
}

/* =========================================================
   BARRA SUPERIOR, FILTROS, TARJETAS DE NOTAS Y MODALES
   ========================================================= */

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-bar__title {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sync-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-synced);
}

.sync-pill.is-offline .sync-pill__dot {
  background-color: var(--status-pending);
}

.icon-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
}

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

/* Buscador y barra de filtros */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box__input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
}

.search-box__input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.search-box__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Tira horizontal de carpetas */
.folders-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.folders-strip::-webkit-scrollbar {
  display: none;
}

.folder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.folder-chip.is-active {
  background-color: var(--bg-elevated);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.folder-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.folder-chip--add {
  border-style: dashed;
  color: var(--accent-primary);
}

/* Filtro de colores estilo ColorNote */
.color-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-dot-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.color-dot-btn.is-active {
  transform: scale(1.15);
  border-color: #FFFFFF;
}

.color-dot-btn[data-color="all"] {
  background: conic-gradient(#64748B, #F59E0B, #10B981, #3B82F6, #EF4444, #8B5CF6);
}
.color-dot-btn[data-color="slate"] { background-color: var(--note-slate-border); }
.color-dot-btn[data-color="amber"] { background-color: var(--note-amber-border); }
.color-dot-btn[data-color="emerald"] { background-color: var(--note-emerald-border); }
.color-dot-btn[data-color="cobalt"] { background-color: var(--note-cobalt-border); }
.color-dot-btn[data-color="crimson"] { background-color: var(--note-crimson-border); }
.color-dot-btn[data-color="violet"] { background-color: var(--note-violet-border); }

/* Rejilla de tarjetas de notas */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--note-slate-bg);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--note-slate-border);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
  min-height: 132px;
}

.note-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.note-card[data-color="amber"] {
  background-color: var(--note-amber-bg);
  border-top-color: var(--note-amber-border);
}
.note-card[data-color="emerald"] {
  background-color: var(--note-emerald-bg);
  border-top-color: var(--note-emerald-border);
}
.note-card[data-color="cobalt"] {
  background-color: var(--note-cobalt-bg);
  border-top-color: var(--note-cobalt-border);
}
.note-card[data-color="crimson"] {
  background-color: var(--note-crimson-bg);
  border-top-color: var(--note-crimson-border);
}
.note-card[data-color="violet"] {
  background-color: var(--note-violet-bg);
  border-top-color: var(--note-violet-border);
}

.note-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.note-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-card__pin {
  padding: 4px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.note-card__pin.is-pinned {
  color: var(--accent-primary);
}

.note-card__preview {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.note-card__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.72rem;
}

/* Estado vacío */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state[hidden] {
  display: none;
}

.empty-state__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.empty-state__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 340px;
}

/* Modales */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-card__title {
  font-size: 1.15rem;
  font-weight: 700;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.format-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.format-option.is-selected {
  border-color: var(--accent-primary);
  background-color: rgba(96, 165, 250, 0.1);
}

.format-option__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.format-option__desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* Toast */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  box-shadow: var(--shadow-elevated);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(6px);
}

/* Estados adicionales de la píldora de sincronización */
.sync-pill.is-syncing .sync-pill__dot {
  background-color: var(--accent-primary);
  animation: pulse-dot 1s infinite ease-in-out;
}

.sync-pill.is-error .sync-pill__dot {
  background-color: var(--status-error);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
/* =========================================================
   PERFIL DE USUARIO Y CUENTA
   ========================================================= */

.avatar-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #0B0F17;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.profile-summary__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #0B0F17;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-summary__info {
  min-width: 0;
}

.profile-summary__email {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-summary__provider {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.inline-action-row {
  display: flex;
  gap: 8px;
}

.profile-divider {
  height: 1px;
  background-color: var(--border-subtle);
}

.profile-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn--danger-outline {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.btn--danger-outline:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* Ajuste de tamaño del logo en login.html */
.auth-brand-mark {
  width: 58px;
  height: 58px;
  overflow: hidden;
  padding: 0;
}

.auth-brand-mark .brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   MODAL DE CONFIRMACIÓN PERSONALIZADO
   ========================================================= */

.modal-card {
  background-color: rgba(22, 26, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: modalPopIn 0.16s ease-out;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-modal {
  max-width: 400px;
}

.confirm-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.confirm-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-modal__icon.is-danger {
  background-color: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.confirm-modal__texts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.confirm-modal__message {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.btn--danger {
  background-color: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28);
}

.btn--danger:hover:not(:disabled) {
  background-color: #DC2626;
}

/* =========================================================
   ARCHIVO, PAPELERA Y MODAL DE AYUDA
   ========================================================= */

.folders-strip__divider {
  width: 1px;
  height: 22px;
  background-color: var(--border-strong);
  flex-shrink: 0;
  margin: 0 2px;
}

.folder-chip--special {
  border-color: rgba(255, 255, 255, 0.12);
}

.trash-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.trash-banner__text {
  font-size: 0.85rem;
  color: #FCA5A5;
}

.trash-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.is-trashed-surface {
  pointer-events: none;
  opacity: 0.72;
}

/* Modal de Ayuda */
.help-modal {
  max-width: 540px;
}

.help-scroll {
  max-height: 62dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
}

.help-section {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-section__title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.help-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.help-list strong {
  color: var(--text-primary);
}

/* =========================================================
   BARRA CONTEXTUAL Y SELECCIÓN MÚLTIPLE
   ========================================================= */

.context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background-color: rgba(22, 26, 32, 0.88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.context-bar.is-trash-bar {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.32);
}

.context-bar.is-selecting-bar {
  background-color: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.4);
}

.context-bar__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.context-bar.is-trash-bar .context-bar__text {
  color: #FCA5A5;
}

.context-bar.is-selecting-bar .context-bar__text {
  color: var(--text-primary);
  font-weight: 600;
}

.context-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.note-card.is-selectable {
  user-select: none;
}

.note-card.is-selected-card {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  box-shadow: 0 10px 26px rgba(96, 165, 250, 0.22);
}

.note-card__select-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background-color: rgba(0, 0, 0, 0.35);
  color: #0B0F17;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.note-card__select-check.is-checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Botón discreto para selección múltiple y edición de carpeta */
.btn--subtle {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn--subtle:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.icon-btn--compact {
  min-height: 32px;
  min-width: 32px;
  padding: 0 8px;
  font-size: 0.85rem;
}

.modal-actions--split {
  justify-content: space-between;
  flex-wrap: wrap;
}

.modal-actions__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   CONTACTO, SOPORTE Y CRÉDITOS DEL DESARROLLADOR
   ========================================================= */

.auth-footer {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-footer__link {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-footer__link span {
  color: var(--accent-primary);
  font-weight: 600;
}

.auth-footer__link:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.contact-modal {
  max-width: 470px;
}

.creator-card {
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.09), rgba(139, 92, 246, 0.09));
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.creator-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #60A5FA, #818CF8);
  color: #090D16;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.creator-card__name {
  font-size: 0.98rem;
  font-weight: 700;
}

.creator-card__role {
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.creator-card__bio {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.creator-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.topic-pill.is-active {
  background-color: rgba(96, 165, 250, 0.16);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.contact-textarea {
  resize: vertical;
  min-height: 84px;
  font-family: inherit;
}

.help-section--highlight {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.07), rgba(139, 92, 246, 0.07));
}

.help-section__desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* =========================================================
   AJUSTES DE LOGIN FOOTER Y ALTURA DEL MODAL DE AYUDA
   ========================================================= */

.auth-screen {
  flex-direction: column;
  gap: 18px;
}

.help-modal {
  max-width: 540px;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.help-modal .modal-card__header,
.help-modal .modal-actions {
  flex-shrink: 0;
}

.help-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
}