.masters-page .program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.masters-page .program{display:grid;grid-template-columns:85px minmax(0,1fr);gap:24px;padding:36px 30px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;min-width:0}
.masters-page .program>div:last-child{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.masters-page .years{color:var(--rust);font-size:.8rem;font-weight:700;line-height:1.6}
.masters-page .program h3{font:500 clamp(1.4rem,2vw,1.9rem)/1.2 var(--serif);margin:0 0 20px;overflow-wrap:break-word}
.masters-page .program p{color:var(--muted);font-size:.92rem;line-height:1.75;margin:0 0 12px}
.masters-page .institution{order:-2;display:flex;align-items:center;gap:20px;flex-wrap:wrap;min-height:60px;margin-bottom:24px;font-size:.75rem;font-weight:700;line-height:1.5;letter-spacing:.035em;text-transform:uppercase;color:var(--ink)}
.masters-page .uni-logo{display:block;width:135px;height:52px;object-fit:contain;object-position:left center}
.masters-page .uni-logo.uao{background:#171816;padding:9px}
.masters-page .featured-programs{grid-template-columns:1fr;border:0;gap:24px}
.masters-page .program.featured,.masters-page .program.origin{grid-template-columns:160px minmax(0,1fr);padding:48px;border:1px solid var(--line)}
.masters-page .program.featured{background:var(--dark);color:#fff;border-color:var(--dark)}
.masters-page .program.featured .years,.masters-page .program.featured .featured-badge{color:#df9268}
.masters-page .program.featured p{color:#c9c2b8}
.masters-page .program.featured .institution{color:#fff}
.masters-page .program.featured .uni-logo{background:white;padding:7px;width:150px;height:60px}
.masters-page .program.featured h3,.masters-page .program.origin h3{font-size:clamp(2rem,3.2vw,3.1rem);line-height:1.1;max-width:850px}
.masters-page .featured-badge{order:-1;margin:0 0 16px;color:var(--rust);font-size:.68rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.masters-page .evidence-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:14px 0 12px;padding:0;width:100%}
.masters-page .ev{display:inline-block;color:var(--rust);font-size:.76rem;font-weight:700;line-height:1.65;text-decoration:none;border-bottom:1px solid #b45b3055;padding-bottom:3px;overflow-wrap:anywhere}
.masters-page .ev:hover,.masters-page .ev:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.masters-page .program.featured .ev{color:#e5a07b;border-bottom-color:#e5a07b66}
.masters-page .program.featured .ev:hover{color:#fff}
.masters-page p.evidence-legend{font-size:.76rem;line-height:1.6;margin-top:10px}
.masters-page .other-programs .program:last-child:nth-child(odd){grid-column:1/-1}
.masters-page .hero-topic .hero-photo{object-position:0% center}
@media(max-width:1000px){.masters-page .program{grid-template-columns:1fr;gap:15px;padding:30px 24px}.masters-page .program.featured,.masters-page .program.origin{grid-template-columns:110px minmax(0,1fr);padding:36px}.masters-page .institution{gap:14px}}
@media(max-width:700px){.masters-page .program-grid{grid-template-columns:1fr}.masters-page .program.featured,.masters-page .program.origin{grid-template-columns:1fr;padding:30px 24px;gap:20px}.masters-page .program h3{font-size:1.6rem}.masters-page .program.featured h3,.masters-page .program.origin h3{font-size:2rem}.masters-page .institution{margin-bottom:20px}.masters-page .hero-topic .hero-photo{object-position:0% center}}

/* Long academic heading: keep the introductory block proportional. */
.masters-page #destacados .section-head h2{font-size:clamp(1.5rem,2.2vw,1.9rem);line-height:1.25}
