/* Componentes compartidos (13/10/2026). Piezas que cualquier página puede usar,
   sin saber dónde viven: la portada las estrena, pero no son de la portada.
   Lo exclusivo de la portada va en home.css. Todo cuelga de los tokens de
   motorhangar.css (`--mh-*`); ningún color suelto acá. */

/* ── Sección y su cabecera ─────────────────────────────────────────────── */
.mh-sec { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.mh-sec-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.mh-sec-cab h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.mh-sec-cab p { margin: .25rem 0 0; color: var(--mh-muted); }
.mh-sec-cab .mh-eyebrow { margin-bottom: .15rem; }
.mh-mas { font-weight: 700; font-size: .92rem; white-space: nowrap; text-decoration: none; }
.mh-mas:hover { text-decoration: underline; }
.mh-eyebrow-on-dark { color: rgba(255, 255, 255, .82); }

/* ── Rejilla de tarjetas: columnas que bajan solas ─────────────────────── */
.mh-rejilla { display: grid; gap: 1rem; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.mh-rejilla-4 { --cols: 4; }
.mh-rejilla-3 { --cols: 3; }
@media (max-width: 991.98px) { .mh-rejilla { --cols: 2; } }
@media (max-width: 575.98px) { .mh-rejilla { --cols: 1; } }

/* ── Botones de la casa ────────────────────────────────────────────────── */
.mh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 12px; border: 1.5px solid transparent;
  padding: .8rem 1.35rem; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }
.mh-btn:focus-visible { outline: 3px solid var(--mh-blue-100); outline-offset: 2px; }
.mh-btn-primary { background: var(--mh-blue); color: #fff; }
.mh-btn-primary:hover { background: var(--mh-blue-600); color: #fff; }
.mh-btn-ghost { background: #fff; color: var(--mh-ink); border-color: var(--mh-line-2); }
.mh-btn-ghost:hover { border-color: var(--mh-blue); color: var(--mh-blue); }
.mh-btn-naranja { background: #f26a1b; color: #fff; }
.mh-btn-naranja:hover { background: #d9590e; color: #fff; }

/* ── Burbuja de ícono ──────────────────────────────────────────────────── */
.mh-burbuja { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--mh-blue-050); color: var(--mh-blue); font-size: 1.2rem; }

/* ── Lista de ventajas (ícono + título + línea) ────────────────────────── */
.mh-ventajas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.mh-ventajas-3 { --cols: 3; }
.mh-ventajas-4 { --cols: 4; }
.mh-ventajas li { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.mh-ventajas b { display: block; font-size: .95rem; line-height: 1.25; }
.mh-ventajas small { display: block; color: var(--mh-muted); font-size: .84rem; line-height: 1.35; margin-top: .1rem; }
@media (max-width: 991.98px) { .mh-ventajas-4 { --cols: 2; } }
@media (max-width: 575.98px) { .mh-ventajas { --cols: 1; } }

/* ── Tarjeta con franja de foto ────────────────────────────────────────── */
.mh-tarjeta-img { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--mh-line); border-radius: 16px;
  overflow: hidden; color: var(--mh-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mh-tarjeta-img:hover { color: var(--mh-ink); border-color: var(--mh-line-2); box-shadow: var(--mh-shadow); transform: translateY(-2px); }
.mh-tarjeta-img-foto { display: block; aspect-ratio: 4 / 1; background: var(--mh-bg-soft); }
.mh-tarjeta-img-foto img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.mh-tarjeta-img-cuerpo { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.mh-tarjeta-img-txt { flex: 1; min-width: 0; }
.mh-tarjeta-img-txt b { display: block; font-size: 1rem; line-height: 1.25; text-wrap: balance; }
.mh-tarjeta-img-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--mh-muted); font-size: .86rem; line-height: 1.4; margin-top: .2rem; }
.mh-flecha { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--mh-blue-100); color: var(--mh-blue); align-self: center; }
.mh-tarjeta-img:hover .mh-flecha { background: var(--mh-blue); border-color: var(--mh-blue); color: #fff; }

/* ── Campo con botón pegado (correo, búsqueda) ─────────────────────────── */
.mh-campo-boton { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--mh-line-2); border-radius: 14px;
  padding: .3rem .3rem .3rem 1rem; min-width: 0; }
.mh-campo-boton:focus-within { border-color: var(--mh-blue); box-shadow: 0 0 0 3px var(--mh-blue-100); }
.mh-campo-boton > i { color: var(--mh-muted); }
.mh-campo-boton input, .mh-campo-boton select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem;
  padding: .6rem 0; color: var(--mh-ink); }
.mh-campo-boton .mh-btn { padding: .7rem 1.2rem; border-radius: 10px; }
.mh-check-linea { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .86rem; color: var(--mh-ink-2); cursor: pointer; }
.mh-check-linea input { width: 1rem; height: 1rem; accent-color: var(--mh-blue); }

/* ── Píldoras ──────────────────────────────────────────────────────────── */
.mh-pill-blanca { display: inline-block; background: #fff; color: var(--mh-ink); border-radius: 999px; padding: .3rem .85rem;
  font-size: .84rem; font-weight: 700; box-shadow: var(--mh-shadow-s); }
.mh-pill-vidrio { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mh-pill-vidrio:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.mh-pill-vidrio i { color: #ffb36b; }

/* ── Acordeón de preguntas (<details>) ─────────────────────────────────── */
.mh-acordeon { border-top: 1px solid var(--mh-line); }
.mh-acordeon details { border-bottom: 1px solid var(--mh-line); }
.mh-acordeon summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .25rem; font-weight: 700; cursor: pointer; }
.mh-acordeon summary::-webkit-details-marker { display: none; }
.mh-acordeon summary::after { content: "+"; flex: none; font-size: 1.3rem; line-height: 1; color: var(--mh-muted); }
.mh-acordeon details[open] summary::after { content: "−"; }
.mh-acordeon summary:focus-visible { outline: 2px solid var(--mh-blue); outline-offset: 2px; border-radius: 6px; }
.mh-acordeon p { margin: 0 .25rem 1rem; color: var(--mh-ink-2); max-width: 65ch; }

/* ── Trampa para bots: fuera de la vista, nunca type=hidden ────────────── */
.mh-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mh-tarjeta-img, .mh-btn { transition: none; }
  .mh-tarjeta-img:hover { transform: none; }
}
