:root {
  --olive: #667225;
  --olive-dark: #3f4818;
  --mustard: #c99a13;
  --mustard-dark: #9d7610;
  --charcoal: #25282b;
  --paper: #f7f5ef;
  --warm: #eee9dd;
  --soft: #fbfaf7;
}
body {
  color: #282a27;
  background: var(--soft);
}
.container {
  width: min(1320px, calc(100% - 54px));
}
.utility {
  background: var(--charcoal);
  color: #f0f0ec;
  font-size: 11px;
}
.utility > .container {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.utility div {
  display: flex;
  gap: 22px;
}
.utility a {
  opacity: 0.92;
}
.main-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #ebe9e1;
}
.header-row {
  height: 94px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand-modern {
  min-width: 280px;
}
.brand-emblem {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50% 50% 45% 45%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #f6d25b, var(--mustard));
  color: #fff;
  font-size: 31px;
  box-shadow: inset 0 0 0 6px #fff7;
}
.brand-modern strong {
  font: 700 20px Georgia;
  color: #1e211e;
  text-transform: uppercase;
}
.brand-modern small {
  color: #60665c;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.nav-modern {
  margin-left: auto;
  gap: 23px;
  font-size: 12px;
}
.nav-modern a {
  padding: 36px 0 32px;
  border-bottom: 3px solid transparent;
}
.nav-modern a:hover,
.nav-modern .active {
  color: var(--mustard-dark);
  border-color: var(--mustard);
}

/* Menú desplegable de Investigación */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 36px 0 32px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-dropdown-toggle span {
  font-size: 13px;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.submenu-open .nav-dropdown-toggle {
  color: var(--mustard-dark);
  border-color: var(--mustard);
}
.nav-submenu {
  position: absolute;
  z-index: 60;
  top: calc(100% - 1px);
  left: 50%;
  width: 260px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e5e4dc;
  box-shadow: 0 16px 38px #20251b26;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}
.nav-submenu a {
  display: block;
  padding: 13px 14px;
  border: 0;
  color: #353932;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}
.nav-submenu a:hover {
  background: #f2f1e8;
  color: var(--olive-dark);
  border: 0;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.submenu-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown.submenu-open .nav-dropdown-toggle span {
  transform: rotate(180deg);
}
.header-cta {
  padding: 14px 19px;
  background: var(--olive);
  color: #fff;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.new-hero {
  background: #f6f5f0;
  overflow: hidden;
}
.new-hero-grid {
  min-height: 510px;
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  padding: 0;
}
.hero-panel {
  padding: 78px 65px 68px 24px;
  position: relative;
  z-index: 2;
}
.hero-panel:after {
  content: "";
  position: absolute;
  right: -52px;
  top: 0;
  border-left: 53px solid #f6f5f0;
  border-top: 255px solid transparent;
  border-bottom: 255px solid transparent;
}
.section-kicker {
  display: block;
  color: var(--olive);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-panel h1 {
  font: 48px/1.12 Georgia;
  margin: 0 0 22px;
  color: #21231f;
}
.hero-panel h1 em {
  font-style: normal;
  color: var(--olive);
}
.hero-panel p {
  font-size: 15px;
  line-height: 1.75;
  color: #555a53;
  max-width: 590px;
}
.hero-buttons {
  display: flex;
  gap: 13px;
  margin-top: 31px;
}
.mustard-btn,
.line-btn {
  padding: 15px 19px;
  font-size: 11px;
  font-weight: 700;
}
.mustard-btn {
  background: var(--mustard);
  color: #1c1d18;
}
.line-btn {
  border: 1px solid #8c8f84;
}
.hero-photo {
  background:
    linear-gradient(100deg, #34392233, #34392255),
    linear-gradient(135deg, #d7d3bd 0%, #7d8a49 48%, #35471e 100%);
  position: relative;
  min-height: 510px;
}
.hero-photo:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 35%, #f5e4b466 0 5%, transparent 30%),
    linear-gradient(120deg, transparent 45%, #fff1 46% 47%, transparent 48%);
}
.photo-overlay {
  position: absolute;
  right: 38px;
  bottom: 32px;
  color: #fff;
  text-align: right;
}
.photo-overlay span,
.photo-overlay strong {
  display: block;
}
.photo-overlay span {
  font-size: 10px;
  letter-spacing: 0.18em;
}
.photo-overlay strong {
  font: 24px Georgia;
  margin-top: 7px;
}
.academic-strip {
  padding: 60px 0;
  background: linear-gradient(135deg, #292d2f 0%, #202426 100%);
  border-bottom: 5px solid var(--mustard);
}

.academic-strip > .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 45px;
  align-items: start;
}

.academic-title {
  padding-top: 10px;
  text-align: left;
}

.academic-title > span {
  display: block;
  width: 45px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--mustard);
}

.academic-title h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
}

.academic-title p {
  max-width: 230px;
  margin: 0;
  color: #d4d7d2;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
  margin: 0;
}

.level-card {
  position: relative;
  display: grid;

  grid-template-columns: 76px minmax(0, 1fr) 30px;
  column-gap: 28px;

  align-items: center;
  min-height: 115px;
  padding: 20px 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e1dc;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.level-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--olive), var(--mustard));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.level-card:hover {
  transform: translateY(-4px);
  border-color: var(--mustard);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.level-card:hover::before {
  transform: scaleX(1);
}

.level-card i {
  width: 76px;
  height: 76px;
  min-width: 76px;
  flex: 0 0 76px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  margin-right: 30px;

  background: #f2f1e8;
  border: 2px solid var(--olive);
  border-radius: 50%;
  overflow: hidden;
}

.level-card i img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;

  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

.level-card div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--olive);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.level-card div > strong {
  display: block;
  color: #555a53;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.level-card > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--olive);
  border: 1px solid #cbd0b5;
  border-radius: 50%;
  font-size: 16px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.level-card:hover > b {
  color: #ffffff;
  background: var(--mustard);
  border-color: var(--mustard);
  transform: translateX(3px);
}
.impact-bar {
  background: #ffffff;
  border-top: 1px solid #e4e7da;
  border-bottom: 1px solid #e4e7da;
}

.impact-bar > .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.impact-bar > .container > div {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 21px 25px;
  border-right: 1px solid #d9ddca;
}

.impact-bar > .container > div:last-child {
  border-right: none;
}

.impact-bar b {
  font:
    29px Georgia,
    serif;
  color: #56611f;
  font-weight: 700;
}

.impact-bar span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #3f4818;
}
.course-showcase {
  background: #f7f6f2;
  padding: 82px 0;
}
.modern-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
}
.modern-heading span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 700;
}
.modern-heading h2 {
  font: 38px Georgia;
  margin: 9px 0 0;
  color: #292b27;
}
.modern-heading > a {
  font-size: 11px;
  font-weight: 700;
  color: var(--olive);
  border-bottom: 1px solid var(--olive);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.course-card {
  background: #fff;
  border: 1px solid #e3e0d8;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  transition: 0.25s;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px #32362018;
}
.course-cover {
  height: 155px;
  background: linear-gradient(135deg, #777f3b, #303b1a);
  background-size: cover;
  background-position: center;
  position: relative;
}
.course-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #1f251999, transparent 65%);
}
.course-cover span,
.course-cover b {
  position: absolute;
  z-index: 1;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
}
.course-cover span {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 7px 9px;
  color: var(--olive-dark);
}
.course-cover b {
  right: 14px;
  bottom: 14px;
  background: var(--mustard);
  padding: 7px 9px;
  color: #242418;
}
.course-content {
  padding: 23px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-meta {
  display: flex;
  gap: 15px;
  color: #72766d;
  font-size: 9px;
}
.course-content h3 {
  font: 23px/1.25 Georgia;
  margin: 17px 0 10px;
  color: #292b27;
}
.course-content p {
  font-size: 12px;
  line-height: 1.6;
  color: #6b7068;
  margin: 0;
}
.course-bottom {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #ece9e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-bottom strong {
  font: 16px Georgia;
  color: var(--olive);
}
.course-bottom a {
  font-size: 10px;
  font-weight: 700;
  color: var(--mustard-dark);
}
.dual-feature {
  background: #fff;
  padding: 64px 0;
}
.dual-feature > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.dual-feature article {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  border: 1px solid #e0ddd3;
  min-height: 260px;
}
.feature-art {
  background: linear-gradient(145deg, #293619, #97a45d);
  position: relative;
}
.feature-art:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid #fff5;
  border-radius: 50%;
  left: calc(50% - 40px);
  top: calc(50% - 40px);
}
.feature-art.extension {
  background: linear-gradient(145deg, #b68a17, #4f5d20);
}
.dual-feature article > div:last-child {
  padding: 32px;
}
.dual-feature span {
  font-size: 10px;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.dual-feature h2 {
  font: 25px Georgia;
  margin: 8px 0 12px;
}
.dual-feature p {
  font-size: 11px;
  line-height: 1.6;
  color: #6b7069;
}
.dual-feature a {
  font-size: 10px;
  font-weight: 700;
  color: var(--mustard-dark);
}
.latest {
  padding: 72px 0;
  background: #faf9f6;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.latest-grid article {
  display: grid;
  grid-template-columns: 145px 1fr;
  background: #fff;
  border: 1px solid #e3e0d8;
  min-height: 170px;
}
.latest-image {
  background: linear-gradient(135deg, #4d5b29, #c79a22);
  background-size: cover;
  background-position: center;
}
.latest-grid article > div:last-child {
  padding: 20px;
}
.latest-grid small {
  font-size: 9px;
  color: #777b73;
}
.latest-grid h3 {
  font: 18px/1.3 Georgia;
  margin: 8px 0;
}
.latest-grid p {
  font-size: 10px;
  line-height: 1.45;
  color: #72766f;
}
.latest-grid a {
  font-size: 10px;
  color: var(--olive);
  font-weight: 700;
}
.resource-row {
  background: #fff;
  border-top: 1px solid #e1ded4;
}
.resource-row > .container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.resource-row a {
  padding: 22px 13px;
  border-right: 1px solid #e1ded4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
}
.resource-row i {
  font-style: normal;
  font-size: 21px;
  color: var(--olive);
}
.contact-band {
  background: var(--mustard);
  padding: 45px 0;
}
.contact-band > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.contact-band span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.contact-band h2 {
  font: 31px Georgia;
  margin: 7px 0 0;
}
.contact-band a {
  background: #252821;
  color: #fff;
  padding: 15px 20px;
  font-size: 11px;
  font-weight: 700;
}
.new-footer {
  background: #262a2d;
  color: #d8d9d3;
  padding: 55px 0 20px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 70px;
}
.footer-logo strong {
  color: #fff;
}
.footer-logo small {
  color: #c6c9c3;
}
.footer-main p,
.footer-main a {
  display: block;
  font-size: 11px;
  line-height: 1.65;
  color: #bbc0bb;
  margin: 7px 0;
}
.footer-main h4 {
  font: 17px Georgia;
  color: #fff;
}
.footer-copy {
  border-top: 1px solid #ffffff1a;
  margin-top: 35px;
  padding-top: 18px;
  font-size: 9px;
  color: #979c97;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px;
}
@media (max-width: 1100px) {
  .nav-modern {
    gap: 12px;
  }
  .nav-modern a {
    font-size: 10px;
  }
  .nav-dropdown-toggle {
    font-size: 10px;
  }
  .header-cta {
    display: none;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-grid {
    grid-template-columns: 1fr;
  }
  .level-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 780px) {
  .container {
    width: min(100% - 30px, 1320px);
  }
  .utility span,
  .utility > div > div:last-child {
    display: none;
  }
  .utility > .container {
    justify-content: center;
  }
  .main-header {
    height: 72px;
  }
  .header-row {
    height: 72px;
  }
  .brand-modern {
    min-width: 0;
  }
  .brand-emblem {
    width: 46px;
    height: 46px;
  }
  .brand-modern strong {
    font-size: 14px;
  }
  .nav-modern {
    top: 72px;
  }
  .nav-modern a {
    padding: 10px;
  }
  .new-hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    padding: 58px 0;
  }
  .hero-panel:after {
    display: none;
  }
  .hero-panel h1 {
    font-size: 39px;
  }
  .hero-photo {
    min-height: 280px;
  }
  .level-grid,
  .impact-bar > .container,
  .course-grid,
  .dual-feature > .container,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .impact-bar div div {
    border-right: none;
    border-bottom: 1px solid #d9ddca;
  }
  .impact-bar div div:last-child {
    border-bottom: none;
  }
  .dual-feature article {
    grid-template-columns: 1fr;
  }
  .feature-art {
    min-height: 180px;
  }
  .resource-row > .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .modern-heading,
  .contact-band > .container {
    display: block;
  }
  .modern-heading > a {
    display: inline-block;
    margin-top: 17px;
  }
  .contact-band a {
    display: inline-block;
    margin-top: 20px;
  }
  .latest-grid article {
    grid-template-columns: 110px 1fr;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
  }

  .hero-panel p {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
  }

  .academic-title h2,
  .modern-heading h2,
  .dual-feature h2,
  .contact-band h2 {
    font-size: 29px;
    line-height: 1.2;
    font-weight: 700;
  }

  .course-content h3 {
    font-size: 21px;
    line-height: 1.3;
  }

  .nav-modern a {
    font-size: 13px;
    font-weight: 700;
  }
}

@media (max-width: 760px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px;
    border: 0;
    color: inherit;
    font-size: 13px;
  }

  .nav-submenu {
    position: static;
    display: none;
    width: 100%;
    padding: 4px 0 8px 14px;
    border: 0;
    border-left: 3px solid var(--mustard);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu {
    display: none;
    transform: none;
  }

  .nav-dropdown.submenu-open .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 10px 12px;
    font-size: 12px;
  }
}
/* Tipografía institucional con mayor presencia */
.hero-panel h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #252821;
}

.hero-panel p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: #454a42;
}

.academic-title h2,
.modern-heading h2,
.dual-feature h2,
.contact-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.course-content h3,
.latest-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #292b27;
}

.level-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.nav-modern a {
  font-weight: 700;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Adaptación responsive de la oferta académica */
@media (max-width: 900px) {
  .academic-strip > .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .academic-title {
    text-align: center;
  }

  .academic-title > span {
    margin-right: auto;
    margin-left: auto;
  }

  .academic-title p {
    max-width: 100%;
  }

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

@media (max-width: 600px) {
  .academic-strip {
    padding: 45px 0;
  }

  .academic-title h2 {
    font-size: 30px;
  }

  .level-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .level-card {
    grid-template-columns: 64px minmax(0, 1fr) 28px;
    column-gap: 18px;
    min-height: 110px;
    padding: 16px;
  }

  .level-card i {
    width: 64px;
    height: 64px;
    min-width: 64px;
    margin: 0;
    flex: none;
  }

  .level-card i img {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
  }

  .level-card div > span {
    font-size: 16px;
    line-height: 1.15;
  }

  .level-card div > strong {
    font-size: 12px;
    margin-top: 4px;
  }

  .level-card > b {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .hero-panel h1 {
    font-size: 36px;
  }
}

.feature-art::after {
  display: none;
}

.moodle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;

  background: var(--olive);
  color: #ffffff;
  border: 2px solid var(--olive);
  border-radius: 3px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.moodle-btn:hover {
  background: var(--mustard-dark);
  border-color: var(--mustard-dark);
  color: #ffffff;
  transform: translateY(-2px);
}
