/* ══════════════════════════════════════════════════════════════════
   VERTICAL: SOFTWARE POS PARA BILLARES (/billar)
   Estilos dedicados - Clean Code Architecture
   Paleta: Felt Green (#059669), Pool Blue (#2563eb), Brass Gold (#f59e0b), Taberna Dark (#090e14)
   ══════════════════════════════════════════════════════════════════ */

:root {
  --billar-bg: #090e14;
  --billar-card: #0f1722;
  --billar-card-hover: #152232;
  --billar-border: #1e2d3e;
  --billar-border-active: #10b981;
  --billar-felt-green: #059669;
  --billar-felt-light: #10b981;
  --billar-pool-blue: #2563eb;
  --billar-carom-red: #dc2626;
  --billar-gold: #f59e0b;
  --billar-gold-light: #fbbf24;
  --billar-text-main: #f3f4f6;
  --billar-text-muted: #94a3b8;
}

/* Badge Neon Superior */
.badge-billar-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Tipografía Hero */
.billar-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .billar-hero-title {
    font-size: 2rem;
  }
}

.text-billar-gradient {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald {
  color: #10b981 !important;
}

.text-gold {
  color: #f59e0b !important;
}

/* Botones de Acción */
.btn-billar-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-billar-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
  filter: brightness(1.08);
}

.btn-billar-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0 !important;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.btn-billar-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Tarjeta Mockup Hero (Mesa Activa en Vivo) */
.billar-table-card {
  background: radial-gradient(circle at top, #162a22 0%, #0c151c 100%);
  border: 2px solid #059669;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.billar-table-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #10b981, #f59e0b, #10b981);
}

.billar-badge-table {
  background: #064e3b;
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.billar-badge-lamp {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lamp-pulse-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: pulse-lamp 1.8s infinite;
}

@keyframes pulse-lamp {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Caja Answer First (AEO / GEO Standard) */
.answer-first-box {
  background: rgba(15, 23, 34, 0.85);
  border-left: 4px solid #10b981;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.answer-first-box p {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.answer-first-box strong {
  color: #34d399;
}

/* Simulador de Mesas en Vivo */
.tables-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.table-sim-card {
  background: var(--billar-card);
  border: 1px solid var(--billar-border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.table-sim-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.table-sim-card.active-table {
  border-color: #059669;
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.1) 0%, #0f1722 75%);
  box-shadow: inset 0 8px 20px rgba(16, 185, 129, 0.12), 0 0 20px rgba(16, 185, 129, 0.15);
}

.table-sim-card.active-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #10b981;
}

.table-sim-card.paused-table {
  border-color: #f59e0b;
  background: radial-gradient(circle at top, rgba(245, 158, 11, 0.1) 0%, #0f1722 75%);
}

.table-sim-card.paused-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #f59e0b;
}

.table-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.type-pool {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.type-carom {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.type-free {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.timer-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.7rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 1px;
}

.timer-display.paused {
  color: #fbbf24;
}

.timer-display.idle {
  color: #64748b;
}

.mini-bar-list {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  font-size: 0.85rem;
  max-height: 110px;
  overflow-y: auto;
}

.mini-bar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-bar-item:last-child {
  border-bottom: none;
}

.btn-table-action {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-table-start {
  background: #059669;
  color: #ffffff;
}

.btn-table-start:hover {
  background: #10b981;
}

.btn-table-pause {
  background: #d97706;
  color: #ffffff;
}

.btn-table-pause:hover {
  background: #f59e0b;
}

.btn-table-beer {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-table-beer:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #34d399;
}

.btn-table-checkout {
  background: #2563eb;
  color: #ffffff;
}

.btn-table-checkout:hover {
  background: #3b82f6;
}

/* Calculadora de Liquidación de Mesa */
.checkout-calc-card {
  background: var(--billar-card);
  border: 1px solid var(--billar-border);
  border-radius: 16px;
  padding: 24px;
}

.split-pill-group {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 10px;
}

.split-pill {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.split-pill.active {
  background: #059669;
  color: #ffffff;
}

.receipt-box {
  background: #0b1119;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 16px;
  font-family: monospace;
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* Indicadores de Turno Nocturno y Stock */
.turn-stat-card {
  background: var(--billar-card);
  border: 1px solid var(--billar-border);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
}

.turn-stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
}

/* Tabla Comparativa */
.billar-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--billar-card);
  border: 1px solid var(--billar-border);
  border-radius: 14px;
  overflow: hidden;
}

.billar-compare-table th {
  background: #14202d;
  padding: 16px;
  font-size: 0.95rem;
  color: #ffffff;
  border-bottom: 1px solid var(--billar-border);
}

.billar-compare-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.billar-compare-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-billar-item {
  background: var(--billar-card);
  border: 1px solid var(--billar-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-billar-item.active {
  border-color: #10b981;
}

.faq-billar-header {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-billar-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
}

.faq-billar-icon {
  color: #10b981;
  transition: transform 0.3s ease;
}

.faq-billar-item.active .faq-billar-icon {
  transform: rotate(180deg);
}

.faq-billar-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0 22px;
}

.faq-billar-item.active .faq-billar-body {
  max-height: 350px;
  padding: 16px 22px 20px 22px;
}
