/* AutoAndino Motos — complemento de styles.css (copia exacta del diseño de carros).
   Solo piezas que carros no tiene: barras, histograma, insignia de marca sin logo, etc. */

/* Insignia de marca (no hay logos de motos) */
.moto-brand-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 14px; background: linear-gradient(135deg,#e2232a,#f97316); color: #fff; font-weight: 950; font-size: 15px; letter-spacing: .5px; box-shadow: 0 8px 18px rgba(226,35,42,.25); }
.moto-brand-badge.sm { min-width: 30px; height: 30px; font-size: 10px; border-radius: 8px; box-shadow: none; margin-right: 8px; }
.moto-exp-grid .exp-logo-wrap { flex-direction: column; gap: 8px; }
.moto-exp-grid .exp-logo-wrap .moto-brand-badge { margin: 0 auto; }
.bm-brand-row { display: flex; align-items: center; }

/* Nube de marcas en texto */
.brand-cloud-text { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-cloud-text span { background: #fff; border: 1px solid #e5e8ee; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800; color: #1f2a3d; }

/* Foto de moto en el buscador */
.buscar-moto-img { border-radius: 24px; }
.bm-car-box img, .ppc-car, .rec-photo img { object-fit: contain; }
.rec-photo img { width: 100%; height: 100%; }

/* Formulario manual (sin enlace): mismo ancho y borde que el hero de arriba */
.buscar-form-card.moto-manual {
  width: 100% !important; max-width: none !important; margin: 0 0 22px !important; padding: 34px 58px 38px !important;
  border: 1px solid transparent !important; border-radius: 26px !important;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #ff2017, #f97316, #54d8ff) border-box !important;
  box-shadow: 0 22px 50px rgba(16,24,40,.12) !important;
}
.moto-manual .buscar-form-head { margin-bottom: 24px; padding-bottom: 20px; }
.moto-manual .buscar-form-head .card-title { font-size: 26px !important; letter-spacing: -.8px; }
.moto-manual .buscar-form-head p { font-size: 14px; }
.moto-manual .buscar-step { width: 48px; height: 48px; flex-basis: 48px; font-size: 20px; border-radius: 15px; }
.moto-manual .form-label { font-size: 11px !important; }
.moto-manual .form-grid-4 { margin-top: 18px; gap: 16px !important; grid-template-columns: repeat(3,minmax(0,1fr)) minmax(240px,1.1fr) !important; }
.moto-manual .form-grid-2 { gap: 16px !important; }
.moto-manual .buscar-combo { min-height: 58px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.moto-manual .buscar-combo:hover:not(:disabled) { border-color: #f97316 !important; }
.moto-manual-btn { min-height: 58px !important; border-radius: 12px !important; background: linear-gradient(135deg,#e2232a,#f97316) !important; box-shadow: 0 12px 24px rgba(226,35,42,.28) !important; transition: transform .15s, filter .15s; }
.moto-manual-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
@media (max-width: 760px) {
  .buscar-form-card.moto-manual { padding: 22px 18px 24px !important; border-radius: 22px !important; }
  .moto-manual .buscar-form-head .card-title { font-size: 19px !important; }
  .moto-manual .form-grid-2, .moto-manual .form-grid-4 { grid-template-columns: 1fr !important; }
}

/* Formulario manual (sin enlace) */
.moto-manual .buscar-combo::placeholder { color: #98a2b3; font-weight: 600; }
.moto-manual input.buscar-combo { box-sizing: border-box; font-family: inherit; }
.moto-manual input[type=number]::-webkit-inner-spin-button, .moto-manual input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.moto-manual input[type=number] { -moz-appearance: textfield; }
.moto-manual-btn { width: 100%; min-height: 54px; border: none; cursor: pointer; color: #fff; font-weight: 900; font-size: 14.5px; font-family: inherit; padding: 0 18px; }
.moto-manual .action-field { display: flex; flex-direction: column; }

/* Gráficas simples */
.moto-h { font-size: 15px; font-weight: 900; color: var(--ink, #101118); margin: 0 0 10px; letter-spacing: -.3px; }
.moto-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.moto-nota { font-size: 13px; color: #66738a; margin-top: 10px; line-height: 1.5; }
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-r { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-r .t { font-weight: 800; color: #3b4658; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-r .b { height: 11px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.bar-r .b i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#e2232a,#f97316); }
.bar-r .v { color: #66738a; font-weight: 700; white-space: nowrap; }
.hist { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding: 6px 0; border-bottom: 1px solid #e5e8ee; }
.hist div { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg,#f97316,#e2232a); min-height: 2px; }
.hist-l { display: flex; justify-content: space-between; font-size: 11.5px; color: #66738a; margin-top: 4px; font-weight: 700; }

@media (max-width: 760px) {
  .moto-two { grid-template-columns: 1fr; gap: 20px; }
  .bar-r { grid-template-columns: 62px 1fr auto; }
  .moto-brand-badge { min-width: 46px; height: 46px; font-size: 13px; }
}

/* Logo MotoAndino (emblema más ancho que alto) */
.brand-logo { width: auto !important; flex: 0 0 auto !important; height: 58px !important; max-width: 70px; object-fit: contain; }
@media (max-width: 760px) { .brand-logo { height: 44px !important; max-width: 54px; } }

/* Logos de marca subidos (img/logos/<marca>.png) */
.moto-logo { display: inline-block; height: 54px; width: auto; max-width: 96px; object-fit: contain; vertical-align: middle; }
.moto-logo.sm { height: 30px; max-width: 54px; margin-right: 8px; }
.moto-exp-grid .exp-logo-wrap .moto-logo { margin: 0 auto; background: #fff; border-radius: 10px; padding: 4px; }
.bm-brand-row .moto-logo.sm { background: #fff; border-radius: 6px; padding: 2px; }

/* Fotos reales en los encabezados */
.hero-car-main.foto, .buscar-moto-img.foto { object-fit: contain !important; background: radial-gradient(circle at 50% 35%, #fff 0%, #eef1f6 70%, #e4e8f0 100%); padding: 14px 18px 26px; box-sizing: border-box; }
.hero-mini-car.foto { object-fit: contain !important; background: #fff; padding: 4px 6px; box-sizing: border-box; }
.cmp-hero-fotos { display: flex; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.cmp-hero-fotos img { height: 150px; width: auto; max-width: 230px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.55)); }
.cmp-hero-fotos img:nth-child(2) { height: 140px; }
@media (max-width: 900px) { .cmp-hero-fotos img { height: 90px; max-width: 120px; } .cmp-hero-fotos img:nth-child(2) { height: 84px; } .cmp-hero-fotos img:nth-child(3) { display: none; } }

/* ── Mercado actual: paneles de gráficos (v35) ───────────────────────── */
.mk-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 22px; }
.mk-panel { background: linear-gradient(180deg,#fff,#fafbfd); border: 1px solid #e7ebf2; border-radius: 20px; padding: 20px 22px 18px; box-shadow: 0 8px 24px rgba(16,24,40,.05); min-width: 0; }
.mk-panel.full { grid-column: 1 / -1; }
.mk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mk-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 900; letter-spacing: -.3px; color: #101828; margin: 0; }
.mk-ico { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(145deg,#fff1ec,#ffd9cf); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.mk-sub { font-size: 12.5px; color: #66738a; font-weight: 600; margin: 3px 0 0 42px; }
.mk-chip { background: #fff3ee; color: #c2410c; border: 1px solid #ffd9c7; border-radius: 99px; padding: 5px 11px; font-size: 11.5px; font-weight: 900; white-space: nowrap; }
/* barras horizontales */
.mk-bars { display: flex; flex-direction: column; gap: 9px; }
.mk-row { display: grid; grid-template-columns: 52px 1fr 86px; gap: 12px; align-items: center; font-size: 13px; }
.mk-row.reg { grid-template-columns: 96px 1fr 86px; }
.mk-lbl { font-weight: 900; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-track { height: 14px; background: #eef1f6; border-radius: 99px; overflow: hidden; position: relative; }
.mk-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#f97316,#e2232a); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.mk-row.top .mk-fill { background: linear-gradient(90deg,#fb923c,#dc2626 70%,#b91c1c); }
.mk-row:not(.top) .mk-fill { opacity: .78; }
.mk-val { text-align: right; line-height: 1.15; }
.mk-val b { display: block; font-weight: 900; color: #101828; font-size: 13px; }
.mk-val small { color: #7b8798; font-weight: 700; font-size: 11px; }
/* histograma */
.mk-hist { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 8px 2px 0; border-bottom: 1.5px solid #dfe4ec; position: relative; }
.mk-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.mk-col i { display: block; border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg,#fdba74,#f97316 45%,#e2232a); min-height: 3px; transition: transform .15s, filter .15s; }
.mk-col.out i { background: linear-gradient(180deg,#e5e9f0,#cdd5e1); }
.mk-col.mid i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f97316; }
.mk-col:hover i { transform: translateY(-3px); filter: brightness(1.06); }
.mk-col span { position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%); font-size: 10.5px; font-weight: 900; color: #475467; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.mk-col:hover span { opacity: 1; }
.mk-axis { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: #66738a; margin-top: 6px; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 12.5px; color: #475467; font-weight: 700; }
.mk-legend em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.mk-legend em::before { content: ""; width: 11px; height: 11px; border-radius: 4px; background: linear-gradient(180deg,#f97316,#e2232a); }
.mk-legend em.g::before { background: #cdd5e1; }
.mk-key { margin-top: 12px; background: #f4f6fa; border-radius: 14px; padding: 11px 14px; font-size: 13px; color: #344054; font-weight: 700; line-height: 1.45; }
.mk-key b { color: #101828; }
@media (max-width: 860px) {
  .mk-grid { grid-template-columns: 1fr; }
  .mk-panel { padding: 16px 14px 14px; border-radius: 16px; }
  .mk-row { grid-template-columns: 44px 1fr 74px; gap: 8px; }
  .mk-row.reg { grid-template-columns: 78px 1fr 74px; }
  .mk-sub { margin-left: 0; }
  .mk-hist { height: 120px; gap: 4px; }
}

/* Ficha técnica y precio nuevo */
.tec-price { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin-bottom: 16px; }
.tec-price > div { flex: 1 1 260px; border-radius: 18px; padding: 16px 20px; }
.tec-price > div:first-child { background: linear-gradient(135deg,#eef4ff,#f8fbff); border: 1px solid #cfe0ff; }
.tec-price small { display: block; font-size: 12px; font-weight: 800; color: #475467; letter-spacing: .2px; }
.tec-price b { display: block; font-size: 30px; font-weight: 950; letter-spacing: -1px; color: #101828; margin: 3px 0; }
.tec-price em { font-style: normal; font-size: 12px; color: #66738a; font-weight: 700; }
.tec-ahorro { background: linear-gradient(135deg,#ecfdf3,#f7fffa); border: 1px solid #c7f5db; display: flex; align-items: center; gap: 14px; }
.tec-ahorro b { font-size: 30px; color: #16a765; margin: 0; white-space: nowrap; }
.tec-ahorro span { font-size: 13px; font-weight: 700; color: #344054; line-height: 1.4; }
.tec-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 10px; }
.tec-tile { display: flex; gap: 11px; align-items: center; background: #f8fafc; border: 1px solid #e7ebf2; border-radius: 14px; padding: 11px 13px; }
.tec-tile .tec-i { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 2px 6px rgba(16,24,40,.06); flex: none; }
.tec-tile small { display: block; font-size: 11px; font-weight: 800; color: #7b8798; text-transform: uppercase; letter-spacing: .4px; }
.tec-tile b { display: block; font-size: 13.5px; font-weight: 900; color: #101828; line-height: 1.25; margin-top: 1px; }
