.services-page {
  background: #fff;
}

.services-page .site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(8, 65, 96, 0.06);
}

.services-shell {
  width: min(1440px, calc(100% - 9vw));
  margin-inline: auto;
}

.services-hero {
  padding: 34px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 70%, rgba(245, 199, 75, 0.16) 0 110px, transparent 111px),
    linear-gradient(180deg, #fff 0%, #fff 72%, #f5f9fc 100%);
}

.services-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(38px, 5vw, 82px);
  align-items: center;
}

.services-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: #84939c;
  font-size: 0.8rem;
}

.services-breadcrumbs a {
  color: var(--blue-dark);
  text-decoration: none;
}

.services-breadcrumbs span[aria-hidden="true"] {
  color: #b6c1c7;
}

.services-hero-copy {
  position: relative;
  z-index: 3;
  padding: 10px 0 28px;
}

.services-hero-copy h1 {
  max-width: 700px;
  margin: 17px 0 22px;
  font-size: clamp(3.35rem, 5vw, 5.65rem);
  letter-spacing: -0.065em;
}

.services-hero-copy h1 em {
  display: block;
  color: var(--blue);
}

.services-hero-copy .hero-lead {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.service-signature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  align-items: center;
  max-width: 650px;
  margin: 30px 0 26px;
  padding: 18px 22px;
  border: 1px solid #e0ebf1;
  border-radius: 17px;
  background: linear-gradient(110deg, #f2f8fd, #fff);
  box-shadow: 0 14px 32px rgba(8, 65, 96, 0.07);
}

.signature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 1.75rem;
  box-shadow: 0 8px 22px rgba(7, 135, 209, 0.12);
}

.service-signature p {
  margin: 0;
  color: #243741;
  font: 700 1rem/1.55 Manrope, sans-serif;
}

.services-hero-copy .hero-actions {
  margin: 0;
}

.services-visual {
  position: relative;
  min-height: 570px;
  border-radius: 34px;
  overflow: hidden;
  background: #eee2d0;
  box-shadow: 0 30px 80px rgba(16, 33, 42, 0.16);
}

.services-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49% center;
}

.services-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.2), transparent 24%), linear-gradient(0deg, rgba(7, 40, 57, .14), transparent 35%);
}

.service-document {
  position: absolute;
  left: 24px;
  z-index: 3;
  width: min(220px, 35%);
  padding: 13px 14px;
  text-align: center;
  border: 1px solid rgba(207, 220, 227, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 44px rgba(16, 33, 42, 0.18);
  backdrop-filter: blur(10px);
}

.service-document:first-of-type {
  top: 44px;
}

.service-document:nth-of-type(2) {
  top: 202px;
  left: 42px;
}

.document-label {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-dark);
  font-size: 0.69rem;
  font-weight: 800;
}

.service-document strong,
.service-document small {
  display: block;
}

.service-document strong {
  margin-bottom: 2px;
  font: 800 0.82rem/1.3 Manrope, sans-serif;
}

.service-document small {
  color: var(--muted);
  font-size: 0.64rem;
}

.document-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  margin-inline: auto;
}

.document-logo {
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.ugr-logo {
  width: 70px;
  height: 56px;
}

.ugr-brand {
  height: 56px;
}

.gobierno-brand {
  width: 144px;
  height: 54px;
  overflow: hidden;
}

.gobierno-logo {
  position: absolute;
  top: -39px;
  left: 50%;
  width: 144px;
  height: 144px;
  max-width: none;
  transform: translateX(-50%);
}

.students-pill {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 285px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(115deg, #075982, #083a77);
  color: #fff;
  box-shadow: 0 18px 42px rgba(7, 40, 77, 0.3);
}

.student-checks {
  display: flex;
}

.student-checks span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #eef8fd;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.student-checks span:first-child {
  margin-left: 0;
}

.students-pill strong,
.students-pill small {
  display: block;
}

.students-pill strong {
  font: 800 1rem Manrope, sans-serif;
}

.students-pill small {
  color: #cce7f5;
  font-size: 0.7rem;
}

.services-proof-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
  padding: 25px 28px;
  border: 1px solid #e1ebf0;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 40px rgba(8, 65, 96, 0.05);
}

.service-proof {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  min-width: 0;
  padding: 0 24px;
  border-right: 1px solid #dfe8ec;
}

.service-proof:first-child {
  padding-left: 0;
}

.service-proof:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #edf7fc;
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 800;
}

.service-proof strong,
.service-proof small {
  display: block;
}

.service-proof strong {
  font: 800 0.9rem/1.35 Manrope, sans-serif;
}

.service-proof small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.services-section {
  padding: 105px 0;
}

.services-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  gap: 8vw;
  align-items: end;
  margin-bottom: 48px;
}

.services-heading.centered {
  display: block;
  max-width: 870px;
  margin: 0 auto 48px;
  text-align: center;
}

.services-heading.centered .eyebrow {
  justify-content: center;
}

.services-heading h2 {
  margin: 15px 0 0;
  font-size: clamp(2.45rem, 4vw, 4.65rem);
  letter-spacing: -0.055em;
}

.services-heading > p,
.services-heading > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.academic-overview {
  background: #fff;
}

.academic-grid-new {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.academic-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 26px 24px 23px;
  overflow: hidden;
  border: 1px solid #dfe8ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 65, 96, 0.055);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.academic-card:hover {
  transform: translateY(-7px);
  border-color: rgba(7, 135, 209, 0.5);
  box-shadow: 0 22px 46px rgba(8, 65, 96, 0.12);
}

.academic-card::before {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(7, 135, 209, 0.055);
}

.academic-card.featured {
  border-color: #0a85cc;
  background: linear-gradient(155deg, #f8fcff, #eef8fd);
}

.academic-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.academic-card img {
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 16px;
  background: #eef8fd;
  object-fit: contain;
}

.academic-number {
  color: #91a5af;
  font: 800 0.78rem Manrope, sans-serif;
}

.academic-card h3 {
  margin-bottom: 13px;
  font-size: 1.25rem;
}

.academic-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.academic-card a {
  margin-top: auto;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.academic-card a:hover {
  color: var(--blue);
}

.academic-guide {
  background: linear-gradient(180deg, #f5f9fc, #fff);
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 118px;
  padding: 24px;
  border: 1px solid #dfe8ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(8, 65, 96, 0.08);
}

.guide-nav strong {
  display: block;
  margin-bottom: 14px;
  font: 800 1rem Manrope, sans-serif;
}

.guide-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f3;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.guide-nav a:last-child {
  border-bottom: 0;
}

.guide-nav a:hover {
  color: var(--blue);
}

.guide-panels {
  display: grid;
  gap: 15px;
}

.guide-panel {
  scroll-margin-top: 118px;
  border: 1px solid #dfe8ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 65, 96, 0.045);
}

.guide-panel summary {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  gap: 16px;
  align-items: center;
  padding: 24px 26px;
  cursor: pointer;
  list-style: none;
}

.guide-panel summary::-webkit-details-marker {
  display: none;
}

.guide-step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eaf6fc;
  color: var(--blue-dark);
  font: 800 0.82rem Manrope, sans-serif;
}

.guide-title strong,
.guide-title small {
  display: block;
}

.guide-title strong {
  font: 800 1.18rem/1.35 Manrope, sans-serif;
}

.guide-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.77rem;
}

.guide-plus {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #edf7fc;
  color: var(--blue);
  font-size: 1.3rem;
  transition: transform 0.25s ease;
}

.guide-panel[open] {
  border-color: rgba(7, 135, 209, 0.45);
  box-shadow: 0 18px 40px rgba(8, 65, 96, 0.1);
}

.guide-panel[open] .guide-plus {
  transform: rotate(45deg);
}

.guide-body {
  padding: 0 28px 28px 92px;
  color: var(--muted);
}

.guide-body > p:first-child {
  margin-top: 0;
  color: #354a55;
  font-size: 1rem;
}

.guide-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.guide-point {
  padding: 16px;
  border-radius: 14px;
  background: #f5f9fb;
}

.guide-point strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font: 800 0.9rem Manrope, sans-serif;
}

.guide-point p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.guide-body ul {
  margin: 15px 0 0;
  padding-left: 20px;
}

.guide-quote {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 14px 14px 0;
  background: #fffbef;
  color: var(--blue-dark);
  font: 700 1rem/1.55 Manrope, sans-serif;
}

.complete-journey {
  position: relative;
  overflow: hidden;
  background: #102c3a;
  color: #fff;
}

.complete-journey::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -210px;
  border: 75px solid rgba(245, 199, 75, 0.08);
  border-radius: 50%;
}

.complete-journey .services-heading {
  position: relative;
}

.complete-journey .services-heading > p {
  color: #c4d7df;
}

.journey-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.journey-card {
  display: flex;
  min-height: 445px;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.journey-card.featured {
  background: linear-gradient(155deg, #0787d1, #075982);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.journey-card img {
  width: 62px;
  height: 62px;
  margin-bottom: 30px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
}

.journey-card .service-index {
  margin-bottom: 12px;
  color: #91d8f9;
}

.journey-card h3 {
  margin-bottom: 16px;
  font-size: 1.55rem;
}

.journey-card > p,
.journey-card li {
  color: #cce0e8;
}

.journey-card.featured > p,
.journey-card.featured li {
  color: #edf8fd;
}

.journey-card ul {
  margin: 8px 0 28px;
  padding-left: 20px;
}

.journey-card .text-button {
  margin-top: auto;
  color: #fff;
}

.services-faq {
  background: #fff;
}

.services-faq-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.services-faq-copy {
  position: sticky;
  top: 118px;
}

.services-faq-copy h2 {
  margin: 15px 0 20px;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  letter-spacing: -0.055em;
}

.services-faq-copy p:last-child {
  color: var(--muted);
}

.services-faq-list details {
  border-bottom: 1px solid #dfe8ec;
}

.services-faq-list summary {
  position: relative;
  padding: 24px 46px 24px 0;
  cursor: pointer;
  list-style: none;
  font: 800 1.05rem/1.45 Manrope, sans-serif;
}

.services-faq-list summary::-webkit-details-marker {
  display: none;
}

.services-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 20px;
  color: var(--blue);
  font-size: 1.6rem;
}

.services-faq-list details[open] summary::after {
  content: "−";
}

.services-faq-list details p {
  margin: -6px 0 24px;
  color: var(--muted);
}

.services-page .cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0787d1, #075982);
}

.services-page .cta-section::before,
.services-page .cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, 0.055);
}

.services-page .cta-section::before {
  width: 260px;
  height: 260px;
  left: -160px;
  bottom: -160px;
}

.services-page .cta-section::after {
  width: 190px;
  height: 190px;
  right: -110px;
  top: -120px;
}

.services-page .cta-section > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .services-hero-copy > * {
    animation: services-rise 0.72s both;
  }

  .services-hero-copy > *:nth-child(2) { animation-delay: 0.05s; }
  .services-hero-copy > *:nth-child(3) { animation-delay: 0.1s; }
  .services-hero-copy > *:nth-child(4) { animation-delay: 0.15s; }
  .services-hero-copy > *:nth-child(5) { animation-delay: 0.2s; }
  .services-visual { animation: services-visual-in 0.9s 0.1s both; }

  @keyframes services-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes services-visual-in {
    from { opacity: 0; transform: translateX(30px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
  }
}

@media (max-width: 1180px) {
  .services-shell {
    width: min(100% - 48px, 1120px);
  }

  .services-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(450px, 1.08fr);
    gap: 32px;
  }

  .services-hero-copy h1 {
    font-size: clamp(3rem, 5.5vw, 4.4rem);
  }

  .services-visual {
    min-height: 520px;
  }

  .service-document {
    left: 16px;
  }

  .service-document:nth-of-type(2) {
    left: 30px;
  }

  .services-proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }

  .service-proof:nth-child(2) {
    border-right: 0;
  }

  .service-proof:nth-child(3) {
    padding-left: 0;
  }

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

@media (max-width: 950px) {
  .services-hero {
    padding-top: 28px;
  }

  .services-hero-grid,
  .services-heading,
  .guide-layout,
  .services-faq-layout {
    grid-template-columns: 1fr;
  }

  .services-hero-copy {
    padding-bottom: 0;
  }

  .services-visual {
    min-height: 570px;
  }

  .services-heading {
    gap: 18px;
  }

  .guide-nav,
  .services-faq-copy {
    position: static;
  }

  .guide-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }

  .guide-nav strong {
    grid-column: 1 / -1;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .journey-card {
    min-height: 0;
  }
}

@media (max-width: 650px) {
  .services-shell {
    width: min(100% - 36px, 620px);
  }

  .services-hero {
    padding-top: 18px;
  }

  .services-breadcrumbs {
    margin-bottom: 24px;
  }

  .services-hero-copy h1 {
    font-size: clamp(2.85rem, 13vw, 4rem);
  }

  .services-hero-copy .hero-actions {
    align-items: stretch;
  }

  .services-hero-copy .button {
    width: 100%;
  }

  .service-signature {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }

  .signature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .services-visual {
    min-height: 490px;
    border-radius: 24px;
  }

  .services-visual > img {
    object-position: 53% center;
  }

  .service-document {
    left: 12px;
    width: 47%;
    padding: 10px;
    border-radius: 14px;
  }

  .service-document:first-of-type {
    top: 16px;
  }

  .service-document:nth-of-type(2) {
    top: 188px;
    left: 20px;
  }

  .service-document small {
    font-size: 0.6rem;
  }

  .ugr-brand {
    height: 46px;
  }

  .ugr-logo {
    width: 58px;
    height: 46px;
  }

  .gobierno-brand {
    width: 112px;
    height: 42px;
  }

  .gobierno-logo {
    top: -30px;
    width: 112px;
    height: 112px;
  }

  .students-pill {
    right: 12px;
    bottom: 12px;
    min-width: 0;
    max-width: calc(100% - 24px);
    padding: 11px 13px;
  }

  .services-proof-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
    padding: 22px;
    border-radius: 18px 18px 0 0;
  }

  .service-proof,
  .service-proof:first-child,
  .service-proof:nth-child(3),
  .service-proof:last-child {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid #dfe8ec;
  }

  .service-proof:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .services-section {
    padding: 75px 0;
  }

  .services-heading h2 {
    font-size: 2.65rem;
  }

  .academic-grid-new,
  .guide-nav,
  .guide-points {
    grid-template-columns: 1fr;
  }

  .academic-card {
    min-height: 270px;
  }

  .guide-panel summary {
    grid-template-columns: 42px 1fr 30px;
    gap: 11px;
    padding: 20px 17px;
  }

  .guide-step {
    width: 40px;
    height: 40px;
  }

  .guide-title small {
    display: none;
  }

  .guide-body {
    padding: 0 17px 22px;
  }

  .journey-card {
    padding: 26px;
  }
}
