:root {
  --gm-blue: #0759a8;
  --gm-blue-dark: #073867;
  --gm-blue-soft: #eaf4ff;
  --gm-orange: #f39a27;
  --gm-green: #20a46b;
  --gm-purple: #6855ba;
  --gm-red: #dc3d4b;
  --gm-ink: #172435;
  --gm-muted: #637083;
  --gm-line: #dfe7f1;
  --gm-bg: #f4f7fb;
  --gm-surface: #ffffff;
  --gm-radius: 18px;
  --gm-shadow: 0 14px 38px rgba(20, 48, 80, .11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  color: var(--gm-ink);
  background: var(--gm-bg);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.58;
}

a { transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }

.gm-page {
  width: 100%;
  padding: 24px 16px 54px;
}

.gm-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.gm-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 250px;
  padding: 42px 6%;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(120deg, #063c70 0%, #0871c9 68%, #18a3d8 100%);
  box-shadow: 0 20px 50px rgba(8,42,78,.20);
  isolation: isolate;
}

.gm-hero::before,
.gm-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}

.gm-hero::before { width: 360px; height: 360px; right: -90px; top: -180px; }
.gm-hero::after { width: 190px; height: 190px; right: 20%; bottom: -135px; border: 34px solid rgba(255,255,255,.07); background: transparent; }

.gm-hero--purple { background: linear-gradient(120deg, #342c77 0%, #6855ba 58%, #b84e9c 100%); }
.gm-hero--green { background: linear-gradient(120deg, #075b4a 0%, #0f9b76 62%, #72bd64 100%); }
.gm-hero--orange { background: linear-gradient(120deg, #9c461a 0%, #e1741c 58%, #f0a929 100%); }

.gm-hero__content { position: relative; z-index: 2; max-width: 760px; }

.gm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.gm-hero h1 {
  margin: 0 0 13px;
  color: #fff;
  font-size: clamp(34px, 5vw, 55px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
}

.gm-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.94); font-size: clamp(16px, 2vw, 20px); }

.gm-section { margin-top: 34px; }

.gm-section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}

.gm-section-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--gm-blue), #0891d0);
  box-shadow: 0 8px 18px rgba(7,89,168,.24);
  font-size: 21px;
}

.gm-section-heading h2 { margin: 0; color: var(--gm-ink); font-size: 27px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
.gm-section-heading p { margin: 2px 0 0; color: var(--gm-muted); font-size: 14px; }

.gm-card {
  padding: 25px;
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius);
  background: var(--gm-surface);
  box-shadow: var(--gm-shadow);
}

.gm-card h2,
.gm-card h3 { margin-top: 0; color: var(--gm-ink); }
.gm-card p:first-child { margin-top: 0; }
.gm-card p:last-child { margin-bottom: 0; }

.gm-grid { display: grid; gap: 20px; }
.gm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gm-feature {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius);
  background: #fff;
  box-shadow: 0 8px 25px rgba(20,48,80,.08);
}

.gm-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  border-radius: 14px;
  color: var(--gm-blue);
  background: var(--gm-blue-soft);
  font-size: 21px;
}

.gm-feature h3 { margin: 0 0 8px; color: var(--gm-ink); font-size: 19px; font-weight: 800; }
.gm-feature p { margin: 0; color: var(--gm-muted); }

.gm-turno {
  min-height: 170px;
  padding: 24px 18px;
  border-radius: var(--gm-radius);
  color: #fff;
  box-shadow: 0 12px 25px rgba(18,48,78,.14);
  text-align: center;
}

.gm-turno i { margin-bottom: 12px; font-size: 27px; }
.gm-turno h3 { margin: 0 0 7px; color: #fff; font-size: 19px; font-weight: 800; }
.gm-turno p { margin: 0; color: rgba(255,255,255,.95); font-size: 14px; }
.gm-turno--blue { background: linear-gradient(145deg, #0759a8, #168bc7); }
.gm-turno--orange { background: linear-gradient(145deg, #d46a19, #f2a22d); }
.gm-turno--green { background: linear-gradient(145deg, #08715d, #18ac83); }
.gm-turno--purple { background: linear-gradient(145deg, #504098, #8068cf); }

.gm-list { margin: 0; padding: 0; list-style: none; }
.gm-list li { position: relative; margin: 8px 0; padding-left: 27px; color: #34445a; }
.gm-list li::before { content: "\f00c"; position: absolute; left: 0; top: 2px; color: var(--gm-green); font: normal normal normal 14px/1 FontAwesome; }

.gm-subject-card h3 { padding-bottom: 12px; border-bottom: 1px solid var(--gm-line); }

.gm-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid #cfe3f6;
  border-left: 5px solid var(--gm-blue);
  border-radius: 14px;
  color: #24425f;
  background: var(--gm-blue-soft);
}

.gm-note > i { margin-top: 3px; color: var(--gm-blue); font-size: 25px; }
.gm-note h3 { margin: 0 0 5px; font-size: 18px; }
.gm-note p { margin: 0; }

.gm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--gm-blue), #0875d5);
  box-shadow: 0 8px 20px rgba(7,89,168,.24);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.gm-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(7,89,168,.32); text-decoration: none; }
.gm-btn--green { background: linear-gradient(135deg, #178d4b, #25bd69); box-shadow: 0 8px 20px rgba(23,141,75,.24); }
.gm-btn--purple { background: linear-gradient(135deg, #51429a, #7e66cf); box-shadow: 0 8px 20px rgba(81,66,154,.24); }

.gm-form-card { padding: 27px; }
.gm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.gm-form-grid .gm-field--full { grid-column: 1 / -1; }
.gm-field { margin-bottom: 17px; }
.gm-field label { display: block; margin-bottom: 7px; color: #30445d; font-size: 13px; font-weight: 750; }
.gm-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #ced9e5;
  border-radius: 10px;
  outline: none;
  color: var(--gm-ink);
  background: #fbfdff;
  font: inherit;
}

textarea.gm-input { min-height: 130px; resize: vertical; }
.gm-input:focus { border-color: #4a9be3; background: #fff; box-shadow: 0 0 0 4px rgba(7,89,168,.10); }
.gm-form-help { display: block; margin-top: 7px; color: var(--gm-muted); font-size: 12px; }
.gm-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 11px; margin-top: 5px; }
.gm-btn--secondary { color: #405269; background: #e8eef4; box-shadow: none; }
.gm-btn--secondary:hover { color: #26384d; background: #dbe5ee; box-shadow: none; }

.gm-alert-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid #f0bec4;
  border-left: 5px solid var(--gm-red);
  border-radius: 12px;
  color: #842937;
  background: #fff1f3;
}
.gm-alert-error i { margin-top: 2px; font-size: 20px; }

.gm-contact-list { display: grid; gap: 13px; }
.gm-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--gm-line);
  border-radius: 14px;
  color: var(--gm-ink);
  background: #fff;
  text-decoration: none;
}

.gm-contact-item:hover { color: var(--gm-blue); border-color: #bad7ef; transform: translateY(-2px); box-shadow: 0 9px 22px rgba(20,48,80,.09); text-decoration: none; }
.gm-contact-item .gm-contact-item__icon {
  flex: 0 0 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #0759a8, #1696d2);
  box-shadow: 0 7px 15px rgba(7,89,168,.25);
  font-size: 23px;
  transition: transform .2s ease;
}
.gm-contact-item .gm-contact-item__icon i { display: block; color: #fff; line-height: 1; }
.gm-contact-item:nth-child(2) .gm-contact-item__icon,
.gm-contact-item:nth-child(3) .gm-contact-item__icon { background: linear-gradient(135deg, #6855ba, #9177d8); box-shadow: 0 7px 15px rgba(104,85,186,.25); }
.gm-contact-item:nth-child(4) .gm-contact-item__icon { background: linear-gradient(135deg, #168948, #25c46b); box-shadow: 0 7px 15px rgba(22,137,72,.25); }
.gm-contact-item:nth-child(5) .gm-contact-item__icon { background: linear-gradient(135deg, #28589a, #1877c9); box-shadow: 0 7px 15px rgba(40,88,154,.25); }
.gm-contact-item:hover .gm-contact-item__icon { transform: scale(1.05); }
.gm-contact-item strong { display: block; font-size: 15px; }
.gm-contact-item > span:not(.gm-contact-item__icon) { display: block; min-width: 0; color: inherit; }
.gm-contact-item > span:not(.gm-contact-item__icon) > span { display: block; color: var(--gm-muted); font-size: 13px; }

.gm-social-card { text-align: center; }
.gm-social-card .gm-feature__icon { width: 60px; height: 60px; border-radius: 18px; font-size: 28px; }

.gm-institution-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid #d7e5f2;
  background: linear-gradient(rgba(255,255,255,.68), rgba(234,244,255,.78)), url('imgs/bgInstitucion.jpg') center/cover no-repeat;
  box-shadow: var(--gm-shadow);
  text-align: center;
}

.gm-institution-brand img {
  display: block;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(7,56,103,.18));
}
.gm-institution-brand__logo { max-height: 92px; }
.gm-institution-brand__name { max-height: 62px; margin-top: 13px; }
.gm-institution-brand__year { max-height: 45px; margin-top: 13px; }

.gm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border-radius: var(--gm-radius);
  color: #fff;
  background: linear-gradient(120deg, #073867, #0759a8);
  box-shadow: var(--gm-shadow);
}

.gm-cta h3 { margin: 0 0 5px; color: #fff; font-size: 21px; }
.gm-cta p { margin: 0; color: rgba(255,255,255,.88); }
.gm-cta .gm-btn { flex: 0 0 auto; color: var(--gm-blue-dark); background: #fff; box-shadow: none; }
.gm-cta .gm-btn:hover { color: var(--gm-blue); background: #f4f9ff; }

.gm-phpinfo { overflow-x: auto; padding: 8px; border: 1px solid var(--gm-line); border-radius: var(--gm-radius); background: #fff; box-shadow: var(--gm-shadow); }
.gm-phpinfo table { width: 100% !important; max-width: 100% !important; border-collapse: collapse; }
.gm-phpinfo td, .gm-phpinfo th { padding: 8px !important; border-color: #d8e2ec !important; font-family: "Segoe UI", Roboto, Arial, sans-serif !important; font-size: 13px !important; }
.gm-phpinfo h1, .gm-phpinfo h2 { color: var(--gm-blue-dark) !important; font-family: "Segoe UI", Roboto, Arial, sans-serif !important; }

@media (max-width: 900px) {
  .gm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .gm-page { padding: 12px 10px 40px; }
  .gm-hero { min-height: 270px; padding: 38px 24px; border-radius: 18px; }
  .gm-grid--2, .gm-grid--4 { grid-template-columns: 1fr; }
  .gm-section-heading h2 { font-size: 23px; }
  .gm-card, .gm-form-card { padding: 20px; }
  .gm-form-grid { grid-template-columns: 1fr; }
  .gm-form-grid .gm-field--full { grid-column: auto; }
  .gm-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .gm-form-actions .gm-btn { width: 100%; }
  .gm-cta { align-items: stretch; flex-direction: column; }
  .gm-cta .gm-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
