/* Portal negocio — marca Care/Manager + Liquid Glass */
@import url('/assets/css/portal-brand.css');

:root {
  --ng-gold: var(--la-gold);
  --ng-gold2: var(--la-gold-hover);
  --ng-purple: var(--la-brand); /* legacy → azul marca */
  --ng-primary: var(--la-brand);
  --ng-dark: var(--la-text);
  --ng-bg: var(--la-bg);
  --ng-card: var(--la-glass-solid);
  --ng-border: var(--la-border);
  --ng-muted: var(--la-muted);
  --ng-text: var(--la-text);
  --ng-radius: var(--la-radius);
  --ng-shadow: var(--la-glass-shadow);
  --ng-max: var(--la-max);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--ng-bg);
  color: var(--ng-text);
  transition: background 0.25s ease, color 0.25s ease;
}

/* ── Header ── */
.ng-header {
  position: sticky; top: 0; z-index: 120;
  display: flex; align-items: center; gap: 12px;
  padding: 12px clamp(16px, 3vw, 32px);
  background: var(--la-glass);
  backdrop-filter: var(--la-blur);
  -webkit-backdrop-filter: var(--la-blur);
  border-bottom: 1px solid var(--la-glass-border);
}
.ng-header-left { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.ng-logo-text {
  font-size: 18px; font-weight: 800; color: var(--ng-gold); letter-spacing: -0.03em;
}
.ng-btn-back {
  border: 1px solid var(--ng-border); background: #fff; color: var(--ng-muted);
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.ng-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ng-lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid var(--ng-border);
}
.ng-lang button {
  border: none; background: transparent; font-size: 11px; font-weight: 800;
  padding: 5px 9px; border-radius: 999px; cursor: pointer; color: var(--ng-muted);
}
.ng-lang button.active { background: var(--ng-purple); color: #fff; }

.ngb {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; font-weight: 700; border-radius: 10px;
  font-family: inherit; transition: transform 0.15s;
}
.ngb-gold { background: var(--ng-gold); color: #1a1200; }
.ngb-gold:hover { background: var(--ng-gold2); transform: translateY(-1px); }
.ngb-dark { background: #fff; color: var(--ng-text); border: 1px solid var(--ng-border); }
.ngb-purple { background: var(--ng-purple); color: #fff; }
.ngb-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.ngb-md { height: 40px; padding: 0 16px; font-size: 14px; }
.ngb-lg { height: 48px; padding: 0 24px; font-size: 15px; }

.ng-guest-actions, .ng-user-menu { display: flex; align-items: center; gap: 8px; }
.ng-user-chip { display: flex; align-items: center; gap: 8px; }
.ng-user-chip img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--ng-gold);
}
.ng-user-chip-text strong { display: block; font-size: 13px; }
.ng-user-chip-text span { font-size: 11px; color: var(--ng-muted); }

/* ── Hero ── */
.ng-hero { position: relative; min-height: 360px; overflow: hidden; }
.ng-hero-cover { position: absolute; inset: 0; }
.ng-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.ng-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.72) 48%,
    rgba(0, 0, 0, 0.90) 100%
  );
}
.ng-hero-body {
  position: relative; z-index: 2;
  max-width: var(--ng-max); margin: 0 auto;
  padding: clamp(120px, 18vw, 180px) clamp(16px, 3vw, 32px) 28px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.ng-hero-info { display: flex; align-items: flex-end; gap: 18px; min-width: 0; }
.ng-hero-logo {
  width: 84px; height: 84px; border-radius: 18px; overflow: hidden;
  border: 3px solid var(--ng-gold); flex-shrink: 0; background: #111;
}
.ng-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.ng-hero-text h1 {
  margin: 0 0 8px; font-size: clamp(24px, 4vw, 36px); font-weight: 800;
  color: #fff; line-height: 1.08; letter-spacing: -0.02em;
}
.ng-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ng-hero-meta-item { font-size: 13px; color: rgba(255,255,255,.85); }
.ng-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ng-pill {
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600;
}
.ng-pill-gold { background: rgba(212,168,67,.25); border-color: rgba(212,168,67,.45); color: var(--ng-gold); }
.ng-pill-open { background: rgba(16,185,129,.2); border-color: rgba(16,185,129,.4); color: #6ee7b7; }
.ng-pill-closed { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.ng-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Tabs ── */
.ng-tabs-bar {
  position: sticky; top: 61px; z-index: 110;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ng-border); box-shadow: 0 4px 20px rgba(15,23,42,.04);
}
.ng-tabs {
  max-width: var(--ng-max); margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.ng-tabs::-webkit-scrollbar { display: none; }
.ng-tab {
  background: none; border: none; border-bottom: 3px solid transparent;
  color: var(--ng-muted); cursor: pointer; font-size: 13px; font-weight: 600;
  padding: 14px 16px; white-space: nowrap; font-family: inherit; margin-bottom: -1px;
}
.ng-tab:hover { color: var(--ng-text); }
.ng-tab.active { color: var(--ng-purple); border-bottom-color: var(--ng-purple); font-weight: 800; }

/* ── Layout principal + panel reserva ── */
.ng-layout {
  max-width: var(--ng-max); margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 32px) 48px;
  display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start;
}
.ng-main-col { min-width: 0; }
.ng-pane { animation: fadePane .25s ease; }
@keyframes fadePane { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Panel reserva desktop */
.ng-booking-panel {
  position: sticky; top: 130px;
  background: var(--ng-card); border: 1px solid var(--ng-border);
  border-radius: calc(var(--ng-radius) + 2px);
  box-shadow: var(--ng-shadow); padding: 18px;
}
.ng-booking-panel h3 {
  margin: 0 0 4px; font-size: 16px; font-weight: 800;
}
.ng-booking-panel .ng-booking-sub {
  font-size: 12px; color: var(--ng-muted); margin-bottom: 16px;
}
.ng-booking-steps { display: grid; gap: 10px; margin-bottom: 16px; }
.ng-booking-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--ng-border);
  font-size: 13px;
}
.ng-booking-step.done { border-color: rgba(124,58,237,.25); background: rgba(124,58,237,.06); }
.ng-booking-step-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: #e2e8f0; color: var(--ng-muted);
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.ng-booking-step.done .ng-booking-step-num {
  background: var(--ng-purple); color: #fff;
}
.ng-booking-step-body { min-width: 0; }
.ng-booking-step-body strong { display: block; font-size: 12px; color: var(--ng-muted); font-weight: 600; }
.ng-booking-step-body span { display: block; font-weight: 700; color: var(--ng-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Portal cliente (logueado) */
.ng-client-bar {
  display: none; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(212,168,67,.08));
  border: 1px solid rgba(124,58,237,.15); border-radius: var(--ng-radius); padding: 14px 16px;
}
.ng-client-bar.visible { display: block; }
.ng-client-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.ng-client-nav button {
  border: 1px solid var(--ng-border); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ng-text);
}
.ng-client-nav button.active {
  background: var(--ng-purple); border-color: var(--ng-purple); color: #fff;
}
.ng-client-panel {
  margin-top: 14px; padding: 14px; background: #fff;
  border-radius: 12px; border: 1px solid var(--ng-border); display: none;
}
.ng-client-panel.open { display: block; }
.ng-cita-item {
  padding: 12px 0; border-bottom: 1px solid var(--ng-border);
  display: flex; justify-content: space-between; gap: 10px; font-size: 13px;
}
.ng-cita-item:last-child { border-bottom: none; }

/* Servicios, promos, etc. */
.ng-servicios-list { display: grid; gap: 14px; }
.ng-srv-card {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  background: var(--ng-card); border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius); padding: 16px; transition: box-shadow .15s, border-color .15s;
}
.ng-srv-card:hover { box-shadow: var(--ng-shadow); border-color: rgba(124,58,237,.2); }
.ng-srv-thumb { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #e5e7eb; }
.ng-srv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ng-srv-info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.ng-srv-info p { margin: 0 0 8px; font-size: 13px; color: var(--ng-muted); line-height: 1.45; }
.ng-srv-price { font-size: 20px; font-weight: 800; color: var(--ng-gold); }
.ng-srv-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.ng-product-grid { display: grid; gap: 14px; }
.ng-product-card {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  background: var(--ng-card); border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius); padding: 14px; transition: box-shadow .15s, border-color .15s;
}
.ng-product-card:hover { box-shadow: var(--ng-shadow); border-color: rgba(124,58,237,.2); }
.ng-product-thumb { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #e5e7eb; }
.ng-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ng-product-meta {
  display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800;
  color: var(--ng-purple); text-transform: uppercase;
}
.ng-product-body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.ng-product-body p { margin: 0 0 8px; font-size: 13px; color: var(--ng-muted); line-height: 1.4; }
.ng-product-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-product-badge {
  border: 1px solid rgba(15,23,42,.08); background: #f8fafc; color: var(--ng-muted);
  border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700;
}
.ng-product-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ng-product-action strong { font-size: 19px; color: var(--ng-gold); }
.ng-product-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.ng-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ng-promo-card {
  background: var(--ng-card); border: 1px solid var(--ng-border); border-radius: var(--ng-radius);
  overflow: hidden; cursor: pointer; transition: transform .15s;
}
.ng-promo-card:hover { transform: translateY(-2px); box-shadow: var(--ng-shadow); }
.ng-promo-cover { aspect-ratio: 16/10; background: #e5e7eb; position: relative; }
.ng-promo-cover img { width: 100%; height: 100%; object-fit: cover; }
.ng-promo-body { padding: 14px; }
.ng-promo-body h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }

.ng-prof-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.ng-prof-card {
  background: var(--ng-card); border: 1px solid var(--ng-border); border-radius: var(--ng-radius);
  padding: 24px 16px; text-align: center;
}
.ng-prof-avatar-wrap img, .ng-prof-initials {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  border: 3px solid var(--ng-gold); object-fit: cover;
}
.ng-prof-initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ng-gold), var(--ng-gold2)); font-weight: 800;
}

.ng-galeria-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.ng-galeria-item, .ngv2-galeria-item {
  aspect-ratio: 1; border-radius: var(--ng-radius); overflow: hidden; background: #e5e7eb;
}
.ng-galeria-item img, .ngv2-galeria-item img { width: 100%; height: 100%; object-fit: cover; }

.ng-reviews-header {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--ng-card); border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius); padding: 20px; margin-bottom: 16px;
}
.ng-reviews-score-num { font-size: 2.5rem; font-weight: 800; color: var(--ng-gold); }
.ng-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ng-review-card {
  background: var(--ng-card); border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius); padding: 16px;
}

.ng-map-box {
  height: 320px; border-radius: var(--ng-radius); overflow: hidden;
  border: 1px solid var(--ng-border); background: #e5e7eb;
}
.ng-map-meta { margin-top: 14px; font-size: 14px; color: var(--ng-muted); line-height: 1.6; }

.ng-inicio-grid { display: grid; gap: 24px; }
.ng-inicio-block h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }

.ng-empty, .loading-card {
  text-align: center; padding: 40px 16px; color: var(--ng-muted);
  background: var(--ng-card); border: 1px dashed var(--ng-border); border-radius: var(--ng-radius);
}

/* Bottom sheet móvil */
.ng-booking-sheet {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,.15); padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 45vh; overflow-y: auto;
}
.ng-booking-sheet-handle {
  width: 40px; height: 4px; background: #cbd5e1; border-radius: 999px; margin: 0 auto 12px;
}
.ng-sheet-close {
  float: right; border: none; background: none; font-size: 18px; cursor: pointer; color: var(--ng-muted);
}
.ng-booking-sheet h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.ng-mobile-booking-fab {
  display: none; position: fixed; bottom: 20px; right: 16px; z-index: 150;
  padding: 14px 20px; border-radius: 999px; border: none;
  background: var(--ng-purple); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 28px rgba(124,58,237,.4);
}

.ng-footer {
  background: #fff; border-top: 1px solid var(--ng-border);
  padding: 24px clamp(16px, 3vw, 32px);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.ng-footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.ng-footer-links a { color: var(--ng-muted); }
.ng-footer-links a:hover { color: var(--ng-purple); }

@media (max-width: 960px) {
  .ng-layout { grid-template-columns: 1fr; }
  .ng-booking-panel { display: none; }
  .ng-mobile-booking-fab { display: inline-flex; }
  .ng-booking-sheet.open { display: block; }
  .ng-srv-card { grid-template-columns: 72px 1fr; }
  .ng-srv-action { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; width: 100%; }
  .ng-product-card { grid-template-columns: 72px 1fr; }
  .ng-product-thumb { width: 72px; height: 72px; }
  .ng-product-action { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; width: 100%; }
}

@media (max-width: 640px) {
  .ng-hero-body { flex-direction: column; align-items: flex-start; padding-top: 100px; }
  .ng-hero-logo { width: 64px; height: 64px; }
}

.ng-reservas-disabled-banner {
  margin: 0;
  padding: 14px 20px;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.ng-reservas-disabled-banner p { margin: 0; }

.ng-promo-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.ng-promo-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55);
}
.ng-promo-modal-card {
  position: relative; z-index: 1; width: min(520px, 100%);
  max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px;
  box-shadow: var(--ng-shadow); border: 1px solid var(--ng-border);
}
.ng-promo-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.92); font-size: 22px; cursor: pointer;
}
.ng-promo-modal-cover img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 20px 20px 0 0;
}
.ng-promo-modal-body { padding: 22px 24px 28px; }
.ng-promo-modal-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ng-purple); margin-bottom: 8px;
}
.ng-promo-modal-body h2 { margin: 0 0 10px; font-size: 24px; }
.ng-promo-modal-body p { margin: 0 0 12px; color: var(--ng-muted); line-height: 1.55; }
.ng-promo-modal-price { display: block; font-size: 22px; color: var(--ng-gold); margin-bottom: 12px; }
.ng-promo-modal-list { margin: 0 0 14px 18px; color: var(--ng-text); }
.ng-promo-modal-note { font-size: 13px; color: var(--ng-muted); }
