/* Velcar — public marketplace (premium, mobile-first) */
:root {
  --pm-ink: #0b1220;
  --pm-muted: #64748b;
  --pm-line: #e2e8f0;
  --pm-bg: #f4f7fb;
  --pm-card: #fff;
  --pm-accent: #0d9488;
  --pm-accent-2: #0f766e;
  --pm-pro: #1d4ed8;
  --pm-priv: #b45309;
  --pm-radius: 16px;
  --pm-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --pm-shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.1);
}
* { box-sizing: border-box; }
body.pm-page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--pm-ink);
  background: var(--pm-bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.pm-wrap { max-width: 1180px; margin: 0 auto; padding: 14px 16px 56px; }
.pm-top {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 18px; padding: 8px 0 14px; border-bottom: 1px solid var(--pm-line);
  position: sticky; top: 0; z-index: 40; background: rgba(244,247,251,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pm-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.pm-brand img { height: 36px; width: 36px; object-fit: contain; }
.pm-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.pm-nav a, .pm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--pm-line);
  background: var(--pm-card); font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.pm-nav a:hover, .pm-btn:hover { border-color: #cbd5e1; }
.pm-nav-cta, .pm-btn-primary {
  background: var(--pm-accent); color: #fff; border-color: var(--pm-accent);
}
.pm-nav-cta:hover, .pm-btn-primary:hover { background: var(--pm-accent-2); border-color: var(--pm-accent-2); }
.pm-btn-lg { min-height: 48px; padding: 12px 18px; font-size: 1rem; border-radius: 14px; }
.pm-btn-block { width: 100%; }
.pm-btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.pm-btn-whatsapp:hover { background: #1ebe57; border-color: #1ebe57; }
.pm-btn-ghost { background: transparent; color: var(--pm-muted); border-color: transparent; }
.pm-btn-ghost:hover { color: var(--pm-ink); background: #fff; border-color: var(--pm-line); }

.pm-h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -0.02em; }
.pm-kicker {
  display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px;
  background: #ecfdf5; color: #047857; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pm-meta { font-size: 0.85rem; color: var(--pm-muted); }
.pm-pre { margin: 0; white-space: pre-wrap; }

/* Hero / home */
.pm-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: stretch;
  margin: 8px 0 28px;
}
@media (max-width: 900px) { .pm-hero { grid-template-columns: 1fr; } }
.pm-hero-copy {
  background: linear-gradient(145deg, #0f766e 0%, #0b1220 70%);
  color: #fff; border-radius: 22px; padding: 28px 24px; box-shadow: var(--pm-shadow);
}
.pm-hero-copy h1 {
  margin: 0 0 10px; font-size: clamp(1.6rem, 4vw, 2.35rem); line-height: 1.15; letter-spacing: -0.03em;
}
.pm-hero-lead { margin: 0 0 18px; color: rgba(255,255,255,.86); font-size: 1.02rem; max-width: 36ch; }
.pm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-hero-copy .pm-btn { background: #fff; color: var(--pm-ink); border-color: #fff; }
.pm-hero-copy .pm-btn-primary { background: var(--pm-accent); color: #fff; border-color: transparent; }
.pm-hero-stat { margin-top: 16px; color: rgba(255,255,255,.7); }
.pm-hero-search {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 22px;
  padding: 18px; box-shadow: var(--pm-shadow);
}
.pm-hero-search h2 { margin: 0 0 12px; font-size: 1.05rem; }
.pm-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 14px;
}
@media (max-width: 520px) { .pm-hero-grid { grid-template-columns: 1fr; } }
.pm-hero-search label, .pm-filters label {
  display: block; font-size: 0.78rem; font-weight: 700; margin: 0 0 4px; color: var(--pm-muted);
}
.pm-hero-search input, .pm-hero-search select,
.pm-filters input, .pm-filters select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--pm-line); font: inherit; background: #fff;
}
.pm-filters select:disabled { opacity: 0.55; background: #f8fafc; }

.pm-section { margin: 28px 0; }
.pm-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.pm-section-head h2, .pm-section > h2, .pm-landing h1, .pm-landing h2 {
  margin: 0; letter-spacing: -0.02em;
}
.pm-section-head a { color: var(--pm-accent); font-weight: 700; font-size: 0.92rem; }

.pm-make-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.pm-make-chip {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pm-make-chip:hover { transform: translateY(-2px); box-shadow: var(--pm-shadow); }
.pm-make-chip span { font-size: 0.8rem; color: var(--pm-muted); }

.pm-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px;
}
@media (max-width: 800px) { .pm-why-grid { grid-template-columns: 1fr; } }
.pm-why-grid article, .pm-panel, .pm-plans-teaser {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: var(--pm-radius);
  padding: 16px; box-shadow: var(--pm-shadow);
}
.pm-why-grid h3 { margin: 0 0 6px; font-size: 1rem; }
.pm-why-grid p { margin: 0; color: var(--pm-muted); font-size: 0.92rem; }

.pm-pro-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(120deg, #ecfeff, #f8fafc); border: 1px solid #a5f3fc;
  border-radius: 20px; padding: 22px;
}
.pm-pro-cta h2 { margin: 0 0 6px; }
.pm-pro-cta p { margin: 0; color: var(--pm-muted); max-width: 48ch; }

.pm-faq details {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px;
}
.pm-faq summary { cursor: pointer; font-weight: 700; }
.pm-faq p { margin: 8px 0 0; color: var(--pm-muted); }

.pm-seo-hero {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 20px;
  padding: 22px 20px; margin-bottom: 8px; box-shadow: var(--pm-shadow);
}
.pm-seo-hero h1 {
  margin: 0 0 10px; font-size: clamp(1.45rem, 3.5vw, 2rem); letter-spacing: -0.03em;
}
.pm-seo-hero .pm-hero-lead { color: var(--pm-muted); max-width: 62ch; }
.pm-make-grid-lg { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.pm-landing { max-width: 820px; margin: 8px auto 24px; }
.pm-landing .pm-hero-lead { max-width: 54ch; color: var(--pm-muted); }
.pm-plans-teaser { margin-top: 28px; text-align: center; }

/* Catalog layout */
.pm-catalog-top {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between;
  margin-bottom: 14px;
}
.pm-catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
@media (max-width: 860px) {
  .pm-layout { grid-template-columns: 1fr; }
  .pm-filters {
    position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 85vh; overflow: auto;
    border-radius: 18px 18px 0 0; transform: translateY(110%);
    transition: transform .22s ease; margin: 0; box-shadow: 0 -12px 40px rgba(15,23,42,.18);
  }
  .pm-filters.is-open { transform: translateY(0); }
  .pm-filters-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 55;
  }
  .pm-filters-close { display: inline-flex !important; }
}
.pm-filters {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: var(--pm-radius);
  padding: 14px; height: fit-content; position: sticky; top: 72px;
}
.pm-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pm-filters h2 { margin: 0 0 10px; font-size: 1rem; }
.pm-advanced { margin-top: 12px; border-top: 1px solid var(--pm-line); padding-top: 8px; }
.pm-advanced summary {
  cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--pm-ink); margin-bottom: 6px;
}
.pm-results-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.pm-sort-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--pm-muted); }
.pm-sort-label select {
  min-height: 40px; border-radius: 10px; border: 1px solid var(--pm-line); padding: 8px 10px; font: inherit; background: #fff;
}

/* Cards */
.pm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.pm-card {
  position: relative;
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); overflow: hidden;
  box-shadow: var(--pm-shadow); display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease;
}
.pm-card:hover { transform: translateY(-3px); box-shadow: var(--pm-shadow-hover); }
.pm-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.pm-card-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.94); color: #94a3b8; font-size: 1.1rem;
  cursor: pointer; box-shadow: 0 2px 8px rgba(15,23,42,.12);
}
.pm-card-fav.is-fav, .pm-fav-btn.is-fav { color: #e11d48; }
.pm-fav-count {
  display: inline-block; min-width: 1.2em; padding: 0 6px; margin-left: 2px;
  border-radius: 999px; background: #e11d48; color: #fff; font-size: 0.75rem; font-weight: 700;
}
.pm-card-img-wrap { position: relative; background: #e2e8f0; }
.pm-card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e2e8f0;
}
.pm-card-badges {
  position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px;
}
.pm-card .pm-card-badges { /* on image */ }
.pm-pill {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  background: rgba(255,255,255,.92); color: var(--pm-ink);
}
.pm-pill-new { background: #dcfce7; color: #166534; }
.pm-pill-drop { background: #fee2e2; color: #991b1b; }
.pm-pill-pro { background: #dbeafe; color: var(--pm-pro); }
.pm-pill-priv { background: #ffedd5; color: var(--pm-priv); }
.pm-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pm-price { font-size: 1.2rem; font-weight: 800; color: var(--pm-ink); }
.pm-price-was {
  margin-left: 8px; font-size: 0.85rem; font-weight: 600; color: var(--pm-muted);
  text-decoration: line-through;
}
.pm-title { font-weight: 700; font-size: 0.95rem; }
.pm-card-specs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.pm-card-specs span {
  font-size: 0.75rem; font-weight: 600; color: var(--pm-muted);
  background: #f1f5f9; border-radius: 999px; padding: 3px 8px;
}
.pm-badge {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.pm-badge-pro { background: #dbeafe; color: var(--pm-pro); }
.pm-badge-private { background: #ffedd5; color: var(--pm-priv); }
.pm-empty { padding: 40px 16px; text-align: center; color: var(--pm-muted); }

/* Detail */
.pm-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 0.85rem; color: var(--pm-muted); margin: 0 0 14px;
}
.pm-breadcrumb a { color: var(--pm-accent); font-weight: 600; }
.pm-detail-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; }
@media (max-width: 900px) { .pm-detail-grid { grid-template-columns: 1fr; } }
.pm-gallery { display: grid; gap: 8px; }
.pm-gallery-main {
  aspect-ratio: 16/10; border-radius: 18px; background: #e2e8f0 center/cover no-repeat;
  border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow);
}
.pm-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-thumbs button {
  width: 76px; height: 56px; border-radius: 10px; border: 1px solid var(--pm-line);
  background-size: cover; background-position: center; cursor: pointer; padding: 0;
}
.pm-side, .pm-panel {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: var(--pm-radius);
  padding: 16px; height: fit-content;
}
.pm-detail-side { position: sticky; top: 72px; }
.pm-panel { margin-top: 14px; }
.pm-panel h2 { margin: 0 0 8px; font-size: 1rem; }
.pm-side .pm-price { font-size: 1.7rem; }
.pm-detail-title { margin: 6px 0 8px; font-size: 1.2rem; letter-spacing: -0.02em; }
.pm-side-h { margin: 16px 0 6px; font-size: 0.95rem; }
.pm-specs { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 6px; }
.pm-specs th { text-align: left; color: var(--pm-muted); font-weight: 600; padding: 6px 0; width: 42%; }
.pm-specs td { padding: 6px 0; }
.pm-cta-stack { display: grid; gap: 8px; margin: 14px 0 4px; }
.pm-ref-box {
  margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px;
  background: #ecfdf5; border: 1px solid #a7f3d0;
}
.pm-ref-label { font-size: 0.75rem; font-weight: 700; color: #047857; text-transform: uppercase; letter-spacing: .04em; }
.pm-ref-value { font-size: 1.25rem; font-weight: 800; font-family: ui-monospace, monospace; margin-top: 2px; }
.pm-sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--pm-line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(15,23,42,.08);
  align-items: center; justify-content: space-between; gap: 10px;
}
.pm-sticky-actions { display: flex; gap: 8px; }
.pm-sticky-price { font-weight: 800; font-size: 1.1rem; }
@media (max-width: 900px) {
  .pm-sticky-cta { display: flex; }
  .pm-detail-side { position: static; }
  body.pm-page { padding-bottom: 72px; }
}

.field-hint { display:block; margin-top:4px; font-size:0.78rem; color:var(--text-secondary,#64748b); font-weight:500; }
.pm-equip { margin:0; padding-left:18px; columns:2; gap:24px; font-size:0.9rem; }
@media (max-width:700px){ .pm-equip { columns:1; } }
.pm-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.pm-partner-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 14px;
  padding: 16px; box-shadow: var(--pm-shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pm-partner-card:hover { transform: translateY(-2px); box-shadow: var(--pm-shadow-hover); }
.pm-partner-name { font-weight: 800; font-size: 1.05rem; }
.pm-partner-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.pm-partner-cta { margin-top: 8px; font-weight: 700; color: var(--pm-accent); font-size: 0.9rem; }

.pm-form {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 14px;
  padding: 18px; max-width: 640px; margin: 0 auto;
}
.pm-form label { display: block; font-size: 0.85rem; font-weight: 600; margin: 12px 0 4px; }
.pm-form input, .pm-form select, .pm-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--pm-line); font: inherit;
}
.pm-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pm-alert { padding: 10px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; margin-bottom: 12px; font-size: 0.9rem; }
.pm-alert-err { background: #fee2e2; color: #991b1b; }
.pm-my-list { list-style: none; padding: 0; margin: 16px 0 0; }
.pm-my-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--pm-line);
}

/* Footer */
.pm-footer {
  margin-top: 24px; background: #0b1220; color: #e2e8f0; padding: 36px 16px 24px;
}
.pm-footer a { color: #cbd5e1; }
.pm-footer a:hover { color: #fff; }
.pm-footer-inner { max-width: 1180px; margin: 0 auto; }
.pm-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px;
}
@media (max-width: 800px) { .pm-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pm-footer-grid { grid-template-columns: 1fr; } }
.pm-footer-brand { font-size: 1.15rem; }
.pm-footer p { color: #94a3b8; font-size: 0.92rem; max-width: 34ch; }
.pm-footer ul { list-style: none; padding: 0; margin: 8px 0 0; }
.pm-footer li { margin: 6px 0; font-size: 0.9rem; }
.pm-footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid #1e293b; font-size: 0.85rem; color: #94a3b8;
}
.pm-social { display: flex; gap: 12px; }
.pm-social a { font-weight: 600; }

.pm-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 16px 0 8px;
}
.pm-stat {
  background: var(--pm-card); border: 1px solid var(--pm-line); border-radius: 14px;
  padding: 14px; text-align: center; box-shadow: var(--pm-shadow);
}
.pm-stat strong { display: block; font-size: 1.4rem; letter-spacing: -0.02em; }
.pm-stat span { font-size: 0.8rem; color: var(--pm-muted); font-weight: 600; }

.pm-contact-form, .pm-report, .pm-inline-form {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pm-line);
}
.pm-contact-form label, .pm-report label, .pm-inline-form label {
  display: block; font-size: 0.8rem; font-weight: 700; margin: 8px 0 4px; color: var(--pm-muted);
}
.pm-contact-form input, .pm-contact-form textarea, .pm-contact-form select,
.pm-report input, .pm-report textarea, .pm-report select,
.pm-inline-form input, .pm-inline-form select {
  width: 100%; min-height: 42px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--pm-line); font: inherit; background: #fff;
}
.pm-report summary { cursor: pointer; font-weight: 700; color: var(--pm-muted); margin-top: 10px; }

.pm-compare-wrap { overflow-x: auto; }
.pm-compare-table { width: 100%; border-collapse: collapse; background: var(--pm-card); border-radius: 14px; }
.pm-compare-table th, .pm-compare-table td {
  border: 1px solid var(--pm-line); padding: 10px; vertical-align: top; text-align: left; font-size: 0.9rem;
}
.pm-compare-table thead th { min-width: 160px; }
.pm-compare-table img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.pm-compare-actions { margin-bottom: 12px; }

.pm-guide-list { display: grid; gap: 10px; }
.pm-guide-card {
  display: block; background: var(--pm-card); border: 1px solid var(--pm-line);
  border-radius: 14px; padding: 16px; box-shadow: var(--pm-shadow);
}
.pm-guide-card:hover { box-shadow: var(--pm-shadow-hover); }
.pm-guide-article { max-width: 760px; }
.pm-guide-article .pm-panel { margin: 16px 0; }
.pm-guide-article h2 { margin: 0 0 8px; font-size: 1.15rem; }
