/* ─────────────────────────────────────────────────
   PÚBLICO: Landing / Directorio / Ficha de negocio
   Reutiliza tokens de base.css y clases .lp-* de auth.css
───────────────────────────────────────────────── */

/* Compensa la barra superior sticky (y en mobile también la fila de puntos)
   para que scrollIntoView() no deje el inicio de la sección tapado. */
[id^="lp-sec-"] { scroll-margin-top: 68px; }
@media (max-width: 900px) {
  [id^="lp-sec-"] { scroll-margin-top: 116px; }
}

/* ══ LANDING ══════════════════════════════════════ */
.lp-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--bg1) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 380px) {
  .lp-topbar { padding: 8px 12px; gap: 6px; }
  .lp-topbar-login, .lp-topbar-cta { padding: 6px 10px; font-size: 12px; }
}
.lp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 15px;
  color: var(--t1);
}
.lp-topbar-icon { width: 24px; height: 24px; border-radius: 6px; }
.lp-topbar-actions { display: flex; align-items: center; gap: 8px; }
.lp-topbar-link {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--t2); padding: 6px 8px;
}
.lp-topbar-link:hover { color: var(--t1); }
.lp-topbar-login {
  background: none; border: 1px solid var(--border2); cursor: pointer;
  font-size: 13px; color: var(--t1); padding: 7px 14px; border-radius: var(--r2);
  font-family: var(--font-h); font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}
.lp-topbar-login:hover { border-color: var(--p); color: var(--p2); }
.lp-topbar-cta { width: auto; padding: 7px 16px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) {
  .lp-topbar-brand span { display: none; }
  .lp-topbar-link { display: none; }
}

.lp-hero-art {
  border-radius: 0 0 28px 28px;
  padding: 40px 24px 20px;
}
@media (min-width: 700px) {
  .lp-hero-art { padding: 56px 60px 28px; }
}
/* El landing tiene más contenido en el slide 0 que el login (icono+logo+tagline+bajada) —
   anular el height:430px/overflow:hidden fijo que auth.css impone a .login-art en mobile,
   que recortaba el icono/logo del carrusel. */
@media (max-width: 960px) {
  .lp-hero-art {
    height: auto !important;
    overflow: visible;
    padding: 28px 20px 22px;
  }
}

/* Aurora mesh animado, propio del landing (no afecta al login) */
.lp-hero-art::after {
  content: '';
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 25%, rgba(236,72,153,.20) 0%, transparent 42%),
    radial-gradient(circle at 82% 15%, rgba(6,182,212,.20)  0%, transparent 42%),
    radial-gradient(circle at 55% 85%, rgba(124,58,237,.24) 0%, transparent 48%);
  animation: lpAuroraDrift 18s ease-in-out infinite;
  filter: blur(2px);
}
@keyframes lpAuroraDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(3%,-4%) scale(1.08); }
  66%      { transform: translate(-3%,3%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero-art::after { animation: none; }
}

.lp-hero-ctas {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 20px auto 0;
  padding: 0 20px;
}
.lp-hero-btn { width: 50%; }
@media (max-width: 520px) {
  .lp-hero-ctas { flex-direction: column; }
  .lp-hero-btn  { width: 100%; }
}

.lp-search-wrap {
  padding: 24px 20px 0;
  max-width: 560px;
  margin: 0 auto;
}
.lp-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lp-search-box:focus-within {
  border-color: var(--p);
  box-shadow: 0 0 0 4px var(--p3);
}
.lp-search-box .bm-icon { flex-shrink: 0; color: var(--t3); }
.lp-search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--t1);
  font-family: var(--font-b);
  font-size: 14px;
}
.lp-search-box input::placeholder { color: var(--t3); }
.lp-search-btn {
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* ══ NAVEGACIÓN POR PUNTOS ══ (desktop: riel vertical fijo · mobile: barra horizontal) */
.lp-dotnav-label { display: none; }

@media (min-width: 901px) {
  .lp-dotnav {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
  }
  .lp-dotnav::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: var(--border2);
    z-index: -1;
  }
  .lp-dotnav-item {
    position: relative;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg2);
    border: 1px solid var(--border2);
    color: var(--t3);
    cursor: pointer;
    transition: all .25s ease;
    flex-shrink: 0;
  }
  .lp-dotnav-item:hover {
    color: var(--t1);
    border-color: var(--p2);
    transform: scale(1.15);
  }
  .lp-dotnav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--p), var(--c));
    border-color: transparent;
    box-shadow: 0 0 0 4px var(--p3), 0 4px 14px rgba(124,58,237,.4);
    transform: scale(1.2);
  }
  .lp-dotnav-tip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--t1);
    font-family: var(--font-h);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: var(--sh);
  }
  .lp-dotnav-item:hover .lp-dotnav-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Mobile/tablet: fila de puntos compactos (sin texto), pegada bajo el topbar — todos entran sin scroll */
@media (max-width: 900px) {
  .lp-dotnav {
    position: sticky;
    top: 52px;
    z-index: 14;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    background: color-mix(in srgb, var(--bg1) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .lp-dotnav-item {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg2);
    border: 1px solid var(--border2);
    color: var(--t3);
    cursor: pointer;
    transition: all .2s ease;
  }
  .lp-dotnav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--p), var(--c));
    border-color: transparent;
    transform: scale(1.12);
  }
  .lp-dotnav-label,
  .lp-dotnav-tip { display: none; }
}
@media (max-width: 340px) {
  .lp-dotnav { gap: 5px; }
  .lp-dotnav-item { width: 22px; height: 22px; }
}

.lp-page-body {
  padding: 28px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 700px) {
  .lp-page-body { padding: 32px 40px 0; }
}

/* Ritmo visual: secciones alternas con fondo/borde más presente */
.lp-section-alt {
  background: linear-gradient(160deg, var(--bg2), var(--bg3) 160%);
  border-color: var(--border2);
}

/* Bento grid — usado en "Todo lo que necesitas" */
.lp-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.lp-bento > *:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  /* auto-rows:1fr fuerza cada fila a la misma altura sin importar su contenido,
     dejando las tarjetas chicas con medio alto vacío — en mobile cada fila debe
     medir según su propio contenido. */
  .lp-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .lp-bento > *:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .lp-bento { grid-template-columns: 1fr; }
  .lp-bento > *:first-child { grid-column: span 1; }
}

.lp-final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(124,58,237,.14), rgba(6,182,212,.10) 160%), var(--bg2);
  border-color: rgba(124,58,237,.3);
}

/* Planes / precios */
.lp-planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.lp-plan-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.lp-plan-card:hover {
  border-color: var(--p);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(124,58,237,.18);
}
.lp-plan-name {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
}
.lp-plan-price {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 700;
  color: var(--p2);
  margin-bottom: 8px;
}
.lp-plan-price span { font-size: 12px; color: var(--t3); font-weight: 400; }
.lp-plan-desc { font-size: 12px; color: var(--t3); line-height: 1.5; margin-bottom: 10px; }
.lp-plan-perms { display: flex; flex-direction: column; gap: 6px; }
.lp-plan-perm {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--t2);
}
/* Beneficios no incluidos en este plan (comparado con los demás) — al final y en rojo */
.lp-plan-perm-no { color: var(--err); opacity: .85; }
.lp-check-no {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.3);
  color: var(--err);
}

/* Header del plan (nombre+precio) y chevron — el chevron y el colapso solo aplican en mobile */
.lp-plan-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-plan-chevron { display: none; flex-shrink: 0; color: var(--t3); }
/* Resumen de beneficios visible con la tarjeta contraída (mobile) */
.lp-plan-summary {
  display: none;
  font-size: 11.5px;
  color: var(--t2);
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border2);
}
@media (max-width: 700px) {
  .lp-plan-card { padding: 14px 16px; }
  .lp-plan-header { cursor: pointer; }
  .lp-plan-price { margin-bottom: 0; }
  .lp-plan-chevron { display: flex; }
  .lp-plan-summary { display: block; cursor: pointer; }
  .lp-plan-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .2s ease, margin-top .3s ease;
  }
  .lp-plan-body.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
  }
}

/* FAQ acordeón */
.lp-faq { display: flex; flex-direction: column; gap: 8px; }
.lp-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.lp-faq-item.open { border-color: var(--p2); }
.lp-faq-item { transition: border-color .2s ease; }
.lp-faq-item:hover { border-color: var(--border2); }
.lp-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--t1);
}
.lp-faq-a {
  padding: 0 14px 14px;
  font-size: 12px; color: var(--t3);
  line-height: 1.6;
}

/* ══ UBICACIÓN USUARIO ════════════════════════════ */
.ubic-usuario {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px 0;
}
.ubic-usuario-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}
.ubic-usuario-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--t2);
  min-width: 0;
}
.ubic-usuario-label strong { color: var(--t1); }
.ubic-usuario-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ubic-usuario-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: var(--r2);
  padding: 7px 14px;
  font-family: var(--font-b);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.ubic-usuario-btn:hover { opacity: .88; }
.ubic-usuario-btn:disabled { opacity: .6; cursor: not-allowed; }
.ubic-usuario-btn-ghost {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--t2);
}
.ubic-usuario-error {
  font-size: 12px; color: var(--err);
  margin-top: 8px;
}
.ubic-usuario-selector {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.ubic-usuario-selector select { flex: 1; min-width: 140px; margin: 0; }
.ubic-usuario-confirm { width: auto; padding: 10px 18px; margin: 0; }

/* ══ DIRECTORIO ═══════════════════════════════════ */
.dir-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.dir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 4px;
}
.dir-logo {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  cursor: pointer;
  background: linear-gradient(135deg, var(--p2), var(--c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dir-header-title { font-size: 13px; color: var(--t3); }

.dir-search-wrap { padding: 14px 0 6px; }

.dir-filtros {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 18px;
}
.dir-filtros select { width: auto; flex: 1; min-width: 150px; margin: 0; }

.dir-loading { text-align: center; padding: 48px; }

.dir-section { margin-bottom: 24px; }
.dir-section-title {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.dir-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.dir-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.dir-card-img {
  height: 110px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.dir-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dir-badge-agotado {
  position: absolute; top: 6px; right: 6px;
  font-size: 9px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(239,68,68,0.85); color: #fff;
  letter-spacing: 0.3px;
}
.dir-card-body { padding: 10px 12px; }
.dir-card-name {
  font-size: 13px; font-weight: 600; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dir-card-sub {
  font-size: 11px; color: var(--t3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dir-card-desc {
  font-size: 11px; color: var(--t3); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dir-card-dist { font-size: 10px; color: var(--p2); margin-top: 6px; font-weight: 600; }
.dir-card-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.dir-price { font-size: 13px; font-weight: 700; color: var(--p2); }
.dir-price-old { font-size: 11px; color: var(--t3); text-decoration: line-through; }

/* ══ FICHA DE NEGOCIO ═════════════════════════════ */
.np-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.np-header {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0;
}
.np-logo {
  width: 72px; height: 72px; border-radius: 16px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.np-logo img { width: 100%; height: 100%; object-fit: cover; }
.np-header-info { flex: 1; min-width: 0; }
.np-nombre { font-family: var(--font-h); font-size: 22px; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.np-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.np-desc { font-size: 13px; color: var(--t2); line-height: 1.6; }

.np-pv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.np-pv-info {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}
.np-pv-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--t2);
  margin-bottom: 8px;
}
.np-pv-row:last-of-type { margin-bottom: 0; }
.np-pv-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.np-catalogo { margin-top: 8px; }
.np-cat-search { max-width: 400px; margin-bottom: 18px; }

.np-combos {
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(16,185,129,0.12));
  border: 1px solid rgba(34,197,94,0.25);
}
.np-combos-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-h); font-size: 15px; font-weight: 600; color: var(--t1);
  margin-bottom: 4px;
}
.np-combos-note { font-size: 11px; color: var(--t3); margin-bottom: 12px; }
.np-combos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.np-combo-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2);
  padding: 10px 12px;
}
.np-combo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.np-combo-head img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.np-combo-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--t1); }
.np-combo-price { font-family: var(--font-h); font-weight: 700; color: var(--ok); font-size: 14px; white-space: nowrap; }
.np-combo-incluye { display: flex; flex-wrap: wrap; gap: 5px; }
.np-combo-item {
  font-size: 10.5px; color: var(--t2); background: var(--bg3);
  border-radius: 5px; padding: 3px 7px;
}

@media (max-width: 520px) {
  .np-header { flex-direction: column; align-items: center; text-align: center; }
}
