/* ══════════════════════════════════════════════════════════════════
   KinesPrime — Muro Secreto & Social Feed Styles
   Feed inmersivo, blur/teaser, voice player, badges, interacciones
   ══════════════════════════════════════════════════════════════════ */

/* ── SECTION HEADING ──────────────────────────────────────────── */
.muro-secreto-section {
  padding: 0 0 60px;
}

.muro-secreto-section .section-heading {
  margin: 0;
  padding: 40px 36px 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pink-deep);
  letter-spacing: -0.035em;
  font-family: 'Outfit', sans-serif;
  animation: pageRevealUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.muro-secreto-section .section-heading::after {
  content: "";
  display: block;
  width: 36px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--pink), transparent);
  border-radius: 99px;
  margin-top: 8px;
}

/* ── FEED CONTAINER ───────────────────────────────────────────── */
.muro-feed {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── POST CARD ────────────────────────────────────────────────── */
.muro-post-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-xl, 28px);
  overflow: visible;
  box-shadow:
    0 4px 20px rgba(26, 10, 20, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease;
  animation: muroCardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.muro-post-card:hover {
  box-shadow:
    0 12px 40px rgba(255, 45, 85, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.03);
}

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

/* Stagger animation for cards */
.muro-post-card:nth-child(1) { animation-delay: 0.05s; }
.muro-post-card:nth-child(2) { animation-delay: 0.1s; }
.muro-post-card:nth-child(3) { animation-delay: 0.15s; }
.muro-post-card:nth-child(4) { animation-delay: 0.2s; }
.muro-post-card:nth-child(5) { animation-delay: 0.25s; }
.muro-post-card:nth-child(6) { animation-delay: 0.3s; }

/* ── POST HEADER ──────────────────────────────────────────────── */
.muro-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 4px;
}

.muro-post-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.muro-post-user.clickable-profile {
  cursor: pointer;
  user-select: none;
  border-radius: 99px;
  padding: 2px 6px;
  margin: -2px -6px;
  transition: background-color 0.2s ease;
}

.muro-post-user.clickable-profile:hover {
  background-color: rgba(255, 45, 85, 0.05);
}

.muro-post-user.clickable-profile:hover .muro-post-avatar {
  transform: scale(1.06);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.muro-post-user.clickable-profile:hover .muro-post-username span:first-child {
  color: var(--pink);
  text-decoration: underline;
}

.muro-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--pink);
  flex-shrink: 0;
  background: var(--pink-bg);
}

.muro-post-avatar.anonymous {
  border-color: rgba(255, 45, 85, 0.4);
  background: linear-gradient(135deg, #FF2D55, #3A0A28);
}

.muro-post-user-info {
  min-width: 0;
}

.muro-post-username {
  font-weight: 800;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  color: var(--pink-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.muro-post-time {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ── AVAILABILITY BADGE ───────────────────────────────────────── */
.muro-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: badgePulse 3s ease-in-out infinite;
}

.muro-availability-badge.status-free {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.muro-availability-badge.status-going_out {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.muro-availability-badge.status-nearby {
  background: rgba(99, 102, 241, 0.12);
  color: #4338CA;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ── ANONYMOUS BADGE ──────────────────────────────────────────── */
.muro-anon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.15), rgba(58, 10, 40, 0.2));
  color: var(--pink);
  border: 1px solid rgba(255, 45, 85, 0.3);
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.1);
}

/* ── MORE OPTIONS BUTTON ──────────────────────────────────────── */
.muro-post-more-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  letter-spacing: 2px;
}

.muro-post-more-btn:hover {
  background: var(--pink-bg);
  color: var(--pink-deep);
}

/* ── POST MEDIA / IMAGE ───────────────────────────────────────── */
.muro-post-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muro-post-media img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.muro-post-media:hover img {
  transform: scale(1.015);
}

/* ── ANONYMOUS CHIC GLASS BADGE ON MEDIA ─────────────────────── */
.muro-anon-photo-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(18, 5, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 45, 85, 0.35);
  border-radius: 99px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ── POST CONTENT / TEXT ──────────────────────────────────────── */
.muro-post-content {
  padding: 6px 16px 6px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
  word-wrap: break-word;
}

.muro-post-content.status-only {
  padding: 20px 22px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}

/* ── VOICE NOTE IN FEED ───────────────────────────────────────── */
.muro-post-voice {
  padding: 8px 18px 6px;
}

/* ── VOICE PLAYER COMPONENT ───────────────────────────────────── */
.kp-voice-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--pink-bg);
  border: 1px solid var(--pink-border);
  border-radius: 99px;
  max-width: 320px;
}

.kp-voice-player.playing {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.08);
}

.kp-vp-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #FF2D55 0%, #C8124E 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.3);
}

.kp-vp-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.45);
}

.kp-vp-play-btn:active {
  transform: scale(0.95);
}

.kp-vp-waveform {
  flex: 1;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
}

.kp-vp-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 45, 85, 0.12);
  border-radius: 4px;
  transition: width 0.1s linear;
  z-index: 1;
}

.kp-vp-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  width: 100%;
  z-index: 2;
  position: relative;
}

.kp-vp-bar {
  flex: 1;
  background: rgba(255, 45, 85, 0.3);
  border-radius: 99px;
  min-width: 2px;
  transition: background 0.2s;
}

.kp-voice-player.playing .kp-vp-bar {
  background: var(--pink);
  animation: waveAnimate 0.6s ease-in-out infinite alternate;
}

.kp-vp-bar:nth-child(2n) { animation-delay: 0.1s; }
.kp-vp-bar:nth-child(3n) { animation-delay: 0.2s; }

@keyframes waveAnimate {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.kp-vp-time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  min-width: 62px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── FB STYLE POST FOOTER & ACTIONS ────────────────────────────── */
.muro-post-reactions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 2px;
  font-size: 0.88rem;
  color: var(--muted, #94a3b8);
  min-height: 22px;
}

.muro-reactions-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.muro-heart-count-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.muro-heart-svg {
  display: block;
  transition: transform 0.2s ease;
}

.muro-reactions-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pink-deep, #334155);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.muro-reactions-count.has-likes .muro-reactions-num {
  color: var(--pink-deep, #1e293b);
}

.muro-post-divider {
  height: 1px;
  margin: 2px 14px;
  background: rgba(0, 0, 0, 0.08);
}

.muro-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 6px;
  gap: 6px;
  border-top: none;
}

.muro-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted, #a0aec0);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.muro-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.muro-action-btn:active {
  transform: scale(0.97);
}

.muro-action-btn.like-btn.liked {
  color: #ff2d55;
  font-weight: 700;
}

.muro-action-btn.like-btn.liked:hover {
  background: rgba(255, 45, 85, 0.12);
  color: #ff3b60;
}

.muro-action-btn .muro-like-icon,
.muro-action-btn .muro-action-icon {
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.muro-action-btn.like-btn.liked .muro-like-icon {
  transform: scale(1.15);
}

@keyframes likePopIn {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.muro-action-btn.like-btn.just-liked .muro-like-icon {
  animation: likePopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.muro-action-btn.view-profile-btn {
  color: var(--pink-deep, #ff2d55);
}

.muro-action-btn.view-profile-btn:hover {
  background: rgba(255, 45, 85, 0.12);
  color: #ff476d;
}

/* Fallback legacy .muro-post-likes */
.muro-post-likes {
  padding: 2px 18px 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pink-deep);
}


/* ── EMPTY STATE ──────────────────────────────────────────────── */
.muro-empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}

.muro-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.muro-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin: 0 0 6px;
  font-family: 'Outfit', sans-serif;
}

.muro-empty-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── MORE OPTIONS DROPDOWN ────────────────────────────────────── */
.muro-options-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-md, 14px);
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 12px 40px rgba(26, 10, 20, 0.12);
  z-index: 100;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.muro-options-menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.muro-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  font-family: inherit;
  transition: background 0.15s;
  text-align: left;
}

.muro-option-item:hover {
  background: var(--pink-bg);
}

.muro-option-item.danger {
  color: #EF4444;
}

.muro-option-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* ── MODAL: TARJETA DE CONTACTO Y PERFIL ANÓNIMO ──────────────── */
.kp-anon-modal {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.kp-anon-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.kp-anon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.kp-anon-card {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-xl, 28px);
  width: min(460px, 94%);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(26, 10, 20, 0.2);
  animation: anonModalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes anonModalPop {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.dark-theme .kp-anon-card {
  background: rgba(18, 8, 24, 0.96);
}

.kp-anon-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--pink-bg);
  color: var(--pink-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.kp-anon-close:hover {
  background: rgba(255, 45, 85, 0.15);
  transform: scale(1.05);
}

.kp-anon-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.kp-anon-avatar-wrap {
  position: relative;
}

.kp-anon-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pink);
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.25);
}

.kp-anon-badge-lock {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2D55, #3A0A28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 2px solid #fff;
}

.kp-anon-title {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--pink-deep);
  margin: 0 0 4px;
}

.kp-anon-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.kp-anon-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.kp-anon-contact-btn {
  padding: 12px 18px;
  border-radius: 99px;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
}

.kp-anon-contact-btn:hover {
  transform: translateY(-2px);
}

.kp-anon-btn-ws {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.kp-anon-btn-tg {
  background: linear-gradient(135deg, #0088CC 0%, #006699 100%);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
}

.kp-anon-btn-call {
  background: linear-gradient(135deg, #FF2D55 0%, #C8124E 100%);
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.35);
}

/* ── DARK THEME ───────────────────────────────────────────────── */
html.dark-theme .muro-post-card,
body.dark-theme .muro-post-card {
  background: rgba(26, 10, 30, 0.65);
  border-color: rgba(255, 55, 95, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html.dark-theme .muro-post-card:hover,
body.dark-theme .muro-post-card:hover {
  box-shadow: 0 12px 40px rgba(255, 45, 85, 0.1);
}

html.dark-theme .kp-voice-player,
body.dark-theme .kp-voice-player {
  background: rgba(26, 10, 30, 0.6);
  border-color: rgba(255, 55, 95, 0.2);
}

html.dark-theme .muro-post-actions,
body.dark-theme .muro-post-actions {
  border-top-color: rgba(255, 55, 95, 0.1);
}

html.dark-theme .muro-post-likes,
body.dark-theme .muro-post-likes {
  color: #FF6B8A;
}

html.dark-theme .muro-options-menu,
body.dark-theme .muro-options-menu {
  background: rgba(18, 8, 24, 0.95);
  border-color: rgba(255, 55, 95, 0.2);
}

html.dark-theme .muro-option-item:hover,
body.dark-theme .muro-option-item:hover {
  background: rgba(255, 45, 85, 0.08);
}

html.dark-theme .muro-action-btn:hover,
body.dark-theme .muro-action-btn:hover {
  background: rgba(255, 45, 85, 0.1);
}

/* ── MOBILE IMMERSIVE FEED (SCROLLYTELLING) ───────────────────── */
@media (max-width: 768px) {
  .muro-secreto-section .section-heading {
    padding: 32px 20px 10px;
  }

  .muro-feed {
    padding: 0 8px;
    gap: 16px;
    scroll-snap-type: y proximity;
  }

  .muro-post-card {
    border-radius: var(--radius-lg, 20px);
    scroll-snap-align: start;
    scroll-margin-top: 8px;
  }

  .muro-post-media img {
    max-height: 420px;
  }

  .muro-post-header {
    padding: 12px 14px 10px;
  }

  .muro-post-avatar {
    width: 38px;
    height: 38px;
  }

  .muro-post-username {
    font-size: 0.88rem;
  }

  .muro-post-content {
    padding: 10px 14px 6px;
  }

  .muro-post-actions {
    padding: 8px 14px 12px;
  }

  .muro-post-likes {
    padding: 2px 14px 0;
  }

  .kp-voice-player {
    max-width: 280px;
  }

  .muro-post-voice {
    padding: 6px 14px 4px;
  }
}

/* ── VERY SMALL SCREENS ───────────────────────────────────────── */
@media (max-width: 380px) {
  .muro-action-btn {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .muro-post-avatar {
    width: 34px;
    height: 34px;
  }
}

/* ── LARGE DESKTOP ────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .muro-feed {
    max-width: 580px;
  }

  .muro-post-card:hover {
    transform: translateY(-2px);
  }

  .muro-post-media img {
    max-height: 600px;
  }
}

/* ── VOICE RECORDER MODAL ─────────────────────────────────────── */
.kp-recorder-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.kp-recorder-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.kp-recorder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kp-recorder-card {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--pink-border);
  border-radius: var(--radius-xl, 28px);
  padding: 32px;
  width: min(380px, 92%);
  text-align: center;
  box-shadow: 0 24px 60px rgba(26, 10, 20, 0.15);
}

html.dark-theme .kp-recorder-card,
body.dark-theme .kp-recorder-card {
  background: rgba(18, 8, 24, 0.95);
}

.kp-recorder-title {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--pink-deep);
  margin: 0 0 20px;
}

.kp-recorder-timer {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--pink);
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.kp-recorder-timer.recording {
  color: #EF4444;
  animation: recPulse 1s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.kp-recorder-progress {
  width: 100%;
  height: 4px;
  background: var(--pink-bg);
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 24px;
}

.kp-recorder-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), #C8124E);
  border-radius: 99px;
  transition: width 0.1s linear;
  width: 0%;
}

.kp-recorder-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.kp-rec-btn {
  padding: 12px 22px;
  border-radius: 99px;
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.kp-rec-btn.primary {
  background: linear-gradient(135deg, #FF2D55 0%, #C8124E 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.3);
}

.kp-rec-btn.primary:hover {
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.5);
  transform: translateY(-1px);
}

.kp-rec-btn.secondary {
  background: var(--pink-bg);
  color: var(--pink-deep);
  border: 1px solid var(--pink-border);
}

.kp-rec-btn.secondary:hover {
  background: var(--pink-bg2, #FFE0EC);
}

.kp-rec-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.kp-rec-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ── RECORDING INDICATOR RING ─────────────────────────────────── */
.kp-rec-indicator {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--pink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}

.kp-rec-indicator.recording {
  border-color: #EF4444;
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.15);
  animation: recRing 1.5s ease-in-out infinite;
}

.kp-rec-indicator.has-audio {
  border-color: #10B981;
}

@keyframes recRing {
  0%, 100% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.15); }
  50% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0.08); }
}

.kp-rec-mic-icon {
  font-size: 2rem;
}

/* ── PLAYBACK PREVIEW IN RECORDER ─────────────────────────────── */
.kp-rec-preview {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

/* ── BARRA DE REACCIONES DE QUÍMICA (HOLD & REACT) ──────────── */
.muro-like-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muro-like-wrapper .muro-action-btn.like-btn {
  width: 100%;
}

.muro-reactions-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.9);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: rgba(15, 11, 24, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 15px rgba(255, 45, 85, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 250;
  white-space: nowrap;
}

.muro-reactions-popover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(15, 11, 24, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.muro-reactions-popover.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.muro-reaction-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
  outline: none;
  padding: 0;
}

.muro-reaction-item:hover {
  transform: scale(1.38) translateY(-4px);
  background: rgba(255, 45, 85, 0.2);
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3);
  z-index: 10;
}

.muro-reaction-item:active {
  transform: scale(1.1) translateY(-2px);
}

.muro-reaction-tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(18, 14, 28, 0.95);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.16s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 45, 85, 0.3);
  letter-spacing: 0.02em;
}

.muro-reaction-item:hover .muro-reaction-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Efecto de partículas animadas al reaccionar */
.muro-reaction-burst {
  position: absolute;
  pointer-events: none;
  z-index: 300;
}

.muro-burst-particle {
  position: absolute;
  font-size: 1.2rem;
  animation: burstParticle 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes burstParticle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.4) rotate(var(--rot));
  }
}

/* Badge de reacciones activas */
.muro-reactions-emojis {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 1px;
}

.muro-reaction-badge-emoji {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.muro-reaction-badge-emoji:hover {
  transform: scale(1.25);
}


/* ═══════════════════════════════════════════════════════════════════
   PIE DEL POST v2 — resumen de reacciones, acciones y selector
   Diseño unificado para muro (index) y perfil. Móvil primero.
   ═══════════════════════════════════════════════════════════════════ */

.kp-post-footer {
  --kp-ink: var(--ink, #1A0A14);
  --kp-muted: var(--muted, #8E6B7E);
  --kp-line: rgba(255, 45, 85, 0.12);
  --kp-badge-bg: #ffffff;
  --kp-badge-ring: rgba(255, 255, 255, 0.95);
  --kp-hover: rgba(255, 45, 85, 0.07);
  padding: 2px 10px 8px;
}
html.dark-theme .kp-post-footer,
body.dark-theme .kp-post-footer {
  --kp-line: rgba(255, 55, 95, 0.16);
  --kp-badge-bg: #2a1234;
  --kp-badge-ring: #1c0b22;
  --kp-hover: rgba(255, 55, 95, 0.10);
}

/* ── Resumen: burbujas de emoji superpuestas + "Tú y N más" ── */
.kp-react-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px;
  padding: 12px 2px 11px;
  border-bottom: 1px solid var(--kp-line);
  font: 500 0.9rem/1.2 "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--kp-muted);
  animation: kpSummaryIn 0.28s ease both;
}
.kp-react-summary[hidden] { display: none; }

.kp-react-stack {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.kp-react-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--kp-badge-bg);
  box-shadow: 0 0 0 2px var(--kp-badge-ring), 0 2px 8px rgba(26, 10, 20, 0.14);
  font-size: 14px;
  line-height: 1;
}
.kp-react-badge:first-child { margin-left: 0; }

.kp-react-text strong {
  color: var(--kp-ink);
  font-weight: 700;
}

/* ── Acciones: dos botones iguales, objetivo táctil de 46 px ── */
.kp-post-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 0 0;
}
.kp-post-actions.is-single { grid-template-columns: 1fr; }

.kp-like-wrap {
  position: relative;
  display: flex;
  min-width: 0;
}

.kp-action {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--kp-ink);
  opacity: 0.82;
  font: 600 0.95rem/1 "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease,
              transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kp-action:hover { background: var(--kp-hover); opacity: 1; }
.kp-action:active { transform: scale(0.96); }
.kp-action:focus-visible { outline: 2px solid #FF2D55; outline-offset: 2px; }

.kp-action-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.kp-action-emoji { font-size: 1.3rem; line-height: 1; }
.kp-action-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kp-ico { display: block; }

/* Estado con reacción: el color lo marca la reacción elegida */
.kp-action.like-btn.is-reacted {
  opacity: 1;
  font-weight: 700;
  color: var(--kp-react-color, #FF2D55);
  background: rgba(255, 45, 85, 0.08);
  background: color-mix(in srgb, var(--kp-react-color, #FF2D55) 11%, transparent);
}
.kp-action.like-btn.just-reacted .kp-action-icon {
  animation: kpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Selector de reacciones ── */
.kp-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 260;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  max-width: calc(100vw - 20px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 45, 85, 0.16);
  box-shadow: 0 16px 40px rgba(26, 10, 20, 0.18), 0 3px 10px rgba(26, 10, 20, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--kp-shift, 0px)) translateY(10px) scale(0.9);
  transform-origin: var(--kp-arrow-x, 40px) 100%;
  transition: opacity 0.18s ease,
              transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0s linear 0.26s;
}
.kp-picker.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(var(--kp-shift, 0px)) translateY(0) scale(1);
  transition-delay: 0s;
}
/* Flecha que apunta al botón */
.kp-picker::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--kp-arrow-x, 40px);
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid rgba(255, 45, 85, 0.16);
  border-bottom: 1px solid rgba(255, 45, 85, 0.16);
  transform: translate(-50%, -6px) rotate(45deg);
}
html.dark-theme .kp-picker,
body.dark-theme .kp-picker {
  background: rgba(28, 11, 34, 0.96);
  border-color: rgba(255, 55, 95, 0.26);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
html.dark-theme .kp-picker::after,
body.dark-theme .kp-picker::after { border-color: rgba(255, 55, 95, 0.26); }

.kp-picker-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.kp-picker-emoji {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(26, 10, 20, 0.15));
}
.kp-picker.is-open .kp-picker-item {
  animation: kpItemIn 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.kp-picker-item:active { transform: scale(1.2); background: rgba(255, 45, 85, 0.1); }

.kp-picker-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 9px;
  border-radius: 999px;
  background: #1A0A14;
  color: #fff;
  font: 700 0.7rem/1 "Outfit", -apple-system, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
html.dark-theme .kp-picker-tip,
body.dark-theme .kp-picker-tip { background: #fff; color: #1A0A14; }

@media (hover: hover) {
  .kp-picker-item:hover { transform: translateY(-7px) scale(1.32); }
  .kp-picker-item:hover .kp-picker-tip { opacity: 1; transform: translate(-50%, 0); }
}

/* Partículas: fijas a la ventana (antes se desplazaban al hacer scroll) */
.muro-reaction-burst { position: fixed; }

/* ── Foto: relleno desenfocado en lugar de franjas negras ── */
.muro-post-media {
  isolation: isolate;
  background: #140810;
}
.muro-post-media .muro-media-backdrop {
  position: absolute;
  inset: -24px;
  z-index: -1;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  max-height: none;
  object-fit: cover;
  filter: blur(26px) saturate(1.25) brightness(0.78);
  transform: none !important;
  pointer-events: none;
}
.muro-post-media img:not(.muro-media-backdrop) {
  position: relative;
  cursor: zoom-in;
}

/* ── Animaciones ── */
@keyframes kpPop {
  0%   { transform: scale(0.6); }
  55%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes kpItemIn {
  from { opacity: 0; transform: translateY(12px) scale(0.5); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes kpSummaryIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}

/* ── Pantallas estrechas ── */
@media (max-width: 400px) {
  .kp-post-footer { padding: 2px 6px 6px; }
  .kp-action { gap: 6px; padding: 0 8px; font-size: 0.9rem; }
  .kp-picker { gap: 0; padding: 5px; }
  .kp-picker-item { width: 39px; height: 39px; }
  .kp-picker-emoji { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .kp-picker, .kp-picker-item, .kp-action, .kp-react-summary { transition: none; animation: none !important; }
  .kp-action.like-btn.just-reacted .kp-action-icon { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   CABECERA DEL POST v2 — la ubicación ya no compite con el nombre
   Fila 1: nombre (una línea).  Fila 2: hora · estado/ubicación.
   Derecha: solo el menú ⋮.
   ═══════════════════════════════════════════════════════════════════ */

.muro-post-header {
  gap: 10px;
  align-items: center;
}
.muro-post-user {
  flex: 1 1 auto;
  min-width: 0;
}
.muro-post-avatar { flex-shrink: 0; }
.muro-post-user-info {
  flex: 1 1 auto;
  min-width: 0;
}

.muro-post-username {
  min-width: 0;
  flex-wrap: nowrap;
}
.muro-post-username > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.muro-post-username .muro-anon-badge { flex-shrink: 0; }

.muro-post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 3px;
}
.muro-post-meta .muro-post-time {
  flex-shrink: 0;
  margin-top: 0;
  white-space: nowrap;
}
.muro-post-meta .muro-availability-badge {
  min-width: 0;
  max-width: 100%;
  gap: 4px;
  padding: 2px 9px 2px 7px;
  font-size: 0.7rem;
  line-height: 1.35;
}
.muro-post-meta .muro-availability-badge::before {
  content: "";
  display: none;
}
.muro-availability-emoji { flex-shrink: 0; font-size: 0.72rem; }
.muro-availability-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muro-post-header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════════════
   ESTADOS DE DISPONIBILIDAD v2 — etiqueta del post + punto del avatar
   Libre ahora: verde "en vivo" · Con ganas de salir: violeta→rosa
   Cerca de ti: índigo con pin
   ═══════════════════════════════════════════════════════════════════ */

.kp-status {
  --st-fg: #047857;
  --st-bg: rgba(16, 185, 129, 0.12);
  --st-ring: rgba(16, 185, 129, 0.26);
  --st-dot: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  height: 22px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  background: var(--st-bg);
  box-shadow: inset 0 0 0 1px var(--st-ring);
  color: var(--st-fg);
  font: 700 0.7rem/1 "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.kp-status--going_out {
  --st-fg: #9D174D;
  --st-bg: linear-gradient(120deg, rgba(168, 85, 247, 0.14), rgba(236, 72, 153, 0.16));
  --st-ring: rgba(217, 70, 239, 0.28);
  --st-dot: #D946EF;
}
.kp-status--nearby {
  --st-fg: #4338CA;
  --st-bg: rgba(99, 102, 241, 0.12);
  --st-ring: rgba(99, 102, 241, 0.28);
  --st-dot: #6366F1;
}
html.dark-theme .kp-status, body.dark-theme .kp-status { --st-fg: #6EE7B7; --st-bg: rgba(16, 185, 129, 0.16); --st-ring: rgba(52, 211, 153, 0.32); }
html.dark-theme .kp-status--going_out, body.dark-theme .kp-status--going_out { --st-fg: #F5B8FF; --st-bg: linear-gradient(120deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.22)); --st-ring: rgba(232, 121, 249, 0.34); }
html.dark-theme .kp-status--nearby, body.dark-theme .kp-status--nearby { --st-fg: #C7D2FE; --st-bg: rgba(99, 102, 241, 0.2); --st-ring: rgba(129, 140, 248, 0.36); }

.kp-status-ico {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.kp-status-ico svg { display: block; }
.kp-status-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Punto "en vivo" con onda */
.kp-status-live {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}
.kp-status-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10B981;
  animation: kpLivePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes kpLivePing {
  0%   { transform: scale(1);   opacity: 0.75; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ── Punto de estado en el avatar ── */
.kp-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.kp-avatar-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2.5px #fff;
}
.kp-avatar-dot--going_out { background: linear-gradient(135deg, #A855F7, #EC4899); }
.kp-avatar-dot--nearby { background: #6366F1; }
html.dark-theme .kp-avatar-dot, body.dark-theme .kp-avatar-dot { box-shadow: 0 0 0 2.5px #1c0b22; }

/* La etiqueta antigua ya no se usa en el muro */
.muro-post-meta .kp-status { flex: 0 1 auto; }

@media (prefers-reduced-motion: reduce) {
  .kp-status-live::after { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   AUTOCOMPLETADO DE UBICACIÓN
   ═══════════════════════════════════════════════════════════════════ */
.kp-location-input { position: relative; z-index: 5; }
.kp-location-input.is-suggesting {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.kp-loc-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 300;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 18px 40px rgba(26, 10, 20, 0.16), 0 3px 10px rgba(26, 10, 20, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: kpLocListIn 0.18s ease both;
}
.kp-loc-list[hidden] { display: none; }

.kp-loc-head {
  padding: 8px 10px 6px;
  font: 800 0.66rem/1 "Outfit", -apple-system, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #8E6B7E);
}

.kp-loc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 10px;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease;
}
.kp-loc-item:hover,
.kp-loc-item[aria-selected="true"] { background: rgba(99, 102, 241, 0.09); }
.kp-loc-item:active { background: rgba(99, 102, 241, 0.16); }

.kp-loc-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  color: #6366F1;
  background: rgba(99, 102, 241, 0.1);
}
.kp-loc-pin svg { display: block; }

.kp-loc-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 0.92rem/1.2 "Outfit", -apple-system, sans-serif;
  color: var(--ink, #1A0A14);
}
.kp-loc-name mark {
  background: none;
  color: #4F46E5;
  font-weight: 800;
}
.kp-loc-dept {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(26, 10, 20, 0.05);
  font: 600 0.68rem/1 "Outfit", -apple-system, sans-serif;
  color: var(--muted, #8E6B7E);
}
.kp-loc-empty {
  padding: 14px 12px;
  font-size: 0.82rem;
  color: var(--muted, #8E6B7E);
  text-align: center;
}

.kp-location-input.just-picked { animation: kpLocPicked 0.45s ease; }

body.dark-theme .kp-loc-list {
  background: rgba(28, 11, 34, 0.98);
  border-color: rgba(129, 140, 248, 0.26);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
body.dark-theme .kp-loc-item:hover,
body.dark-theme .kp-loc-item[aria-selected="true"] { background: rgba(129, 140, 248, 0.14); }
body.dark-theme .kp-loc-name mark { color: #A5B4FC; }
body.dark-theme .kp-loc-dept { background: rgba(255, 255, 255, 0.07); }

@keyframes kpLocListIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kpLocPicked {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
  100% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

/* Tarjeta elevada mientras la lista de ubicaciones está abierta */
.kp-raise { position: relative; z-index: 60; }

/* Fondo opaco: con transparencia se leía el contenido de debajo */
.kp-loc-list { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.dark-theme .kp-loc-list { background: #1c0b22; }


/* ═══════════════════════════════════════════════════════════════════
   HOME v2 — estados en tarjetas, "Disponibles ahora", favoritas
   ═══════════════════════════════════════════════════════════════════ */

/* Estado sobre la foto de la tarjeta */
.card-img { position: relative; }
.kp-card-status {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  max-width: calc(100% - 16px);
  background: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18), inset 0 0 0 1px var(--st-ring) !important;
}
body.dark-theme .kp-card-status { background: rgba(20, 8, 26, 0.86) !important; }

/* Cabecera de "Últimos anuncios" con el filtro */
.kp-gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.kp-gallery-bar #galleryTitle { margin-bottom: 0; }
.kp-avail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font: 700 0.86rem/1 "Outfit", -apple-system, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kp-avail-chip:active { transform: scale(0.96); }
.kp-avail-chip.is-on { background: #10B981; border-color: #10B981; color: #fff; }
.kp-avail-chip.is-on .kp-status-live,
.kp-avail-chip.is-on .kp-status-live::after { background: #fff; box-shadow: none; }
.kp-avail-chip.is-empty:not(.is-on) { opacity: 0.7; }
.kp-avail-chip-count:empty { display: none; }
.kp-avail-chip-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #10B981;
  color: #fff;
  font-size: 0.74rem;
}
.kp-avail-chip.is-on .kp-avail-chip-count { background: rgba(255, 255, 255, 0.25); }
body.dark-theme .kp-avail-chip:not(.is-on) { color: #6EE7B7; }

.kp-only-available .ad-card-latest:not(.kp-is-available) { display: none !important; }
.kp-avail-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 16px;
  padding: 22px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
  text-align: center;
  font-family: "Outfit", -apple-system, sans-serif;
}
.kp-avail-empty strong { color: var(--ink, #1A0A14); font-size: 0.98rem; }
.kp-avail-empty span { color: var(--muted, #8E6B7E); font-size: 0.84rem; }

/* De tus favoritas */
.kp-fav-section { margin: 8px 0 24px; }
.kp-fav-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kp-fav-head h2 { margin: 0; }
.kp-fav-sub { font: 600 0.82rem "Outfit", sans-serif; color: var(--muted, #8E6B7E); }
.kp-fav-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 46%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.kp-fav-row > * { scroll-snap-align: start; }
@media (min-width: 720px) { .kp-fav-row { grid-auto-columns: minmax(200px, 23%); } }

/* Ver perfil completo (detalle del anuncio) */
.kp-preview-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(255, 45, 85, 0.18);
  color: var(--ink, #1A0A14);
  text-decoration: none;
  font-family: "Outfit", -apple-system, sans-serif;
  transition: transform 0.16s ease;
}
.kp-preview-profile:active { transform: scale(0.98); }
.kp-pp-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kp-pp-text strong { font-size: 0.95rem; color: #E11D48; }
.kp-pp-text span { font-size: 0.76rem; color: var(--muted, #8E6B7E); }
.kp-preview-profile .kp-status { flex-shrink: 0; }
.kp-preview-profile > svg { color: #E11D48; flex-shrink: 0; }


/* Publicaciones de ejemplo (solo mientras no haya publicaciones reales) */
.kp-demo-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(26, 10, 20, 0.06);
  color: var(--muted, #8E6B7E);
  font: 700 0.64rem/1.4 "Outfit", -apple-system, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.dark-theme .kp-demo-tag { background: rgba(255, 255, 255, 0.08); }
