/** Ecosol — Carrusel de notas del blog. */

.ecosol-notes__nav {
  display: flex;
  gap: 10px;
}

.ecosol-notes__nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ec-surface);
  background: #fff;
  color: var(--ec-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.ecosol-notes__nav button:hover {
  background: var(--ec-teal);
  color: #fff;
  border-color: var(--ec-teal);
}

.ecosol-notes__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.ecosol-notes__track::-webkit-scrollbar { display: none; }

.ecosol-notes__card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--ec-surface);
  border-radius: var(--ec-r-lg);
  overflow: hidden;
  box-shadow: var(--ec-sh-card);
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.ecosol-notes__card:hover {
  box-shadow: var(--ec-sh-elev);
  transform: translateY(-4px);
}

.ecosol-notes__thumb {
  position: relative;
  display: block;
  height: 152px;
  background: linear-gradient(135deg, #2A8474, #41A08C);
  overflow: hidden;
}

.ecosol-notes .ecosol-notes__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ecosol-notes__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--ec-teal-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--ec-r-pill);
  z-index: 2;
}

.ecosol-notes__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ecosol-notes__date {
  font-size: 12.5px;
  color: var(--ec-muted);
  margin-bottom: 8px;
}

.ecosol-notes__body h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.ecosol-notes__body h3 a {
  color: var(--ec-ink);
  text-decoration: none;
}

.ecosol-notes__body h3 a:hover { color: var(--ec-teal-dark); }

.ecosol-notes__body p {
  font-size: 13.5px;
  color: var(--ec-body);
  margin: 0 0 12px;
}

.ecosol-notes__more {
  margin-top: auto;
  color: var(--ec-teal-dark);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
  width: fit-content;
}

.ecosol-notes__more svg { transition: transform .2s; }
.ecosol-notes__card:hover .ecosol-notes__more svg { transform: translateX(3px); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ecosol-notes__track { grid-auto-columns: calc((100% - 24px) / 2); }
}

@media (max-width: 600px) {
  .ecosol-notes__track { grid-auto-columns: 84%; gap: 14px; }
  .ecosol-notes__nav { display: none; }
  .ecosol-notes__thumb { height: 150px; }
  .ecosol-notes__body { padding: 16px; }
}
