/* =========================================================================
   Componentes reutilizables
   ========================================================================= */

/* ---------- Cabecera de pantalla ---------- */
.appbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: 56px; padding: 6px 12px;
}
/* La cabecera respeta la barra de estado / safe area */
.appbar.top-safe { padding-top: calc(max(var(--statusbar-h), var(--safe-top)) + 6px); }
fieldset.field > legend.label { margin-bottom: 8px; }
.appbar-title {
  flex: 1; min-width: 0;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg);
  text-align: center;
}
.appbar-title.left { text-align: left; font-size: var(--fs-xl); padding-left: 8px; }
.appbar .spacer { width: 44px; flex: none; }

.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
  position: relative;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn.plain { background: transparent; border-color: transparent; }
.icon-btn.glass { background: rgba(12, 6, 30, .45); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-glow); box-shadow: 0 0 0 2px var(--surface);
}

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-md); letter-spacing: .005em;
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast), background var(--dur-fast), opacity var(--dur);
  user-select: none; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.block { display: flex; width: 100%; }
.btn.sm { --h: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn.md { --h: 46px; }
.btn-primary {
  background: var(--grad); color: var(--text-on-accent);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] {
  filter: saturate(.35) brightness(.75); box-shadow: none; cursor: not-allowed;
}
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-outline { border: 1.5px solid var(--line-strong); color: var(--text); }
.btn-danger { background: var(--pass); color: #fff; }
.btn-light { background: #fff; color: #1B1035; }

/* Botón oficial "Continuar con Google" (directrices de marca de Google) */
.btn-google {
  --h: 56px;
  background: #FFFFFF; color: #1F1F1F;
  border: 1px solid #747775;
  font-family: 'Roboto', 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.btn-google svg { width: 20px; height: 20px; }
.btn-google:hover { background: #F7F8F8; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid var(--line-strong);
  color: var(--text-2); font-weight: 600; font-size: var(--fs-sm);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip.on {
  background: var(--grad-soft); border-color: var(--brand-glow); color: var(--text);
}
.chip[aria-pressed="true"] .chip-check, .chip[aria-checked="true"] .chip-check { display: inline-block; }
.chip-check { display: none; }
.chip.sm { min-height: 30px; padding: 0 10px; font-size: var(--fs-xs); border-width: 1px; }
.chip.static { cursor: default; }
.chip.static:active { transform: none; }
.chip.shared { border-color: var(--brand-glow); color: var(--text); background: var(--grad-soft); }
.chip[disabled] { opacity: .55; cursor: not-allowed; }

/* Etiquetas pequeñas (sobre fotos) */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px; border-radius: var(--r-pill);
  background: rgba(14, 7, 34, .55); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.tag .live { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }

.pill-free {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--grad-soft); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--text); font-size: var(--fs-xs); font-weight: 700;
}

/* ---------- Pestañas (segmentadas) ---------- */
.tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
}
.tab {
  flex: 1; min-height: 38px; padding: 0 10px; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm); color: var(--text-3);
  transition: color var(--dur-fast), background var(--dur);
  white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.seg button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 12px; border-radius: var(--r-pill);
  color: var(--text-3); font-weight: 700; font-size: var(--fs-xs);
}
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--surface-3); color: var(--text); }
.seg.full { display: flex; }
.seg.full button { flex: 1; justify-content: center; }

/* ---------- Interruptor ---------- */
.switch { position: relative; display: inline-flex; flex: none; width: 52px; height: 32px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--line-strong);
  transition: background var(--dur);
}
.switch .thumb {
  position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform var(--dur) var(--ease-spring);
  display: grid; place-items: center; color: var(--brand-2);
}
.switch .thumb svg { opacity: 0; transition: opacity var(--dur-fast); }
.switch input:checked ~ .track { background: var(--grad); border-color: transparent; }
.switch input:checked ~ .thumb { transform: translateX(20px); }
.switch input:checked ~ .thumb svg { opacity: 1; }
.switch input:focus-visible ~ .track { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Casilla de verificación ---------- */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  width: 24px; height: 24px; flex: none; border-radius: 8px; margin-top: 1px;
  border: 2px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; color: transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.check input:checked + .box { background: var(--grad); border-color: transparent; color: #fff; }
.check input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.check .label { font-size: var(--fs-sm); color: var(--text-2); }
.check .label a { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.check.shake .box { animation: shake .4s; border-color: var(--danger); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- Radio en filas ---------- */
.radio-list { display: grid; gap: 10px; }
.radio-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line);
  cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast);
}
.radio-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-row .dot {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 2px solid var(--line-strong); display: grid; place-items: center;
}
.radio-row .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring); transform: scale(.4); }
.radio-row:has(input:checked) { border-color: var(--brand-glow); background: var(--grad-soft); }
.radio-row input:checked ~ .dot { border-color: var(--brand-glow); }
.radio-row input:checked ~ .dot::after { background: var(--brand-glow); transform: scale(1); }
.radio-row:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.radio-row .rr-text { flex: 1; min-width: 0; }
.radio-row .rr-title { display: block; font-weight: 700; font-size: var(--fs-md); }
.radio-row .rr-desc { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }

/* ---------- Deslizadores ---------- */
.range-wrap { position: relative; height: 32px; }
.range-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px;
  border-radius: 999px; background: var(--surface-3);
}
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--grad); }
.range-wrap input[type="range"] {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none;
  -webkit-appearance: none; appearance: none; pointer-events: none;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 28px; height: 28px; border-radius: 50%; background: #fff;
  border: 3px solid var(--brand-2); box-shadow: 0 3px 10px rgba(0, 0, 0, .4); cursor: grab;
}
.range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--brand-2); box-shadow: 0 3px 10px rgba(0, 0, 0, .4); cursor: grab;
}
.range-wrap input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }
.range-wrap input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.range-wrap input[type="range"]::-moz-range-track { background: transparent; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.range-value { font-weight: 800; font-family: var(--font-display); font-size: var(--fs-lg); }

/* ---------- Tarjetas y listas ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4);
}
.card.soft { background: var(--grad-soft); border-color: rgba(255, 255, 255, .12); }

.section { padding: 0 var(--gutter); margin-top: var(--sp-6); }
.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg);
  margin-bottom: var(--sp-3); display: flex; align-items: center; gap: 8px;
}
.section-title .muted { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xs); margin-left: auto; }
.eyebrow {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-2);
}

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
button.list-row:active, a.list-row:active { background: var(--surface-2); }
a.list-row { text-decoration: none; color: inherit; }
.list-row .lr-icon {
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text);
}
.list-row .lr-icon.grad { background: var(--grad); color: #fff; }
.list-row .lr-text { flex: 1; min-width: 0; }
.list-row .lr-title { display: block; font-weight: 700; font-size: var(--fs-md); }
.list-row .lr-desc { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.list-row .lr-value { font-size: var(--fs-sm); color: var(--text-3); font-weight: 600; }
.list-row .chev { color: var(--text-3); }

/* ---------- Insignias ---------- */
.verified { display: inline-grid; place-items: center; color: var(--verified); vertical-align: -3px; }
.verified svg .v-fill { fill: var(--verified); }
.verified svg .v-check { stroke: var(--verified-ink); }
.count-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--brand-glow); color: #1A0B2E;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 800; line-height: 1;
}
html[data-vision="mono"] .count-badge { background: #fff; color: #000; }

/* ---------- Avatares ---------- */
.avatar { position: relative; flex: none; width: 52px; height: 52px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.ring { padding: 3px; border-radius: 50%; background: var(--grad); }
.avatar.ring img { border: 2.5px solid var(--bg); }
.avatar .online {
  position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--online); border: 3px solid var(--bg);
}

/* ---------- Bandera ---------- */
.flag { width: 20px; height: 14px; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.flag.lg { width: 28px; height: 19px; border-radius: 4px; }

/* ---------- Barra de navegación inferior ---------- */
.bottom-nav {
  position: relative; z-index: 20; flex: none;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 6px 6px calc(6px + var(--safe-bottom));
  background: rgba(17, 9, 40, .92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
html[data-vision="mono"] .bottom-nav { background: rgba(17, 17, 19, .94); }
.device .bottom-nav { padding-bottom: 14px; height: calc(var(--nav-h) + 12px); }
html.captura .bottom-nav { padding-bottom: 14px; height: calc(var(--nav-h) + 14px); }
.bottom-nav[hidden] { display: none; }
.nav-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 16px; color: var(--text-3);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .01em;
  text-decoration: none;
}
.nav-item .ni-icon { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background var(--dur); }
.nav-item[aria-current="page"] { color: var(--text); }
.nav-item[aria-current="page"] .ni-icon { background: var(--grad-soft); color: var(--accent-text); }
.nav-item .count-badge { position: absolute; top: -3px; right: 4px; box-shadow: 0 0 0 2px var(--bg); }
.nav-item .soon-dot { position: absolute; top: 1px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }

/* ---------- Hoja inferior (bottom sheet) ---------- */
.overlay-layer { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.sheet-backdrop {
  position: absolute; inset: 0; background: var(--scrim);
  opacity: 0; transition: opacity var(--dur) ease; pointer-events: auto;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(100% - var(--statusbar-h) - 24px);
  display: flex; flex-direction: column;
  background: var(--bg-elev); border-top-left-radius: var(--r-2xl); border-top-right-radius: var(--r-2xl);
  border: 1px solid var(--line-strong); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  transform: translateY(100%); transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: auto;
}
.sheet.full { height: calc(100% - var(--statusbar-h) - 24px); }
.sheet-open .sheet-backdrop { opacity: 1; }
.sheet-open .sheet { transform: translateY(0); }
.sheet-handle { padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-handle span { width: 42px; height: 5px; border-radius: 99px; background: var(--line-strong); }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 4px 20px 12px; }
.sheet-title { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 20px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-foot { padding: 12px 20px calc(18px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--bg-elev); }
.device .sheet-foot, html.captura .sheet-foot { padding-bottom: 26px; }
.sheet-foot:empty { display: none; }
/* ---------- Avisos (toast) ---------- */
.toast-host { position: absolute; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 26px); z-index: 80; display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 18px;
  background: #F6F2FF; color: #1B1035; font-weight: 600; font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg); pointer-events: auto;
  animation: toastIn var(--dur-slow) var(--ease-spring) both;
}
.toast .t-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.toast .t-text { flex: 1; }
.toast button { font-weight: 800; color: #6D28D9; padding: 6px 8px; border-radius: 8px; }
html[data-vision="mono"] .toast button { color: #000; text-decoration: underline; }
.toast.out { animation: toastOut var(--dur) ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Esqueleto de carga ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--surface); border-radius: 12px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Barra de progreso ---------- */
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width var(--dur-slow) var(--ease-out); }

/* ---------- Campos ---------- */
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--text);
  font-size: var(--fs-md); font-weight: 600;
}
.input::placeholder { color: var(--text-3); font-weight: 500; }
.input:focus { border-color: var(--brand-glow); outline: none; box-shadow: 0 0 0 4px rgba(255, 79, 160, .18); }
textarea.input { padding: 14px 16px; min-height: 96px; resize: none; line-height: 1.4; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 46px; }
.hint { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- Avisos informativos ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--text-2);
}
.notice .n-icon { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-text); }
.notice strong { color: var(--text); display: block; margin-bottom: 2px; font-size: var(--fs-md); }

/* ---------- Botones de acción (Me gusta / Descartar / Conversar) ---------- */
.actions { display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-xs); color: var(--text-2); }
.act .act-circle {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur);
}
.act:active .act-circle { transform: scale(.9); }
.act.like .act-circle { background: var(--like); color: var(--like-ink); width: 70px; height: 70px; }
.act.pass .act-circle { background: var(--pass); }
.act.chat .act-circle { background: var(--chat); }
.act.like .act-label { color: var(--text); }
.act.pass .act-circle, .act.chat .act-circle { margin: 4px 0; }
html[data-contrast="alto"] .act .act-circle { box-shadow: 0 0 0 3px #fff; }

/* Variante en fila (pastillas con icono + texto) */
.act-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 10px; }
.act-pill {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: var(--r-pill); font-weight: 800; font-size: var(--fs-sm); color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.act-pill.like { background: var(--like); color: var(--like-ink); }
.act-pill.pass { background: var(--pass); }
.act-pill.chat { background: var(--chat); }
.act-pill:active { transform: scale(.96); }

/* ---------- Estados vacíos ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 28px; }
.empty .e-art { width: 120px; height: 120px; border-radius: 40px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-text); margin-bottom: 8px; }
.empty h2 { font-size: var(--fs-xl); }
.empty p { color: var(--text-3); font-size: var(--fs-sm); max-width: 280px; }

/* ---------- Animación de corazón ---------- */
.burst { position: absolute; z-index: 70; pointer-events: none; color: var(--like); }
.burst .b-heart { animation: burstHeart .8s var(--ease-out) forwards; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .4)); }
.burst i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: burstDot .7s var(--ease-out) forwards; }
@keyframes burstHeart { 0% { transform: scale(.2); opacity: 0; } 35% { transform: scale(1.15); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes burstDot { from { transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-90px) scale(.2); opacity: 0; } }

/* Pequeño "pop" genérico */
.pop { animation: pop .45s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Indicador de escritura */
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
