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

/* ============================================
   DESIGN SYSTEM — Capua 6
   Adaptado del formato "Grupo Al Peso / Sala Privada"
   Personalidad: Luxury / Hostelería nocturna
   ============================================ */

:root {
  /* === COLORES === */
  --color-bg: #0a0a0a;
  --color-bg-alt: #0f0f0f;
  --color-bg-dark: #050505;
  --color-surface: #1a1a1a;
  --color-surface-light: #222222;

  --color-primary: #c09449;
  --color-primary-light: #d4ad6a;
  --color-primary-dark: #a07a35;
  --color-primary-rgb: 192, 148, 73;

  --color-secondary: #9b1c1c;
  --color-secondary-light: #b52a2a;

  --color-text: #ffffff;
  --color-text-muted: #999999;
  --color-text-dim: #666666;
  --color-text-light: #f5f0e8;

  --color-border: rgba(192, 148, 73, 0.15);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-overlay: rgba(5, 5, 5, 0.85);

  /* === TIPOGRAFÍA === */
  --font-heading: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --font-accent: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.12em;
  --tracking-widest: 0.2em;

  /* === SOMBRAS / GLOW === */
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow-sm: 0 0 15px rgba(var(--color-primary-rgb), 0.15);
  --shadow-glow: 0 0 30px rgba(var(--color-primary-rgb), 0.25);

  /* === TRANSICIONES === */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === BASE === */
body {
  font-family: var(--font-body) !important;
  background-color: var(--color-bg) !important;
  color: var(--color-text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

/* Ritmo vertical tipo "sala privada": secciones amplias */
section[id] {
  padding-top: clamp(5rem, 10vh, 7.5rem);
  padding-bottom: clamp(5rem, 10vh, 7.5rem);
  /* Evita que la cabecera fija (80px) tape el destino al saltar por ancla */
  scroll-margin-top: 96px;
}

/* === UTILIDADES DE MARCA === */

/* Etiqueta pequeña dorada sobre los títulos de sección */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.section-label i,
.section-label svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4rem;
  margin-top: -2px;
}

/* Línea divisoria dorada */
.divider-gold {
  width: 60px;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  margin: 1.25rem 0;
}

.divider-gold--center {
  margin-left: auto;
  margin-right: auto;
}

/* Texto de acento: Baloo 2 dorada (palabra destacada del título) */
.text-accent {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0;
}

/* === GLASSMORPHISM (tono dorado / luxury) === */
.glass-panel {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-subtle);
}

.glass-nav {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.glass-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.12);
  transition: all 0.4s var(--ease-out-expo);
}

.glass-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-sm), var(--shadow-lg);
}

.glass-pill {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

/* === GLOW UTILITIES === */
.neon-glow-purple,
.neon-glow-pink,
.neon-glow-gold {
  box-shadow: 0 0 25px -5px rgba(var(--color-primary-rgb), 0.45),
              0 0 10px -2px rgba(var(--color-primary-rgb), 0.25);
}

/* === TEXTO EN DEGRADADO === */
.text-gradient-neon {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-light) 45%, var(--color-primary) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Fuerza texto oscuro sobre los botones de degradado dorado (legibilidad) */
.bg-gradient-to-r.from-purple-600,
.bg-gradient-to-r.from-purple-500,
.bg-purple-600 {
  color: var(--color-bg) !important;
}

/* === KEYFRAMES === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

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

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }
.animate-fadeIn { animation: fadeIn 0.5s var(--ease-out-expo) both; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: rgba(var(--color-primary-rgb), 0.35);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--color-primary-rgb), 0.55); }

/* === SELECTION === */
::selection {
  background: rgba(var(--color-primary-rgb), 0.3);
  color: var(--color-text);
}

html { scroll-behavior: smooth; }

/* === TABS / FILTROS ACTIVOS === */
.tab-btn.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-bg);
  border-color: transparent;
  box-shadow: 0 4px 20px -2px rgba(var(--color-primary-rgb), 0.4);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary-light);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.4);
}

/* === CHAT WIDGET FLOTANTE === */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: var(--font-body);
  /* El contenedor no debe interceptar clics en su zona vacía;
     solo el botón lanzador y el panel abierto son interactivos. */
  pointer-events: none;
}

@media (max-width: 480px) {
  .chat-widget { right: 16px; bottom: 16px; }
}

/* Botón lanzador */
.chat-launcher {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 10px 30px -6px rgba(var(--color-primary-rgb), 0.5),
              inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.chat-launcher:hover { transform: translateY(-2px) scale(1.04); }

.chat-launcher__icon {
  position: absolute;
  width: 26px;
  height: 26px;
  transition: opacity 0.2s var(--ease-smooth), transform 0.3s var(--ease-out-expo);
}

.chat-launcher__icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.chat-widget.is-open .chat-launcher__icon--open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.chat-widget.is-open .chat-launcher__icon--close { opacity: 1; transform: none; }

.chat-launcher__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--color-primary);
  z-index: -1;
  animation: chatPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.chat-widget.is-open .chat-launcher__ring { display: none; }

@keyframes chatPing {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

/* Panel */
.chat-panel {
  width: min(360px, calc(100vw - 32px));
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.28s var(--ease-out-expo),
              transform 0.28s var(--ease-out-expo),
              visibility 0.28s;
}

.chat-widget.is-open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.chat-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.14), rgba(var(--color-primary-rgb), 0.03));
  border-bottom: 1px solid var(--color-border);
}

.chat-panel__label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.chat-panel__title {
  font-family: var(--font-heading) !important;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-text);
}

.chat-panel__close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-subtle);
  transition: color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}

.chat-panel__close:hover { color: var(--color-primary); border-color: var(--color-primary); }
.chat-panel__close svg { width: 16px; height: 16px; }

.chat-panel__body { padding: 18px; }

.chat-bubble {
  background: var(--color-surface-light);
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: 4px 14px 14px 14px;
  border: 1px solid var(--color-border-subtle);
  margin-bottom: 16px;
}

.chat-replies { display: flex; flex-direction: column; gap: 8px; }

.chat-reply {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth), transform 0.2s var(--ease-out-expo);
}

.chat-reply svg { width: 16px; height: 16px; flex-shrink: 0; }
.chat-reply:hover { background: rgba(var(--color-primary-rgb), 0.12); transform: translateX(3px); }

.chat-reply--wa {
  background: #25d366;
  border-color: #25d366;
  color: #05240f;
}

.chat-reply--wa:hover { background: #1ebe5b; border-color: #1ebe5b; }

.chat-panel__foot {
  padding: 12px 18px 16px;
  font-size: 0.68rem;
  color: var(--color-text-dim);
  text-align: center;
  border-top: 1px solid var(--color-border-subtle);
}

/* === PÁGINAS LEGALES (Aviso Legal / Privacidad / Cookies) === */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.legal-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.legal-logo img {
  width: 40px; height: 40px; border-radius: 999px; object-fit: cover;
  border: 1px solid rgba(var(--color-primary-rgb), 0.4);
}
.legal-logo span { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--color-text); }
.legal-logo em { font-style: normal; color: var(--color-primary); }

.legal-back {
  font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: color 0.2s var(--ease-smooth);
  white-space: nowrap;
}
.legal-back:hover { color: var(--color-primary); }

.legal-main { padding: 64px 20px 96px; }
.legal-container { max-width: 760px; margin: 0 auto; }
.legal-container h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-top: 14px; }
.legal-updated { color: var(--color-text-dim); font-size: 0.85rem; margin-top: 8px; }
.legal-container > .divider-gold { margin: 28px 0 40px; }

.legal-container section { margin-bottom: 36px; }
.legal-container h2 {
  font-size: 1.35rem; color: var(--color-primary-light);
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.legal-container h3 { font-size: 1.05rem; color: var(--color-text); margin: 18px 0 8px; }
.legal-container p {
  color: var(--color-text-light); opacity: 0.88; line-height: 1.75;
  margin-bottom: 12px; max-width: none;
}
.legal-container ul {
  margin: 0 0 12px 0; padding-left: 1.3rem;
  color: var(--color-text-light); opacity: 0.88; line-height: 1.75;
}
.legal-container ul li { margin-bottom: 6px; }
.legal-container strong { color: var(--color-text); }
.legal-container a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-container a:hover { color: var(--color-primary-light); }

.legal-table-wrap { overflow-x: auto; margin: 4px 0 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 480px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-light); vertical-align: top;
}
.legal-table th {
  color: var(--color-primary); font-family: var(--font-body);
  text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em;
}

.legal-footer { border-top: 1px solid var(--color-border-subtle); padding: 32px 20px; text-align: center; }
.legal-footer__links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 14px; }
.legal-footer__links a { color: var(--color-text-muted); font-size: 0.82rem; text-decoration: none; }
.legal-footer__links a:hover { color: var(--color-primary); }
.legal-footer p { color: var(--color-text-dim); font-size: 0.78rem; }

@media (max-width: 640px) {
  .legal-main { padding: 40px 16px 72px; }
  .legal-back span { display: none; }
}

/* === PREGUNTAS FRECUENTES (ACORDEÓN) === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-smooth);
}

.faq-item[open] { border-color: rgba(var(--color-primary-rgb), 0.35); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { display: none; content: ""; }
.faq-item__q:hover { color: var(--color-primary-light); }
.faq-item__q:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: 8px;
}

.faq-item__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.3s var(--ease-out-expo);
}

.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }

.faq-item__a { padding: 0 22px 20px; }

.faq-item__a p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 10px;
  max-width: none;
}
.faq-item__a p:last-child { margin-bottom: 0; }

.faq-item__a ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item__a ul li { margin-bottom: 4px; }
.faq-item__a ul li strong { color: var(--color-text-light); }

@media (max-width: 480px) {
  .faq-item__q { padding: 16px 18px; font-size: 0.95rem; }
  .faq-item__a { padding: 0 18px 18px; }
}

/* === CALENDARIO DE DISPONIBILIDAD PÚBLICO === */
.disp-dia {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
}
.disp-dia--libre {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out-expo), background-color 0.15s;
}
.disp-dia--libre:hover,
.disp-dia--libre:focus-visible {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}
.disp-dia--libre:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 1px;
}
.disp-dia--ocupado {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-dim);
  border: 1px solid var(--color-border-subtle);
}
.disp-dia--pasado {
  color: rgba(255, 255, 255, 0.12);
}
.disp-dia--hoy {
  box-shadow: 0 0 0 1.5px var(--color-primary);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
