/* PÁGINA DE SERVICIOS */

.servicios-page {
  margin: 0;
  overflow-x: hidden;
  background: #fefcfb;
  color: #0a1128;
  font-family: var(--font-body);
}

.servicios-page main,
.servicios-page main a,
.servicios-page main button {
  font-family: var(--font-body);
}

.servicios-page article[id] {
  scroll-margin-top: 112px;
}

/* FIN PÁGINA DE SERVICIOS */


/* HERO */

.hero--servicios {
  position: relative;
  height: 68vh;
  min-height: 520px;
  margin-top: -140px;
  padding: 220px 0 80px;
  overflow: hidden;
  color: #fefcfb;
  background: url("../../img/manos.jpg") center / cover no-repeat;
}

.hero--servicios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 17, 40, 0.88), rgba(0, 31, 84, 0.78), rgba(3, 64, 120, 0.42));
}

.hero--servicios .hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
}

.hero--servicios .hero__eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero--servicios h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #fefcfb;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero--servicios .hero__subtitle {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero--servicios .hero__eyebrow,
.hero--servicios h1,
.hero--servicios .hero__subtitle {
  opacity: 0;
  transform: translateY(24px);
  animation: servicios-hero-in 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero--servicios h1 { animation-delay: 0.1s; }
.hero--servicios .hero__subtitle { animation-delay: 0.2s; }

@keyframes servicios-hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* FIN HERO */


/* ACCESOS A SERVICIOS */

.servicios-access {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #dbe4ef;
  background: #fefcfb;
  box-shadow: 0 8px 24px rgba(0, 31, 84, 0.05);
}

.servicios-access__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0;
  padding-bottom: 0;
}

.servicios-access a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 14px 16px;
  border-right: 1px solid #e2e8f0;
  color: #33445f;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.servicios-access a:first-child { border-left: 1px solid #e2e8f0; }

.servicios-access a::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #1282a2;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.servicios-access a:hover,
.servicios-access a:focus-visible {
  background: #f5f8fc;
  color: #001f54;
}

.servicios-access a:hover::after,
.servicios-access a:focus-visible::after { transform: scaleX(1); }

/* FIN ACCESOS A SERVICIOS */


/* PRESENTACIÓN */

.servicios-intro {
  padding: 86px 0 60px;
  background: #fefcfb;
}

.servicios-heading {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.servicios-heading__mini,
.servicio-card__category,
.servicios-contact__mini {
  display: block;
  margin: 0 0 10px;
  color: #1282a2;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.servicios-heading h2 {
  margin: 0;
  color: #001f54;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.servicios-heading p {
  max-width: 720px;
  margin: 20px auto 0;
  color: #53647e;
  font-size: 1rem;
  line-height: 1.7;
}

/* FIN PRESENTACIÓN */


/* SERVICIOS */

.servicios-section {
  padding: 26px 0 96px;
  background: #fefcfb;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.servicio-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #fefcfb;
  box-shadow: 0 12px 32px rgba(0, 31, 84, 0.07);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 130, 162, 0.45);
  box-shadow: 0 20px 44px rgba(0, 31, 84, 0.12);
}

.servicio-card__image {
  position: relative;
  flex: 0 0 auto;
  height: 250px;
  overflow: hidden;
  background: #001f54;
}

.servicio-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.02) 35%, rgba(0, 31, 84, 0.48));
  pointer-events: none;
}

.servicio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.servicio-card__image--formacion img { object-position: center 28%; }
.servicio-card:hover .servicio-card__image img { transform: scale(1.035); }

.servicio-card__index {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 16px;
  color: #fefcfb;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.servicio-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
}

.servicio-card h2 {
  margin: 0;
  color: #001f54;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.servicio-card h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 13px;
  border-radius: 999px;
  background: #1282a2;
}

.servicio-card__body > p {
  margin: 20px 0 0;
  color: #53647e;
  font-size: 1rem;
  line-height: 1.65;
}

.servicio-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  width: 100%;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.servicio-card__details li {
  position: relative;
  padding-left: 21px;
  color: #263a58;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.servicio-card__details li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 1px;
  width: 9px;
  height: 5px;
  border-right: 2px solid #1282a2;
  border-bottom: 2px solid #1282a2;
  transform: rotate(45deg);
}

.servicio-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 20px;
  border: 1px solid #001f54;
  border-radius: 9px;
  background: #001f54;
  color: #fefcfb;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 31, 84, 0.14);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.servicio-card__link span {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.servicio-card__link:hover,
.servicio-card__link:focus-visible {
  transform: translateY(-2px);
  border-color: #1282a2;
  background: #1282a2;
  box-shadow: 0 11px 24px rgba(18, 130, 162, 0.22);
}

.servicio-card__link:hover span,
.servicio-card__link:focus-visible span { transform: translateX(3px); }

/* FIN SERVICIOS */


/* CONTACTO */

.servicios-contact {
  padding: 0 0 96px;
  background: #fefcfb;
}

.servicios-contact__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 48px 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #001f54, #0a1128);
  color: #fefcfb;
  box-shadow: 0 18px 42px rgba(0, 31, 84, 0.16);
}

.servicios-contact__text { max-width: 680px; }
.servicios-contact__mini { color: #65c1d8; }

.servicios-contact h2 {
  margin: 0;
  color: #fefcfb;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.22;
}

.servicios-contact p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.servicios-contact__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 172px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #fefcfb;
  border-radius: 9px;
  background: #fefcfb;
  color: #001f54;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.servicios-contact__button:hover,
.servicios-contact__button:focus-visible {
  transform: translateY(-2px);
  background: transparent;
  color: #fefcfb;
}

/* FIN CONTACTO */


/* ANIMACIONES DE ENTRADA */

.servicios-page.servicios-js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.servicios-page.servicios-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* FIN ANIMACIONES DE ENTRADA */


/* TABLET HORIZONTAL */

@media (min-width: 981px) and (max-width: 1100px) {
  .hero--servicios {
    height: auto;
    min-height: 500px;
    margin-top: -124px;
    padding: 194px 0 72px;
  }

  .servicios-grid { gap: 24px; }
  .servicio-card__body { padding: 28px; }
  .servicio-card__details { grid-template-columns: 1fr; }
}

/* FIN TABLET HORIZONTAL */


/* TABLET */

@media (min-width: 701px) and (max-width: 980px) {
  .servicios-page article[id] { scroll-margin-top: 82px; }

  .hero--servicios {
    height: auto;
    min-height: 460px;
    margin-top: -56px;
    padding: 132px 0 72px;
    background-position: 56% center;
  }

  .hero--servicios h1 { font-size: clamp(2.25rem, 5vw, 2.75rem); }
  .servicios-access a { min-height: 66px; padding: 12px 10px; font-size: 0.88rem; }
  .servicios-intro { padding: 72px 0 50px; }
  .servicios-grid { gap: 22px; }
  .servicio-card__image { height: 210px; }
  .servicio-card__body { padding: 26px; }
  .servicio-card h2 { font-size: 1.75rem; }
  .servicio-card__details { grid-template-columns: 1fr; }
  .servicios-contact__box { padding: 40px; }
  .servicios-contact h2 { font-size: 2rem; }
}

/* FIN TABLET */


/* CELULAR */

@media (max-width: 700px) {
  .servicios-page article[id] { scroll-margin-top: 76px; }

  .servicios-page .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero--servicios {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 420px;
    margin-top: -56px;
    padding: 116px 0 58px;
    background-position: 62% center;
  }

  .hero--servicios::before {
    background: linear-gradient(90deg, rgba(10, 17, 40, 0.97), rgba(0, 31, 84, 0.9) 70%, rgba(3, 64, 120, 0.62));
  }

  .hero--servicios .hero__content { max-width: 100%; text-align: left; }
  .hero--servicios .hero__eyebrow { margin-bottom: 11px; font-size: 0.7rem; letter-spacing: 0.16em; }

  .hero--servicios h1 {
    max-width: 20rem;
    margin-bottom: 14px;
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.18;
  }

  .hero--servicios .hero__subtitle {
    max-width: 22rem;
    font-size: 0.78rem;
    line-height: 1.65;
    letter-spacing: 0.11em;
  }

  .servicios-access__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 20px;
    padding-left: 20px;
  }

  .servicios-access a,
  .servicios-access a:first-child {
    min-height: 58px;
    padding: 10px 8px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-left: 0;
    font-size: 0.84rem;
  }

  .servicios-access a:nth-child(2n) { border-right: 0; }
  .servicios-access a:nth-last-child(-n + 2) { border-bottom: 0; }
  .servicios-intro { padding: 62px 0 42px; }

  .servicios-heading__mini,
  .servicio-card__category,
  .servicios-contact__mini { font-size: 0.7rem; letter-spacing: 0.14em; }

  .servicios-heading h2 { font-size: 1.85rem; line-height: 1.25; }
  .servicios-heading p { margin-top: 17px; font-size: 1rem; line-height: 1.65; }
  .servicios-section { padding: 18px 0 68px; }
  .servicios-grid { grid-template-columns: 1fr; gap: 22px; }

  .servicio-card {
    width: 100%;
    border-radius: 14px;
  }

  .servicio-card:hover { transform: none; }
  .servicio-card__image { height: 210px; }
  .servicio-card__index { right: 16px; bottom: 14px; font-size: 1.25rem; }

  .servicio-card__body {
    align-items: flex-start;
    padding: 25px 22px 24px;
    text-align: left;
  }

  .servicio-card h2 { font-size: 1.65rem; }
  .servicio-card__body > p { margin-top: 17px; font-size: 1rem; line-height: 1.65; }
  .servicio-card__details { grid-template-columns: 1fr; gap: 9px; margin: 21px 0 24px; }
  .servicio-card__details li { font-size: 0.9rem; }
  .servicio-card__link { width: 100%; min-height: 48px; }
  .servicios-contact { padding-bottom: 68px; }

  .servicios-contact__box {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding: 32px 24px;
    border-radius: 14px;
    text-align: left;
  }

  .servicios-contact h2 { font-size: 1.85rem; }
  .servicios-contact p { font-size: 1rem; line-height: 1.65; }
  .servicios-contact__button { width: 100%; min-width: 0; }
  .servicios-page.servicios-js .reveal { transform: translateY(18px); }
}

/* FIN CELULAR */


/* MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {
  .hero--servicios .hero__eyebrow,
  .hero--servicios h1,
  .hero--servicios .hero__subtitle,
  .servicios-page.servicios-js .reveal,
  .servicios-page.servicios-js .reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* FIN MOVIMIENTO REDUCIDO */
