:root {
  --navy: #062a54;
  --navy2: #0a4479;
  --yellow: #ff6800;
  --yellow2: #ff8426;
  --ink: #102d4b;
  --muted: #657b8d;
  --cream: #f4f7fa;
  --line: #d8e1e8;
}

.brand { display: flex; align-items: center; }
.brand > img { width: 145px; height: 65px; object-fit: contain; object-position: center; }

/* Portada: azul MiObra más luminoso, sin alterar las demás secciones */
.hero {
  background:
    linear-gradient(90deg, rgba(7, 75, 126, .97) 0%, rgba(8, 88, 148, .88) 32%, rgba(9, 103, 169, .42) 61%, rgba(9, 103, 169, .08) 100%),
    url("assets/miobra-hero.png") center/cover;
}

.afpro-feature {
  background-color: #075b9d;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.afpro-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #052b5af2 0%, #075b9de8 52%, #0878cbcc 100%);
}
.afpro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(330px, .72fr) 1.28fr;
  gap: 7vw;
  align-items: center;
}
.afpro-poster {
  padding: 14px;
  background: #fff;
  box-shadow: 18px 18px 0 #ff6800;
  transform: rotate(-1.5deg);
}
.afpro-poster img { display: block; width: 100%; height: auto; }
.partner-lockup { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.partner-lockup img { width: 160px; height: 80px; object-fit: contain; background: #fff; border-radius: 8px; padding: 8px; }
.partner-lockup img:last-child { width: 112px; }
.partner-lockup b { font-size: 30px; }
.feature-kicker {
  display: inline-block;
  margin: 0 0 20px;
  background: var(--yellow);
  padding: 7px 14px;
  font: 800 15px "Barlow Condensed";
  letter-spacing: 1.5px;
}
.afpro-content h2 {
  font: 900 clamp(52px, 5.5vw, 80px)/.92 "Barlow Condensed";
  text-transform: uppercase;
  margin: 0 0 24px;
}
.afpro-content h2 em { font-style: normal; color: #ff8a32; }
.feature-lead { font-size: 17px; line-height: 1.7; color: #e4edf5; max-width: 700px; }
.course-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.course-items article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
}
.course-items article > span { font: 900 26px "Barlow Condensed"; color: var(--yellow); }
.course-items h3 { font-size: 21px; text-transform: uppercase; margin: 0 0 4px; }
.course-items p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }
.material-note { display: flex; gap: 16px; align-items: center; border-left: 5px solid var(--yellow); background: #ffffff13; padding: 16px 20px; }
.material-note span { font-size: 28px; color: var(--yellow); }
.material-note p { margin: 0; line-height: 1.55; }
.location-line { font-weight: 700; letter-spacing: .3px; }
.feature-btn { margin: 10px 0 14px; }
.afpro-content > small { display: block; color: #bdd0df; }
.afpro-real img { max-width: 80%; max-height: 85px; object-fit: contain; }
.footer-brand .brand { display: inline-flex; background: #fff; border-radius: 6px; padding: 3px 12px; }
.footer-brand .brand img { width: 135px; height: 58px; }

@media (max-width: 850px) {
  .hero::before { background: rgba(7, 78, 132, .58); }
  .afpro-grid { grid-template-columns: 1fr; gap: 48px; }
  .afpro-poster { max-width: 520px; margin: auto; }
  .partner-lockup { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .brand > img { width: 118px; height: 55px; }
  .course-items { grid-template-columns: 1fr; }
  .partner-lockup img { width: 125px; height: 68px; }
  .partner-lockup img:last-child { width: 92px; }
}
