.steamh-page {
  background: #fbfcff;
}

.steamh-hero {
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  background:
    linear-gradient(135deg, rgba(9, 19, 45, 0.86), rgba(18, 33, 74, 0.82)),
    url("../assets/img/portada-colegio.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.steamh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
}

.steamh-hero-copy {
  display: grid;
  justify-items: center;
  max-width: 780px;
  margin: 0 auto;
}

.steamh-kicker,
.steamh-category {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0.28rem 0.78rem;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.steamh-kicker {
  background: rgba(243, 194, 68, 0.18);
  color: var(--gold);
}

.steamh-hero h1,
.steamh-featured h2,
.steamh-section-heading h2,
.steamh-post-card h3,
.steamh-principles h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
}

.steamh-hero h1 {
  margin-top: 0.85rem;
  max-width: none;
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  font-weight: 800;
  line-height: 1.04;
}

.steamh-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  margin-top: 1.2rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 800;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.steamh-home-button:hover,
.steamh-home-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.steamh-home-button svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2;
}

.steamh-hero p {
  max-width: 72ch;
  margin: 0.95rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.55;
}

.steamh-hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.steamh-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.steamh-featured-section,
.steamh-blog-section,
.steamh-principles {
  padding: clamp(2.2rem, 5vw, 4.2rem) 0;
}

.steamh-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
  gap: clamp(1.2rem, 4vw, 2rem);
  align-items: stretch;
}

.steamh-featured-content,
.steamh-featured-panel,
.steamh-post-card {
  border: 1px solid rgba(17, 32, 61, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(8, 21, 52, 0.09);
}

.steamh-featured-content {
  padding: clamp(1.45rem, 4vw, 2.4rem);
  border-left: 4px solid var(--green);
}

.steamh-category {
  background: rgba(13, 114, 52, 0.1);
  color: var(--green-deep);
}

.steamh-featured h2 {
  margin-top: 1rem;
  color: var(--navy-deep);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.steamh-featured p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.steamh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(17, 32, 61, 0.1);
  color: var(--muted);
  font-weight: 700;
}

.steamh-meta span {
  color: var(--green-deep);
  font-weight: 800;
}

.steamh-featured-panel {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 20% 18%, rgba(243, 194, 68, 0.18), transparent 32%),
    linear-gradient(135deg, #fff, #eef3fb);
}

.steamh-featured-panel span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy);
  font-weight: 800;
}

.steamh-section-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}

.steamh-section-heading h2,
.steamh-principles h2 {
  color: var(--navy-deep);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.steamh-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.35rem);
}

.steamh-post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.steamh-post-card[hidden] {
  display: none;
}

.steamh-post-card:hover {
  box-shadow: 0 22px 54px rgba(8, 21, 52, 0.13);
  transform: translateY(-4px);
}

.steamh-post-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
}

.steamh-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.steamh-post-card:hover .steamh-post-media img {
  transform: scale(1.045);
}

.steamh-post-body {
  display: grid;
  align-content: start;
  padding: clamp(1.15rem, 3vw, 1.45rem);
}

.steamh-post-card h3 {
  margin-top: 1rem;
  color: var(--navy-deep);
  font-size: clamp(1.18rem, 2vw, 1.4rem);
  line-height: 1.22;
}

.steamh-post-card p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.steamh-post-card time {
  margin-top: 1rem;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.steamh-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: clamp(2rem, 5vw, 3.2rem);
}

.steamh-page-control,
.steamh-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(17, 32, 61, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(8, 21, 52, 0.08);
}

.steamh-page-number.is-active,
.steamh-page-control:hover,
.steamh-page-number:hover {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.steamh-page-control:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.steamh-page-control:disabled:hover {
  border-color: rgba(17, 32, 61, 0.08);
  background: #ffffff;
  color: var(--navy-deep);
}

.steamh-principles {
  background: #ffffff;
}

.steamh-principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(1.2rem, 4vw, 2.4rem);
  align-items: start;
}

.steamh-principle-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steamh-principle-list li {
  padding: 1rem 1rem 1rem 1.2rem;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 980px) {
  .steamh-featured,
  .steamh-principles-grid {
    grid-template-columns: 1fr;
  }

  .steamh-hero h1 {
    max-width: 14ch;
  }

  .steamh-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .steamh-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .steamh-post-grid {
    grid-template-columns: 1fr;
  }

  .steamh-featured-panel {
    gap: 0.55rem;
  }
}
