/* lane: section__consejos_para_un_hogar_mas_sostenible (home) */
#consejos { --tip-green: #21785b; --tip-ink: #0c193a; }
#consejos .mk-h2 { font-size: 20px; line-height: 26px; margin: 0 0 8px; color: var(--tip-ink); }
#consejos .mk-car-tips { --per: 4; --gap: 8px; padding-bottom: 0; }
#consejos .mk-viewport { padding: 2px 0 22px; margin: -2px 0 -22px; }
/* desktop: slides sized by --per (theme .mk-slide calc) so the row shows whole cards, none cut at the right edge */

#consejos .mk-tip { display: block; height: 100%; border: 2px solid var(--tip-green); border-radius: 4px; background: #fff; overflow: visible;
  box-shadow: 0 2px 6px 0 rgba(0,0,0,.08); transition: box-shadow .3s; }
#consejos .mk-tip:hover { box-shadow: 0 8px 12px 0 rgba(0,0,0,.08); }
#consejos .mk-tip-a { display: flex; flex-direction: column; height: 100%; color: var(--tip-ink); text-decoration: none; }
#consejos .mk-tip figure { position: relative; height: 164px; margin: 0; }
#consejos .mk-tip figure img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 2px 2px 0 0; }
#consejos .mk-tip .card-body { position: relative; display: flex; flex-direction: column; flex: 1 0 auto; height: 164px; padding: 12px 16px 0; gap: 0; }
#consejos .mk-tip-tag { position: absolute; top: 0; left: 12px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px;
  height: auto; padding: 4px 8px; border: 0; border-radius: 4px; background: var(--tip-green); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
#consejos .mk-tip-title { margin: auto 0; flex: 0 0 auto; font-family: 'Bricolage Grotesque', 'Open Sans', Arial, sans-serif; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--tip-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#consejos .mk-tip-link { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 16px; color: var(--tip-ink); font-size: 16px; line-height: 22px; font-weight: 600; white-space: nowrap; }
#consejos .mk-tip-link i { font-size: 14px; }
#consejos .mk-tip-a:hover .mk-tip-link { text-decoration: underline; }

/* arrows: on the sides, vertically centred on the cards (desktop only). .mk-body .btn kills transform/translate,
   so centre via top: carousel = 2px top + cards + 22px bottom (viewport shadow room) -> card middle = 50% - 10px, minus half arrow 24px */
#consejos .mk-arrow { top: calc(50% - 34px); bottom: auto; margin-top: 0; transform: none; width: 48px; height: 48px; min-height: 48px; border: 1px solid #e6eaf2; box-shadow: 0 4px 14px rgba(12,25,58,.16); background: #fff; color: var(--tip-ink); }
#consejos .mk-arrow-prev { left: -20px; right: auto; }
#consejos .mk-arrow-next { right: -20px; left: auto; }
#consejos .mk-arrow:hover { border-color: #c9d1e1; background: #f4f6fa; }

@media (max-width: 1023px) {
  #consejos { padding-left: 0; padding-right: 0; }
  #consejos .mk-h2 { margin: 0 16px 8px; }
  #consejos .mk-car-tips { --per: 1; padding-bottom: 0; }
  #consejos .mk-arrow { display: none; }
  #consejos .mk-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: -2px 0 -22px; padding: 2px 16px 22px; }
  #consejos .mk-viewport::-webkit-scrollbar { display: none; }
  #consejos .mk-car-tips .mk-slide { flex: 0 0 292px; width: 292px; scroll-snap-align: start; }
}
@media (min-width: 768px) and (max-width: 1023px) { #consejos .mk-track { transform: none !important; } }
/* mobile: one whole card per screen, browse with side arrows (app.js transform carousel) */
@media (max-width: 767px) {
  #consejos { padding-left: 16px; padding-right: 16px; }
  #consejos .mk-h2 { margin: 0 0 8px; }
  #consejos .mk-car-tips { --per: 1; --gap: 16px; position: relative; }
  #consejos .mk-viewport { overflow: hidden; scroll-snap-type: none; padding: 2px 0 22px; margin: -2px 0 -22px; }
  #consejos .mk-car-tips .mk-slide { flex: 0 0 100%; width: 100%; }
  #consejos .mk-arrow { display: inline-flex; top: 64px; margin-top: 0; width: 36px; height: 36px; min-height: 36px; z-index: 5; }
  #consejos .mk-arrow-prev { left: -10px; right: auto; }
  #consejos .mk-arrow-next { right: -10px; left: auto; }
}
