/* ── Wrapper ────────────────────────────────────────────────────────── */
.imf-cd-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.imf-cd-wrap--con-sec {
  grid-template-columns: 7fr 5fr;
}

/* ── Card principal ─────────────────────────────────────────────────── */
.imf-cd-main {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
  text-decoration: none;
  background: #1A1A1A;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

/* Imagen con duotone naranja */
.imf-cd-bg {
  position: absolute;
  inset: 0;
}

.imf-cd-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0) brightness(.7) contrast(1.2);
  display: block;
}

.imf-cd-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(233,78,27,.6);
}

/* Contenido sobre la imagen */
.imf-cd-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}

.imf-cd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

.imf-cd-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.imf-cd-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .imf-cd-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.imf-cd-pre {
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  opacity: .9;
}

@media (min-width: 768px) {
  .imf-cd-pre   { font-size: 36px; }
}

.imf-cd-title {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -.02em;
  margin: 4px 0 12px;
}

@media (min-width: 768px) {
  .imf-cd-title { font-size: 56px; }
}

.imf-cd-desc {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  margin: 0;
  max-width: 360px;
}

.imf-cd-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.imf-cd-btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1A1A1A;
  font-weight: 600;
  font-size: 14px;
  padding: 0 20px;
  height: 48px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: box-shadow .2s;
}

.imf-cd-main:hover .imf-cd-btn-dl {
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.imf-cd-btn-dl svg { width: 16px; height: 16px; }

.imf-cd-btn-arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  transition: background .2s, transform .2s;
}

.imf-cd-main:hover .imf-cd-btn-arr {
  background: #111;
  transform: scale(1.08);
}

.imf-cd-btn-arr svg { width: 18px; height: 18px; }

/* ── Sectoriales ────────────────────────────────────────────────────── */
.imf-cd-sectoriales {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.imf-cd-sec {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F8F7F5;
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: #1A1A1A;
  transition: background .2s, border-color .2s, color .2s;
  flex: 1;
  min-width: 0;
}

.imf-cd-sec:hover {
  background: #1A1A1A;
  border-color: #1A1A1A;
  color: #fff;
}

.imf-cd-sec-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(233,78,27,.1);
  color: #E94E1B;
  display: grid;
  place-items: center;
}

.imf-cd-sec-icon svg { width: 26px; height: 26px; }

.imf-cd-sec-body { flex: 1; min-width: 0; }

.imf-cd-sec-eye {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #E94E1B;
  display: block;
  margin-bottom: 3px;
}

.imf-cd-sec-h4 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 3px;
}

.imf-cd-sec-info {
  font-size: 12px;
  opacity: .6;
  margin: 0;
}

.imf-cd-sec-dl {
  flex-shrink: 0;
  color: #888;
  transition: color .2s;
}

.imf-cd-sec:hover .imf-cd-sec-dl { color: #E94E1B; }
.imf-cd-sec-dl svg { width: 18px; height: 18px; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .imf-cd-wrap--con-sec {
    grid-template-columns: 1fr;
  }

  .imf-cd-sectoriales {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .imf-cd-main        { min-height: 340px; }
  .imf-cd-content     { min-height: 340px; padding: 20px; }
  .imf-cd-title       { font-size: 32px; }
  .imf-cd-pre         { font-size: 22px; }
  .imf-cd-desc        { display: none; }
  .imf-cd-sectoriales { flex-direction: column; }
  .imf-cd-sec         { padding: 14px 16px; }
}
