/* ============================================
   BLOCK 3 — Tragamonedas: 5 categorías (cards-grid 3+2)
   ============================================ */

.home_block_3 {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 168, 90, 0.07) 0%, transparent 55%),
    var(--bg-surface);
  position: relative;
}

.home_block_3::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/image6.webp");
  background-size: cover;
  background-position: center;
  filter: sepia(0.6) saturate(0.55) brightness(0.35) contrast(1);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.home_block_3_inner {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  position: relative;
  z-index: 1;
}

.home_block_3_head {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 70ch;
}

.home_block_3_title {
  color: var(--text);
}

.home_block_3_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.home_block_3_card {
  background: var(--bg-elevated);
  border: 1px solid var(--accent-line-mid);
  padding: 2.8rem 2.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.home_block_3_card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--accent-line-soft);
  pointer-events: none;
}

.home_block_3_card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.home_block_3_card:nth-child(4),
.home_block_3_card:nth-child(5) {
  grid-column: span 1;
}

/* 4-я и 5-я карточка центрируются под 3 верхними */
.home_block_3_grid > .home_block_3_card:nth-child(4) {
  grid-column: 1 / span 1;
  grid-column-start: 1;
}

.home_block_3_grid > .home_block_3_card:nth-child(4) {
  grid-column: 1;
}

.home_block_3_grid {
  grid-template-areas:
    "c1 c2 c3"
    ".  c4 c5  .";
  grid-template-columns: 1fr 1fr 1fr;
}

.home_block_3_grid > .home_block_3_card:nth-child(1) { grid-area: c1; }
.home_block_3_grid > .home_block_3_card:nth-child(2) { grid-area: c2; }
.home_block_3_grid > .home_block_3_card:nth-child(3) { grid-area: c3; }
.home_block_3_grid > .home_block_3_card:nth-child(4) { grid-area: c4; }
.home_block_3_grid > .home_block_3_card:nth-child(5) { grid-area: c5; }

.home_block_3_num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.home_block_3_card_title {
  color: var(--text);
}

.home_block_3_cta {
  margin-top: 0;
  justify-content: center;
}

@media (max-width: 1024px) {
  .home_block_3_inner {
    gap: 5rem;
  }

  .home_block_3_grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "c1"
      "c2"
      "c3"
      "c4"
      "c5";
    gap: 2.4rem;
  }

  .home_block_3_card {
    padding: 4rem 3rem;
  }

  .home_block_3_num {
    font-size: 5.4rem;
  }
}
