/* ===== insights.css ===== */
.insights {
  background: #f5f5f3;
  padding: 0 0 88px;
  position: relative;
  z-index: 4;
}

.insights-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  padding-top: 48px;
}

.insights-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.insights-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0;
}

.insights-title-grad {
  color: #2c8fd6;
}

.insights-head-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.insights-nav {
  display: flex;
  gap: 10px;
}

.insights-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gray-border);
  background: #fff;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.insights-nav-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.insights-nav-btn:disabled {
  opacity: .4;
  cursor: default;
}

.insights-nav-btn:disabled:hover {
  background: #fff;
  color: var(--black);
  border-color: var(--gray-border);
}

.ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: gap .2s ease;
}
.ver-todos:hover { gap: 13px; }

.ver-todos-arrow {
  display: inline-block;
  font-size: 18px;
  color: #018a38;
  transition: transform .2s ease;
}
.ver-todos:hover .ver-todos-arrow { transform: translateX(3px); }

/* ===== Slider (3 visibles en desktop) ===== */
.carousel-wrap { position: relative; }
.carousel-btn { display: none; }
/* overflow hidden necesario para el carrusel; padding + negative margin
   generosos (sobre todo abajo) para que el box-shadow del hover
   (~56px hacia abajo) no se recorte, sin mover el layout */
.carousel-clip {
  overflow: hidden;
  /* solo padding/margen vertical: el horizontal (-36px) ensanchaba el
     elemento más allá del contenedor y causaba scroll horizontal en
     pantallas chicas. El vertical se mantiene para no recortar el box-shadow. */
  padding: 18px 0 60px;
  margin: -18px 0 -60px;
}
.carousel-outer { cursor: default; }

.carousel-track {
  display: flex;
  gap: 22px;
  transition: transform .45s cubic-bezier(.22,.68,0,1);
  will-change: transform;
}

.insight-card {
  flex: 0 0 calc((100% - 44px) / 3);
}

/* ===== Card ===== */
.insight-card {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: #0d1b2a;
  box-shadow: 0 10px 30px -14px rgba(13, 27, 42, 0.35);
  transition: transform .4s ease, box-shadow .4s ease;
  isolation: isolate;
  cursor: pointer;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -16px rgba(13, 27, 42, 0.45);
}

/* Imagen */
.insight-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.insight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease, filter .6s ease;
}

.insight-card:hover .insight-img {
  transform: scale(1.06);
  filter: blur(8px) brightness(0.5);
}

/* Overlay base — sombra oscura ARRIBA */
.insight-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background .5s ease;
}

.overlay-green {
  background:
    linear-gradient(to bottom, rgba(10,18,28,0.85) 0%, rgba(10,18,28,0.3) 40%, rgba(10,18,28,0) 70%),
    linear-gradient(125deg, rgba(1,138,56,0.25), rgba(1,138,56,0) 60%);
}

.overlay-blue {
  background:
    linear-gradient(to bottom, rgba(10,18,28,0.85) 0%, rgba(10,18,28,0.3) 40%, rgba(10,18,28,0) 70%),
    linear-gradient(125deg, rgba(34,113,178,0.3), rgba(34,113,178,0) 60%);
}

.insight-card:hover .overlay-green {
  background: linear-gradient(
    to bottom,
    rgba(1, 100, 45, 0.88) 0%,
    rgba(20, 60, 130, 0.88) 100%
  );
}

.insight-card:hover .overlay-blue {
  background: linear-gradient(
    to bottom,
    rgba(20, 60, 130, 0.88) 0%,
    rgba(1, 100, 45, 0.88) 100%
  );
}

/* ===== Cuerpo ===== */
.insight-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  color: #fff;
}

.insight-tag {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #46d484;
  margin-bottom: 8px;
}

.insight-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-desc {
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 14px 0 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition:
    max-height .5s cubic-bezier(.22,.68,0,1),
    opacity .45s ease .08s;
}

.insight-card:hover .insight-desc {
  max-height: 60px;
  opacity: 1;
}

.insight-spacer { flex: 1; }

.insight-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .45s ease .1s,
    transform .45s ease .1s;
}

.insight-card:hover .insight-footer {
  opacity: 1;
  transform: translateY(0);
}

.insight-author {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.insight-sep { margin: 0 2px; }
.insight-time { color: rgba(255, 255, 255, 0.6); }

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  align-self: flex-start;
  transition: gap .2s ease;
}
.insight-link:hover { gap: 12px; }