.hero-search-wrap {
  position: relative;
  width: min(710px, 100%);
  z-index: 30;
}

/* La barra lateral reduce el espacio disponible para las tarjetas. */
.compare-selection { min-width: 0; }
.topbar { z-index: 50; }
.compare-section, #guia, #como-funciona { scroll-margin-top: 90px; }
.compare-cat-btn span { white-space: normal; overflow-wrap: anywhere; }
.compare-cat-btn small { flex-shrink: 0; }
.pick-card.selected { height: auto; min-height: 360px; max-height: none; }
.pick-card.selected .picked-copy { height: auto; overflow: visible; padding-top: 48px; }
.pick-card.selected .picked-image { object-fit: contain; padding: 12px; }
.pick-open-modal { flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pick-open-modal span, .pick-open-modal button { white-space: normal; text-align: left; }
.picked-highlights { flex-wrap: wrap; }
.side-label { right: 16px; line-height: 1.4; }
.hero-suggestion span { min-width: 0; overflow-wrap: anywhere; }
.picker-item { min-width: 0; }
.picker-item > span { min-width: 0; overflow-wrap: anywhere; }
.modal-head h2 { overflow-wrap: anywhere; }
.product-specs { padding: 0 16px; }
.compare-category-select select { min-width: 0; max-width: 100%; }
@media (min-width: 621px) and (max-width: 1200px) {
  .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .pick-card.selected { grid-template-columns: 38% minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .section-heading { flex-wrap: wrap; }
  .pick-card.selected .picked-copy { padding: 48px 14px 18px; }
  .hero-meta { line-height: 1.6; gap: 8px; }
  .hero-search input { font-size: 16px; }
  .hero-search { padding-inline: 12px; }
  .modal-head { gap: 12px; }
  .modal-head h2 { font-size: 20px; }
  .close { flex-shrink: 0; }
  .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .verdict { flex-direction: column; align-items: stretch; gap: 16px; }
  .verdict .score { text-align: left; }
  .spec-row > span { min-width: 0; overflow-wrap: anywhere; }
}

/* Permite que las sugerencias se superpongan al comparador. */
.hero { overflow: visible; z-index: 21; }
.hero::after { width: min(440px, 100%); left: 50%; transform: translateX(-50%); }
.image-missing::after { box-sizing: border-box; overflow-wrap: anywhere; }

.hero-search-wrap .hero-search { width: 100%; }

.hero-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 35px #15171b22;
}

.hero-suggestions.visible { display: grid; }

.hero-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
  font: 13px DM Sans;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.hero-suggestion:hover,
.hero-suggestion:focus { background: var(--paper); outline: 0; }
.hero-suggestion span { display: grid; gap: 3px; }
.hero-suggestion small { color: var(--muted); font-size: 11px; }
.hero-suggestion strong { font: 700 12px Manrope; white-space: nowrap; }


.swap {
  padding: 11px 16px;
  color: var(--ink);
  font: 800 13px Manrope;
  cursor: pointer;
  background: var(--lime);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 0 #a8ca20;
  transition: transform .18s, box-shadow .18s;
}

.swap:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #a8ca20; }
.swap:active { transform: translateY(2px); box-shadow: 0 2px 0 #a8ca20; }

@media (max-width: 620px) {
  .hero-search-wrap { width: 100%; }
  .hero-suggestion { padding: 12px 10px; }
  .hero-suggestion strong { font-size: 11px; }
  .swap { padding: 10px 12px; font-size: 12px; }
  .section-heading { align-items: center; gap: 12px; }
  .section-heading h2 { font-size: 20px; }
}
