/* La portada (13/10/2026). Sólo lo que es de ESTA página: los dos heroes, la
   franja, el aviso, investigar, vender, carrocerías, marcas y preguntas. Las
   piezas reutilizables (burbuja, tarjeta con foto, campo con botón, botones)
   viven en componentes.css. Prefijo `hm-` = home. */

/* ── Hero: común ───────────────────────────────────────────────────────── */
.hm-hero { position: relative; overflow: hidden; }
.hm-hero-in { position: relative; z-index: 2; }
.hm-hero-h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: 0 0 1rem; max-width: 16ch; text-wrap: balance; }
.hm-hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 44ch; margin: 0 0 1.5rem; }

/* ── Hero con avisos: foto a todo el ancho y buscador encima ───────────── */
.hm-hero-mercado { background: var(--mh-navy); color: #fff; }
.hm-hero-bg { position: absolute; inset: 0; }
.hm-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hm-hero-mercado::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 15, 34, .82) 0%, rgba(8, 15, 34, .55) 45%, rgba(8, 15, 34, .05) 75%); }
.hm-hero-mercado .hm-hero-in { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.hm-hero-mercado .hm-hero-h1 { color: #fff; }
.hm-hero-mercado .hm-hero-lead { color: rgba(255, 255, 255, .86); }
.hm-hero-mercado .mh-finder { color: var(--mh-ink); max-width: 500px; }
.hm-populares { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0 0; font-size: .84rem; color: var(--mh-muted); }
@media (max-width: 991.98px) {
  .hm-hero-mercado::after { background: linear-gradient(180deg, rgba(8, 15, 34, .78) 0%, rgba(8, 15, 34, .55) 60%, rgba(8, 15, 34, .35) 100%); }
}

/* ── Hero sin avisos: texto a la izquierda, foto a la derecha ──────────── */
.hm-hero-vacio { background: linear-gradient(180deg, #f3f7fd 0%, #e9f0fa 100%); }
.hm-hero-vacio .hm-hero-in { padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.hm-hero-vacio-txt { max-width: 560px; }
.hm-hero-vacio .hm-hero-lead { color: var(--mh-ink-2); }
.hm-hero-vacio-img { position: absolute; inset: 0 0 0 46%; }
.hm-hero-vacio-img img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hm-hero-vacio-img::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #edf2fa 0%, rgba(237, 242, 250, .6) 18%, rgba(237, 242, 250, 0) 40%); }
.hm-manuscrito { position: absolute; z-index: 2; left: 4%; top: 30%; margin: 0; max-width: 11ch; transform: rotate(-8deg);
  font-family: "Caveat", "Segoe Script", cursive; font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; color: var(--mh-ink); }
.hm-manuscrito svg { display: block; margin: .3rem 0 0 30%; }
.hm-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
@media (max-width: 991.98px) {
  .hm-hero-vacio-img { position: relative; inset: auto; height: 260px; }
  .hm-hero-vacio-img::before { background: linear-gradient(180deg, rgba(237, 242, 250, 0) 60%, #edf2fa 100%); }
  .hm-manuscrito { display: none; }
  .hm-hero-vacio .hm-hero-in { padding-top: 1.5rem; }
}

/* ── Franja de ventajas bajo el hero con avisos ───────────────────────── */
.hm-franja { background: var(--mh-blue-050); border-bottom: 1px solid var(--mh-blue-100); padding-block: 1.4rem; }

/* ── «Avísame» ─────────────────────────────────────────────────────────── */
.hm-avisame { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1.15fr); align-items: center; gap: 1.5rem;
  background: var(--mh-blue-050); border: 1px solid var(--mh-blue-100); border-radius: 18px; overflow: hidden; padding-right: 1.5rem; margin-top: 1.5rem; }
.hm-avisame-img { position: relative; align-self: stretch; min-height: 150px; }
.hm-avisame-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-avisame-img .mh-pill-blanca { position: absolute; left: 50%; bottom: .9rem; transform: translateX(-50%); }
.hm-avisame-txt h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; }
.hm-avisame-txt p:last-child { margin: 0; color: var(--mh-ink-2); }
.hm-avisame-form { position: relative; padding-block: 1.25rem; }
@media (max-width: 991.98px) {
  .hm-avisame { grid-template-columns: minmax(0, 1fr); padding: 0 1.25rem 1.25rem; gap: 1rem; }
  .hm-avisame-img { margin-inline: -1.25rem; min-height: 160px; }
  .hm-avisame-form { padding-block: 0; }
}

/* ── Carrocerías ───────────────────────────────────────────────────────── */
.hm-carrocerias { display: grid; gap: .75rem; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hm-carroceria { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .9rem .5rem .8rem; background: #fff;
  border: 1px solid var(--mh-line); border-radius: 14px; color: var(--mh-ink); text-decoration: none; text-align: center; transition: border-color .15s, box-shadow .15s; }
.hm-carroceria:hover { color: var(--mh-ink); border-color: var(--mh-blue); box-shadow: var(--mh-shadow-s); }
.hm-carroceria img { width: 100%; max-width: 140px; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.hm-carroceria b { font-size: .92rem; }
.hm-carroceria small { color: var(--mh-muted); font-size: .76rem; }
@media (max-width: 991.98px) { .hm-carrocerias { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hm-carrocerias { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Investigar + recalls ──────────────────────────────────────────────── */
.hm-investiga-fila { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
.hm-investiga { position: relative; overflow: hidden; border-radius: 18px; background: var(--mh-navy); color: #fff; min-height: 300px; }
.hm-investiga-bg { position: absolute; inset: 0; }
.hm-investiga-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.hm-investiga::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 15, 34, .9) 0%, rgba(8, 15, 34, .6) 50%, rgba(8, 15, 34, .1) 85%); }
.hm-investiga-in { position: relative; z-index: 1; padding: clamp(1.5rem, 3.5vw, 2.5rem); max-width: 520px; }
.hm-investiga h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 .5rem; color: #fff; }
.hm-investiga p { color: rgba(255, 255, 255, .84); margin: 0 0 1.25rem; }
.hm-investiga .mh-campo-boton { max-width: 420px; }
.hm-investiga .mh-campo-boton select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.hm-investiga-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.hm-recalls .mh-check { height: 100%; }
.hm-recalls .mh-check h2 { font-size: 1.25rem; }
@media (max-width: 991.98px) { .hm-investiga-fila { grid-template-columns: minmax(0, 1fr); } }

/* ── Vender ────────────────────────────────────────────────────────────── */
.hm-vender { background: linear-gradient(90deg, #eef4ff 0%, #f6f9ff 100%); border-block: 1px solid var(--mh-blue-100); overflow: hidden; }
.hm-vender-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .8fr); align-items: center; gap: 2rem; }
.hm-vender-txt { padding-block: 2.25rem; }
.hm-vender-txt h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 .5rem; }
.hm-vender-txt p { color: var(--mh-ink-2); margin: 0 0 1.25rem; max-width: 42ch; }
.hm-pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: center; }
.hm-pasos li { counter-increment: paso; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.hm-pasos li::before { content: counter(paso); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; margin-bottom: .35rem;
  background: #fff; color: var(--mh-blue); font-weight: 800; border: 1.5px solid var(--mh-blue-100); }
.hm-pasos b { font-size: .95rem; }
.hm-pasos small { color: var(--mh-muted); font-size: .82rem; line-height: 1.35; }
.hm-vender-img { align-self: end; width: 100%; max-width: 100%; height: 100%; max-height: 300px; object-fit: cover; object-position: center top;
  border-radius: 18px 18px 0 0; margin-top: 1.25rem; }
@media (max-width: 991.98px) {
  .hm-vender-in { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2rem; }
  .hm-vender-txt { padding-bottom: 0; }
  .hm-vender-img { display: none; }
}
@media (max-width: 575.98px) { .hm-pasos { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hm-pasos li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .75rem; }
  .hm-pasos li::before { margin: 0; }
  .hm-pasos small { flex-basis: 100%; padding-left: 3.15rem; } }

/* ── Marcas ────────────────────────────────────────────────────────────── */
.hm-marcas { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.hm-marca { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .85rem .4rem; background: #fff;
  border: 1px solid var(--mh-line); border-radius: 14px; color: var(--mh-ink-2); font-size: .78rem; text-align: center; text-decoration: none; min-width: 0; }
.hm-marca:hover { color: var(--mh-ink); border-color: var(--mh-blue); box-shadow: var(--mh-shadow-s); }
.hm-marca .marca-logo { width: 40px; height: 40px; object-fit: contain; }
.hm-marca span:last-child { overflow-wrap: anywhere; }
.hm-marca-mas { font-weight: 700; color: var(--mh-ink); }

/* ── Preguntas ─────────────────────────────────────────────────────────── */
.hm-faq { background: var(--mh-bg-soft); padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.hm-faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 2rem; align-items: start; }
.hm-faq h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 .4rem; }
.hm-faq-in > div:first-child p { color: var(--mh-muted); margin: 0 0 1.25rem; }
.hm-faq .mh-acordeon { background: #fff; border: 1px solid var(--mh-line); border-radius: 14px; padding-inline: 1rem; border-top: 0; }
.hm-faq .mh-acordeon details:last-child { border-bottom: 0; }
@media (max-width: 991.98px) { .hm-faq-in { grid-template-columns: minmax(0, 1fr); } }

/* Las tarjetas de aviso dentro de la rejilla de la portada. */
.mh-rejilla > .mh-car { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .hm-carroceria, .hm-marca { transition: none; }
}
