/* ===== Lista de Precios ===== */

.lp-page {
  min-height: 100vh;
  padding-top: var(--header-h);
  position: relative;
  z-index: 5;
}

.lp-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 36px 100px;
}

.lp-hero { margin-bottom: 36px; }
.lp-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.38;
  margin-bottom: 16px;
}
.lp-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.lp-lead {
  font-size: 0.95rem;
  opacity: 0.55;
  max-width: 620px;
  line-height: 1.6;
}

/* ── Stat tiles ── */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.lp-stat {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 18px 20px;
}
.lp-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #E8B84B;
  line-height: 1.1;
}
.lp-stat-label {
  font-size: 0.72rem;
  opacity: 0.5;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ── Toolbar: search + sort ── */
.lp-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lp-search {
  flex: 1 1 280px;
  position: relative;
}
.lp-search input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px 12px 40px;
  color: white;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.lp-search input::placeholder { color: rgba(255,255,255,0.35); }
.lp-search input:focus {
  border-color: rgba(232,184,75,0.5);
  background: rgba(255,255,255,0.06);
}
.lp-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  pointer-events: none;
}
.lp-sort select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.lp-sort select:focus { border-color: rgba(232,184,75,0.5); }
.lp-sort select option { background: #111; color: white; }

/* ── Brand chips ── */
.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.75);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lp-chip:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
  color: white;
}
.lp-chip.active {
  background: rgba(232,184,75,0.16);
  border-color: rgba(232,184,75,0.55);
  color: #E8B84B;
  font-weight: 700;
}
.lp-chip.pending {
  opacity: 0.55;
}
.lp-chip.pending:hover { opacity: 0.85; }
.lp-chip-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
}
.lp-chip-badge.ready  { background: rgba(30,170,85,0.22); color: #4ade80; }
.lp-chip-badge.soon   { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.5); }

/* ── Table ── */
.lp-table-wrap {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  margin-bottom: 24px;
}
.lp-table-scroll { overflow-x: auto; }
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.lp-table thead tr { background: rgba(255,255,255,0.03); }
.lp-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.lp-table th.lp-th-num { text-align: right; }
.lp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.lp-table tbody tr:last-child td { border-bottom: none; }
.lp-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.lp-vehicle-name { font-weight: 600; color: white; }
.lp-vehicle-sub  { font-size: 0.76rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

.lp-td-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-price-old {
  display: block;
  text-decoration: line-through;
  color: rgba(255,255,255,0.35);
  font-size: 0.76rem;
}
.lp-price-final {
  display: block;
  color: #E8B84B;
  font-weight: 700;
  font-size: 0.95rem;
}
.lp-price-final.no-discount { color: white; font-weight: 600; }

.lp-ahorro { color: #4ade80; font-weight: 600; }
.lp-ahorro-empty { color: rgba(255,255,255,0.25); }

.lp-actions { display: flex; gap: 6px; justify-content: flex-end; }
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.lp-btn--cotizar {
  background: #F2762E;
  color: #fff;
}
.lp-btn--cotizar:hover { background: #ff8a42; transform: translateY(-1px); }
.lp-btn--whatsapp {
  background: #25D366;
  color: #06210f;
}
.lp-btn--whatsapp:hover { background: #35e879; transform: translateY(-1px); }

/* ── Empty / info states ── */
.lp-empty {
  padding: 60px 32px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}
.lp-empty a {
  color: #E8B84B;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,184,75,0.4);
}
.lp-empty a:hover { border-color: #E8B84B; }

/* ── Availability cards ── */
.lp-avail-section { margin-top: 44px; }
.lp-avail-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.lp-avail-lead {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-bottom: 18px;
  max-width: 560px;
  line-height: 1.6;
}
.lp-avail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.lp-avail-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 18px 20px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.lp-avail-card.flash {
  border-color: rgba(232,184,75,0.6);
  box-shadow: 0 0 0 3px rgba(232,184,75,0.15);
}
.lp-avail-brand {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.lp-avail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
}
.lp-avail-row:last-child { border-bottom: none; }
.lp-avail-model { color: rgba(255,255,255,0.85); }
.lp-avail-year  { color: rgba(255,255,255,0.4); font-size: 0.76rem; }

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}
.lp-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp-pill--ok      { background: rgba(30,170,85,0.15);  color: #4ade80; }
.lp-pill--ok::before      { background: #4ade80; }
.lp-pill--low      { background: rgba(232,184,75,0.15); color: #E8B84B; }
.lp-pill--low::before      { background: #E8B84B; }
.lp-pill--none      { background: rgba(215,55,55,0.15);  color: #f87171; }
.lp-pill--none::before      { background: #f87171; }

/* ── Legal notice ── */
.lp-legal {
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  font-size: 0.74rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}
.lp-legal strong { color: rgba(255,255,255,0.6); }

/* ── Loading ── */
.lp-loading {
  padding: 100px 0;
  text-align: center;
  opacity: 0.4;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 40px 18px 80px; }
  .lp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-stat { padding: 14px 16px; }
  .lp-stat-value { font-size: 1.25rem; }
  .lp-actions { flex-direction: column; }
}

/* ── Cotizador modal ── */
.lp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,7,12,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.lp-modal-overlay.open { display: flex; }

.lp-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  background: #10131f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}

.lp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.lp-modal-close:hover { background: rgba(255,255,255,0.12); color: white; }

.lp-quote-vehicle { margin-bottom: 20px; padding-right: 30px; }
.lp-quote-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E8B84B;
  margin-bottom: 8px;
  font-weight: 700;
}
.lp-quote-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.lp-quote-sub  { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 3px; }

.lp-quote-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.lp-plan-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.75);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.lp-plan-btn span { font-size: 0.68rem; font-weight: 400; color: rgba(255,255,255,0.4); }
.lp-plan-btn:hover { border-color: rgba(255,255,255,0.28); }
.lp-plan-btn.active {
  background: rgba(232,184,75,0.14);
  border-color: rgba(232,184,75,0.55);
  color: #E8B84B;
}
.lp-plan-btn.active span { color: rgba(232,184,75,0.7); }
.lp-plan-btn:disabled { cursor: not-allowed; opacity: 0.55; }

.lp-quote-slider-wrap { margin-bottom: 20px; }
.lp-quote-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.lp-quote-slider-label strong { color: #E8B84B; font-size: 0.85rem; }
.lp-quote-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: #E8B84B;
  cursor: pointer;
}
.lp-quote-slider-wrap input[type="range"]:disabled { cursor: not-allowed; opacity: 0.5; }

.lp-quote-results {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.lp-quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
}
.lp-quote-row:last-child { border-bottom: none; }
.lp-quote-row strong { color: white; font-variant-numeric: tabular-nums; }
.lp-quote-row--main {
  background: rgba(232,184,75,0.1);
}
.lp-quote-row--main span { color: #E8B84B; font-weight: 600; }
.lp-quote-row--main strong { color: #E8B84B; font-size: 1.15rem; font-weight: 700; }

.lp-quote-legal {
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}

.lp-quote-actions { display: flex; flex-direction: column; gap: 8px; }
.lp-quote-full { width: 100%; justify-content: center; padding: 13px 18px; font-size: 0.78rem; }
.lp-quote-send-actions { display: flex; flex-direction: column; gap: 8px; }
.lp-quote-edit-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  padding: 6px;
  text-align: center;
}
.lp-quote-edit-btn:hover { color: rgba(255,255,255,0.75); }

@media (max-width: 520px) {
  .lp-modal { padding: 24px 18px 20px; max-width: 100%; }
}
