/* ============================================================
   KAWSAY — Design System & Styles
   ============================================================ */

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

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --surface2:  #1c1c1c;
  --surface3:  #242424;
  --border:    #2a2a2a;
  --accent:    #c6f135;
  --accent-dk: #a8d422;
  --gold:      #ffd700;
  --gold-grad: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  --red:       #e53935;
  --white:     #ffffff;
  --grey1:     #888888;
  --grey2:     #555555;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --sidebar-w: 270px;
  --topbar-h:  64px;
  --radius:    10px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
input, select { font-family: inherit; }

/* ---- Scrollbars ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ============================================================
   LAYOUT — Shell
   ============================================================ */
#app {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  padding: 0 0 20px;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 16px 18px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.sidebar-nav {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--grey1);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  user-select: none;
}

.nav-item:hover { color: var(--white); background: var(--surface2); }
.nav-item.active { color: var(--white); }
.nav-item.active .nav-icon-wrap { background: var(--surface3); }

.nav-icon-wrap {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.nav-item.active .nav-icon-wrap.home-icon { background: #1a1a1a; }

/* ---- Library Section ---- */
.sidebar-library {
  padding: 16px 0 0;
  flex: 1;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey1);
}

.library-add-btn {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface3);
  color: var(--white);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  cursor: pointer;
  line-height: 1;
}

.library-add-btn:hover { background: var(--accent); color: #000; }

.library-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--grey1);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}

.library-item:hover { color: var(--white); background: var(--surface2); }

.lib-icon {
  width: 34px; height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.lib-icon.cal  { background: #e53935; }
.lib-icon.save { background: #1a1a3e; }
.lib-icon.fol  { background: var(--surface3); }
.lib-icon.playlist {
  overflow: hidden;
  border-radius: 6px;
}
.lib-icon.playlist img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.lib-text { min-width: 0; flex: 1; }
.lib-text-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}
.lib-text-sub {
  font-size: 10px;
  color: var(--grey2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---- Create Event Button ---- */
.create-event-btn {
  margin: 16px 12px 0;
  padding: 13px 16px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.create-event-btn:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

/* ---- Main Content Area ---- */
#main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---- Top Bar ---- */
#topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  gap: 16px;
}

.topbar-nav { display: flex; align-items: center; gap: 8px; }

.topbar-nav-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--grey1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all var(--transition);
  cursor: pointer;
}
.topbar-nav-btn:hover { background: var(--surface3); color: var(--white); }

.search-wrap {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px 8px 38px;
  color: var(--white);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--grey2); }
.search-input:focus { border-color: var(--grey1); }

.search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--grey2);
  font-size: 14px;
  pointer-events: none;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.btn-ingresar {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-ingresar:hover { border-color: var(--white); }

.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ============================================================
   VIEWS GLOBAL
   ============================================================ */
.view { display: none; }
.view.active { display: block; }

/* ============================================================
   VIEW — HOME / EXPLORE
   ============================================================ */
#view-home { display: none; }
#view-home.active { display: block; }


/* ---- Hero Banner ---- */
.hero-banner {
  position: relative;
  min-height: 440px;
  height: 440px;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  background: #111;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.55);
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero-banner:hover .hero-img { transform: scale(1); }

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 15%, rgba(0,0,0,0.55) 65%, transparent 100%);
  gap: 8px;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.hero-title {
  font-size: 44px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  white-space: pre-line;
  color: #ffffff;
}

.hero-desc {
  font-size: 15px !important;
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 18px;
  max-width: 640px;
  line-height: 1.5;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--grey1);
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-pill:hover { border-color: var(--white); color: var(--white); }
.filter-pill.active {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}

/* ---- Section ---- */
.section {
  padding: 28px 28px 12px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey1);
  transition: color var(--transition);
  cursor: pointer;
}
.section-link:hover { color: var(--accent); }

/* ---- Events Grid ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.event-card {
  cursor: pointer;
  transition: transform var(--transition);
}
.event-card:hover { transform: translateY(-3px); }
.event-card:hover .event-card-img { filter: brightness(0.65) grayscale(100%); }

.event-card-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface2);
  margin-bottom: 8px;
}

.event-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.75);
  transition: filter 0.3s ease, transform 0.4s ease;
}
.event-card:hover .event-card-img { transform: scale(1.06); }

.event-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey1);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Spaces Grid ---- */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.space-card {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}
.space-card:hover { transform: translateY(-5px); }

.space-avatar-wrap {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface2);
  margin: 0 auto 10px;
  border: 3px solid var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  transition: border-color var(--transition), transform var(--transition);
}
.space-card:hover .space-avatar-wrap { border-color: var(--accent); transform: scale(1.05); }

.space-avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.85);
  transition: filter 0.3s ease;
}
.space-card:hover .space-avatar { filter: grayscale(0%) brightness(1.0); }

.space-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.space-type {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey1);
  letter-spacing: 0.04em;
}

/* ---- Interests Grid ---- */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.interest-card {
  position: relative;
  aspect-ratio: 1.4/1;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.interest-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.interest-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0,0,0,0.6);
}

.interest-card:hover::before {
  opacity: 1;
}

.interest-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 1;
  position: relative;
}

.interest-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  font-size: 55px;
  opacity: 0.15;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 0;
}

.interest-card:hover .interest-icon {
  transform: scale(1.3) rotate(-10deg);
  opacity: 0.4;
}

/* ---- Footer ---- */
.kawsay-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 28px 20px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--grey1);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey1);
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: var(--grey1);
  margin-bottom: 8px;
  transition: color var(--transition);
  cursor: pointer;
}
.footer-link:hover { color: var(--white); }

.footer-social { display: flex; gap: 12px; margin-top: 4px; }

.social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--grey1);
  transition: all var(--transition);
  cursor: pointer;
}
.social-icon:hover { background: var(--accent); color: #000; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--grey2);
}

/* ---- Premium Banner ---- */
.premium-banner {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 80;
  gap: 20px;
}

.premium-banner-text strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.premium-banner-text span {
  font-size: 11px;
  color: var(--grey1);
}

.btn-premium {
  padding: 10px 24px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-premium:hover { background: var(--accent-dk); transform: translateY(-1px); }

.premium-close {
  font-size: 18px;
  color: var(--grey2);
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
}
.premium-close:hover { color: var(--white); }

/* ============================================================
   VIEW — CALENDAR WEEK
   ============================================================ */
#view-calendar-week { display: none; }
#view-calendar-week.active { display: flex; flex-direction: column; flex: 1; }

/* ============================================================
   VIEW — CALENDAR MONTH
   ============================================================ */
#view-calendar-month { display: none; }
#view-calendar-month.active { display: flex; flex-direction: column; flex: 1; }

/* ---- Calendar Common ---- */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.cal-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex: 1;
}

.cal-view-toggles {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.cal-toggle {
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey1);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}
.cal-toggle:not(:last-child) { border-right: 1px solid var(--border); }
.cal-toggle.active {
  background: var(--white);
  color: #000;
}
.cal-toggle:hover:not(.active) { color: var(--white); background: var(--surface2); }

.cal-nav { display: flex; align-items: center; gap: 8px; }

.cal-nav-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--grey1);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.cal-nav-btn:hover { background: var(--surface3); color: var(--white); }

.cal-today-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
}
.cal-today-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---- WEEK VIEW ---- */
.week-grid-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
}

.week-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  min-width: 700px;
  position: relative;
}

.week-day-header {
  display: contents;
}

.week-header-empty {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 12px 0;
}

.week-day-col-header {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  text-align: center;
}

.week-day-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey1);
  margin-bottom: 4px;
}

.week-day-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.week-day-col-header.today .week-day-num {
  background: var(--accent);
  color: #000;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 15px;
}

/* Time rows */
.week-body {
  display: contents;
}

.week-time-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  height: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.week-time-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey2);
  letter-spacing: 0.04em;
}

.week-day-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  height: 80px;
  position: relative;
}

/* Current time line */
.current-time-line {
  position: absolute;
  left: 60px; right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 20;
  pointer-events: none;
}
.current-time-line::before {
  content: '';
  position: absolute;
  left: -5px; top: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* Event cards on week view */
.week-event-card {
  position: absolute;
  left: 4px; right: 4px;
  border-radius: 6px;
  padding: 8px 10px;
  z-index: 10;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.week-event-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  z-index: 15;
}

.week-event-card.soldout {
  background: var(--white);
  color: #000;
}
.week-event-card.standard {
  background: var(--surface3);
  color: var(--white);
  border: 1px solid var(--border);
}
.week-event-card.accent {
  background: var(--accent);
  color: #000;
}

.week-event-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.week-event-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 3px;
}

.week-event-sub {
  font-size: 10px;
  opacity: 0.65;
  font-family: var(--font-mono);
}

/* ---- MONTH VIEW ---- */
.month-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.month-calendar-wrap {
  flex: 1;
  overflow: auto;
  padding: 0;
}

.month-grid {
  width: 100%;
  border-collapse: collapse;
}

.month-grid th {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey1);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.month-grid td {
  border: 1px solid var(--border);
  padding: 8px;
  vertical-align: top;
  height: 110px;
  width: calc(100% / 7);
  cursor: pointer;
  transition: background var(--transition);
}
.month-grid td:hover { background: var(--surface2); }
.month-grid td.other-month { opacity: 0.35; }
.month-grid td.today { background: rgba(198, 241, 53, 0.06); }
.month-grid td.selected { background: var(--surface2); }

.month-day-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.today .month-day-num {
  background: var(--accent);
  color: #000;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 12px;
}

.month-cell-event {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--grey1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.month-event-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
}

.month-cell-photo {
  width: 100%;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(100%) brightness(0.8);
  margin-top: 4px;
}

/* ---- Month Sidebar ---- */
.month-sidebar {
  width: 260px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.month-sidebar-section {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.month-sidebar-section:last-child { border-bottom: none; }

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grey1);
  margin-bottom: 12px;
}

/* Upcoming Event Cards */
.upcoming-event-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface2);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}
.upcoming-event-card:hover { background: var(--surface3); border-color: var(--border); }
.upcoming-event-card.selected { border-color: var(--accent); }

.upcoming-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.upcoming-date-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey1);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.upcoming-cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.upcoming-info { min-width: 0; flex: 1; }

.upcoming-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey1);
  margin-bottom: 2px;
}

.upcoming-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-venue {
  font-size: 10px;
  color: var(--grey2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tickets card */
.tickets-reminder-card {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
}

.tickets-reminder-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.tickets-reminder-sub {
  font-size: 11px;
  color: var(--grey1);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-ver-tickets {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 6px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-ver-tickets:hover { background: var(--accent-dk); }

/* ============================================================
   MODAL — CREAR EVENTO
   ============================================================ */
.modal-overlay {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100vw !important; height: 100vh !important;
  background: rgba(0,0,0,0.85) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

.modal-box {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  width: 850px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto !important;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.95);
  position: relative !important;
  z-index: 1000000 !important;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1) !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--grey1);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.modal-close:hover { background: var(--surface3); color: var(--white); }

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey1);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--grey2);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { -webkit-appearance: none; }
.form-select option { background: var(--surface); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--accent-dk); transform: translateY(-1px); }

/* ============================================================
   MODAL — TICKETS
   ============================================================ */
.ticket-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticket-tier-info { flex: 1; }
.ticket-tier-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
}
.ticket-tier-desc {
  font-size: 12px;
  color: var(--grey1);
}
.ticket-tier-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.btn-buy-ticket {
  padding: 10px 18px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-buy-ticket:hover { background: var(--accent-dk); }

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.4s ease both;
}

/* Staggered children */
.stagger > * { animation: fadeInUp 0.35s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* Pulse for current-time line */
@keyframes pulse-line {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.current-time-line { animation: pulse-line 2s ease infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .events-grid, .spaces-grid, .interests-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 160px; }
  .hero-title { font-size: 34px; }
  .events-grid, .spaces-grid { grid-template-columns: repeat(3, 1fr); }
  .interests-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .month-sidebar { width: 220px; }
}

/* ============================================================
   PROFILE SWITCHER & ADMIN DASHBOARD STYLES
   ============================================================ */
.profile-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.profile-select {
  background: transparent;
  color: var(--white);
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  padding: 4px 6px;
}

.profile-select option {
  background: var(--surface);
  color: var(--white);
}

.btn-admin-mod {
  background: #e53935;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-admin-mod:hover { background: #d32f2f; }

.badge-pending-count {
  background: #fff;
  color: #e53935;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}

/* Badges de Estado */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-badge.pending {
  background: #ff9800;
  color: #000;
}
.status-badge.approved {
  background: var(--accent);
  color: #000;
}
.status-badge.rejected {
  background: var(--red);
  color: #fff;
}

/* Modal de Moderación Admin */
.mod-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 13px;
}
.mod-table th, .mod-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.mod-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey1);
  text-transform: uppercase;
}
.mod-actions {
  display: flex;
  gap: 8px;
}
.btn-action-approve {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}
.btn-action-reject {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

/* Targetas con acciones (Favoritos & RSVP) */
.event-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.btn-card-action {
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-card-action.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-card-action.fav-active {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
}

/* ============================================================
   NUEVAS SECCIONES: CARRITO, UBICACIÓN, PREMIUM Y ÚNETE ARTISTA/ESPACIO
   ============================================================ */

/* 1. Ubicación Selector */
.location-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.location-select {
  background: transparent;
  color: var(--white);
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}
.location-select option { background: var(--surface); }

/* 2. Barra de Búsqueda Destacada "¿Qué quieres vivir hoy?" */
.search-wrap-lg {
  flex: 1;
  max-width: 550px;
  position: relative;
}
.search-input-lg {
  width: 100%;
  background: var(--surface2);
  border: 2px solid var(--accent);
  border-radius: 28px;
  padding: 10px 18px 10px 44px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-shadow: 0 0 15px rgba(198, 241, 53, 0.15);
  transition: all var(--transition);
}
.search-input-lg:focus {
  border-color: #fff;
  box-shadow: 0 0 25px rgba(198, 241, 53, 0.35);
}
.search-icon-lg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
}

/* 3. Botón de Carrito de Compras */
.btn-cart {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-cart:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.cart-badge {
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
}

/* Cart Modal Drawer */
.cart-modal-box {
  max-width: 480px;
  width: 90%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-title { font-weight: 700; font-size: 14px; }
.cart-item-sub { font-size: 12px; color: var(--grey1); }
.cart-qty-btn {
  background: var(--surface3);
  color: #fff;
  border: none;
  width: 26px; height: 26px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

/* 4. KAWSAY Premium Resaltado */
.sidebar-premium-highlight {
  margin: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #1c1c00 0%, #2a2300 100%);
  border: 2px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
  text-align: center;
}
.premium-badge-gold {
  display: inline-block;
  background: var(--gold-grad);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.sidebar-premium-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.sidebar-premium-desc {
  font-size: 11px;
  color: #ddd;
  margin-bottom: 12px;
}
.btn-premium-gold {
  background: var(--gold-grad);
  color: #000;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,215,0,0.3);
  transition: transform 0.2s;
}
.btn-premium-gold:hover { transform: scale(1.03); }

/* 5. Pantalla "Únete como Artista o Espacio Cultural" */
#view-join { display: none; padding: 32px; }
#view-join.active { display: block; }

.join-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}
.join-header-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.join-header-desc {
  font-size: 16px;
  color: var(--grey1);
}

.join-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 950px;
  margin: 0 auto;
}

.join-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.join-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(198, 241, 53, 0.15);
}
.join-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.join-card-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}
.join-card-desc {
  font-size: 14px;
  color: var(--grey1);
  margin-bottom: 20px;
  line-height: 1.6;
}
.btn-join-action {
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  padding: 12px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
}

/* ============================================================
   ESTILOS DEDICADOS: ESTUDIO DE ARTISTA & PROMOCIÓN MUSICAL
   ============================================================ */
.artist-dashboard-banner {
  background: linear-gradient(135deg, rgba(198, 241, 53, 0.15) 0%, rgba(20, 20, 20, 0.95) 100%), var(--surface2);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.artist-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.artist-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(198, 241, 53, 0.25);
}

.artist-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
}

.artist-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.artist-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.artist-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-mono);
}

.artist-stat-label {
  font-size: 12px;
  color: var(--grey1);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.music-promotion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.music-promotion-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.music-track-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.music-player-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.music-player-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(198, 241, 53, 0.4);
}

/* ============================================================
   ESTILOS DEDICADOS: GESTIÓN Y PROMOCIÓN DE ESPACIO CULTURAL
   ============================================================ */
.space-dashboard-banner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(20, 20, 20, 0.95) 100%), var(--surface2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.space-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
}

.space-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.space-spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}

.space-spec-card:hover {
  border-color: var(--gold);
}

/* ============================================================
   ESTILOS DEDICADOS: VISTA DE DETALLE COMPLETO DEL EVENTO
   ============================================================ */
.event-detail-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90vw;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
}

.event-detail-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.event-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.event-detail-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(20,20,20,0.98) 0%, rgba(20,20,20,0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 28px;
}

.event-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.event-meta-pill {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-meta-pill strong {
  color: var(--accent);
}

/* ============================================================
   ETIQUETAS VISUALES EN TARJETAS DE CARTELERA
   ============================================================ */
.card-badge-cat {
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  position: absolute;
  top: 8px;
  left: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-transform: uppercase;
  z-index: 2;
}

.card-badge-price {
  background: rgba(0,0,0,0.85);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  position: absolute;
  bottom: 8px;
  right: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 2;
}

/* ============================================================
   ESTILOS DEDICADOS: PANEL DE ADMINISTRACIÓN Y ANALÍTICAS (KPIs)
   ============================================================ */
.admin-dashboard-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(20, 20, 20, 0.95) 100%), var(--surface2);
  border: 1px solid #ef4444;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.admin-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.admin-kpi-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
}

.admin-kpi-card:active {
  transform: translateY(-1px);
}

.admin-kpi-val {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-top: 4px;
}

.admin-kpi-sub {
  font-size: 11px;
  color: var(--grey1);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th {
  background: var(--surface2);
  color: var(--grey1);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
}

/* ============================================================
   NUEVOS ESTILOS: CATEGORÍAS DE COLORES Y FUENTES AMPLIADAS
   ============================================================ */

/* Fuentes más grandes para legibilidad */
h1 { font-size: 32px !important; }
h2, .section-title { font-size: 24px !important; }
h3, .event-card-title { font-size: 18px !important; }
p, .event-card-desc { font-size: 14px !important; }

/* Código de Colores por Categoría (Sincronizado con Explorar por Interés - 6 Colores Únicos) */
.badge-cat-musica, .cat-musica { background: #e5383b !important; color: #ffffff !important; }
.badge-cat-teatro, .cat-teatro { background: #c6f135 !important; color: #000000 !important; font-weight: 800 !important; }
.badge-cat-danza, .cat-danza { background: #ffffff !important; color: #000000 !important; font-weight: 800 !important; }
.badge-cat-artes, .cat-artes { background: #f97316 !important; color: #ffffff !important; }
.badge-cat-cine, .cat-cine { background: #06b6d4 !important; color: #ffffff !important; }
.badge-cat-foto, .cat-foto { background: #a855f7 !important; color: #ffffff !important; }
.badge-cat-festivales, .cat-festivales { background: #10b981 !important; color: #ffffff !important; }
.badge-cat-convocatorias, .cat-convocatorias { background: #eab308 !important; color: #000000 !important; font-weight: 900 !important; }

/* Estrellas de Valoración */
.rating-stars {
  display: inline-flex;
  gap: 4px;
  color: #eab308;
  cursor: pointer;
  font-size: 18px;
}
.rating-stars .star-icon {
  transition: transform 0.15s ease, color 0.15s ease;
}
.rating-stars .star-icon:hover {
  transform: scale(1.25);
  color: #f59e0b;
}

/* Modal Legal / Términos & Privacidad */
.legal-content-box {
  max-height: 380px;
  overflow-y: auto;
  padding: 16px;
  background: #1e293b;
  border-radius: 8px;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.6;
}
.legal-content-box h4 {
  color: #ffffff;
  margin: 14px 0 6px;
  font-size: 15px;
}

/* ============================================================
   ESTILOS DE DASHBOARDS DEDICADOS & CONTROL DE ACCESO POR ROL
   ============================================================ */
.admin-dashboard-banner,
.artist-dashboard-banner,
.space-dashboard-banner {
  background: linear-gradient(135deg, rgba(30,30,35,0.95) 0%, rgba(15,15,20,0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.admin-kpi-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-kpi-val {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font-mono);
}

.admin-kpi-sub {
  font-size: 11px;
  color: var(--grey1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface2);
  color: var(--grey1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.btn-switch-profile {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-switch-profile:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ============================================================
   FLOATING CENTRAL SPLIT MODAL — Event Detail
   LEFT: Full image with giant title overlay
   RIGHT: Scrollable info + sticky action bar
   ============================================================ */
.offcanvas-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.offcanvas-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

/* Floating panel — centered card */
.offcanvas-panel {
  width: min(94vw, 1020px);
  height: min(92vh, 660px);
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.95);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  transform: scale(0.93) translateY(24px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.offcanvas-overlay.open .offcanvas-panel {
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
}

/* ── LEFT: Image column with giant title overlay ── */
.offcanvas-hero {
  flex: 0 0 52%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.offcanvas-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55);
  transition: transform 8s ease;
}
.offcanvas-overlay.open .offcanvas-hero-img {
  transform: scale(1.04);
}

/* Badges top-left */
.offcanvas-hero-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 7px;
  align-items: center;
  z-index: 5;
}

/* Giant title block — bottom of image */
.offcanvas-hero-title-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 22px 20px;
  background: linear-gradient(to top,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.7) 45%,
    transparent 100%);
  z-index: 5;
}

.offcanvas-event-title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 0 0 14px;
  word-break: break-word;
}

.offcanvas-venue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.offcanvas-venue-text {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.offcanvas-venue-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.18);
  min-width: 20px;
  max-width: 40px;
}

.offcanvas-rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── RIGHT: Scrollable info panel ── */
.offcanvas-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #111111;
  position: relative;
  overflow: hidden;
}

/* Close button — top-right of the INFO panel */
.offcanvas-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.offcanvas-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border-color: transparent;
}

/* Scrollable content zone */
.offcanvas-body {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 48px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.offcanvas-body::-webkit-scrollbar { width: 3px; }
.offcanvas-body::-webkit-scrollbar-track { background: transparent; }
.offcanvas-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Section header "ⓘ ACERCA DEL ESPECTÁCULO" */
.detail-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  color: var(--accent, #d4ff00);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Info grid 2-column */
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-info-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dic-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dic-value {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dic-value.accent { color: var(--accent, #d4ff00); }
.dic-value.gold   { color: var(--gold, #eab308); }

/* ── Sticky Action Bar at bottom of right panel ── */
.offcanvas-action-bar {
  flex-shrink: 0;
  padding: 12px 18px 18px;
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-cart-main {
  width: 100%;
  padding: 14px;
  background: var(--accent, #d4ff00);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-cart-main:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-cart-main:active { transform: translateY(0); }

.btn-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-secondary-action {
  padding: 11px 14px;
  background: #1a1a1a;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary-action:hover {
  background: #222;
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.btn-secondary-action.fav-active {
  color: #f43f5e;
  border-color: rgba(244,63,94,0.4);
  background: rgba(244,63,94,0.08);
}
.btn-secondary-action.rsvp-active {
  color: var(--accent, #d4ff00);
  border-color: rgba(212,255,0,0.3);
  background: rgba(212,255,0,0.06);
}

/* ── Responsive: stacked on mobile ── */
@media (max-width: 640px) {
  .offcanvas-panel {
    flex-direction: column !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }
  .offcanvas-hero {
    flex: 0 0 48% !important;
    max-width: 100% !important;
  }
  .offcanvas-event-title {
    font-size: clamp(26px, 7vw, 40px) !important;
  }
  .offcanvas-body {
    padding: 14px 16px 10px !important;
  }
  .offcanvas-action-bar {
    padding: 10px 14px 14px !important;
  }
}

/* Left header inside offcanvas-left-header (unused now, kept for compat) */
.offcanvas-left-header { display: none; }
.hero-rating-row { display: none; }



/* Layer legal/confirmation modals cleanly on top of auth modal */
#modal-terms, #modal-privacy, #modal-email-confirm {
  z-index: 1000005 !important;
}

/* Admin Pending Moderation Table & Drawer Styles */
.admin-pending-row {
  transition: background-color 0.2s ease;
}
.admin-pending-row:hover {
  background: rgba(239, 68, 68, 0.08) !important;
}
.admin-pending-row:hover .admin-pending-title {
  color: var(--accent) !important;
}
.admin-pending-title {
  cursor: pointer;
  transition: color 0.15s ease;
}
.admin-pending-title:hover {
  color: var(--accent) !important;
}
.btn-action-preview {
  transition: all 0.15s ease;
}
.btn-action-preview:hover {
  background: var(--surface4) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
/* ============================================================
   SPOTIFY-STYLE MOBILE RESPONSIVE SYSTEM (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  /* 1. Ocultar Sidebar en Móvil y Expandir Main */
  #sidebar {
    display: none !important;
  }

  #main {
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: 90px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 2. Topbar Adaptativo Móvil */
  #topbar {
    padding: 10px 14px !important;
    gap: 8px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .topbar-actions {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 2px;
  }

  .search-wrap-lg {
    max-width: 100% !important;
    order: 2 !important;
    width: 100% !important;
    margin-top: 2px;
  }

  .location-wrap {
    display: none !important;
  }

  .hero-banner {
    min-height: 390px !important;
    height: auto !important;
    border-radius: 14px !important;
  }

  .hero-content {
    padding: 24px 16px 24px !important;
    justify-content: flex-end !important;
  }

  .hero-title {
    font-size: 26px !important;
    line-height: 1.15 !important;
    margin-bottom: 6px !important;
  }

  .hero-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 14px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-btns {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .hero-btns button {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 11px !important;
    white-space: normal !important;
  }

  /* 3. Spotify Quick Grid (2 Columnas Compactas) */
  .spotify-quick-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0;
  }

  .quick-grid-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .quick-grid-card:active {
    transform: scale(0.97);
    background: var(--surface3);
  }
  .quick-grid-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  .quick-grid-title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    font-family: var(--font-mono);
  }

  /* 4. Carruseles Horizontales Estilo Spotify con Snap-Scroll */
  .events-grid, .spaces-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding-bottom: 14px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .events-grid::-webkit-scrollbar, .spaces-grid::-webkit-scrollbar {
    display: none;
  }

  .event-card, .space-card {
    flex: 0 0 240px !important;
    scroll-snap-align: start;
    max-width: 240px !important;
  }

  .interests-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }

  /* 5. Floating Split Modal — Mobile Stacked Layout */
  .offcanvas-panel {
    flex-direction: column !important;
    width: 96vw !important;
    height: 92vh !important;
    border-radius: 16px !important;
  }

  .offcanvas-left {
    order: 2;
    max-height: 65vh;
    overflow-y: auto;
  }

  .offcanvas-hero {
    order: 1;
    flex: 0 0 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 200px !important;
  }

  .offcanvas-left-header {
    padding: 16px 16px 0 !important;
  }

  .offcanvas-body {
    padding: 14px 16px 16px !important;
    gap: 14px !important;
  }

  .offcanvas-action-bar {
    padding: 12px 16px 16px !important;
  }

  .offcanvas-box {
    width: 100% !important;
    max-width: 100% !important;
    height: 92vh !important;
    top: auto !important;
    bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
  }

  /* 6. Mobile Bottom Navigation Bar (Spotify Floating Footer) */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    justify-content: space-around;
    align-items: center;
    padding: 4px 6px 6px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    gap: 3px;
    cursor: pointer;
    flex: 1;
    transition: all 0.15s ease;
  }

  .mobile-nav-item.active {
    color: var(--accent) !important;
  }

  .mobile-nav-item.active .mobile-nav-icon {
    transform: translateY(-2px);
  }

  .mobile-nav-icon {
    font-size: 18px;
    transition: transform 0.15s ease;
  }

  .mobile-nav-create-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(198, 241, 53, 0.45);
    margin-bottom: 2px;
  }
}

/* Ocultar barra móvil en desktop */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  .spotify-quick-grid {
    display: none !important;
  }
}

/* ============================================================
   ESTILOS DE ONBOARDING RÁPIDO & SOCIAL AUTH (KAWSAY)
   ============================================================ */

/* Botones de Social Login (Google y Apple ID) */
.social-auth-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: var(--font-sans);
}

.social-btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}
.social-btn-google:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.social-btn-apple {
  background: #000000;
  color: #ffffff;
  border: 1px solid #374151;
}
.social-btn-apple:hover {
  background: #111827;
  border-color: #4b5563;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* Divisor de métodos de registro */
.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 16px;
  color: #64748b;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #334155;
}
.social-divider span {
  padding: 0 10px;
}

/* Indicador de Fortaleza de Contraseña */
.password-strength-container {
  margin-top: 6px;
}
.password-strength-bar-bg {
  width: 100%;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.password-strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.password-strength-text {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* Píldoras interactivas de Personalización Cultural */
.onboarding-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.onboarding-tag-pill {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.onboarding-tag-pill:hover {
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}
.onboarding-tag-pill.active {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(198, 241, 53, 0.4);
  font-weight: 800;
}

/* Banner de Recomendaciones Personalizadas en Home */
.personalized-recom-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(198, 241, 53, 0.35);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease-out;
}
.personalized-recom-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}
.personalized-recom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.personalized-recom-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.personalized-recom-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.personalized-chip {
  background: rgba(198, 241, 53, 0.15);
  color: var(--accent);
  border: 1px solid rgba(198, 241, 53, 0.3);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}

/* Badge 'Recomendado para ti' en tarjetas */
.event-recommended-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   PÁGINA DE AMIGOS & COMUNIDAD CULTURAL (PERFIL ESPECTADOR)
   ============================================================ */

.friends-view-wrapper {
  background: #0a0a0c;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-body);
}

/* Barra Superior de Amigos / Comunidad */
.friends-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: #0a0a0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 60;
}

.friends-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.friends-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.35);
}

.friends-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.friends-nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #888888;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.friends-nav-link:hover {
  color: #ffffff;
}

.friends-nav-link.active {
  color: var(--accent);
}

.friends-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.6);
}

.friends-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #18181c;
  border: 1px solid #27272a;
  padding: 5px 14px 5px 6px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.friends-user-badge:hover {
  border-color: #3f3f46;
  background: #202024;
}

.friends-user-badge img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #3f3f46;
}

.friends-user-badge span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #e4e4e7;
  letter-spacing: 0.5px;
}

/* Contenido Principal */
.friends-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 36px 80px;
  position: relative;
}

.friends-watermark-bg {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 0;
  font-size: clamp(52px, 8.5vw, 115px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  z-index: 0;
}

.friends-hero-area {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 20px;
}

.friends-tag-pill {
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.friends-hero-title {
  font-size: clamp(40px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #ffffff;
}

.friends-hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #888888;
  letter-spacing: 0.2px;
}

.friends-stat-card {
  background: #141416;
  border: 1px solid #232328;
  border-radius: 8px;
  padding: 14px 24px;
  min-width: 175px;
  text-align: right;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.friends-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.friends-stat-value {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Cuerpo con Marca Vertical y Rejilla */
.friends-body-wrap {
  display: flex;
  position: relative;
  gap: 20px;
  z-index: 1;
}

.friends-side-meta {
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: #404048;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  user-select: none;
  padding-top: 16px;
  white-space: nowrap;
  gap: 20px;
}

.friends-main-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.7fr 1.05fr;
  gap: 36px;
}

/* Columna Izquierda: Lista de Amigos */
.friends-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.friends-list-title {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.friends-search-box {
  background: #141417;
  border: 1px solid #27272b;
  border-radius: 4px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 190px;
  transition: border-color 0.2s ease;
}

.friends-search-box:focus-within {
  border-color: var(--accent);
}

.friends-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  width: 100%;
}

.friends-search-input::placeholder {
  color: #55555c;
  text-transform: uppercase;
}

.friends-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.friend-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.friend-card:hover {
  background: #18181d;
  border-color: #2f2f36;
  transform: translateY(-1px);
}

.friend-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.friend-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.friend-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #27272a;
}

.friend-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2.5px solid #131316;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(198, 241, 53, 0.7);
}

.friend-info {
  display: flex;
  flex-direction: column;
}

.friend-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.friend-event-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  letter-spacing: 0.2px;
}

.friend-event-status strong {
  color: #ffffff;
  font-weight: 700;
}

.friend-event-status.empty {
  color: #52525b;
}

.friend-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-friend-view-profile {
  background: var(--accent);
  border: none;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.2);
  transition: all 0.2s ease;
}

.btn-friend-view-profile:hover {
  background: #d6fa4f;
  box-shadow: 0 0 16px rgba(198, 241, 53, 0.4);
  transform: translateY(-1px);
}

.btn-friend-msg {
  background: #18181c;
  border: 1px solid #2c2c33;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-friend-msg:hover {
  background: #25252a;
  border-color: #44444e;
}

.btn-friend-invite {
  background: var(--accent);
  border: none;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(198, 241, 53, 0.25);
  transition: all 0.2s ease;
}

.btn-friend-invite:hover {
  background: #d6fa4f;
  box-shadow: 0 0 18px rgba(198, 241, 53, 0.45);
  transform: translateY(-1px);
}

.btn-friend-propose {
  background: #18181c;
  border: 1px solid #2c2c33;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-friend-propose:hover {
  background: #25252a;
  border-color: #44444e;
}

/* Sección: Planes para Compartir */
.friends-plans-section {
  margin-top: 44px;
}

.friends-plans-title {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 20px;
}

.friends-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.friend-plan-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.friend-plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.friend-plan-media {
  position: relative;
  height: 180px;
  background: #1c1c20;
  overflow: hidden;
}

.friend-plan-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.friend-plan-card:hover .friend-plan-img {
  opacity: 0.85;
  transform: scale(1.03);
}

.friend-plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.friend-plan-avatars {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
}

.friend-plan-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #131316;
  margin-right: -6px;
  object-fit: cover;
  background: #3f3f46;
}

.friend-plan-more {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #131316;
  margin-right: -6px;
}

.friend-plan-details {
  padding: 16px 18px;
}

.friend-plan-title {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.friend-plan-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Columna Derecha: Sidebar Social */
.friends-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.friends-sidebar-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 22px;
}

.friends-sidebar-title-red {
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.friends-sidebar-title-green {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Solicitudes de Amistad */
.friend-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.friend-request-item:last-child {
  margin-bottom: 0;
}

.friend-request-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friend-request-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #27272a;
}

.friend-request-name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 2px;
}

.friend-request-mutual {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
}

.friend-request-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-req-accept {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-req-accept:hover {
  background: #d6fa4f;
  transform: scale(1.08);
}

.btn-req-reject {
  width: 28px;
  height: 28px;
  background: #18181c;
  border: 1px solid #2e2e34;
  border-radius: 6px;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-req-reject:hover {
  background: #25252b;
  color: #ef4444;
  border-color: #ef4444;
}

/* Gustos Similares */
.friend-match-item {
  margin-bottom: 20px;
}

.friend-match-item:last-child {
  margin-bottom: 0;
}

.friend-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.friend-match-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.friend-match-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
}

.friend-match-name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
}

.friend-match-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.friend-match-bar {
  height: 3px;
  background: #222227;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.friend-match-bar-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(198, 241, 53, 0.5);
}

.friend-match-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  line-height: 1.45;
  text-transform: uppercase;
}

/* Tarjeta Encuentra Más Personas (Borde punteado) */
.friends-discover-card {
  border: 1px dashed #3f3f46;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.friends-discover-card:hover {
  border-color: var(--accent);
  background: rgba(198, 241, 53, 0.03);
}

.friends-discover-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #3f3f46;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #ffffff;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.friends-discover-card:hover .friends-discover-icon-wrap {
  border-color: var(--accent);
  color: var(--accent);
}

.friends-discover-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.friends-discover-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: 250px;
  margin: 0 auto;
}

/* Footer Dedicado de Kawsay Red */
.friends-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #1f1f24;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.friends-footer-brand {
  max-width: 420px;
}

.friends-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.friends-footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.friends-footer-manifesto {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #52525b;
  text-transform: uppercase;
  line-height: 1.5;
}

.friends-footer-links-wrap {
  display: flex;
  gap: 48px;
}

.friends-footer-col-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.friends-footer-col-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.friends-footer-col-link:hover {
  color: var(--accent);
}

.friends-footer-copyright {
  width: 100%;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #3f3f46;
  text-transform: uppercase;
  margin-top: 24px;
}

/* Modal de Amigos Generales */
.friends-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 20px;
}

.friends-modal-card {
  background: #141417;
  border: 1px solid #27272b;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.friends-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.friends-modal-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.friends-modal-close {
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.friends-modal-close:hover {
  color: #ffffff;
}

@media (max-width: 1024px) {
  .friends-main-grid {
    grid-template-columns: 1fr;
  }
  .friends-side-meta {
    display: none;
  }
  .friends-topbar {
    padding: 16px 20px;
  }
  .friends-container {
    padding: 24px 20px 60px;
  }
}

@media (max-width: 640px) {
  .friends-plans-grid {
    grid-template-columns: 1fr;
  }
  .friends-nav-links {
    gap: 16px;
  }
  .friends-footer-links-wrap {
    gap: 24px;
  }
  .friends-footer-copyright {
    text-align: left;
  }
}

/* ============================================================
   ESTRUCTURA DE PERFIL PÚBLICO / ESPECTADOR (REFERENCIA MATEO VELASCO)
   ============================================================ */

.public-profile-wrapper {
  background: #0a0a0c;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-body);
}

/* Topbar del Perfil */
.public-profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: #0a0a0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 60;
}

.public-profile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.public-profile-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.public-profile-nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #888888;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.public-profile-nav-link:hover {
  color: #ffffff;
}

.public-profile-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-top-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141417;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-top-search:hover {
  border-color: #3f3f46;
  color: #fff;
}

.btn-top-myprofile {
  background: var(--accent);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(198, 241, 53, 0.25);
  transition: all 0.2s ease;
}

.btn-top-myprofile:hover {
  background: #d6fa4f;
  transform: translateY(-1px);
}

/* Contenedor Principal */
.public-profile-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* Cabecera del Usuario */
.public-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.public-profile-user-info {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.public-profile-avatar-container {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}

.public-profile-avatar-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
  border: 2px solid #27272b;
}

.public-profile-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #18181c;
  border: 1.5px solid #27272b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
}

.public-profile-avatar-badge:hover {
  background: #27272b;
  color: #fff;
}

.public-profile-name {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 6px;
  color: #ffffff;
}

.public-profile-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.public-profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.public-profile-tag-pill {
  background: #141417;
  border: 1px solid #27272b;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #d4d4d8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Estadísticas del Perfil */
.public-profile-stats {
  display: flex;
  gap: 36px;
  align-items: center;
  padding-top: 6px;
}

.public-profile-stat-box {
  text-align: right;
}

.public-profile-stat-num {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  color: #ffffff;
}

.public-profile-stat-num.highlight {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(198, 241, 53, 0.35);
}

.public-profile-stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Pestañas de Sub-Navegación */
.public-profile-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #222227;
  margin-bottom: 36px;
  overflow-x: auto;
}

.public-profile-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 0;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.public-profile-tab:hover {
  color: #ffffff;
}

.public-profile-tab.active {
  color: var(--accent);
}

.public-profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(198, 241, 53, 0.5);
}

/* Títulos de Sección */
.profile-section-title {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Sección: Próximas Asistencias */
.profile-attendance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 44px;
}

.profile-ticket-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 175px;
  transition: all 0.2s ease;
}

.profile-ticket-card:hover {
  border-color: #333339;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profile-ticket-badge {
  background: #ef4444;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-ticket-confirmed {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.profile-ticket-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.profile-ticket-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.profile-ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1c1c20;
  padding-top: 14px;
  margin-top: 18px;
}

.profile-ticket-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
}

.profile-ticket-details-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.profile-ticket-details-btn:hover {
  text-shadow: 0 0 8px rgba(198, 241, 53, 0.6);
}

/* Sección: Espacios que Sigues */
.profile-spaces-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-spaces-link-all {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-spaces-link-all:hover {
  color: var(--accent);
}

.profile-spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.profile-space-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-space-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-space-badge-verified {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 11px;
  font-weight: 900;
}

.profile-space-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
  padding-right: 30px;
}

.profile-space-sector {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.profile-space-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  border-top: 1px solid #1c1c20;
  padding-top: 14px;
  margin-top: 18px;
}

.profile-space-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: 700;
}

.profile-space-more-card {
  border: 1px solid #222227;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.profile-space-more-card:hover {
  border-color: var(--accent);
  background: rgba(198, 241, 53, 0.02);
}

.profile-space-more-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #3f3f46;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.profile-space-more-card:hover .profile-space-more-icon {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-space-more-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sección: Historial de Asistencia */
.profile-history-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}

.profile-history-item {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.profile-history-item:hover {
  background: #18181d;
  border-color: #2f2f36;
}

.profile-history-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-history-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #27272a;
  flex-shrink: 0;
}

.profile-history-title {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 2px;
}

.profile-history-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.profile-history-right {
  text-align: right;
}

.profile-history-price {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.profile-history-status {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer Dedicado de Plataforma Cultural */
.public-profile-footer {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid #1f1f24;
}

.public-profile-footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.public-profile-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #ffffff;
}

.public-profile-footer-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: #71717a;
  line-height: 1.5;
  max-width: 320px;
}

.public-profile-footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.public-profile-footer-link {
  font-family: var(--font-body);
  font-size: 12px;
  color: #71717a;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.public-profile-footer-link:hover {
  color: var(--accent);
}

.public-profile-footer-socials {
  display: flex;
  gap: 12px;
}

.public-profile-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #141417;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.public-profile-social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.public-profile-footer-bottom {
  border-top: 1px solid #1c1c20;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #52525b;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .profile-attendance-grid {
    grid-template-columns: 1fr;
  }
  .profile-spaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .public-profile-footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .public-profile-topbar {
    padding: 16px 20px;
  }
  .public-profile-container {
    padding: 24px 20px 60px;
  }
  .public-profile-nav-links {
    display: none;
  }
  .profile-spaces-grid {
    grid-template-columns: 1fr;
  }
  .public-profile-stats {
    width: 100%;
    justify-content: space-between;
  }
  .public-profile-footer-content {
    grid-template-columns: 1fr;
  }
  .public-profile-footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ============================================================
   ESTILOS DINÁMICOS DE PESTAÑAS Y MODALES DE PERFIL DE ESPECTADOR
   ============================================================ */

/* Contenedores de Pestañas */
.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
  animation: profileFadeIn 0.25s ease forwards;
}

@keyframes profileFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Barra de Contexto al Visitar Otro Perfil */
.public-profile-guest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141418;
  border: 1px solid #2b2b32;
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-profile-back {
  background: #1d1d22;
  border: 1px solid #32323a;
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-profile-back:hover {
  background: #27272f;
  color: #fff;
  border-color: #52525b;
}

.btn-profile-connect {
  background: var(--accent);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-profile-connect:hover {
  background: #d6fa4f;
  transform: translateY(-1px);
}

.btn-profile-msg {
  background: #18181c;
  border: 1px solid #2c2c34;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-profile-msg:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Grilla de Comunidades */
.profile-communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.profile-community-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: all 0.2s ease;
}

.profile-community-card:hover {
  border-color: #3f3f46;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-com-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-com-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  background: #27272a;
  color: var(--accent);
  border: 1px solid rgba(198, 241, 53, 0.25);
}

.profile-com-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.profile-com-desc {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.5;
  margin-bottom: 14px;
}

.profile-com-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-com-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #1c1c20;
  padding-top: 14px;
}

.btn-com-join {
  flex: 1;
  background: #1a1a20;
  border: 1px solid #2c2c34;
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-com-join.joined {
  background: rgba(198, 241, 53, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-com-join:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-com-forum {
  background: #18181c;
  border: 1px solid #2c2c34;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-com-forum:hover {
  color: #fff;
  border-color: #52525b;
}

/* Grilla de Amigos en Perfil */
.profile-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.profile-friend-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.profile-friend-card:hover {
  border-color: #383840;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.profile-friend-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-friend-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #27272a;
}

.profile-friend-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}

.profile-friend-name:hover {
  color: var(--accent);
}

.profile-friend-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  margin-top: 2px;
}

.profile-friend-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #1c1c20;
  padding-top: 12px;
}

.btn-profile-friend-action {
  flex: 1;
  background: #18181c;
  border: 1px solid #28282e;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-profile-friend-action:hover {
  border-color: var(--accent);
  color: #fff;
}

.btn-profile-friend-action.primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 900;
}

.btn-profile-friend-action.primary:hover {
  background: #d6fa4f;
}

/* Grilla de Recomendaciones */
.profile-recom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.profile-recom-card {
  background: #131316;
  border: 1px solid #222227;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.profile-recom-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.profile-recom-img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #18181c;
}

.profile-recom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-recom-card:hover .profile-recom-img {
  transform: scale(1.05);
}

.profile-recom-match-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.profile-recom-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.profile-recom-category {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.profile-recom-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 6px;
}

.profile-recom-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.profile-recom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #1c1c20;
  padding-top: 12px;
}

.btn-recom-buy {
  flex: 1;
  background: var(--accent);
  border: none;
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.btn-recom-buy:hover {
  background: #d6fa4f;
}

.btn-recom-details {
  background: #18181c;
  border: 1px solid #28282e;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.btn-recom-details:hover {
  color: #fff;
  border-color: #52525b;
}

/* Modales del Perfil */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease;
}

.profile-modal-card {
  background: #111114;
  border: 1px solid #27272b;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1f1f24;
}

.profile-modal-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
}

.profile-modal-close {
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.profile-modal-close:hover {
  color: #fff;
}

.profile-modal-form-group {
  margin-bottom: 16px;
}

.profile-modal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.profile-modal-input {
  width: 100%;
  background: #18181c;
  border: 1px solid #28282e;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.profile-modal-input:focus {
  border-color: var(--accent);
}

.btn-modal-save {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-modal-save:hover {
  background: #d6fa4f;
  transform: translateY(-1px);
}

/* Botón Editar Perfil en Header */
.btn-edit-profile-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #18181c;
  border: 1px solid #2e2e34;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-edit-profile-action:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(198, 241, 53, 0.35);
  transform: translateY(-1px);
}

/* Avatar Upload & Preview Box */
.avatar-upload-box {
  background: #151518;
  border: 1px solid #27272b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-preview-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.avatar-preview-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(198, 241, 53, 0.3);
}

.avatar-upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #242429;
  border: 1px solid #36363d;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.btn-avatar-upload:hover {
  background: #2f2f36;
  border-color: var(--accent);
  color: var(--accent);
}

.avatar-presets-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.avatar-presets-grid {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.avatar-preset-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #27272b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-preset-thumb:hover,
.avatar-preset-thumb.active {
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.4);
}

/* ============================================================
   GOOGLE MAPS ESTILIZADO KAWSAY
   ============================================================ */
.google-maps-dark-tiles {
  filter: invert(100%) hue-rotate(180deg) brightness(88%) contrast(90%) saturate(0.7);
}

.google-maps-sat-tiles {
  filter: brightness(92%) contrast(105%);
}

.btn-map-layer {
  background: #18181c;
  border: 1px solid #2c2c33;
  color: #a1a1aa;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-map-layer:hover {
  background: #27272b;
  color: #fff;
  border-color: #3f3f46;
}

.btn-map-layer.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(198, 241, 53, 0.3);
}

.leaflet-popup-content-wrapper {
  background: #141418 !important;
  color: #fff !important;
  border: 1px solid #27272b !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8) !important;
}

.leaflet-popup-tip {
  background: #141418 !important;
}

