/* ==========================================================================
   JAPI KARAOKE - Clean Minimalist Nightclub Experience
   Palette:
   --c1: #F2D5E0 (Soft Pastel Neon Pink / Highlight)
   --c2: #D90DB7 (Vibrant Hot Magenta / Primary Glow)
   --c3: #8A0B8C (Deep Disco Violet / Midtones)
   --c4: #320240 (Dark Grape / Surface Layers)
   --c5: #170126 (Deepest Nightclub Violet / Void Base)
   ========================================================================== */

:root {
  --c1: #F2D5E0;
  --c2: #D90DB7;
  --c3: #8A0B8C;
  --c4: #320240;
  --c5: #170126;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --glass-bg: rgba(23, 1, 38, 0.72);
  --glass-border: rgba(242, 213, 224, 0.16);
  --glass-border-hover: rgba(217, 13, 183, 0.6);
  --neon-glow: 0 0 20px rgba(217, 13, 183, 0.45), 0 0 40px rgba(138, 11, 140, 0.25);
  --neon-glow-strong: 0 0 25px rgba(217, 13, 183, 0.8), 0 0 50px rgba(217, 13, 183, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--c5);
  color: var(--c1);
  font-family: var(--font-main);
  user-select: none;
}

/* 3D WebGL Canvas Layer */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#webgl-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* UI Overlay Container */
.app-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 36px;
}

@media (max-width: 768px) {
  .app-overlay {
    padding: 16px 16px 20px 16px;
  }
}

/* Header */
.app-header {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.brand-badge:hover {
  border-color: var(--c2);
  box-shadow: 0 0 20px rgba(217, 13, 183, 0.35);
}

.live-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--c2);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c2);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 16px var(--c2); }
}

.brand-badge span {
  font-size: 0.82rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c1);
}

.brand-badge .sub {
  color: rgba(242, 213, 224, 0.6);
  font-weight: 400;
  margin-left: 2px;
}

/* Sound / Music Beat Button */
.btn-sound {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--c1);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-sound:hover {
  border-color: var(--c2);
  color: #fff;
  box-shadow: 0 0 20px rgba(217, 13, 183, 0.45);
}

.btn-sound.active {
  border-color: var(--c2);
  background: rgba(217, 13, 183, 0.2);
  box-shadow: 0 0 25px rgba(217, 13, 183, 0.4);
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq-bar {
  width: 2.5px;
  background: var(--c2);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.btn-sound.active .eq-bar:nth-child(1) { animation: eq-anim 0.8s ease-in-out infinite alternate; }
.btn-sound.active .eq-bar:nth-child(2) { animation: eq-anim 0.6s ease-in-out infinite alternate 0.2s; }
.btn-sound.active .eq-bar:nth-child(3) { animation: eq-anim 0.7s ease-in-out infinite alternate 0.4s; }
.btn-sound.active .eq-bar:nth-child(4) { animation: eq-anim 0.5s ease-in-out infinite alternate 0.1s; }

@keyframes eq-anim {
  0% { height: 3px; }
  100% { height: 14px; background: var(--c1); box-shadow: 0 0 6px var(--c2); }
}

/* Center Interactive Hint (Floating subtle pill) */
.center-interaction {
  pointer-events: auto;
  align-self: center;
  text-align: center;
  margin-top: auto;
  margin-bottom: 12px;
}

.interact-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(242, 213, 224, 0.65);
  background: rgba(35, 2, 45, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 213, 224, 0.12);
  cursor: pointer;
  transition: all 0.3s ease;
}

.interact-hint:hover {
  color: var(--c1);
  border-color: var(--c2);
  background: rgba(217, 13, 183, 0.2);
  box-shadow: 0 0 16px rgba(217, 13, 183, 0.35);
  transform: translateY(-1px);
}

.interact-hint svg {
  width: 14px;
  height: 14px;
  stroke: var(--c2);
}

/* Minimalist Floating Footer Dock */
.app-footer {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dock-container {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(23, 1, 38, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 8px 12px 8px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(138, 11, 140, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dock-container:hover {
  border-color: rgba(217, 13, 183, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(217, 13, 183, 0.3);
}

/* Action Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

/* Reservas Button - Glowing Neon */
.btn-primary-reserve {
  background: linear-gradient(135deg, var(--c2), var(--c3));
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(217, 13, 183, 0.5);
}

.btn-primary-reserve::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.btn-primary-reserve:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(217, 13, 183, 0.75), 0 0 40px rgba(217, 13, 183, 0.4);
}

.btn-primary-reserve:hover::before {
  left: 100%;
}

.btn-primary-reserve:active {
  transform: translateY(1px);
}

/* WhatsApp Button - Subtle Glass with green accent */
.btn-whatsapp {
  background: rgba(35, 2, 45, 0.75);
  border: 1px solid var(--glass-border);
  color: var(--c1);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: #25D366;
  transition: transform 0.25s ease;
}

.btn-whatsapp:hover {
  border-color: #25D366;
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.12);
}

.btn-whatsapp:hover svg {
  transform: scale(1.15) rotate(5deg);
}

/* Vertical Separator */
.dock-separator {
  width: 1px;
  height: 24px;
  background: rgba(242, 213, 224, 0.15);
}

/* Social Media (RRSS) */
.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(50, 2, 64, 0.6);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c1);
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.social-link:hover {
  border-color: var(--c2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(217, 13, 183, 0.55);
  background: rgba(217, 13, 183, 0.25);
}

.social-link:hover svg {
  transform: scale(1.15);
}

/* Subtle Copyright or Tagline */
.tagline-sub {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(242, 213, 224, 0.35);
  font-weight: 500;
}

/* Reservation Modal Drawer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 1, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: rgba(50, 2, 64, 0.9);
  border: 1px solid rgba(217, 13, 183, 0.35);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 13, 183, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--c1);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.15);
  color: var(--c2);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-header h3 span {
  color: var(--c2);
}

.modal-header p {
  font-size: 0.82rem;
  color: rgba(242, 213, 224, 0.7);
  margin-top: 4px;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--c1);
  margin-bottom: 5px;
}

.form-input, .form-select {
  width: 100%;
  background: rgba(23, 1, 38, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--c2);
  box-shadow: 0 0 15px rgba(217, 13, 183, 0.4);
}

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

.btn-submit-reserve {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c2), var(--c3));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(217, 13, 183, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit-reserve:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(217, 13, 183, 0.7);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--c4);
  border: 1px solid var(--c2);
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 13, 183, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .dock-container {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 20px;
    width: 100%;
  }
  .dock-separator {
    width: 100%;
    height: 1px;
  }
  .btn-cta {
    width: 100%;
  }
  .brand-badge span {
    font-size: 0.75rem;
  }
  .btn-sound span {
    display: none;
  }
}
