/* ══════════════════════════════════════
   JOINIER · sistema visual
══════════════════════════════════════ */

:root {
  --bg: #EFEFEB;
  --fg: #111;
  --fg-soft: #444;
  --muted: #888;
  --muted-2: #AAA;
  --line: #E2E2DE;
  --line-soft: #F4F4F0;
  --card: #FFFFFF;
  --accent: #FEFF44;
  --accent-on: #111;
  --ink-on-dark: #FFFFFF;
  --green: #16a34a;
  --green-soft: #F0FDF4;
  --green-border: #BBF7D0;
  --green-deep: #166534;
  --red: #dc2626;
  --display-font: 'Barlow', sans-serif;
  --body-font: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-color-scheme: dark) {
  html, body { background: var(--bg) !important; color: var(--fg) !important; }
  * { color-scheme: light; }
}

html, body {
  min-height: 100dvh;
  overflow-x: hidden;
  scroll-behavior: auto;
  background: var(--bg) !important;
  color: var(--fg) !important;
  color-scheme: light only;
}

body {
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 76px; /* space for bottom nav */
}

.joinier-mark {
  font-family: var(--display-font);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1px;
  line-height: 1;
}

/* ══ SCREENS ══ */
.screen { display: none; min-height: 100dvh; flex-direction: column; }
.screen.active { display: flex; }
/* Espacio inferior para el bottom nav flotante */
.has-side-rail .screen.active { padding-bottom: 0; }
body:not(.has-side-rail) .screen.active { padding-bottom: 100px; }

/* ══ TOPBAR ══ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 61px; padding: 0 20px; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(239,239,235,0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 30;
}
.topbar-logo { font-size: 22px; color: var(--fg); }
.topbar-label {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; color: #999; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
}
.topbar-back {
  background: none; border: none; font-family: inherit;
  font-size: 13px; font-weight: 500; color: #666;
  cursor: pointer; padding: 4px 0; display: flex; align-items: center; gap: 5px;
}
.topbar-back:active { opacity: 0.6; }
.topbar-icon-btn {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #555; transition: background 0.15s;
  position: relative;
}
.topbar-icon-btn:active { background: var(--line-soft); }
.topbar-icon-btn .notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--bg);
}

/* ══ COMMON FORM ══ */
.field-block { display: flex; flex-direction: column; gap: 0; }
.field-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: #999; margin-bottom: 8px;
}
.field-input {
  width: 100%; padding: 13px 15px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 15px; font-family: inherit;
  color: var(--fg); outline: none; transition: border-color 0.15s;
  appearance: none; -webkit-appearance: none;
}
.field-input:focus { border-color: var(--fg); }
.field-input::placeholder { color: #C4C4C0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Fecha de fin opcional */
.add-fecha-fin-btn {
  display: inline-flex; align-items: center;
  margin-top: 6px; margin-bottom: 4px;
  padding: 0; background: none; border: none;
  font-size: 12px; font-weight: 700; font-family: inherit;
  color: var(--muted); cursor: pointer; letter-spacing: 0.02em;
  transition: color 0.15s;
}
.add-fecha-fin-btn:hover { color: var(--fg); }
.add-fecha-fin-btn.active { color: #c00; }

/* Plazas ilimitadas */
.plazas-label-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.plazas-unlimited-toggle {
  font-size: 11px; font-weight: 700; font-family: inherit;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em; transition: all 0.15s;
}
.plazas-unlimited-toggle.active {
  background: #111; color: var(--accent); border-color: #111;
}
.plazas-unlimited-chip {
  align-items: center; justify-content: center;
  padding: 13px 15px; border-radius: 12px;
  border: 1.5px dashed var(--line); background: var(--card);
  font-size: 15px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.02em;
}

textarea.field-input { resize: vertical; line-height: 1.6; min-height: 96px; }

/* ══ BUTTONS ══ */
.btn-primary {
  width: 100%; padding: 16px;
  background: var(--fg); color: var(--accent);
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; letter-spacing: -0.2px; transition: opacity 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:active { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  width: 100%; padding: 14px;
  background: transparent; color: #666;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
}
.btn-secondary:active { background: var(--line-soft); color: var(--fg); }

.btn-text {
  background: none; border: none; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--fg);
  cursor: pointer; padding: 4px 0;
}
.btn-text:active { opacity: 0.6; }

/* ══════════════════════════════════════
   ONBOARDING (Splash, Login, Signup)
══════════════════════════════════════ */
.onb-screen {
  background: var(--fg); color: var(--ink-on-dark);
  flex: 1; display: flex; flex-direction: column;
  min-height: 100dvh;
}

/* SPLASH */
.splash-body {
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-between;
  padding: max(40px, env(safe-area-inset-top)) 24px 32vh;
}
.splash-top { display: flex; flex-direction: column; gap: 8px; }
.splash-logo {
  font-family: var(--display-font); font-weight: 900; font-style: italic;
  font-size: 64px; line-height: 1; letter-spacing: -2px;
  color: var(--fg);
}
.splash-logo em { color: var(--fg); font-style: italic; }
.splash-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.splash-bottom-group {
  display: flex; flex-direction: column; gap: 50px;
}
.splash-mid {
  display: flex; flex-direction: column; gap: 14px;
}

.splash-pills {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 4px;
}
.splash-pill {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.70);
  white-space: nowrap; user-select: none;
}
.splash-headline {
  font-size: 30px; font-weight: 700; letter-spacing: -0.6px;
  line-height: 1.2; color: var(--fg);
}
.splash-headline em { font-style: italic; color: var(--fg); }
.splash-sub {
  font-size: 15px; line-height: 1.55; color: var(--muted);
  max-width: 380px;
}
.splash-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-light {
  width: 100%; padding: 16px;
  background: var(--accent); color: var(--accent-on);
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: opacity 0.15s;
}
.btn-light:active { opacity: 0.85; }
.btn-ghost-light {
  width: 100%; padding: 16px;
  background: transparent; color: var(--fg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
}
.btn-ghost-light:active { background: rgba(255,255,255,0.06); }
.splash-foot {
  font-size: 11px; color: var(--muted);
  text-align: center; line-height: 1.6;
}

/* LOGIN / SIGNUP */
.auth-body {
  flex: 1; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  padding: 32px 20px 32px;
  gap: 24px;
}
.auth-logo {
  font-family: var(--display-font); font-weight: 900; font-style: italic;
  font-size: 36px; line-height: 1; letter-spacing: -1px; color: var(--fg);
}
.auth-logo em { font-style: italic; color: var(--fg); }
.auth-back {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; color: #666; font-weight: 500;
  padding: 4px 0; align-self: flex-start;
}
.auth-head { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.auth-title {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2;
}
.auth-title em { font-style: italic; color: var(--fg); }
.auth-sub { font-size: 14px; color: var(--muted); line-height: 1.55; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-foot {
  margin-top: auto; text-align: center;
  font-size: 13px; color: var(--muted); padding-top: 16px;
}
.auth-foot a {
  color: var(--fg); font-weight: 600; text-decoration: none; cursor: pointer;
}
.auth-error {
  font-size: 12px; color: var(--red);
  display: none; padding: 6px 2px;
}
.auth-error.show { display: block; }

/* ══════════════════════════════════════
   PROFILE EDIT
══════════════════════════════════════ */
.profile-edit-body {
  flex: 1; padding: 24px 20px 120px;
  display: flex; flex-direction: column; gap: 28px;
}
.profile-edit-photo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.profile-edit-photo {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--display-font); font-weight: 900; font-style: italic;
  font-size: 36px; color: var(--fg);
  position: relative; cursor: pointer;
  border: 3px solid var(--card);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.profile-edit-photo .edit-pill {
  position: absolute; bottom: -6px; right: -6px;
  background: var(--fg); color: var(--accent);
  font-size: 10px; font-weight: 700; padding: 5px 10px;
  border-radius: 999px; letter-spacing: 0.06em;
  border: 2px solid var(--bg);
}
.profile-edit-photo-hint { font-size: 11px; color: var(--muted-2); }

.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--fg-soft);
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.chip.selected {
  background: var(--fg); color: var(--accent);
  border-color: var(--fg);
}

/* ══════════════════════════════════════
   CHECKOUT
══════════════════════════════════════ */
.checkout-summary {
  background: var(--fg); color: var(--ink-on-dark);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.checkout-summary-row {
  display: flex; align-items: center; gap: 14px;
}
.checkout-summary-cover {
  width: 64px; height: 64px; border-radius: 12px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.checkout-summary-cover-pattern {
  position: absolute; inset: 0; opacity: 0.12;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 14px 14px;
}
.checkout-summary-cover .cover-tag {
  position: relative; z-index: 2;
  font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  padding: 0 4px;
}
.checkout-summary-text { flex: 1; min-width: 0; }
.checkout-summary-title { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.checkout-summary-meta { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 3px; }

.checkout-body {
  flex: 1; padding: 24px 20px 200px;
  display: flex; flex-direction: column; gap: 24px;
}

.section-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: #999;
  margin-bottom: 10px; display: block;
}

.card-input-wrap { display: flex; flex-direction: column; gap: 10px; }
.card-input {
  width: 100%; padding: 14px 15px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 15px; font-family: inherit;
  color: var(--fg); outline: none; transition: border-color 0.15s;
  letter-spacing: 0.04em;
}
.card-input:focus { border-color: var(--fg); }
.card-input::placeholder { color: #C4C4C0; letter-spacing: 0.04em; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.card-brands {
  display: flex; align-items: center; gap: 8px;
  padding: 0 4px; font-size: 11px; color: var(--muted-2);
}
.card-brand-pill {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; background: var(--card); border: 1px solid var(--line);
  color: #555;
}

/* COST BREAKDOWN */
.cost-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.cost-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.cost-row:last-child { border-bottom: none; }
.cost-label { color: var(--fg-soft); }
.cost-val { font-weight: 600; }
.cost-row.total {
  background: var(--fg); color: var(--ink-on-dark);
}
.cost-row.total .cost-label { color: rgba(255,255,255,0.7); font-weight: 500; }
.cost-row.total .cost-val { color: var(--accent); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.cost-fee-info {
  font-size: 11px; color: var(--muted-2);
  padding: 0 16px 12px; line-height: 1.5;
}

.secure-row {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--muted-2);
  padding: 8px 0;
}

.checkout-cta {
  position: fixed; bottom: 76px; left: 0; right: 0; max-width: 640px; margin: 0 auto;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(239,239,235,0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); z-index: 20;
}
.btn-pay {
  width: 100%; padding: 16px;
  background: var(--fg); color: var(--accent);
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: opacity 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-pay:active { opacity: 0.85; }
.btn-pay-amount {
  background: var(--accent); color: var(--fg);
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800;
}

/* ══════════════════════════════════════
   CONFIRMATION
══════════════════════════════════════ */
.confirm-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 28px 20px 120px; gap: 24px;
}
.confirm-hero {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 24px 0;
}
.confirm-check {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--fg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  position: relative;
}
.confirm-check::after {
  content: ''; position: absolute; inset: -10px;
  border: 2px solid var(--accent); border-radius: 50%;
  opacity: 0.5;
}
.confirm-title { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; text-align: center; }
.confirm-sub { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.6; max-width: 340px; }

.receipt-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
}
.receipt-head {
  background: var(--fg); color: var(--ink-on-dark);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.receipt-head-id {
  font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em;
  font-family: monospace;
}
.receipt-head-label {
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.receipt-event {
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
  border-bottom: 1px dashed var(--line);
}
.receipt-event-title { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.receipt-event-meta { font-size: 13px; color: var(--muted); line-height: 1.6; }
.receipt-rows { padding: 8px 16px 16px; }
.receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px;
}
.receipt-row.total { font-size: 15px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.receipt-row .lbl { color: var(--fg-soft); }
.receipt-row .val { font-weight: 600; }

.confirm-actions { display: flex; flex-direction: column; gap: 10px; }

/* ══════════════════════════════════════
   SHARE
══════════════════════════════════════ */
.share-body {
  flex: 1; padding: 24px 20px 120px;
  display: flex; flex-direction: column; gap: 24px;
}
.share-event-card {
  background: var(--fg); color: var(--ink-on-dark);
  border-radius: 16px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.share-event-pattern {
  position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 18px 18px;
}
.share-event-tag {
  position: relative;
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.share-event-title {
  position: relative;
  font-size: 22px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.25;
}
.share-event-meta {
  position: relative;
  font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 4px;
}

.share-link-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 4px 4px 4px 14px;
}
.share-link-text {
  flex: 1; font-size: 13px; color: var(--fg-soft);
  font-family: monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-copy {
  background: var(--fg); color: var(--accent);
  border: none; border-radius: 9px;
  padding: 9px 14px; font-size: 12px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-copy:active { opacity: 0.8; }
.btn-copy.copied { background: var(--green); color: white; }

.qr-wrap {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.qr-code {
  width: 180px; height: 180px;
  background: var(--fg); border-radius: 12px;
  display: grid; grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  padding: 8px; gap: 0;
}
.qr-code .qr-pixel { background: var(--accent); }
.qr-code .qr-pixel.off { background: transparent; }
.qr-hint { font-size: 11px; color: var(--muted-2); text-align: center; line-height: 1.5; }

.share-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.share-tile {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: var(--fg-soft);
  cursor: pointer; transition: all 0.15s;
}
.share-tile:active { background: var(--line-soft); }
.share-tile-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--fg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.share-tile-icon.wa { background: #25D366; color: white; }
.share-tile-icon.tg { background: #229ED9; color: white; }
.share-tile-icon.ig { background: linear-gradient(45deg, #FCAF45, #E1306C, #833AB4); color: white; }
.share-tile-icon.x { background: #000; color: white; }

/* ══════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════ */
.notif-body {
  flex: 1; padding: 12px 0 120px;
}
.notif-section {
  padding: 14px 20px 6px;
}
.notif-section-label {
  font-size: 11px; font-weight: 700; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.notif-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer; transition: background 0.15s;
  position: relative;
}
.notif-row:active { background: var(--line-soft); }
.notif-row.unread::before {
  content: ''; position: absolute; left: 8px; top: 22px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.notif-icon {
  width: 38px; height: 38px; border-radius: 10px;
  flex-shrink: 0;
  background: var(--line-soft); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.notif-icon.payment { background: #F0FDF4; color: var(--green-deep); }
.notif-icon.reminder { background: #FEF9C3; color: #854D0E; }
.notif-icon.update { background: #DBEAFE; color: #1E40AF; }
.notif-icon.join { background: var(--fg); color: var(--accent); }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; }
.notif-text { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.notif-time { font-size: 11px; color: var(--muted-2); margin-top: 4px; }

/* ── Avisos de evento: estilo chat ── */
.aviso-row {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.aviso-row.unread { background: rgba(0,0,0,0.025); }
.aviso-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  margin-top: 1px;
}
.aviso-body { flex: 1; min-width: 0; }
.aviso-head {
  display: flex; align-items: baseline; gap: 5px;
  margin-bottom: 4px;
}
.aviso-name { font-size: 13px; font-weight: 700; color: var(--fg); white-space: nowrap; }
.aviso-event {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.aviso-time { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.aviso-actions { display: flex; gap: 4px; margin-left: auto; }
.aviso-action-btn {
  background: none; border: none; cursor: pointer; padding: 2px 5px;
  font-size: 15px; color: var(--muted); border-radius: 5px; line-height: 1;
}
.aviso-action-btn:hover { background: rgba(0,0,0,0.06); color: var(--fg); }
.aviso-action-del:hover { color: #D93025; }
.aviso-edited { font-size: 11px; color: var(--muted); font-style: italic; }
.aviso-msg {
  font-size: 13px; color: var(--fg); line-height: 1.48;
  margin-bottom: 8px;
}
.aviso-pill {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
}
.aviso-pill.info          { background: #efefef; color: #888; }
.aviso-pill.urgente       { background: #ffe5e5; color: #c8000a; }
.aviso-pill.recomendacion { background: #fff3e0; color: #c25a00; }
.aviso-pill.cambio        { background: #e3efff; color: #1a6ec8; }

/* ── Join (sistema): fila compacta ── */
.notif-join-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-join-row.unread { background: rgba(0,0,0,0.02); }
.notif-join-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f0f0f0; color: #666;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.notif-join-text {
  flex: 1; font-size: 13px; color: var(--muted);
  line-height: 1.35;
}
.notif-join-text strong { color: var(--fg); font-weight: 600; }
.notif-join-time { font-size: 11px; color: var(--muted-2); white-space: nowrap; }

/* ── Notificaciones: infinite scroll ── */
.notif-sentinel { height: 1px; }

.notif-loader {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 0 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.notif-loader.visible { opacity: 1; }
.notif-loader-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted-2);
  animation: notif-bounce 1.1s infinite ease-in-out;
}
.notif-loader-dot:nth-child(2) { animation-delay: 0.18s; }
.notif-loader-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes notif-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1;   }
}
.notif-end {
  text-align: center; font-size: 12px; color: var(--muted-2);
  padding: 20px 0 40px; letter-spacing: 0.04em;
}
.notif-load-btn {
  display: block; width: calc(100% - 32px); margin: 12px 16px;
  padding: 12px; border-radius: 12px;
  border: 1.5px dashed var(--line); background: transparent;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: inherit;
}

/* ══════════════════════════════════════
   DASHBOARD ANFITRIÓN
══════════════════════════════════════ */
.dash-hero {
  background: var(--fg); color: var(--ink-on-dark);
  padding: 22px 20px 24px;
}
.dash-hero-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.dash-hero-amount {
  font-size: 44px; font-weight: 800; letter-spacing: -1.5px;
  line-height: 1; margin-top: 6px;
}
.dash-hero-amount em { color: var(--accent); font-style: italic; }
.dash-hero-sub {
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-top: 6px;
}
.dash-hero-trend {
  font-size: 12px; font-weight: 600; color: var(--accent);
  margin-top: 8px; display: inline-flex; align-items: center; gap: 4px;
}

.dash-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 18px;
}
.dash-stats.dash-stats-2x2 {
  grid-template-columns: repeat(2, 1fr);
}
.dash-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.dash-stat-label { font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.dash-stat-val { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.dash-body {
  flex: 1; padding: 22px 20px 120px;
  display: flex; flex-direction: column; gap: 28px;
}

.dash-section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.dash-section-title { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.dash-section-link { font-size: 12px; font-weight: 600; color: var(--fg); cursor: pointer; }

.dash-bars {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px;
}
/* Year toggle */
.dash-year-toggle { display: flex; gap: 4px; }
.dash-year-btn {
  padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: 12px; font-weight: 700; font-family: inherit;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.dash-year-btn.active { background: #111; color: var(--accent); border-color: #111; }

/* Bar chart */
.dash-bars-grid {
  display: flex; align-items: flex-end; gap: 6px;
  height: 110px; margin-top: 10px;
}
.dash-bar-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; height: 100%; }
.dash-bar-pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.dash-bar {
  flex: 1; border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.3s;
}
.dash-bar.created  { background: var(--fg); }
.dash-bar.attended { background: var(--line); }
.dash-bar.created.highlight  { background: var(--accent); }
.dash-bar.attended.highlight { background: rgba(254,255,68,0.45); }
.dash-bar-labels {
  display: flex; gap: 6px; margin-top: 8px;
  font-size: 10px; color: var(--muted); font-weight: 500;
}
.dash-bar-labels span { flex: 1; text-align: center; }
.dash-bars-legend {
  display: flex; align-items: center; gap: 5px;
  margin-top: 10px; font-size: 11px; color: var(--muted); font-weight: 600;
}
.dash-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dash-legend-dot.created  { background: var(--fg); }
.dash-legend-dot.attended { background: var(--line); border: 1.5px solid #bbb; }

/* Sección "Con quién más quedas" */
.dash-section-sub {
  font-size: 12px; color: var(--muted); margin-top: -6px; margin-bottom: 14px;
}
.dash-empty {
  font-size: 13px; color: var(--muted); text-align: center; padding: 20px 0;
}

/* ── PRO bloqueado ── */
.dash-pro-locked {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 20px;
}
.dash-pro-locked-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.dash-pro-locked-tag {
  font-size: 10px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 8px; letter-spacing: 0.06em; text-transform: uppercase;
}
.dash-pro-locked-title {
  font-size: 18px; font-weight: 800; color: var(--fg); margin: 0 0 8px;
}
.dash-pro-locked-desc {
  font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0 0 16px;
}
.dash-pro-locked-preview {
  position: relative; border-radius: 12px;
  border: 1px solid var(--line); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px; overflow: hidden;
}
.dash-pro-locked-row {
  display: flex; align-items: center; gap: 10px;
}
.dash-pro-locked-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--line); flex-shrink: 0;
}
.dash-pro-locked-bar {
  height: 10px; border-radius: 6px; background: var(--line); flex: none;
}
.dash-pro-locked-amount {
  flex: 1; height: 10px; border-radius: 6px;
  background: var(--line); max-width: 48px; margin-left: auto;
}
.dash-pro-locked-blur {
  position: absolute; inset: 0;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.55);
}
.dash-pro-locked-btn {
  width: 100%; padding: 14px;
  background: var(--fg); color: var(--accent);
  border: none; border-radius: 14px;
  font-size: 15px; font-weight: 800; font-family: inherit;
  cursor: pointer; transition: opacity 0.15s;
}
.dash-pro-locked-btn:active { opacity: 0.85; }

/* ── Fotos de evento ── */
.crear-foto-portada-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; aspect-ratio: 16/9; border-radius: 12px;
  border: 2px dashed var(--line); background: var(--card);
  cursor: pointer; transition: border-color 0.15s;
}
.crear-foto-portada-empty:active { border-color: var(--fg); }

.crear-foto-add-btn {
  margin-top: 10px; padding: 10px 18px;
  border: 1.5px dashed var(--line); border-radius: 10px;
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; width: 100%;
}
.crear-foto-add-btn:active { background: var(--card); }

.evento-galeria-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.evento-galeria-item {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: var(--card);
}
.evento-galeria-item img {
  width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer;
}
.evento-galeria-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.6); color: #fff;
  border: none; border-radius: 50%; width: 22px; height: 22px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.evento-galeria-add {
  aspect-ratio: 1; border-radius: 8px;
  border: 2px dashed var(--line); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--muted); cursor: pointer;
}
.dash-people-list { display: flex; flex-direction: column; gap: 14px; }
.dash-person-row {
  display: flex; align-items: center; gap: 10px;
}
.dash-person-rank {
  font-size: 12px; font-weight: 800; color: var(--muted);
  width: 16px; text-align: center; flex-shrink: 0;
}
.dash-person-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #111; color: var(--accent);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.dash-person-info { flex: 1; min-width: 0; }
.dash-person-name { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.dash-person-bar-wrap {
  background: var(--line); border-radius: 99px; height: 5px; overflow: hidden;
}
.dash-person-bar {
  height: 100%; background: var(--fg); border-radius: 99px; transition: width 0.4s;
}
.dash-person-count {
  font-size: 11px; font-weight: 700; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}

/* Últimos eventos en dash */
.dash-evento-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.dash-evento-row:last-child { border-bottom: none; }
.dash-evento-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-evento-info { flex: 1; min-width: 0; }
.dash-evento-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-evento-meta  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dash-evento-role {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0;
}
.dash-evento-role.host { background: #111; color: var(--accent); }
.dash-evento-role.part { background: var(--line); color: var(--muted); }

/* Sección PRO */
.dash-pro-section {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 16px;
}
.dash-pro-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.dash-pro-badge {
  font-size: 10px; font-weight: 800; padding: 3px 9px;
  background: #111; color: var(--accent); border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.dash-reservation-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.dash-reservation-row:last-child { border-bottom: none; }
.dash-r-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--line); color: #555;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.dash-r-info { flex: 1; min-width: 0; }
.dash-r-name { font-size: 14px; font-weight: 600; }
.dash-r-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-r-amount { font-size: 14px; font-weight: 700; color: var(--green); white-space: nowrap; }

/* ══════════════════════════════════════
   STRIPE CONNECT — Panel de control
══════════════════════════════════════ */
.stripe-connected-badge {
  font-size: 11px; font-weight: 700; color: #1a9e5c;
  background: #e6f9f0; border: 1px solid #a3e6c5;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em;
}
.stripe-balance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.stripe-balance-card {
  background: var(--fg); color: #fff;
  border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.stripe-balance-card.pending {
  background: var(--card); color: var(--fg);
  border: 1px solid var(--line);
}
.stripe-balance-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.6;
}
.stripe-balance-card.pending .stripe-balance-label { opacity: 1; color: var(--muted); }
.stripe-balance-amount {
  font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1;
}
.stripe-balance-card.pending .stripe-balance-amount { color: var(--fg); font-size: 22px; }
.stripe-balance-cents { font-size: 14px; font-weight: 600; opacity: 0.7; }
.stripe-balance-hint { font-size: 11px; opacity: 0.55; margin-top: 2px; }
.stripe-balance-card.pending .stripe-balance-hint { color: var(--muted); opacity: 1; }

.stripe-payout-info {
  display: flex; gap: 10px; align-items: flex-start;
  background: #f0f7ff; border: 1px solid #c8dff8;
  border-radius: 12px; padding: 12px 14px;
  margin-bottom: 20px;
}
.stripe-payout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.stripe-payout-info p { font-size: 12px; color: #2a5080; line-height: 1.5; }
.stripe-payout-info strong { font-weight: 700; }

.stripe-txn-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.stripe-txn-list {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-bottom: 14px;
}
.stripe-txn-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; gap: 10px;
  border-bottom: 1px solid var(--line);
}
.stripe-txn-row:last-child { border-bottom: none; }
.stripe-txn-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.stripe-txn-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: #e6f9f0; color: #1a9e5c;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.stripe-txn-icon.payout { background: #f0f0ee; color: var(--muted); }
.stripe-txn-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stripe-txn-meta { font-size: 11px; color: var(--muted); margin-top: 1px; font-family: monospace; letter-spacing: -0.2px; }
.stripe-txn-amount { font-size: 14px; font-weight: 700; color: #1a9e5c; white-space: nowrap; }
.stripe-txn-amount.payout { color: var(--muted); font-weight: 600; }

.stripe-account-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
}
.stripe-account-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: #f0efff; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.stripe-account-info { flex: 1; min-width: 0; }
.stripe-account-name { font-size: 13px; font-weight: 600; }
.stripe-account-sub { font-size: 11px; color: var(--muted); font-family: monospace; margin-top: 2px; }
.stripe-account-status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: #1a9e5c; background: #e6f9f0;
  border: 1px solid #a3e6c5; padding: 4px 9px; border-radius: 999px;
}

/* ══════════════════════════════════════
   CONFIGURACIÓN & AYUDA
══════════════════════════════════════ */
.cfg-body {
  flex: 1; padding: 16px 20px 120px; display: flex; flex-direction: column; gap: 4px;
}
.cfg-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 14px 4px 6px;
}
.cfg-group {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-bottom: 4px;
}
.cfg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background 0.15s;
}
.cfg-row:last-child { border-bottom: none; }
.cfg-row:active { background: var(--line); }
.cfg-row.danger:active { background: #FEF2F2; }
.cfg-row-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.cfg-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cfg-row-title { font-size: 14px; font-weight: 600; }
.cfg-row-subtitle { font-size: 11px; color: var(--muted); margin-top: 1px; }
.cfg-row-sub { font-size: 12px; color: var(--muted); }
.cfg-row-arrow { font-size: 18px; color: var(--muted); font-weight: 300; }
.cfg-row-status { font-size: 11px; font-weight: 700; white-space: nowrap; }
.cfg-row-status.connected { color: #1a9e5c; }

.cfg-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cfg-toggle input { opacity: 0; width: 0; height: 0; }
.cfg-toggle-track {
  position: absolute; inset: 0;
  background: #ddd; border-radius: 999px;
  transition: background 0.2s;
}
.cfg-toggle-track::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cfg-toggle input:checked + .cfg-toggle-track { background: var(--fg); }
.cfg-toggle input:checked + .cfg-toggle-track::after { transform: translateX(18px); }

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 6px;
}
.lang-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--body-font);
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}
.lang-btn.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Ayuda */
.ayuda-hero {
  background: var(--fg); color: #fff;
  border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 4px;
}
.ayuda-hero-title { font-size: 17px; font-weight: 700; }
.ayuda-hero-sub { font-size: 13px; opacity: 0.65; line-height: 1.4; }
.ayuda-contact-btn {
  display: inline-block; margin-top: 4px;
  background: var(--accent); color: var(--fg);
  font-size: 13px; font-weight: 700;
  padding: 10px 16px; border-radius: 999px;
  text-decoration: none; width: fit-content;
}
.ayuda-faq {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ayuda-faq:last-child { border-bottom: none; }
.ayuda-faq-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer; gap: 12px;
}
.ayuda-faq-q { font-size: 13px; font-weight: 600; line-height: 1.4; }
.ayuda-faq-arrow {
  font-size: 20px; color: var(--muted); font-weight: 300;
  flex-shrink: 0; transition: transform 0.2s;
}
.ayuda-faq.open .ayuda-faq-arrow { transform: rotate(90deg); }
.ayuda-faq-body {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  padding: 0 16px 14px; display: none;
}
.ayuda-faq.open .ayuda-faq-body { display: block; }
.ayuda-version {
  text-align: center; font-size: 11px; color: var(--muted);
  padding: 20px 0 8px; letter-spacing: 0.04em;
}

/* ══════════════════════════════════════
   ENLACES DE INTERÉS — Crear evento
══════════════════════════════════════ */
/* Fila de enlace */
.enlace-row {
  display: flex; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 12px 12px 14px;
  margin-bottom: 10px;
}
.enlace-row-inputs { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.enlace-row-label { font-size: 13px; }
.enlace-url-row { display: flex; gap: 6px; align-items: center; }
.enlace-row-url { font-size: 13px; flex: 1; min-width: 0; }
.enlace-open-btn {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 15px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: var(--fg); transition: background 0.12s, border-color 0.12s;
}
.enlace-open-btn:hover { background: var(--fg); color: var(--accent); border-color: var(--fg); }
.enlace-row-remove {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent;
  color: var(--muted); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: inherit;
  transition: color 0.12s;
}
.enlace-row-remove:hover { color: #dc2626; }
.enlace-add-row-btn {
  width: 100%; padding: 10px; margin-top: 2px;
  background: var(--card); border: 1px dashed var(--line);
  border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.enlace-add-row-btn:hover { background: var(--line); color: var(--fg); }

/* Enlace en vista de evento */
.enlace-item-icon { font-size: 18px; flex-shrink: 0; }
.enlace-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.enlace-item-label { font-size: 13px; font-weight: 600; }
.enlace-item-host { font-size: 11px; color: var(--muted); font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enlace-evento-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 6px; text-decoration: none; color: var(--fg);
  transition: background 0.15s;
}
.enlace-evento-item:active { background: var(--line); }

/* ══════════════════════════════════════
   GALERÍA DE FOTOS — Perfil
══════════════════════════════════════ */
.galeria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.galeria-add-btn {
  background: var(--accent);
  color: var(--fg);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.galeria-add-btn:active { opacity: 0.75; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: 12px;
  overflow: hidden;
}
.galeria-item {
  position: relative; aspect-ratio: 1; overflow: hidden;
  cursor: pointer; background: var(--line);
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.2s;
}
.galeria-item:active img { transform: scale(0.96); }

/* Última foto visible: muestra overlay "+N" cuando hay más */
.galeria-item-last::after {
  content: attr(data-count);
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
  color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.5px;
}
.galeria-item-last.no-overlay::after { display: none; }

/* Fotos extra ocultas por defecto */
.galeria-extra { display: none; }
.galeria-extra.visible { display: block; }

.galeria-toggle-btn {
  width: 100%; margin-top: 10px; padding: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--fg); cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.galeria-toggle-btn:active { background: var(--line); }
.galeria-toggle-btn.open { color: var(--muted); }

/* ── Lightbox ── */
.galeria-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.94);
  display: none; align-items: center; justify-content: center;
}
.galeria-lightbox.open { display: flex; }
.galeria-lb-img {
  max-width: 92vw; max-height: 80vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  user-select: none;
}
.galeria-lb-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.12); border: none;
  color: #fff; font-size: 20px; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.galeria-lb-prev, .galeria-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; font-size: 32px; width: 44px; height: 60px;
  border-radius: 8px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-weight: 300; transition: background 0.15s;
}
.galeria-lb-prev { left: 12px; }
.galeria-lb-next { right: 12px; }
.galeria-lb-prev:hover, .galeria-lb-next:hover { background: rgba(255,255,255,0.2); }
.galeria-lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  display: none;
  z-index: 25;
  padding: 6px 8px;
}
.bottom-nav.visible { display: flex; }
.bn-item {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 12px 4px; cursor: pointer; user-select: none;
  color: rgba(0,0,0,0.35); transition: color 0.15s;
  background: none; border: none; font-family: inherit;
}
.bn-item.active { color: var(--fg); }
.bn-item.active .bn-item-icon { position: relative; }
.bn-item.active .bn-item-icon::before {
  content: '';
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.5px; border-radius: 999px;
  background: var(--fg);
}
.bn-item-icon { font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; height: 24px; }
.bn-notif-dot {
  display: none;
  position: absolute; top: -1px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #e8000a;
  border: 1.5px solid rgba(255,255,255,0.88);
}
.bn-notif-dot.visible { display: block; }

.bn-mode-pill {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--fg); color: var(--accent);
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid var(--bg);
}

/* ══════════════════════════════════════
   DESKTOP SIDEBAR + MOBILE DRAWER
══════════════════════════════════════ */

/* Sidebar – mostly identical structure for both desktop sidebar
   and mobile drawer; container class differs to switch behavior. */
.side-nav {
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}
.side-nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}
.side-nav-brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic;
  font-weight: 700; font-size: 18px; letter-spacing: -0.5px;
}
.side-nav-brand-name {
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: var(--fg);
}
.side-nav-section {
  padding: 18px 14px 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.side-nav-list { list-style: none; margin: 0; padding: 0 10px; }
.side-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; margin: 1px 0;
  border-radius: 9px;
  color: rgba(0,0,0,0.72);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  cursor: pointer; user-select: none;
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}
.side-nav-link:hover {
  background: rgba(0,0,0,0.05);
  color: var(--fg);
}
.side-nav-link.active {
  background: #E0E0DC;
  color: var(--fg);
  font-weight: 700;
}
.side-nav-link-icon {
  width: 20px; height: 20px; display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.side-nav-link-badge {
  margin-left: auto;
  background: var(--fg); color: var(--accent);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  min-width: 18px; text-align: center;
}
.side-nav-link.active .side-nav-link-badge {
  background: var(--fg); color: var(--accent);
}
.side-nav-mode {
  margin: 14px 14px 0;
  padding: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.side-nav-mode-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-bottom: 8px;
}
.side-nav-mode-toggle {
  display: flex; gap: 4px;
  background: rgba(0,0,0,0.06);
  padding: 3px; border-radius: 8px;
}
.side-nav-mode-btn {
  flex: 1; padding: 7px 8px;
  background: none; border: none;
  color: rgba(0,0,0,0.5);
  font-family: inherit;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.side-nav-mode-btn.active {
  background: var(--accent); color: var(--fg);
}

/* Highlighted "Crear evento" CTA */
.side-nav-cta {
  margin: 16px 14px 4px;
  padding: 12px 14px;
  background: transparent; color: var(--fg);
  border: 2.5px solid var(--accent); border-radius: 10px;
  font-family: inherit;
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.2px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.side-nav-cta:hover { background: rgba(0,0,0,0.04); }
.side-nav-cta:active { transform: scale(0.98); }
.side-nav-divider {
  margin: 10px 14px; border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.side-nav-logout {
  margin: 8px 14px 0; padding: 10px 14px; width: calc(100% - 28px);
  background: transparent; border: 1px solid #FECACA;
  border-radius: 10px; font-size: 12px; font-weight: 600;
  color: #dc2626; cursor: pointer; font-family: inherit; text-align: left;
}
.side-nav-logout:hover { background: #FEF2F2; }
.side-nav-cta-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.side-nav-foot {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.side-nav-foot-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0; overflow: hidden;
}
.side-nav-foot-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.side-nav-foot-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* DESKTOP: side rail sits inside the centered shell, glued to the content */
.side-rail {
  width: 240px;
  flex-shrink: 0;
  display: none;          /* shown via media query */
  align-self: stretch;
}
.side-rail .side-nav { height: 100%; min-height: 100dvh; }

/* MOBILE: drawer that slides in */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.drawer-backdrop.open {
  opacity: 1; pointer-events: auto;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(85vw, 320px);
  z-index: 610;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
}
.drawer.open { transform: translateX(0); }
.drawer .side-nav {
  width: 100%; height: 100%;
  background: rgba(245,245,242,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.drawer-close {
  position: absolute; top: 14px; right: -44px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: var(--fg);
  border: none; cursor: pointer;
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* DESKTOP BREAKPOINT: glue sidebar to content, center the whole block */
@media (min-width: 900px) {
  .side-rail { display: block; }
  .bottom-nav.visible { display: none; }

  /* The body becomes a centered flex row containing rail + content */
  body.has-side-rail {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
    min-height: 100dvh;
  }
  /* The rail and the existing app shell sit side by side, both inside that block */
  body.has-side-rail .scroll-host,
  body.has-side-rail > main,
  body.has-side-rail > .screen,
  body.has-side-rail > .phone,
  body.has-side-rail > .app-shell {
    flex: 1;
    max-width: 640px;
    /* Vertical hairlines on both sides to separate content from chrome */
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  /* Desktop sidebar adjustments */
  .side-rail .side-nav-brand { padding-top: 16px; }
  .side-rail .side-nav-brand-logo { background: var(--fg); color: var(--accent); }

  /* Hide drawer entirely on desktop */
  .drawer, .drawer-backdrop { display: none !important; }
}

/* ══════════════════════════════════════
   TWEAKS panel
══════════════════════════════════════ */
.tweak-panel {
  position: fixed; top: 16px; right: 16px;
  width: 280px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  z-index: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  display: none;
  font-size: 12px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.tweak-panel.open { display: block; }
.tweak-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.tweak-panel-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.tweak-panel-close {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--muted); padding: 0; line-height: 1;
}
.tweak-row {
  margin-bottom: 14px;
}
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 6px; display: block;
}
.tweak-options {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.tweak-opt {
  flex: 1; min-width: 0;
  padding: 7px 10px; border-radius: 8px;
  background: var(--bg); border: 1.5px solid var(--line);
  font-size: 11px; font-weight: 600; color: var(--fg-soft);
  cursor: pointer; text-align: center; transition: all 0.15s;
  font-family: inherit; white-space: nowrap;
}
.tweak-opt.active { background: var(--fg); color: var(--accent); border-color: var(--fg); }

.tweak-color-row { display: flex; gap: 8px; }
.tweak-color-swatch {
  width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; border: 2.5px solid var(--line);
  transition: all 0.15s;
}
.tweak-color-swatch.active { border-color: var(--fg); transform: scale(1.05); }

.tweak-toggle-btn {
  position: fixed; top: 16px; right: 16px;
  background: var(--fg); color: var(--accent);
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer; z-index: 499;
  font-size: 16px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.tweak-toggle-btn.visible { display: none; }

/* ══════════════════════════════════════
   CREATE EVENT
══════════════════════════════════════ */
.form-hero {
  background: var(--fg); color: #fff; padding: 26px 20px 20px;
}
.form-hero-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #555; margin-bottom: 8px; }
.form-hero-title { font-size: 25px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.25; }
.form-hero-title em { font-style: italic; color: var(--accent); }
.form-hero-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 7px; line-height: 1.5; }
.form-body { flex: 1; padding: 22px 20px 32px; display: flex; flex-direction: column; gap: 24px; }

.activity-search-wrap { position: relative; }
.activity-search-input {
  width: 100%; padding: 13px 15px 13px 40px;
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 15px; font-family: inherit;
  color: #111; outline: none; transition: border-color 0.15s; appearance: none;
}
.activity-search-input:focus { border-color: #111; }
.activity-search-input::placeholder { color: #C4C4C0; }
.activity-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: #AAA; pointer-events: none; }
.activity-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  max-height: 210px; overflow-y: auto; display: none;
}
.activity-dropdown.open { display: block; }
.activity-option {
  padding: 12px 16px; font-size: 14px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.1s;
}
.activity-option:last-child { border-bottom: none; }
.activity-option:hover { background: var(--line-soft); }
.activity-option-name { font-weight: 500; }
.activity-option-cat { font-size: 11px; color: #AAA; }
.activity-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #111; color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 7px 13px;
  border-radius: 999px; margin-top: 8px;
}
.activity-tag-clear { cursor: pointer; opacity: 0.7; font-size: 16px; line-height: 1; }

.lugar-wrap { display: flex; flex-direction: column; gap: 8px; }
.lugar-input-row { display: flex; gap: 8px; align-items: stretch; }
.maps-btn {
  flex-shrink: 0; padding: 0 14px; height: 48px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 18px; cursor: pointer; display: flex; align-items: center;
  transition: border-color 0.15s; text-decoration: none;
}
.maps-btn:hover { border-color: #111; }
.maps-hint { font-size: 11px; color: #AAA; display: flex; align-items: center; gap: 5px; }

.privacy-toggle {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  margin-top: 4px; user-select: none;
}
.privacy-toggle:hover { border-color: #999; }
.privacy-toggle.active { border-color: #111; background: #FAFAF7; }
.privacy-toggle-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--line-soft); display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background 0.15s, color 0.15s;
}
.privacy-toggle.active .privacy-toggle-icon { background: #111; color: var(--accent); }
.privacy-toggle-text { flex: 1; }
.privacy-toggle-title {
  font-size: 14px; font-weight: 600; color: #111;
  display: flex; align-items: center; gap: 8px; margin-bottom: 3px;
}
.privacy-toggle-desc { font-size: 12px; color: #666; line-height: 1.5; }
.privacy-switch {
  width: 38px; height: 22px; border-radius: 999px;
  background: var(--line); position: relative;
  flex-shrink: 0; transition: background 0.2s; margin-top: 6px;
}
.privacy-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.privacy-toggle.active .privacy-switch { background: #111; }
.privacy-toggle.active .privacy-switch::after { transform: translateX(16px); }
.privacy-extra {
  display: none; margin-top: 10px;
  padding: 14px; background: #FAFAF7;
  border: 1.5px solid var(--line); border-radius: 12px;
  flex-direction: column; gap: 12px;
}
.privacy-extra.show { display: flex; }
.privacy-extra-info {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: #555; line-height: 1.5;
  padding: 10px 12px; background: rgba(254,255,68,0.18);
  border: 1px solid rgba(0,0,0,0.06); border-radius: 8px;
}
.privacy-extra-info-icon { flex-shrink: 0; margin-top: 1px; }
.privacy-extra-info b { color: #111; font-weight: 700; }
.privacy-release {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: #666;
}
.privacy-release-opt {
  padding: 7px 11px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 600; color: #888;
  cursor: pointer; transition: all 0.15s;
}
.privacy-release-opt.selected { background: #111; border-color: #111; color: var(--accent); }

.desc-textarea {
  width: 100%; padding: 13px 15px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: inherit; color: #111; outline: none;
  resize: vertical; line-height: 1.6; min-height: 110px;
}
.desc-textarea:focus { border-color: #111; }
.desc-hint { font-size: 11px; color: #AAA; margin-top: 6px; }

.equip-list { display: flex; flex-direction: column; gap: 8px; }
.equip-item { display: flex; align-items: center; gap: 8px; }
.equip-item-input {
  flex: 1; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #111; outline: none;
}
.equip-item-input:focus { border-color: #111; }
.equip-item-remove {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--line-soft); border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #999; line-height: 1;
}
.equip-add-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: transparent;
  border: 1.5px dashed #D8D8D4; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: #AAA;
  cursor: pointer; font-family: inherit; width: 100%;
  margin-top: 8px;
}
.equip-add-btn:hover { border-color: #999; color: #666; }

.nivel-row { display: flex; gap: 8px; }
.nivel-btn {
  flex: 1; padding: 11px 6px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 600; color: #888;
  cursor: pointer; text-align: center; transition: all 0.15s; user-select: none;
}
.nivel-btn.selected { background: #111; border-color: #111; color: var(--accent); }

/* ── Duración aproximada ── */
.duracion-type-row {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.duracion-type-btn {
  flex: 1; padding: 11px 6px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; color: #888;
  cursor: pointer; text-align: center; transition: all 0.15s; user-select: none;
}
.duracion-type-btn.selected { background: #111; border-color: #111; color: var(--accent); }
.duracion-opts-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.duracion-opt {
  padding: 9px 14px; border-radius: 20px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 600; color: #888;
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.duracion-opt.selected { background: #111; border-color: #111; color: var(--accent); }

.preview-mini-card {
  background: #fff; border-radius: 14px; border: 1.5px solid var(--line);
  overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.preview-mini-cover {
  height: 104px; background: #111;
  display: flex; align-items: flex-end;
  position: relative; padding: 0 14px 12px;
}
.preview-mini-cover-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: repeating-linear-gradient(45deg,#fff 0,#fff 1px,transparent 0,transparent 50%);
  background-size: 18px 18px;
}
.preview-mini-cover-bottom {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; width: 100%;
}
.preview-mini-badge {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.preview-mini-price-cover {
  background: var(--accent); color: #111;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.preview-mini-body { padding: 13px 14px 14px; }
.preview-mini-title { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 5px; }
.preview-mini-meta { font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 10px; }
.preview-mini-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.preview-mini-anf { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #666; font-weight: 500; }
.preview-mini-anf-dot {
  width: 24px; height: 24px; border-radius: 50%; background: #111;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display-font); font-weight: 900; font-style: italic;
  font-size: 9px; color: var(--accent); flex-shrink: 0; overflow: hidden;
}
.preview-mini-plazas { font-size: 11px; color: #999; }

.cta-fixed {
  padding: 16px 0 8px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-publish {
  width: 100%; padding: 16px;
  background: #111; color: var(--accent);
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; letter-spacing: -0.2px;
}
.btn-publish:active { opacity: 0.85; }

/* ══════════════════════════════════════
   HOST PROFILE
══════════════════════════════════════ */
.host-hero {
  background: #111; padding: 24px 20px 20px;
  display: flex; gap: 16px; align-items: flex-end;
}
.host-avatar {
  width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--display-font); font-weight: 900; font-style: italic;
  font-size: 24px; color: #111; border: 3px solid rgba(255,255,255,0.1);
}
.host-info { flex: 1; }
.host-name { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.perfil-edit-pill {
  padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer; font-family: inherit; white-space: nowrap;
  flex-shrink: 0;
}
.perfil-url-btn {
  display: inline-block; font-size: 11px; font-weight: 600; font-family: inherit;
  padding: 3px 10px; border-radius: 999px; cursor: pointer;
  background: rgba(254,255,68,0.15); color: var(--accent);
  border: 1px solid rgba(254,255,68,0.3);
  white-space: nowrap;
}
.perfil-url-btn:active { opacity: .7; }
.host-sub { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.host-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.host-rating { font-size: 12px; color: var(--accent); }
.host-badge {
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(254,255,68,0.15); color: var(--accent); border: 1px solid rgba(254,255,68,0.3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.host-edit-btn {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.host-body { flex: 1; padding: 0 0 16px; }
.host-section-tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 57px; z-index: 20;
}
.host-tab {
  flex: 1; padding: 13px 8px; text-align: center;
  font-size: 11px; font-weight: 700; color: #AAA;
  cursor: pointer; border-bottom: 2px solid transparent;
  letter-spacing: 0.06em; text-transform: uppercase; user-select: none;
}
.host-tab.active { color: #111; border-bottom-color: #111; }
.host-tab-panel { display: none; padding: 20px 20px 0; }
.host-tab-panel.active { display: block; }

.evento-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.evento-card-cover {
  height: 80px; background: #111; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.evento-card-cover-activity {
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; z-index: 2; position: relative;
}
.evento-card-cover-header {
  display: flex; align-items: center; gap: 7px; z-index: 2; position: relative;
}
.evento-card-cover-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
  color: #111; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; font-family: 'DM Sans', sans-serif; flex-shrink: 0;
}
.evento-card-cover-creator {
  font-size: 12px; font-weight: 600; color: #fff;
}
.evento-card-cover-sep { font-size: 12px; color: rgba(255,255,255,0.35); }
.evento-card-cover-pattern {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 16px 16px;
}
.evento-card-body { padding: 13px 14px; }
.evento-card-title { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 5px; }
.evento-card-meta { font-size: 12px; color: #888; margin-bottom: 4px; }
.evento-card-host { font-size: 12px; color: #888; margin-bottom: 10px; }
.evento-card-footer { display: flex; justify-content: space-between; align-items: center; }
.evento-card-price { font-size: 12px; font-weight: 500; color: #888; }
.evento-card-spots { font-size: 11px; color: #888; }
.evento-card-spots span { color: #111; font-weight: 700; }
.evento-card-actions { display: flex; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.evento-role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 6px;
}
.evento-role-badge.host {
  background: var(--fg); color: var(--accent);
}
.evento-role-badge.participant {
  background: var(--line-soft); color: var(--fg-soft);
  border: 1px solid var(--line);
}
.evento-privado-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 6px;
  background: #FFF3CD; color: #92640A; border: 1px solid #F5C842;
}
.btn-ver-evento {
  flex: 1; padding: 10px 14px; background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; text-align: center; transition: background 0.15s;
}
.btn-ver-evento:active { background: var(--line); }
.btn-compartir-evento {
  padding: 10px 14px; background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap; transition: background 0.15s;
}
.btn-compartir-evento:active { background: var(--line); }
.btn-finalizar {
  padding: 10px 14px; background: transparent; color: #555;
  border: 1.5px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 500;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.btn-guardar-plantilla {
  width: 100%; padding: 15px; background: transparent; margin-bottom: 10px;
  color: var(--fg); border: 1.5px solid var(--accent); border-radius: 12px;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.btn-guardar-plantilla:disabled { opacity: .5; cursor: default; }
/* ── Botón de acceso a plantillas (s-crear.html) ── */
.tpl-access-row {
  padding: 16px 20px 4px;
}
.tpl-access-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--line);
  text-decoration: none; color: var(--fg); font-size: 14px; font-weight: 600;
}
.tpl-access-btn:active { opacity: .8; }
.tpl-access-icon { font-size: 16px; }
.tpl-access-label { flex: 1; }
.tpl-access-count { font-size: 12px; color: var(--muted); font-weight: 400; }
.tpl-access-arrow { color: var(--muted); font-size: 20px; line-height: 1; }

/* ── Tarjetas de plantilla (s-plantillas.html) ── */
.tpl-card {
  background: var(--card); border-radius: 16px;
  padding: 16px; margin-bottom: 12px;
  border: 1.5px solid var(--line);
}
.tpl-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.tpl-card-activity {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  background: var(--bg); padding: 3px 9px; border-radius: 20px;
}
.tpl-card-footer {
  display: flex; flex-direction: column; gap: 8px; margin-top: 4px;
}
.tpl-card-del-btn-full {
  width: 100%; padding: 11px;
  background: transparent; color: #D93025;
  border: 1.5px solid #FECACA; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--body-font);
}
.tpl-card-del-btn-full:active { background: #FFF0F0; }
/* Confirmación inline */
.tpl-card-confirm { margin-top: 4px; }
.tpl-card-confirm-text {
  font-size: 13px; color: var(--fg-soft); line-height: 1.5;
  margin-bottom: 12px; text-align: center;
}
.tpl-card-confirm-btns {
  display: flex; gap: 8px;
}
.tpl-confirm-cancel {
  flex: 1; padding: 12px;
  background: #fff; color: var(--fg);
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--body-font);
}
.tpl-confirm-delete {
  flex: 1; padding: 12px;
  background: #D93025; color: #fff;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--body-font);
}
.tpl-confirm-delete:active { background: #B91C1C; }
.tpl-card-name {
  font-size: 22px; font-weight: 800; color: var(--fg);
  margin-bottom: 4px; line-height: 1.2;
}
.tpl-card-titulo {
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.tpl-card-meta {
  font-size: 12px; color: var(--fg-soft); margin-bottom: 6px;
}
.tpl-card-desc {
  font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.45;
}
.tpl-card-equip {
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
}
.tpl-card-use-btn {
  width: 100%; padding: 13px;
  background: var(--accent); color: var(--accent-on);
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--body-font); text-align: center;
}
.tpl-card-use-btn:active { opacity: .85; }
.tpl-empty { text-align: center; padding: 64px 24px; }
.tpl-empty-icon { font-size: 48px; margin-bottom: 16px; }
.tpl-empty-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--fg); }
.tpl-empty-sub { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 260px; margin: 0 auto; }
.btn-finalizar-evento {
  width: 100%; padding: 15px; background: transparent;
  color: #555; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.btn-eliminar-evento {
  width: 100%; padding: 15px; background: transparent; margin-top: 10px;
  color: #D93025; border: 1.5px solid #D93025; border-radius: 12px;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.empty-state {
  text-align: center; padding: 40px 20px;
  color: #CCC; font-size: 14px; line-height: 1.6;
}
.empty-state-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }

.host-cta-fixed {
  position: fixed; bottom: 76px; left: 0; right: 0; max-width: 640px; margin: 0 auto;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(239,239,235,0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); z-index: 20; display: flex; gap: 10px;
}
.btn-new-evento {
  flex: 1; padding: 16px; background: #111; color: var(--accent);
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ══════════════════════════════════════
   EVENT DETAIL
══════════════════════════════════════ */
.s3-cover {
  min-height: 210px; background: #111; flex-shrink: 0;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.s3-cover-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}
.s3-cover-content { position: relative; z-index: 2; text-align: center; padding: 36px 24px 90px; width: 100%; }
.s3-cover-activity { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.s3-cover-title { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.4px; line-height: 1.25; margin-bottom: 10px; }
.s3-cover-meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75); margin-top: 2px;
}
.s3-cover-meta-dot { color: rgba(255,255,255,0.3); }
.s3-cover-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 16px 14px;
}
.s3-cover-tags {
  display: flex; justify-content: space-between; align-items: center;
}
.s3-cover-actions {
  display: flex; gap: 8px;
}
.s3-cover-share-btn {
  flex: 1; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22); color: #fff;
  font-size: 13px; font-weight: 600; text-align: center;
  transition: background 0.15s;
}
.s3-cover-share-btn:active { background: rgba(255,255,255,0.25); }
.s3-cover-vis-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 0.15s;
}
.s3-cover-vis-btn.privado {
  background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.15);
}
.s3-cover-vis-btn:active { background: rgba(255,255,255,0.25); }
.s3-cover-tag {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}
.s3-cover-spots-tag {
  background: var(--accent); color: #111;
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.s3-tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 57px; z-index: 20;
}
.s3-tab {
  flex: 1; padding: 13px 8px; text-align: center;
  font-size: 11px; font-weight: 700; color: #AAA;
  cursor: pointer; border-bottom: 2px solid transparent;
  text-transform: uppercase; letter-spacing: 0.06em; user-select: none;
}
.s3-tab.active { color: #111; border-bottom-color: #111; }
.s3-tab-panel { display: none; }
.s3-tab-panel.active { display: block; }
.s3-body { padding: 20px 20px 200px; }
.s3-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.s3-info-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; }
.s3-info-card.full { grid-column: span 2; }
.s3-info-label { font-size: 10px; color: #AAA; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.s3-info-val { font-size: 14px; font-weight: 600; }
.s3-info-link { font-size: 13px; color: #2563eb; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.s3-section { margin-bottom: 22px; }
.s3-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #AAA; margin-bottom: 10px; display: block; }
.s3-desc-wrap { position: relative; }

.s3-detail-grid { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.s3-detail-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
}
.s3-detail-row:last-child { border-bottom: none; }
.s3-detail-icon { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.s3-detail-info { display: flex; flex-direction: column; gap: 2px; }
.s3-detail-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.s3-detail-val { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }

.s3-host-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; transition: background 0.15s;
}
.s3-host-card:active { background: var(--line); }
.s3-host-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--fg); color: var(--accent);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.s3-host-card-info { flex: 1; min-width: 0; }
.s3-host-card-name { font-size: 15px; font-weight: 700; }
.s3-host-card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.s3-host-card-arrow { font-size: 22px; color: var(--muted); font-weight: 300; }
.s3-desc {
  font-size: 14px; line-height: 1.7; color: #444; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.s3-desc.expanded { display: block; overflow: visible; }
.s3-desc-toggle {
  background: none; border: none; font-family: inherit;
  font-size: 13px; font-weight: 600; color: #111;
  cursor: pointer; padding: 8px 0 0; display: flex; align-items: center; gap: 5px;
}
.nivel-bar { display: flex; gap: 5px; margin-bottom: 5px; }
.nivel-pip { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.nivel-pip.on { background: #111; }
.nivel-label-text { font-size: 12px; color: #777; font-weight: 500; }
.equip-group { margin-bottom: 14px; }
.equip-group-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.equip-group-title.req { color: #111; }
.equip-group-title.rec { color: #888; }
.equip-tags { display: flex; flex-direction: column; gap: 6px; }
.equip-tag-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; }
.equip-tag-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.equip-tag-dot.req { background: #111; }
.equip-tag-dot.rec { background: #AAA; }
.participantes-body { padding: 20px 20px 200px; }
.plazas-bar-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.plazas-bar-bg { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.plazas-bar-fill { height: 100%; background: #111; border-radius: 999px; transition: width 0.4s ease; }
.participante-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EBEBEB; }
.participante-row:last-child { border-bottom: none; }
.participante-row-link { cursor: pointer; transition: background 0.12s; border-radius: 10px; padding: 11px 8px; margin: 0 -8px; }
.participante-row-link:active { background: var(--line); }
.p-info { flex: 1; min-width: 0; }
.p-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #555; }
.p-name { font-size: 14px; font-weight: 600; }
.p-join { font-size: 11px; color: #AAA; margin-top: 1px; }
.p-badge { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: middle; margin-left: 5px; }
.p-badge.anfitrion { background: #111; color: var(--accent); }
.p-badge.participante { background: #F0F0EC; color: #777; border: 1px solid #DDD; }
.p-badge.invitado { background: #FFF8CC; color: #996600; border: 1px solid #EEE0A0; }
.p-ver-perfil-btn {
  flex-shrink: 0; padding: 7px 12px;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 8px; font-size: 12px; font-weight: 600;
  font-family: inherit; color: var(--fg); cursor: pointer;
  white-space: nowrap; transition: background 0.12s;
}
.p-ver-perfil-btn:active { background: var(--line); }
.s3-anf-body { padding: 20px 20px 200px; }
.s3-anf-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.s3-anf-avatar { width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; background: #111; display: flex; align-items: center; justify-content: center; font-family: var(--display-font); font-weight: 900; font-style: italic; font-size: 20px; color: var(--accent); }
.s3-anf-name { font-size: 17px; font-weight: 700; }
.s3-anf-sub { font-size: 12px; color: #888; margin-top: 3px; }
.s3-anf-rating { font-size: 12px; margin-top: 5px; font-weight: 500; }
.s3-anf-bio { font-size: 14px; line-height: 1.7; color: #444; margin-bottom: 20px; }
.s3-cta {
  margin: 28px 16px 24px;
  padding: 18px 20px;
  background: var(--fg); color: var(--bg);
  border-radius: 16px;
  display: flex; gap: 14px; align-items: center;
}
.s3-cta .s3-price-num { color: var(--bg); }
.s3-cta .s3-price-label { color: rgba(255,255,255,0.55); }
.s3-cta .s3-join-btn { background: var(--accent); color: var(--fg); }
.s3-price-num { font-size: 26px; font-weight: 700; letter-spacing: -1px; }
.s3-price-label { font-size: 11px; color: #AAA; }
.s3-join-btn {
  flex: 1; padding: 16px;
  background: #111; color: var(--accent);
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer;
}
.s3-joined-btn {
  flex: 1; padding: 16px; border-radius: 12px;
  background: #e8f5e8; color: #2a6a2a;
  border: 1.5px solid #a8d4a8;
  font-size: 14px; font-weight: 600; font-family: inherit; text-align: center;
}

/* ══════════════════════════════════════
   TAB AVISOS — composer + timeline
══════════════════════════════════════ */
.anuncio-composer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.anuncio-composer-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.anuncio-composer-icon { font-size: 16px; }
.anuncio-composer-title { font-size: 14px; font-weight: 700; }
.anuncio-composer-tabs {
  display: flex; gap: 6px;
  padding: 10px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.anuncio-composer-tabs::-webkit-scrollbar { display: none; }
.anuncio-tag-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-size: 12px; font-weight: 600; font-family: inherit;
  color: var(--fg-soft); cursor: pointer;
}
.anuncio-tag-btn.selected {
  background: var(--fg); border-color: var(--fg); color: var(--accent);
}
.anuncio-composer-input {
  width: 100%; padding: 0 16px 10px;
  border: none; outline: none; resize: none;
  font-size: 13px; font-family: inherit; color: var(--fg);
  background: transparent; line-height: 1.5;
}
.anuncio-composer-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  gap: 12px;
}
.anuncio-composer-hint { font-size: 11px; color: var(--muted); flex: 1; }
.anuncio-composer-btn {
  padding: 8px 16px;
  background: var(--fg); color: var(--accent);
  border: none; border-radius: 8px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.anuncio-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.quick-edit-block { margin-bottom: 22px; }
.quick-edit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quick-edit-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--fg); cursor: pointer;
}
.quick-edit-btn:hover { background: var(--line-soft); }
.anuncio-timeline { margin-bottom: 24px; border-top: 1px solid var(--border); }
.anuncio-timeline .aviso-row:last-child { border-bottom: none; }
.aviso-avatar-sys {
  background: #f0f0f0 !important; color: #888 !important;
  font-size: 14px !important; font-weight: 400 !important;
}
.anuncio-empty {
  text-align: center; padding: 32px 20px;
  color: var(--muted);
}
.anuncio-empty-icon { font-size: 32px; margin-bottom: 8px; }
.anuncio-empty-text { font-size: 13px; line-height: 1.6; }

/* ══════════════════════════════════════
   TAB ANFITRIÓN — host profile
══════════════════════════════════════ */
.s3-anf-body { padding: 20px 16px 120px; }
.s3-anf-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 20px;
}
.s3-anf-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--fg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.s3-anf-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.s3-anf-sub  { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.s3-anf-rating { font-size: 12px; font-weight: 600; }
.s3-anf-bio { font-size: 13px; color: var(--fg-soft); line-height: 1.65; }
.anf-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 22px;
}
.anf-stat {
  background: var(--card);
  padding: 14px 10px; text-align: center;
}
.anf-stat-num { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
.anf-stat-label { font-size: 10px; color: var(--muted); margin-top: 2px; }
.anf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.anf-tag {
  padding: 5px 12px; border-radius: 999px;
  background: var(--line-soft); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--fg-soft);
}
.anf-verif-list { display: flex; flex-direction: column; gap: 8px; }
.anf-verif {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.anf-verif-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft); border: 1px solid var(--green-border);
  color: var(--green-deep); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.anf-reviews { display: flex; flex-direction: column; gap: 12px; }
.anf-review {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
}
.anf-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.anf-review-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.anf-review-name { font-size: 13px; font-weight: 700; }
.anf-review-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.anf-review-text { font-size: 13px; color: var(--fg-soft); line-height: 1.55; }
.anf-events {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 4px;
}
.anf-events::-webkit-scrollbar { display: none; }
.anf-event {
  flex-shrink: 0; width: 200px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  text-decoration: none; color: var(--fg);
}
.anf-event-cover {
  height: 80px; background: var(--fg);
  display: flex; align-items: flex-end; padding: 8px;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(255,255,255,0.04) 6px, rgba(255,255,255,0.04) 12px);
}
.anf-event-cover-tag {
  font-size: 10px; font-weight: 700;
  background: var(--accent); color: var(--fg);
  padding: 3px 8px; border-radius: 999px;
}
.anf-event-body { padding: 10px 12px; }
.anf-event-title { font-size: 12px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.anf-event-meta  { font-size: 11px; color: var(--muted); }

/* ══════════════════════════════════════
   QUICK-EDIT MODAL
══════════════════════════════════════ */
.qe-modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.45);
  align-items: flex-end; justify-content: center;
}
.qe-modal.open { display: flex; }
.qe-sheet {
  width: 100%; max-width: 640px;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.qe-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.qe-title { font-size: 15px; font-weight: 700; }
.qe-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--line-soft); border: none;
  font-size: 18px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.qe-body { padding: 16px 20px; }
.qe-body input[type="text"],
.qe-body input[type="number"],
.qe-body input[type="date"],
.qe-body input[type="time"],
.qe-body textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 14px; font-family: inherit;
  color: var(--fg); margin-top: 6px;
}
.qe-body label { font-size: 12px; font-weight: 600; color: var(--muted); }
.qe-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.qe-notify {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.qe-notify input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--fg); }
.qe-save {
  padding: 12px 20px;
  background: var(--fg); color: var(--accent);
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #111; color: #fff; font-size: 13px; font-weight: 500;
  padding: 10px 20px; border-radius: 30px; white-space: nowrap;
  opacity: 0; transition: all 0.3s ease; pointer-events: none; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════
   PERFIL EDICIÓN
══════════════════════════════════════ */
.pedit-save-btn {
  background: none; border: none; font-family: inherit;
  font-size: 14px; font-weight: 700; color: var(--fg); cursor: pointer; padding: 0;
}
.pedit-body {
  flex: 1; overflow-y: auto; padding: 20px 20px 40px;
  display: flex; flex-direction: column; gap: 0;
}
/* Avatar */
.pedit-avatar-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-bottom: 28px;
}
.pedit-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--display-font); font-weight: 900; font-style: italic;
  font-size: 28px; color: #111; cursor: pointer; position: relative;
}
.pedit-avatar-pill {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: var(--fg); color: var(--accent);
  font-size: 10px; font-weight: 700; font-style: normal; font-family: var(--body-font, 'DM Sans', sans-serif);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.pedit-avatar-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Secciones */
.pedit-section { margin-bottom: 22px; }
.pedit-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 8px;
}
.pedit-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--line);
  font-size: 14px; font-family: inherit; color: var(--fg);
  box-sizing: border-box; outline: none;
  transition: border-color 0.15s;
}
.pedit-input:focus { border-color: var(--fg); }
.pedit-textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.pedit-username-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.pedit-username-prefix {
  padding: 13px 10px 13px 14px;
  font-size: 15px;
  color: var(--muted);
  background: var(--surface2, #f4f4f5);
  border-right: 1.5px solid var(--line);
  white-space: nowrap;
}
.pedit-username-input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
}
.pedit-username-hint {
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
  min-height: 16px;
}

/* Chips (idiomas, actividades, zonas) */
.pedit-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pedit-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--card); border: 1.5px solid var(--line);
  color: var(--muted); cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.pedit-chip.active {
  background: var(--fg); color: var(--accent);
  border-color: var(--fg);
}
.pedit-chip-lugar.active { background: #1D4ED8; color: #fff; border-color: #1D4ED8; }
.pedit-chip-custom { border-style: dashed; }
.pedit-chip-custom.active { background: var(--fg); color: var(--accent); border-style: dashed; }
.pedit-chip-add {
  background: transparent; border-style: dashed; color: var(--muted);
}

/* Buscador de actividades */
.pedit-search-wrap {
  display: flex; gap: 8px; margin-top: 10px;
}
.pedit-search {
  flex: 1; padding: 10px 14px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--line);
  font-size: 13px; font-family: inherit; color: var(--fg); outline: none;
}
.pedit-search:focus { border-color: var(--fg); }
.pedit-search-btn {
  padding: 10px 16px; border-radius: 12px;
  background: var(--fg); color: var(--accent);
  border: none; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}

/* Intereses extra editables */
.pedit-interes-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  margin-bottom: 8px; overflow: hidden;
}
.pedit-interes-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer;
}
.pedit-interes-title-input {
  flex: 1; border: none; background: transparent;
  font-size: 13px; font-weight: 600; font-family: inherit; color: var(--fg);
  outline: none; padding: 0; min-width: 0;
}
.pedit-interes-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pedit-interes-arrow { font-size: 10px; color: var(--muted); transition: transform 0.2s; }
.pedit-interes-card.open .pedit-interes-arrow { transform: rotate(180deg); }
.pedit-interes-delete {
  background: none; border: none; font-size: 16px; color: var(--muted);
  cursor: pointer; padding: 0; line-height: 1; font-family: inherit;
}
.pedit-interes-delete:hover { color: #dc2626; }
.pedit-interes-body-input {
  display: none; width: 100%; padding: 12px 14px;
  border: none; border-top: 1px solid var(--line);
  background: transparent; font-size: 13px; font-family: inherit;
  color: #444; line-height: 1.55; resize: vertical; min-height: 80px;
  box-sizing: border-box; outline: none;
}
.pedit-interes-card.open .pedit-interes-body-input { display: block; }

/* Botón añadir interés */
.pedit-add-row-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  background: transparent; border: 1.5px dashed var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: inherit; margin-top: 4px;
}

/* ── Editar perfil: Tus enlaces ── */
.pedit-label-sub {
  font-size: 12px; color: var(--muted);
  margin-top: -6px; margin-bottom: 12px; line-height: 1.4;
}

/* ── Perfil vista: Mis enlaces ── */
.perfil-enlaces-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 4px;
}
.perfil-enlaces-list .enlace-evento-item { margin-bottom: 0; }

/* ══════════════════════════════════════
   PERFIL — componentes extendidos
══════════════════════════════════════ */

/* Acciones rápidas perfil */
.perfil-actions {
  display: flex; gap: 10px; margin-bottom: 24px;
}
.perfil-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; color: var(--fg);
}
.perfil-action-divider { color: var(--line); font-weight: 300; font-size: 16px; }
.perfil-action-count { font-size: 16px; font-weight: 800; letter-spacing: -0.5px; }

/* Bio expandible */
.perfil-bio-extra { display: none; margin-top: 8px; }
.perfil-bio-extra.visible { display: block; }
.perfil-bio-toggle {
  margin-top: 8px; background: none; border: none; padding: 0;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
  font-family: inherit; letter-spacing: 0.02em;
}

/* Tarjetas de formación/experiencia */
.perfil-info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 8px; cursor: pointer;
}
.perfil-info-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.perfil-info-card-title { font-size: 13px; font-weight: 600; flex: 1; }
.perfil-info-card-arrow {
  font-size: 10px; color: var(--muted); flex-shrink: 0;
  transition: transform 0.2s;
}
.perfil-info-card.open .perfil-info-card-arrow { transform: rotate(180deg); }
.perfil-info-card-body {
  display: none; font-size: 13px; color: var(--muted); line-height: 1.55;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.perfil-info-card.open .perfil-info-card-body { display: block; }

/* Tarjetas de intereses */
.perfil-interes-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; margin-bottom: 8px; cursor: pointer;
}
.perfil-interes-head {
  display: flex; align-items: center; gap: 10px;
}
.perfil-interes-emoji { font-size: 16px; flex-shrink: 0; }
.perfil-interes-title { font-size: 13px; font-weight: 600; flex: 1; }
.perfil-interes-arrow {
  font-size: 10px; color: var(--muted); flex-shrink: 0;
  transition: transform 0.2s;
}
.perfil-interes-card.open .perfil-interes-arrow { transform: rotate(180deg); }
.perfil-interes-body {
  display: none; font-size: 13px; color: var(--muted); line-height: 1.55;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.perfil-interes-card.open .perfil-interes-body { display: block; }

/* Tag de ubicación (variante destacada) */
.anf-tag.perfil-lugar-tag {
  background: #EBF3FF; border-color: #BFDBFE; color: #1D4ED8;
}

/* Servicios */
.perfil-servicios { display: flex; flex-direction: column; gap: 8px; }
.perfil-servicio-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; display: flex; align-items: center; gap: 12px;
}
.perfil-servicio-info { flex: 1; min-width: 0; }
.perfil-servicio-name { font-size: 13px; font-weight: 600; }
.perfil-servicio-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.perfil-servicio-price {
  font-size: 16px; font-weight: 800; letter-spacing: -0.3px; flex-shrink: 0;
}
.perfil-servicio-price small { font-size: 11px; font-weight: 500; color: var(--muted); }

/* Valoraciones */
.perfil-review {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.perfil-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.perfil-review-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--fg);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.perfil-review-meta { flex: 1; min-width: 0; }
.perfil-review-name { font-size: 13px; font-weight: 600; }
.perfil-review-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.perfil-review-stars { font-size: 12px; color: var(--accent); flex-shrink: 0; }
.perfil-review-text {
  font-size: 13px; color: #444; line-height: 1.55;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.perfil-ver-mas-btn {
  width: 100%; padding: 13px; border-radius: 12px;
  background: transparent; border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--fg);
  cursor: pointer; font-family: inherit; text-align: center;
  margin-top: 2px;
}

/* ══════════════════════════════════════
   APROBACIÓN & SOLICITUDES
══════════════════════════════════════ */
.approval-toggle {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  margin-top: 4px; user-select: none;
}
.approval-toggle:hover { border-color: #999; }
.approval-toggle.active { border-color: #111; background: #FAFAF7; }
.approval-toggle-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--line-soft); display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background 0.15s;
}
.approval-toggle.active .approval-toggle-icon { background: #111; color: var(--accent); }
.approval-toggle-text { flex: 1; }
.approval-toggle-title { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 3px; }
.approval-toggle-desc { font-size: 12px; color: #666; line-height: 1.5; }

/* Pending requests section in s-evento host view */
.s3-requests-section { margin-top: 16px; }
.s3-requests-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.s3-requests-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 999px; padding: 0 5px;
  background: #111; color: var(--accent); font-size: 10px; font-weight: 800;
}
.s3-requests-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }
.s3-request-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; background: var(--card); border-radius: 12px;
  border: 1.5px solid var(--line); margin-bottom: 8px;
}
.s3-request-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--fg);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.s3-request-info { flex: 1; min-width: 0; }
.s3-request-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.s3-request-time { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.s3-request-msg { font-size: 12px; color: #555; line-height: 1.45; font-style: italic; }
.s3-request-actions { display: flex; gap: 8px; flex-shrink: 0; margin-top: 2px; }
.s3-request-accept {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: #111; color: var(--accent); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.s3-request-reject {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); cursor: pointer;
  background: transparent; color: #999; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.s3-request-reject:hover { border-color: #dc2626; color: #dc2626; }

/* Invitados list */
.s3-invitados-section { margin-top: 20px; }
.s3-invitados-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.s3-invitado-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; background: var(--line-soft);
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.s3-invitado-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--fg);
  color: var(--accent); font-size: 8px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ══════════════════════════════════════
   INVITE SHEET
══════════════════════════════════════ */
.invite-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 900; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.invite-backdrop.open { opacity: 1; pointer-events: all; }

/* ── Compartir evento — bottom sheet ── */
.share-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 900; opacity: 0; pointer-events: none; transition: opacity 0.25s;
  display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
}
.share-backdrop.open { opacity: 1; pointer-events: all; }
.share-sheet {
  background: var(--bg); border-radius: 20px;
  padding: 28px 24px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  width: 100%; max-width: 440px; box-sizing: border-box;
  transform: scale(0.92); opacity: 0;
  transition: transform 0.25s cubic-bezier(.32,.72,0,1), opacity 0.25s;
  display: flex; flex-direction: column;
}
.share-sheet.open { transform: scale(1); opacity: 1; }
.share-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; cursor: pointer; font-family: inherit;
  width: 100%; text-align: left;
  transition: background 0.15s, opacity 0.15s;
}
.share-option:hover, .share-option:active { background: var(--line-soft); }
.share-option:last-child { margin-bottom: 0; }
.share-option:disabled { opacity: 0.6; cursor: wait; }
.share-option-icon { font-size: 22px; flex-shrink: 0; }
.share-option-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-option-label { font-size: 14px; font-weight: 700; color: var(--fg); }
.share-option-desc { font-size: 11px; color: var(--muted); }
.invite-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 901;
  background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 0 20px 32px;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(.32,.72,0,1);
  max-height: 80dvh; display: flex; flex-direction: column;
}
.invite-sheet.open { transform: translateY(0); }
.invite-sheet-handle {
  width: 36px; height: 4px; border-radius: 999px;
  background: var(--line); margin: 12px auto 16px;
}
.invite-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.invite-sheet-title { font-size: 16px; font-weight: 700; }
.invite-sheet-close {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--line-soft); color: var(--fg); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.invite-search-input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card);
  font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box;
}
.invite-search-input:focus { border-color: #111; }
.invite-selected-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; display: none;
}
/* .invite-chip — definido más abajo junto al modal */
.invite-profiles-list { flex: 1; overflow-y: auto; margin-top: 12px; }
.invite-profile-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background 0.1s;
}
.invite-profile-row:last-child { border-bottom: none; }
.invite-profile-row.selected .invite-profile-check { color: var(--fg); font-weight: 700; }
.invite-profile-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--fg);
  color: var(--accent); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.invite-profile-info { flex: 1; }
.invite-profile-name { font-size: 14px; font-weight: 600; }
.invite-profile-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.invite-profile-check { width: 24px; text-align: center; color: var(--line); font-size: 16px; }
.invite-send-btn {
  width: 100%; padding: 16px; background: #111; color: var(--accent);
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-top: 16px; flex-shrink: 0;
}
.invite-send-btn:active { opacity: 0.85; }

/* Invitar button in cover (same style as vis-btn) */
.s3-cover-invite-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 0.15s;
}
.s3-cover-invite-btn:active { background: rgba(255,255,255,0.25); }

/* Access selector (público / privado) */
.access-selector {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px;
}
.access-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 10px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  text-align: center; user-select: none;
}
.access-opt:hover { border-color: #999; }
.access-opt.selected { border-color: #111; background: #FAFAF7; }
.access-opt-icon { font-size: 22px; line-height: 1; }
.access-opt-label { font-size: 14px; font-weight: 700; color: #111; }
.access-opt-desc { font-size: 11px; color: #888; line-height: 1.3; }
.access-opt.selected .access-opt-label { color: #111; }

/* Username invite row */
.invite-username-row {
  display: flex; gap: 8px; align-items: center;
}
.invite-username-row .field-input,
.invite-username-row .invite-search-input {
  flex: 1; margin: 0;
}
.invite-username-btn {
  flex-shrink: 0; padding: 12px 16px;
  background: #111; color: var(--accent);
  border: none; border-radius: 10px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.invite-username-btn:active { opacity: 0.8; }
.invite-username-feedback {
  font-size: 12px; min-height: 16px; margin-top: 6px;
}
.invite-username-feedback.error { color: #dc2626; }

/* Invite chips en crear */
.invite-crear-wrap { position: relative; }
.invite-crear-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 0;
}
.invite-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px 6px 6px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px;
}
.invite-chip-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #111; color: var(--accent);
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.invite-chip-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.invite-chip-remove {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 15px; padding: 0; line-height: 1;
  margin-left: 2px;
}
.invite-chip-remove:hover { color: var(--fg); }

/* ── Trigger row (inline en el form) ── */
.invite-trigger-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: background 0.15s;
  margin-bottom: 0;
}
.invite-trigger-row:active { background: var(--line); }
.invite-trigger-info { display: flex; flex-direction: column; gap: 2px; }
.invite-trigger-label { font-size: 14px; font-weight: 700; color: var(--fg); }
.invite-trigger-sub { font-size: 12px; color: var(--muted); }
.invite-trigger-arrow { font-size: 20px; color: var(--muted); line-height: 1; }

/* ── Popup modal centrado ── */
.invite-modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.invite-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.invite-modal-sheet {
  background: var(--bg); border-radius: 20px;
  width: 100%; max-width: 420px;
  padding: 24px 24px 28px;
  transform: scale(0.92);
  transition: transform 0.22s cubic-bezier(0.34,1.4,0.64,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.invite-modal-overlay.open .invite-modal-sheet {
  transform: scale(1);
}
.invite-modal-handle { display: none; }
.invite-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.invite-modal-title {
  font-size: 17px; font-weight: 800; color: var(--fg);
}
.invite-modal-close {
  background: var(--card); border: none; color: var(--muted);
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.invite-modal-hint {
  font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.4;
}
.invite-modal-done {
  width: 100%; margin-top: 20px; padding: 16px;
  background: #111; color: var(--accent);
  border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: opacity 0.15s;
}
.invite-modal-done:active { opacity: 0.85; }
