/* =========================================
   PÁGINAS INTERNAS DE SERVICIOS
   ========================================= */

:root {
  --service-navy: #032b57;
  --service-navy-dark: #021f40;
  --service-text: #102b4e;
  --service-muted: #6f8093;
  --service-soft: #f4f7fa;
  --service-border: #dce3ea;
  --service-white: #ffffff;
}

.service-page {
  overflow: hidden;
  color: var(--service-text);
}

.service-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 30px;
  padding-bottom: 24px;
  font-size: 0.88rem;
  color: var(--service-muted);
}

.service-breadcrumb a {
  color: var(--service-text);
  text-decoration: none;
  font-weight: 600;
}

.service-breadcrumb a:hover {
  color: var(--service-navy);
}

.service-hero {
  padding: 28px 0 88px;
}

.service-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  align-items: center;
  gap: 72px;
}

.service-hero__content {
  min-width: 0;
}

.service-hero__content h1 {
  max-width: 620px;
  margin: 16px 0 22px;
  font-size: clamp(2.7rem, 3.65vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  color: var(--service-navy);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.service-hero__content > p {
  max-width: 660px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--service-muted);
}

.service-page__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--service-navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-page__tag::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.service-page__tag--light {
  color: var(--service-white);
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.service-page__button {
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.service-page__button:hover {
  transform: translateY(-2px);
}

.service-page__button--primary {
  background: var(--service-navy);
  color: var(--service-white);
  box-shadow: 0 16px 32px rgba(3, 43, 87, 0.18);
}

.service-page__button--secondary {
  border-color: var(--service-border);
  background: var(--service-white);
  color: var(--service-navy);
}

.service-page__button--light {
  flex-shrink: 0;
  background: var(--service-white);
  color: var(--service-navy);
}

.service-hero__image {
  position: relative;
  min-height: 540px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(3, 43, 87, 0.16);
}

.service-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 43, 87, 0) 55%,
      rgba(3, 43, 87, 0.32) 100%
    );
}

.service-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: block;
  object-fit: cover;
}

.service-section {
  padding: 100px 0;
}

.service-section--soft {
  background: var(--service-soft);
}

.service-section--navy {
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.09),
      transparent 34%
    ),
    var(--service-navy);
  color: var(--service-white);
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 110px;
}

.service-intro__heading h2,
.service-page__header h2,
.service-applications h2,
.service-cta h2 {
  margin: 16px 0 0;
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--service-navy);
}

.service-intro__content {
  max-width: 760px;
}

.service-intro__content p {
  margin: 0 0 20px;
  color: var(--service-muted);
  line-height: 1.85;
}

.service-intro__content p:last-child {
  margin-bottom: 0;
}

.service-page__header {
  max-width: 790px;
  margin: 0 auto 52px;
  text-align: center;
}

.service-page__header .service-page__tag {
  justify-content: center;
}

.service-page__header p {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--service-muted);
  line-height: 1.75;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-feature {
  min-height: 270px;
  padding: 32px;
  border: 1px solid var(--service-border);
  border-radius: 16px;
  background: var(--service-white);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.service-feature:hover {
  transform: translateY(-6px);
  border-color: rgba(3, 43, 87, 0.22);
  box-shadow: 0 22px 45px rgba(3, 43, 87, 0.1);
}

.service-feature__number {
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--service-navy);
  color: var(--service-white);
  font-size: 0.8rem;
  font-weight: 800;
}

.service-feature h3,
.service-process__item h3 {
  margin: 0 0 12px;
  color: var(--service-navy);
  font-size: 1.08rem;
}

.service-feature p,
.service-process__item p {
  margin: 0;
  color: var(--service-muted);
  line-height: 1.7;
}

.service-feature__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  border-radius: 16px;

  display: grid;
  place-items: center;

  background: rgba(3, 43, 87, 0.08);
  color: var(--service-navy);
}

.service-feature__icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

.service-features--capabilities .service-feature {
  position: relative;
  overflow: hidden;
}

.service-features--capabilities .service-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--service-navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.service-features--capabilities .service-feature:hover::after {
  transform: scaleX(1);
}

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

.service-features--benefits .service-feature {
  position: relative;
  min-height: 0;
  padding: 30px 32px 30px 88px;
  border: 0;
  border-left: 3px solid var(--service-navy);
  border-radius: 6px 16px 16px 6px;
  background:
    linear-gradient(110deg, rgba(3, 43, 87, 0.055), transparent 55%),
    var(--service-white);
  box-shadow: 0 12px 34px rgba(3, 43, 87, 0.07);
}

.service-features--benefits .service-feature:hover {
  transform: translateX(5px);
}

.service-benefit__mark {
  position: absolute;
  top: 31px;
  left: 30px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--service-navy);
  color: var(--service-white);
  font-size: 1rem;
  font-weight: 800;
}

.service-benefit__mark svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.5;
}

.service-process {
  position: relative;
  max-width: 970px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.service-process::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: 55px;
  width: 2px;
  background: linear-gradient(
    var(--service-navy),
    rgba(3, 43, 87, 0.14)
  );
}

.service-process__item {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
  border: 1px solid var(--service-border);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--service-white);
}

.service-process__item > span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--service-navy);
  color: var(--service-white);
  font-weight: 800;
}

.service-applications {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 90px;
}

.service-applications h2,
.service-cta h2 {
  color: var(--service-white);
}

.service-applications p,
.service-cta p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.service-applications__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.service-applications__list span {
  padding: 15px 19px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--service-white);
  font-size: 0.88rem;
  font-weight: 700;
}

.service-faq {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.service-faq__item {
  border: 1px solid var(--service-border);
  border-radius: 14px;
  background: var(--service-white);
  overflow: hidden;
}

.service-faq__item summary {
  position: relative;
  padding: 25px 72px 25px 27px;
  list-style: none;
  cursor: pointer;
  color: var(--service-navy);
  font-weight: 750;
}

.service-faq__item summary::-webkit-details-marker {
  display: none;
}

.service-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--service-navy);
  color: var(--service-white);
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.service-faq__item[open] summary::after {
  content: "−";
}

.service-faq__item p {
  margin: 0;
  padding: 0 72px 26px 27px;
  color: var(--service-muted);
  line-height: 1.75;
}

.service-cta {
  padding: 82px 0;
  background:
    linear-gradient(
      110deg,
      var(--service-navy-dark),
      var(--service-navy)
    );
}

.service-cta__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.service-cta h2 {
  max-width: 850px;
}

/* TABLET */
@media (max-width: 1024px) {
  .service-hero__grid,
  .service-intro,
  .service-applications {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .service-hero__content,
  .service-intro,
  .service-applications {
    text-align: center;
  }

  .service-hero__content > p,
  .service-intro__content,
  .service-applications p {
    margin-left: auto;
    margin-right: auto;
  }

  .service-hero__content h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .service-page__tag {
    justify-content: center;
  }

  .service-hero__actions {
    justify-content: center;
  }

  .service-hero__image,
  .service-hero__image img {
    min-height: 460px;
  }

  .service-intro {
    gap: 35px;
  }

  .service-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-applications__list {
    justify-content: center;
  }

  .service-cta__content {
    flex-direction: column;
    text-align: center;
  }
}

/* MÓVIL */
@media (max-width: 700px) {
  .service-breadcrumb {
    padding-top: 22px;
    font-size: 0.77rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  .service-hero {
    padding: 12px 0 62px;
  }

  .service-hero__grid {
    gap: 38px;
  }

  .service-hero__content h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
  }

  .service-hero__actions {
    flex-direction: column;
  }

  .service-page__button {
    width: 100%;
  }

  .service-hero__image,
  .service-hero__image img {
    min-height: 330px;
  }

  .service-section {
    padding: 68px 0;
  }

  .service-intro__heading h2,
  .service-page__header h2,
  .service-applications h2,
  .service-cta h2 {
    font-size: 2rem;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .service-feature {
    min-height: auto;
    padding: 27px 24px;
  }

  .service-process__item {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: center;
  }

  .service-process::before {
    display: none;
  }

  .service-process__item > span {
    margin: 0 auto;
  }

  .service-applications {
    gap: 36px;
  }

  .service-applications__list span {
    width: 100%;
    text-align: center;
  }

  .service-faq__item summary {
    padding: 22px 64px 22px 22px;
  }

  .service-faq__item summary::after {
    right: 20px;
  }

  .service-faq__item p {
    padding: 0 22px 24px;
  }

  .service-cta {
    padding: 68px 0;
  }

  .service-features--benefits .service-feature {
    padding: 26px 24px 26px 76px;
  }

  .service-benefit__mark {
    top: 25px;
    left: 22px;
  }
}

/* =========================================
   REFINAMIENTO VISUAL CORPORATIVO
   Bloque reversible para subpáginas
   ========================================= */

.service-breadcrumb {
  letter-spacing: 0.015em;
}

.service-hero__grid {
  gap: 64px;
}

.service-hero__image {
  border: 1px solid rgba(3, 43, 87, 0.11);
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(3, 43, 87, 0.14);
}

.service-page__button {
  border-radius: 6px;
}

.service-features--capabilities .service-feature {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(3, 43, 87, 0.055);
}

.service-features--capabilities .service-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(3, 43, 87, 0.1);
}

.service-feature__icon {
  border-radius: 12px;
}

.service-process__item {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(3, 43, 87, 0.045);
}

.service-process__item > span {
  border-radius: 12px;
}

.service-applications__list span {
  border-radius: 8px;
}

.service-features--benefits .service-feature {
  border-radius: 5px 14px 14px 5px;
}

.service-faq__item {
  border-radius: 12px;
}

.service-faq__item summary::after {
  border-radius: 9px;
}

.service-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .service-hero__grid {
    gap: 48px;
  }
}

@media (max-width: 700px) {
  .service-hero__grid {
    gap: 36px;
  }
}

/* =========================================
   CENTRADO RESPONSIVE DE TARJETAS
   Capacidades + Beneficios
   ========================================= */

@media (max-width: 1024px) {
  .service-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .service-feature__number {
    margin-left: auto;
    margin-right: auto;
  }

  .service-feature h3,
  .service-feature p {
    width: 100%;
    text-align: center;
  }

  .service-features--benefits .service-feature {
    display: block;
    text-align: left;
  }

  .service-features--benefits .service-feature h3,
  .service-features--benefits .service-feature p {
    text-align: left;
  }
}
