/* ============================================================
   MODAL GENÉRICO: Marcas / entidades aliadas
   ============================================================ */
.vehmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(14, 48, 32, 0.62);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vehmodal-overlay.is-open { display: flex; }
body.vehmodal-lock { overflow: hidden; }

.vehmodal-panel {
  width: 100%;
  max-width: 720px;
  max-height: min(88vh, 900px);
  background: var(--cream-100);
  border-radius: 22px;
  box-shadow: var(--lift);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vehmodal-pop .25s ease;
}
@keyframes vehmodal-pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vehmodal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 16px;
  background: var(--pine);
  color: var(--cream);
  flex: 0 0 auto;
}
.vehmodal-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 4px;
}
.vehmodal-title h3 { font-size: 1.3rem; color: var(--cream); }
.vehmodal-close {
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.vehmodal-close:hover { background: rgba(255,255,255,0.26); }

.vehmodal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
}
.vehmodal-intro {
  font-size: .92rem;
  color: var(--ink-600);
  margin-bottom: 18px;
}

/* ---------- Tarjetas de categoría ---------- */
.vehmodal-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 4px;
}
@media (min-width: 620px) {
  .vehmodal-categories { grid-template-columns: 1fr 1fr; }
}

.vehcat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(20,67,44,.12);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.vehcat-card:hover { transform: translateY(-2px); box-shadow: var(--soft); }
.vehcat-card[aria-selected="true"] {
  border-color: var(--coop);
  background: var(--coop-50);
  box-shadow: var(--soft);
}
.vehcat-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-200);
  color: var(--pine);
}
.vehcat-card[aria-selected="true"] .vehcat-icon { background: var(--coop); color: #fff; }
.vehcat-icon svg { width: 24px; height: 24px; }
.vehcat-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.vehcat-text strong { font-size: .96rem; color: var(--ink); }
.vehcat-text span { font-size: .78rem; color: var(--ink-400); }
.vehcat-chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--ink-400);
  transition: transform .2s ease;
}
.vehcat-card[aria-selected="true"] .vehcat-chevron { transform: rotate(180deg); color: var(--coop); }

/* ---------- Panel desplegable de marcas ---------- */
.vehcat-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(20,67,44,.16);
  animation: veh-fade .25s ease;
}
@keyframes veh-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.vehcat-subhead {
  margin: 18px 0 10px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.vehbrand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.vehbrand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(20,67,44,.10);
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.vehbrand-tile:hover {
  border-color: var(--ember);
  box-shadow: var(--soft);
  transform: translateY(-2px);
}
.vehbrand-logowrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehbrand-logo {
  max-width: 44px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.vehbrand-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pine), var(--coop));
}
.vehbrand-name { font-size: .8rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.vehbrand-go {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .68rem;
  color: var(--ember-600);
  font-weight: 600;
}
.vehbrand-go svg { width: 11px; height: 11px; }

.vehmodal-disclaimer {
  margin-top: 20px;
  font-size: .74rem;
  color: var(--ink-400);
  border-top: 1px solid rgba(20,67,44,.08);
  padding-top: 14px;
}

/* ---------- MODAL "MÁS DETALLES" ---------- */
.detmodal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 18px;
}
.detmodal-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.45;
}
.detmodal-check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--coop-50);
  color: var(--coop-700);
  margin-top: 1px;
}
.detmodal-check svg { width: 13px; height: 13px; }

.detmodal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.detmodal-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--cream-200);
  border: 1px solid rgba(20,67,44,.08);
}
.detmodal-chip-label {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.detmodal-chip-value { font-size: .88rem; font-weight: 700; color: var(--pine); }

.detmodal-actions {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed rgba(20,67,44,.16);
}
.detmodal-actions .btn { width: 100%; justify-content: center; }
