/* ============================================================
   Cuckold — main.css
   Variables del sistema de diseño + reset + base
   (tipografía escalada +25% para legibilidad en dark mode)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Flecha de los <select> (chevron claro) — Safari/iOS muestra una nativa casi invisible. */
  --sel-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239d97b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --bg:       #0d0d12;
  --bg2:      #13131a;
  --bg3:      #1a1a24;
  --bg4:      #22222f;
  --accent:   #8b5cf6;
  --accent2:  #a78bfa;
  --accent3:  #c4b5fd;
  --teal:     #4ea7a8;   /* color del ícono de mensajes */
  --teal2:    #6cc0c1;   /* teal claro (equiv. accent2) */
  --teal3:    #a3d9da;   /* teal muy claro (equiv. accent3) */
  --pink:     #DB70AC;   /* color del buscador */
  --pink2:    #E699C5;   /* pink claro (equiv. accent2) */
  --pink3:    #EFBEDA;   /* pink muy claro (equiv. accent3) */
  --amber:    #E89329;   /* campana + badge Admin + toasts */
  --amber2:   #EDAB59;   /* ámbar claro (equiv. accent2) */
  --amber3:   #F2BF82;   /* ámbar muy claro (equiv. accent3) */
  --text:     #f0edf8;
  --text2:    #b6b0d0;
  --text3:    #a39dbf;   /* terciario — subido para mejor legibilidad en dark mode */
  --border:   #2a2740;
  --red:      #f43f5e;
  --green:    #10b981;
  --card-r:   16px;
  /* Tipografía: todo sans-serif (DM Sans). --font2 se mantiene como alias. */
  --font:     'DM Sans', sans-serif;
  --font2:    'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  font-size: 17px;            /* base +25% (16 → 20 para texto heredado) */
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmósfera de fondo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent3); text-decoration: none; }

/* Migaja "← Volver al feed" (post individual, guardados, notificaciones, configuración) */
.breadcrumb { margin-bottom: 16px; font-size: 15px; }

/* Reset de la apariencia nativa de Safari/WebKit (si no, ignora bg/borde/padding
   en botones y mete sombra interna en inputs). No tocamos select/checkbox/radio. */
button, input[type="submit"], input[type="button"], input[type="reset"],
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="search"], input[type="tel"], input[type="number"], input[type="date"], textarea {
  -webkit-appearance: none;
  appearance: none;
}
/* Los <select> también: sacamos la flecha nativa (apenas visible en iOS) y ponemos
   una propia con --sel-arrow. El fondo/posición lo agrega cada clase de select. */
select { -webkit-appearance: none; appearance: none; }

/* Botones base */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font); font-size: 18px; font-weight: 600;
  padding: 13px 24px; border-radius: 12px; border: none; cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: transparent; border: 1px solid var(--accent); color: var(--accent2); }
.btn-primary:hover { background: rgba(139,92,246,.15); color: var(--accent2); text-decoration: none; }
.btn-secondary { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent2); text-decoration: none; }
.follow-btn.following { background: var(--bg3); color: var(--text2); border-color: var(--border); }
.follow-btn.following:hover { background: var(--bg4); border-color: var(--border); }
.follow-btn .fl-off, .follow-btn .fl-on { display: inline-flex; align-items: center; gap: 6px; }
.follow-btn .fl-on { display: none; }
.follow-btn.following .fl-off { display: none; }
.follow-btn.following .fl-on { display: inline-flex; }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent2); }
.btn-outline:hover { background: rgba(139,92,246,.15); color: var(--accent2); text-decoration: none; }
.btn-teal { background: transparent; border: 1px solid var(--teal); color: var(--teal2); }
.btn-teal:hover { background: rgba(78,167,168,.15); color: var(--teal2); text-decoration: none; }
.btn-pink { background: transparent; border: 1px solid var(--pink); color: var(--pink2); }
.btn-pink:hover { background: rgba(219,112,172,.15); color: var(--pink2); text-decoration: none; }
.btn-danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn-danger:hover { background: rgba(244,63,94,.15); color: var(--red); text-decoration: none; }
.btn-sm { padding: 9px 16px; font-size: 15px; }

/* Logo */
.logo { font-family: var(--font2); color: var(--text); letter-spacing: -0.5px; }
.logo span { color: var(--accent2); font-style: italic; }

/* Bajada del logo (tagline en texto, no en el SVG) */
.tagline {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d7d2e2;
}

/* Iconos Lucide inline */
.icon { vertical-align: middle; flex-shrink: 0; }
.post-vis, .perfil-meta span { display: inline-flex; align-items: center; }
.post-vis > .icon, .perfil-meta span > .icon { margin-right: 6px; }
.nav-create { display: inline-flex; align-items: center; gap: 6px; }
.nav-icon { color: var(--amber); }   /* campana en ámbar para que resalte */
.empty-icon, .perfil-empty-icon { color: var(--text3); }

/* Badges y tags (reutilizables) */
.badge {
  display: inline-block; text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
  background: var(--bg3); color: var(--text2); border: none;
}
.badge.accent { background: rgba(139,92,246,.18); color: var(--accent3); }
.badge.admin { background: transparent; border: 1px solid var(--amber); color: var(--amber); font-weight: 700; font-size: 12px; padding: 1px 8px; }

/* Anillo naranja del avatar (admin) — el contenedor debe ser position:relative */
.avatar-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); pointer-events: none; }
.tag {
  font-size: 14px; padding: 4px 12px; border-radius: 20px;
  background: var(--bg3); color: var(--text2); border: 1px solid var(--border);
}

/* Navbar (app logueada) */
nav.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,18,.85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: baseline; }
.nav-logo img { height: 30px; display: block; }
.nav-tagline {
  margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--border);
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: #d7d2e2; white-space: nowrap;
}
@media (max-width: 760px) { .nav-tagline { display: none; } }
.nav-center { display: flex; align-items: center; gap: 8px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-burger { display: none; background: transparent; border: 1px solid var(--border); color: var(--text2); width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.nav-burger:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 700px) {
  nav.nav { padding: 0 12px; }
  .nav-brand { margin-right: auto; }
  .nav-burger { display: inline-flex; }
  .nav-center {
    position: absolute; top: 100%; right: 8px; left: auto; transform: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
    padding: 8px; min-width: 200px; box-shadow: 0 12px 32px rgba(0,0,0,.45); z-index: 120; display: none;
  }
  .nav.menu-open .nav-center { display: flex; }
  .nav-center .nav-btn { width: 100%; justify-content: flex-start; padding: 11px 14px; }
}
.nav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid transparent; color: var(--accent2);
  padding: 8px 15px; border-radius: 10px; cursor: pointer; line-height: 1;
  font-family: var(--font); font-size: 15px; font-weight: 600; text-decoration: none; transition: all .15s; white-space: nowrap;
}
.nav-btn:hover { background: rgba(139,92,246,.15); color: var(--accent2); text-decoration: none; }
.nav-btn.active { border-color: var(--accent); background: rgba(139,92,246,.15); color: var(--accent2); }
.nav-btn.teal { color: var(--teal2); }
.nav-btn.teal:hover { background: rgba(78,167,168,.15); color: var(--teal2); }
.nav-btn.teal.active { border-color: var(--teal); background: rgba(78,167,168,.15); color: var(--teal2); }
.nav-btn.pink { color: var(--pink2); }
.nav-btn.pink:hover { background: rgba(219,112,172,.15); color: var(--pink2); }
.nav-btn.pink.active { border-color: var(--pink); background: rgba(219,112,172,.15); color: var(--pink2); }
.nav-btn.soon { border-style: dashed; border-color: var(--border); color: var(--text3); opacity: .8; cursor: default; }
.nav-btn.soon:hover { background: transparent; color: var(--text3); }
@media (max-width: 900px) { .nav-btn.soon { display: none; } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-create { background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 10px; text-decoration: none; transition: all .2s; white-space: nowrap; }
.nav-create:hover { background: #7c3aed; text-decoration: none; }
.nav-icon {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; transition: all .2s;
}
.nav-icon:hover { border-color: var(--amber); }
#nav-msgs { color: var(--teal); }
#nav-msgs:hover { border-color: var(--teal); }
.nav-notif-wrap { position: relative; display: flex; }
@keyframes bellPulse { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-13deg); } 40% { transform: rotate(11deg); } 60% { transform: rotate(-7deg); } 80% { transform: rotate(4deg); } }
.bell-pulse { animation: bellPulse .6s ease; }
.nav-icon { position: relative; }

/* Puntito verde "en línea" (global) */
.online-dot { position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg2); box-sizing: content-box; }
.online-dot.lg { width: 16px; height: 16px; border-width: 3px; }

/* ===== Mensajería ===== */
.msg-modal { position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.msg-modal[hidden] { display: none; }
.msg-box { width: 100%; max-width: 440px; height: 70vh; max-height: 620px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.msg-pane { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.msg-pane[hidden] { display: none; }
.msg-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.msg-title { font-size: 17px; font-weight: 700; color: var(--text); flex: 1; }
.msg-back { background: none; border: none; color: var(--text2); cursor: pointer; display: inline-flex; padding: 2px; }
.msg-back:hover { color: var(--text); }
.msg-del { background: none; border: none; color: var(--text3); cursor: pointer; display: inline-flex; padding: 4px; border-radius: 8px; }
.msg-del:hover { color: var(--red); background: var(--bg3); }
/* Botón cerrar de modales (global) */
.modal-close { background: none; border: none; color: var(--text2); cursor: pointer; padding: 4px; border-radius: 8px; display: inline-flex; }
.modal-close:hover { background: var(--bg3); color: var(--text); }

.msg-inbox-body { overflow-y: auto; flex: 1; }
.msg-inbox-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 14px; background: none; border: none; border-bottom: 1px solid var(--border); cursor: pointer; text-align: left; font-family: var(--font); }
.msg-inbox-row:hover { background: var(--bg3); }
.msg-inbox-av { position: relative; width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), #ec4899); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 18px; overflow: hidden; }
.msg-inbox-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-inbox-txt { flex: 1; min-width: 0; }
.msg-inbox-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.msg-inbox-prev { display: block; font-size: 14px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.msg-inbox-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.msg-inbox-time { font-size: 12px; color: var(--text3); }
.msg-inbox-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.msg-conv-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; }
.msg-conv-av { position: relative; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), #ec4899); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 15px; overflow: hidden; }
.msg-conv-av img { width: 100%; height: 100%; object-fit: cover; }
.msg-conv-meta { min-width: 0; }
.msg-conv-name { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.msg-conv-status { display: block; font-size: 12px; color: var(--green); }
.msg-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg-b { max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: 15px; line-height: 1.35; word-wrap: break-word; }
.msg-b .msg-bt { display: block; }
.msg-b .msg-bh { display: block; font-size: 10px; opacity: .6; margin-top: 3px; text-align: right; }
.msg-b { position: relative; }
.msg-b.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-b.theirs { align-self: flex-start; background: var(--bg3); color: var(--text); border-bottom-left-radius: 4px; }
.msg-react-btn { position: absolute; top: 50%; transform: translateY(-50%); opacity: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg4); cursor: pointer; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; transition: opacity .15s; }
.msg-b:hover .msg-react-btn { opacity: 1; }
.msg-b.mine .msg-react-btn { left: -33px; }
.msg-b.theirs .msg-react-btn { right: -33px; }
.msg-reacc { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.msg-reacc:empty { display: none; }
.reacc { display: inline-flex; align-items: center; gap: 3px; background: rgba(0,0,0,.22); border: 1px solid transparent; border-radius: 12px; padding: 1px 7px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.msg-b.theirs .reacc { background: var(--bg4); }
.reacc.mine { border-color: var(--accent2); }
.reacc-n { font-size: 11px; font-weight: 700; opacity: .85; }
.reacc-picker { position: fixed; z-index: 300; display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--border); border-radius: 22px; padding: 5px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.reacc-picker[hidden] { display: none; }
.reacc-picker button { background: none; border: none; font-size: 21px; cursor: pointer; padding: 3px; border-radius: 50%; line-height: 1; transition: transform .1s; }
.reacc-picker button:hover { transform: scale(1.25); }
.msg-seen { align-self: flex-end; font-size: 11px; color: var(--text3); margin-top: -3px; }
.msg-empty { padding: 28px 16px; text-align: center; color: var(--text3); font-size: 14px; margin: auto; }
.msg-typing { padding: 2px 16px 8px; font-size: 13px; color: var(--text3); font-style: italic; }
.msg-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
.msg-form input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 22px; padding: 10px 16px; color: var(--text); font-family: var(--font); font-size: 15px; outline: none; }
.msg-form input:focus { border-color: var(--accent); }
.msg-send { flex-shrink: 0; width: 42px; border-radius: 50%; border: none; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.msg-send:hover { background: #7c3aed; }
@media (max-width: 560px) {
  .msg-modal { padding: 0; }
  /* 100dvh = alto real del viewport en mobile (descuenta barras dinámicas de Safari). */
  .msg-box { max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .msg-head { padding-top: max(12px, env(safe-area-inset-top)); }
  .msg-form { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ===== Toasts ===== */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
  border-left: 3px solid var(--amber); border-radius: 12px; padding: 12px 16px;
  font-size: 14px; font-weight: 500; max-width: 320px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: toastIn .25s ease;
}
.toast-msg { border-left-color: var(--teal); }
.toast-click { cursor: pointer; }
.toast-click:hover { border-color: var(--teal); }
.toast-notif.toast-click:hover { border-color: var(--amber); }
.toast-out { animation: toastOut .35s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
@media (max-width: 560px) { .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; } .toast { max-width: none; } }

/* ===== Modal de confirmación ===== */
.confirm-modal { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.confirm-modal[hidden] { display: none; }
.confirm-box { width: 100%; max-width: 360px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: toastIn .2s ease; }
.confirm-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.confirm-text { font-size: 15px; color: var(--text2); line-height: 1.5; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Lightbox de imágenes (galería + posts) — global */
.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; display: inline-flex; z-index: 2; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.4); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.lightbox-nav:hover { background: rgba(0,0,0,.75); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,.5); padding: 4px 12px; border-radius: 999px; }
.lightbox-count[hidden] { display: none; }
@media (max-width: 560px) { .lightbox-nav { width: 40px; height: 40px; } .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; } }
.notif-count {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid var(--bg);
}
.nav-notif {
  position: absolute; top: calc(100% + 12px); right: 0; width: 340px; max-height: 72vh;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.45); display: flex; flex-direction: column; z-index: 200;
}
.nav-notif[hidden] { display: none; }
.nav-notif-head { padding: 14px 16px; font-weight: 700; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.nav-notif-body { overflow-y: auto; }
.notif-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px; text-decoration: none; }
.notif-item:hover { background: var(--bg3); }
.notif-item.unread { background: rgba(139,92,246,.08); }
.notif-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), #ec4899); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 16px; overflow: hidden; }
.notif-av img { width: 100%; height: 100%; object-fit: cover; }
.notif-txt { flex: 1; min-width: 0; font-size: 14px; color: var(--text2); line-height: 1.4; }
.notif-txt b { color: var(--text); font-weight: 600; }
.notif-time { display: block; font-size: 12px; color: var(--text3); margin-top: 2px; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.notif-empty, .notif-loading { padding: 28px 16px; text-align: center; color: var(--text3); font-size: 14px; }
.nav-notif-all { display: block; text-align: center; padding: 12px; font-size: 14px; font-weight: 600; color: var(--accent2); border-top: 1px solid var(--border); }
.nav-notif-all:hover { background: var(--bg3); color: var(--accent2); }

/* Página completa de notificaciones */
.notif-page-wrap { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; padding: 24px 16px 48px; }
.notif-page-title { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 18px; }
.notif-list { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.notif-list .notif-item { border-bottom: 1px solid var(--border); }
.notif-list .notif-item:last-child { border-bottom: none; }
.notif-mas { display: block; margin: 16px auto 0; }

.nav-avatar-wrap { position: relative; }
.nav-avatar {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; border: 2px solid var(--border);
}
.nav-avatar:hover { border-color: var(--accent); }
.nav-avatar img, .perfil-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.nav-menu {
  position: absolute; right: 0; top: 50px; min-width: 190px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; display: none; box-shadow: 0 12px 32px rgba(0,0,0,.45); z-index: 110;
}
.nav-menu.open { display: block; }
.nav-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none;
  color: var(--text2); font-family: var(--font); font-size: 15px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.nav-menu-item:hover { background: var(--bg3); color: var(--text); text-decoration: none; }
.nav-menu-item.logout { color: var(--red); }
.nav-menu-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 4px; }

/* ── Popup promocional (modal del feed) ─────────────────── */
.promo-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8,8,12,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.promo-modal[hidden] { display: none; }
.promo-modal.open { opacity: 1; }
.promo-modal-box { position: relative; max-width: 460px; width: 100%; max-height: 90vh; transform: scale(.96); transition: transform .2s ease; }
.promo-modal.open .promo-modal-box { transform: scale(1); }
.promo-modal-box img { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: contain; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.promo-modal-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: background .15s ease; }
.promo-modal-close:hover { background: var(--bg4); }
@media (max-width: 520px) {
  .promo-modal { padding: 8px; }   /* darle más ancho a la imagen en el teléfono */
  .promo-modal-close { top: 6px; right: 6px; background: rgba(8,8,12,.7); }
}

/* ── Age-gate +18 (overlay; el contenido queda detrás e indexable) ──── */
body.age-locked { overflow: hidden; }
.agegate {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8,8,12,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow-y: auto;
}
.agegate-box {
  text-align: center; max-width: 460px; width: 100%; padding: 44px 40px; margin: auto;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 20px;
}
.agegate-logo { width: 100%; max-width: 330px; }
.agegate-title { font-size: 33px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.agegate-sub { font-size: 17px; color: var(--text2); line-height: 1.6; margin-bottom: 24px; }
.agegate-warning {
  font-size: 15px; color: var(--text3); background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 14px; margin-bottom: 24px; line-height: 1.5;
}
@media (max-width: 520px) {
  .agegate-box { padding: 32px 22px; }
  .agegate-title { font-size: 27px; }
}

/* Botón del age-gate (y splash de registro). Global: el overlay aparece en cualquier página. */
.btn-splash {
  width: 100%; padding: 15px; border-radius: 12px; border: none;
  background: var(--accent); color: #fff; font-family: var(--font);
  font-size: 19px; font-weight: 600; cursor: pointer; transition: all .2s; margin-bottom: 10px;
}
.btn-splash:hover { background: #7c3aed; transform: translateY(-1px); }
.btn-splash.secondary { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); text-decoration: none; display: block; }
.btn-splash.secondary:hover { background: var(--bg4); transform: none; text-decoration: none; }
