body.home-page { overflow-x: hidden; }

.hero-globe {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) 1px minmax(400px, 1.15fr);
  align-items: stretch;
  padding: 20px 24px 28px 20px;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.hero-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139,92,246,0.55), transparent);
  margin: 24px 0;
  justify-self: center;
}

.left-module {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 10;
  padding: 28px 22px 20px 28px;
  align-items: flex-start;
  text-align: left;
}

.hero-eyebrow {
  color: var(--neon-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.hero-tagline {
  color: var(--gold-soft);
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-style: italic;
  margin: 4px 0 22px;
  opacity: 0.95;
  line-height: 1.35;
}

.left-module h1 {
  font-size: clamp(1.45rem, 2.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 18px 0 10px;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  width: 100%;
  text-align: left;
  overflow: visible;
}
.left-module h1 span {
  background: linear-gradient(135deg, var(--purple-primary), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.25));
}

.left-module-inner {
  width: min(100%, 480px);
  margin-left: 0;
  margin-top: 72px;
}

/* Index: título más grande; el filtro de búsqueda se queda alineado */
body.home-page:not(.search-globe-page) .left-module-inner {
  width: min(100%, 480px);
  margin-left: 0;
}
body.home-page:not(.search-globe-page) .hero-eyebrow {
  padding-left: 28px;
}
body.home-page:not(.search-globe-page) .left-module h1 {
  font-size: clamp(1.95rem, 3.2vw, 3.05rem);
  line-height: 1.12;
  margin: 14px 0 12px;
  padding-left: 28px;
  white-space: normal;
}
body.home-page:not(.search-globe-page) .hero-tagline {
  font-size: clamp(1.12rem, 1.9vw, 1.45rem);
  margin: 2px 0 26px;
  padding-left: 28px;
}
body.home-page:not(.search-globe-page) .search-panel,
body.home-page:not(.search-globe-page) .results-container {
  margin-left: 28px;
  width: 100%;
  max-width: 320px;
}
body.home-page:not(.search-globe-page) .search-panel {
  padding: 14px 14px 16px;
  border-radius: 16px;
}
body.home-page:not(.search-globe-page) .search-panel .modern-select,
body.home-page:not(.search-globe-page) .search-panel .btn {
  padding: 9px 12px;
  font-size: 0.86rem;
  border-radius: 10px;
}
body.home-page:not(.search-globe-page) .input-grid { gap: 8px; margin-bottom: 12px; }

/* Buscar DJ / Proveedor: título más grande + filtro más estrecho */
body.search-globe-page .left-module h1 {
  font-size: clamp(1.95rem, 3.2vw, 3.05rem);
  line-height: 1.12;
  margin: 14px 0 12px;
  white-space: normal;
}
body.search-globe-page .hero-tagline {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}
body.search-globe-page .left-module-inner {
  width: min(100%, 340px);
}
body.search-globe-page .search-panel {
  max-width: 320px;
  padding: 14px 14px 16px;
  border-radius: 16px;
}
body.search-globe-page .search-panel .modern-select,
body.search-globe-page .search-panel .btn {
  padding: 9px 12px;
  font-size: 0.86rem;
  border-radius: 10px;
}
body.search-globe-page .input-grid { gap: 8px; margin-bottom: 12px; }
body.search-globe-page .results-container {
  width: min(100%, 320px);
  max-width: 320px;
}

.search-panel {
  background: rgba(20, 18, 12, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(16px);
  margin-bottom: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: left;
}
.search-panel h3 {
  font-size: 11px; color: var(--text-muted); margin-bottom: 15px;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}
.input-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }

.stream-star {
  display: inline-block;
  color: #fbbf24;
  font-size: 0.95em;
  margin-left: 6px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
  vertical-align: middle;
}
.stream-star[hidden] { display: none !important; }
#modal-stream-badge.stream-star {
  margin-left: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.result-info h5 .stream-star,
.dj-info h4 .stream-star { margin-left: 5px; font-size: 0.9em; }

.results-container {
  display: none; flex-direction: column;
  background: rgba(12, 12, 12, 0.65); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 15px; backdrop-filter: blur(10px);
  overflow: hidden; text-align: left; width: min(100%, 460px); margin-left: 0;
}
.results-container.visible { display: flex; }
.results-container h4 {
  font-size: 13px; color: var(--text-muted); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px;
}
.results-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.results-list::-webkit-scrollbar { width: 4px; }
.results-list::-webkit-scrollbar-thumb { background: var(--purple-primary); border-radius: 4px; }

.result-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.03); padding: 10px; border-radius: 10px;
  cursor: pointer; transition: 0.25s; border: 1px solid transparent;
}
.result-item:hover { background: rgba(139, 92, 246, 0.14); transform: translateX(5px); }
.result-item.active {
  background: rgba(139, 92, 246, 0.18); border-color: var(--purple-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.28);
}
.result-item.active .result-info h5 { color: var(--neon-cyan); }
.result-item img,
.result-item .dj-avatar-fallback { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.result-item .dj-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #f0abfc;
  background: linear-gradient(145deg, #3b0764, #831843);
}
.result-info h5 { font-size: 13px; margin-bottom: 2px; }
.result-info p { font-size: 11px; color: var(--text-muted); }

.right-module {
  position: relative; min-height: 560px; height: 100%;
  border-radius: 24px; cursor: grab; overflow: hidden; touch-action: none;
  margin: 12px 8px 12px 20px;
}
.right-module:active { cursor: grabbing; }

.zoom-controls {
  position: absolute; bottom: 24px; right: 24px; z-index: 20;
  display: flex; flex-direction: column; gap: 10px;
}
.zoom-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(15, 15, 15, 0.85); border: 1px solid var(--glass-border);
  color: white; font-size: 20px; font-weight: bold; cursor: pointer;
  display: flex; justify-content: center; align-items: center;
  backdrop-filter: blur(10px); transition: 0.2s;
}
.zoom-btn:hover { background: var(--purple-primary); border-color: var(--purple-primary); color: #fff; }

.globe-batch-hud {
  position: absolute; left: 20px; bottom: 24px; z-index: 20;
  background: rgba(15, 15, 15, 0.8); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); border-radius: 10px;
  padding: 8px 12px; font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.04em; pointer-events: none;
}
.globe-batch-hud[hidden] { display: none !important; }

.card-wrapper { position: relative; width: 0; height: 0; pointer-events: none; z-index: 1; }
.dj-card-3d {
  background: rgba(15, 15, 15, 0.88); backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 12px; padding: 12px; width: 220px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.9);
  display: flex; align-items: center; gap: 10px; position: absolute;
  pointer-events: auto; transition: opacity 0.35s ease, border-color 0.3s, transform 0.35s ease, filter 0.35s ease;
  bottom: 20px; left: 20px; cursor: pointer;
  will-change: opacity, transform;
  z-index: 1;
}
.dj-card-3d.dj-card-in { animation: djCardIn 0.45s ease both; }
.dj-card-3d.dj-card-out {
  opacity: 0 !important; transform: translateY(10px) scale(0.92);
  filter: blur(2px); pointer-events: none;
}
.dj-card-3d.behind-globe {
  opacity: 0.28 !important; filter: saturate(0.6);
  pointer-events: none;
}
@keyframes djCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.9); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
.result-item-in { animation: djCardIn 0.35s ease both; }

.dj-card-3d:hover { border-color: var(--purple-primary); z-index: 50; }
.dj-card-3d::after {
  content: ''; position: absolute; bottom: -20px; left: -20px;
  width: 28px; height: 1px; background: rgba(139, 92, 246, 0.75);
  transform: rotate(45deg); transform-origin: bottom right;
}
.dj-card-3d::before {
  content: ''; position: absolute; bottom: -28px; left: -28px;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px 2px var(--neon-cyan);
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(139,92,246,0.35); border-color: rgba(139,92,246,0.55); transform: scale(1); }
  50% { box-shadow: 0 0 25px rgba(0,255,255,0.55); border-color: var(--neon-cyan); transform: scale(1.05); }
}
.dj-card-3d.selected {
  animation: pulse-glow 1.5s infinite ease-in-out;
  z-index: 9999 !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  transform: scale(1.04);
}
.dj-card-3d.selected::before { background: var(--neon-cyan); box-shadow: 0 0 20px 5px var(--neon-cyan); }
.dj-card-3d.dimmed { opacity: 0; visibility: hidden; pointer-events: none; }
.dj-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1a1024; }
.dj-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: #f0abfc; background: linear-gradient(145deg, #3b0764, #831843);
}
.dj-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.dj-info p { font-size: 10px; color: var(--text-muted); }
.live-badge {
  position: absolute; top: 8px; right: 8px; background: var(--live-red);
  color: white; font-size: 7px; font-weight: 800; padding: 2px 4px; border-radius: 3px;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(12px);
  z-index: 1000; display: flex; justify-content: center; align-items: center;
  padding: 20px 14px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
#profile-modal.modal-overlay {
  align-items: center; overflow-y: auto;
}
#profile-modal .modern-modal {
  width: min(680px, 100%);
  max-height: min(90vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
  background: linear-gradient(180deg, rgba(22,18,32,0.98), rgba(8,8,12,0.98));
  border: 1px solid rgba(139,92,246,0.28); border-radius: 24px;
  transform: translateY(30px) scale(0.95); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
}
.modal-overlay.active .modern-modal { transform: none; }
#profile-modal .modal-header-bg {
  flex-shrink: 0;
  height: 110px;
  background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(255,42,95,0.12));
  border-radius: 24px 24px 0 0; position: relative;
  border-bottom: 0;
  padding: 0;
}
#profile-modal .close-modal {
  position: absolute; top: 18px; right: 18px; z-index: 10;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: white;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#profile-modal .modal-profile-header {
  flex-shrink: 0;
  padding: 0 28px; display: flex; align-items: flex-end; gap: 18px;
  margin-top: -48px; margin-bottom: 8px; position: relative; z-index: 2;
}
#profile-modal .modal-avatar {
  width: 104px; height: 104px; border-radius: 50%;
  border: 4px solid #16141f; object-fit: cover; background: #12101a;
  flex-shrink: 0;
}
#profile-modal .modal-title-group { padding-bottom: 8px; min-width: 0; }
#profile-modal .modal-title-group h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800;
  letter-spacing: -0.03em; margin: 0 0 6px; line-height: 1.15;
}
#profile-modal .modal-title-group p {
  font-size: 0.9rem; color: var(--neon-cyan); margin: 0; line-height: 1.35;
}
#profile-modal .modal-body {
  padding: 18px 28px 28px;
  overflow-y: auto; flex: 1; min-height: 0;
}
#profile-modal .price-banner {
  margin: 0 0 20px;
  padding: 18px 20px;
  gap: 18px;
}
#profile-modal .price-banner .price-main p,
#profile-modal .price-banner .price-extra p {
  margin: 6px 0 0; color: var(--text-muted); font-size: 0.82rem;
}
#profile-modal .info-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 14px;
}
#profile-modal .info-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 18px 18px;
  min-height: 92px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
#profile-modal .info-card .label {
  display: block;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  color: #9a9ab0;
}
#profile-modal .info-card .value {
  display: block;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}
#profile-modal .modal-footer {
  display: flex; gap: 12px; margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
}
.btn-action {
  flex: 1; padding: 15px; border-radius: 14px; border: none; font-weight: 700;
  font-size: 14px; cursor: pointer; transition: 0.3s;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  text-decoration: none; color: inherit;
}
.btn-action.primary {
  background: linear-gradient(135deg, var(--purple-primary), #6d28d9); color: #fff;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}
.btn-action.secondary {
  background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1);
}

.home-intro {
  text-align: center; max-width: 820px; margin: 0 auto 40px;
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.7;
}
.home-intro strong { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .dj-card-3d.dj-card-in, .result-item-in { animation: none; }
  .dj-card-3d.dj-card-out { transition: opacity 0.1s; transform: none; filter: none; }
}

@media (max-width: 1100px) {
  .left-module h1 { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.5px; }
}

@media (max-width: 1024px) {
  .hero-globe {
    grid-template-columns: 1fr;
    min-height: auto; padding: 20px; gap: 16px;
  }
  .hero-divider { display: none; }
  .left-module {
    align-items: center; text-align: center; padding: 10px;
  }
  .left-module h1 {
    white-space: normal; text-align: center; margin-top: 12px; font-size: 2.2rem;
  }
  .hero-tagline { text-align: center; }
  .left-module-inner { margin-top: 12px; margin-left: 0; width: 100%; max-width: 520px; }
  .results-container { margin-left: 0; width: 100%; max-width: 520px; }
  .right-module { width: 100%; height: 55vh; min-height: 400px; margin: 0; }
  .globe-batch-hud { left: 12px; bottom: 16px; font-size: 10px; }
}
@media (max-width: 768px) {
  .left-module h1 { font-size: 1.85rem; }
  .right-module { height: 45vh; min-height: 340px; }
  #profile-modal.modal-overlay { padding: 0; align-items: stretch; }
  #profile-modal .modern-modal {
    width: 100%; max-width: 100%; height: 100%; max-height: 100vh; border-radius: 0;
  }
  #profile-modal .modal-header-bg { border-radius: 0; }
  #profile-modal .modal-profile-header {
    flex-direction: column; align-items: center; text-align: center;
    padding: 0 20px; margin-bottom: 4px;
  }
  #profile-modal .modal-body { padding: 16px 20px 24px; }
  #profile-modal .info-grid { grid-template-columns: 1fr; gap: 12px; }
  #profile-modal .info-card { min-height: 0; padding: 16px; }
  #profile-modal .modal-footer { flex-direction: column; }
}
