/* Servicios: adaptación modular de Consora service.html y service-details.html. */
.services-page,
.service-single {
  color: var(--it-navy);
}

.services-page h2,
.service-single h2 {
  margin: 0;
  color: var(--it-navy);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-spacing {
  padding-block: clamp(80px, 8vw, 120px);
}

.section-kicker {
  margin: 0 0 24px;
  color: var(--it-blue);
  font-size: 0.95rem;
  font-weight: 500;
}

.services-hero,
.service-detail-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--it-ink);
  background-position: center;
  background-size: cover;
  color: var(--it-white);
}

.services-hero {
  min-height: var(--page-hero-min-height);
  background-image: linear-gradient(90deg, rgb(17 20 42 / 90%), rgb(17 20 42 / 60%) 52%, rgb(17 20 42 / 20%)), var(--services-hero-image);
}

.service-detail-hero {
  min-height: var(--page-hero-min-height);
  background-image: linear-gradient(90deg, rgb(17 20 42 / 92%), rgb(17 20 42 / 64%) 55%, rgb(17 20 42 / 18%)), var(--service-detail-image);
}

.services-hero::after,
.service-detail-hero::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 62%);
}

.services-hero__content,
.service-detail-hero__content {
  position: relative;
  z-index: 1;
}

.services-hero__content {
  padding-block: var(--page-hero-content-padding);
}

.service-detail-hero__content {
  padding-block: var(--page-hero-content-padding);
}

.services-breadcrumb {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 65%);
  font-size: 0.9rem;
}

.services-breadcrumb a {
  color: var(--it-white);
  text-decoration: none;
}

.services-hero h1,
.service-detail-hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  color: var(--it-white);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.services-hero h1 {
  font-size: var(--page-hero-title-font-size);
}

.service-detail-hero h1 {
  font-size: var(--page-hero-title-font-size);
}

.services-hero__content > p,
.service-detail-hero__intro {
  max-width: 720px;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  line-height: 1.5;
}

.services-hero__content > p {
  font-size: var(--page-hero-description-font-size);
}

.service-detail-hero__intro {
  font-size: var(--page-hero-description-font-size);
}

.services-intro {
  background: var(--it-white);
}

.services-intro__grid,
.service-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.9fr);
  gap: clamp(70px, 9vw, 145px);
}

.services-intro__copy h2 {
  max-width: 680px;
}

.service-title-word {
  display: inline-block;
  white-space: nowrap;
}

.service-title-letter {
  display: inline-block;
}

[data-service-title-reveal][data-reveal-ready="true"] .service-title-letter {
  opacity: 0;
  transform: translateY(0.7em);
}

[data-service-title-reveal].is-visible .service-title-letter {
  animation: service-letter-reveal 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--letter-delay);
}

@keyframes service-letter-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-intro__description,
.service-richtext {
  margin-top: 30px;
  color: var(--it-muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

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

.services-stat {
  min-height: 155px;
  padding: 22px 28px;
  border-bottom: 1px solid rgb(37 40 65 / 15%);
}

.services-stat:nth-child(odd) {
  border-right: 1px solid rgb(37 40 65 / 15%);
}

.services-stat strong,
.services-stat span {
  display: block;
}

.services-stat strong {
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

[data-service-counter] {
  font-variant-numeric: tabular-nums;
}

.services-stat span {
  color: var(--it-muted);
}

.services-principles {
  background: var(--it-ink);
  color: var(--it-white);
}

.services-section-heading {
  max-width: 850px;
  margin-bottom: 58px;
}

.services-section-heading--light h2 {
  color: var(--it-white);
}

.services-principles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 16%);
  border-left: 1px solid rgb(255 255 255 / 16%);
}

.service-principle {
  min-height: 330px;
  padding: 34px;
  border-right: 1px solid rgb(255 255 255 / 16%);
  border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.service-principle__icon,
.service-benefit__icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 55px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
}

.service-principle__icon img,
.service-benefit__icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.service-principle__icon span {
  color: var(--it-blue);
  font-size: 0.8rem;
}

.service-principle h3 {
  margin: 0 0 16px;
  color: var(--it-white);
  font-size: 1.35rem;
  font-weight: 500;
}

.service-principle p {
  margin: 0;
  color: rgb(255 255 255 / 65%);
  line-height: 1.65;
}

.services-catalog {
  background: #f3f4fb;
}

.services-catalog__heading {
  display: grid;
  margin-bottom: 58px;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.65fr);
  align-items: end;
  gap: 80px;
}

.services-catalog__heading > p {
  margin: 0 0 4px;
  color: var(--it-muted);
  line-height: 1.7;
}

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

.service-catalog-card {
  overflow: hidden;
  background: var(--it-white);
}

.service-catalog-card__image {
  display: block;
  height: 280px;
  overflow: hidden;
  background: var(--it-ink);
}

.service-catalog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.service-catalog-card:hover .service-catalog-card__image img {
  transform: scale(1.04);
}

.service-catalog-card__body {
  position: relative;
  min-height: 315px;
  padding: 34px;
}

.service-catalog-card__number {
  display: block;
  margin-bottom: 34px;
  color: var(--it-blue);
  font-size: 0.8rem;
}

.service-catalog-card h3 {
  margin: 0 0 15px;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
}

.service-catalog-card h3 a,
.service-text-link {
  color: var(--it-navy);
  text-decoration: none;
}

.service-catalog-card p {
  margin: 0 0 28px;
  color: var(--it-muted);
  line-height: 1.6;
}

.service-text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgb(37 40 65 / 15%);
  padding-top: 18px;
  font-weight: 500;
}

.service-text-link span {
  color: var(--it-blue);
  font-size: 1.35rem;
}

.service-overview {
  background: var(--it-white);
}

.service-overview__copy h2 {
  max-width: 690px;
}

.service-accordion {
  border-top: 1px solid rgb(37 40 65 / 16%);
}

.service-accordion details {
  border-bottom: 1px solid rgb(37 40 65 / 16%);
}

.service-accordion summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
}

.service-accordion summary::-webkit-details-marker {
  display: none;
}

.service-accordion summary i {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.service-accordion summary i::before,
.service-accordion summary i::after {
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 1px;
  background: var(--it-blue);
  content: "";
}

.service-accordion summary i::after {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.service-accordion details[open] summary i::after {
  transform: rotate(0);
}

.service-accordion details > div {
  padding: 0 45px 28px 0;
  color: var(--it-muted);
  line-height: 1.65;
}

.service-media-section {
  padding-top: 0;
  background: var(--it-white);
}

.service-productivity-embed {
  padding-block: 0 clamp(80px, 8vw, 120px);
  background: var(--it-white);
}

.service-productivity-embed iframe {
  display: block;
  width: 100%;
  min-height: min(78vh, 900px);
  border: 0;
}

.service-media {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--it-ink);
}

.service-media > img,
.service-media > video,
.service-media > iframe {
  display: block;
  width: 100%;
  height: 610px;
  border: 0;
  object-fit: cover;
}

.service-media__highlights {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: min(720px, 65%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--it-ink);
}

.service-media__highlights div {
  display: flex;
  min-height: 88px;
  padding: 22px 26px;
  align-items: center;
  gap: 13px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  border-left: 1px solid rgb(255 255 255 / 15%);
  color: var(--it-white);
  line-height: 1.4;
}

.service-media__highlights span {
  color: var(--it-blue);
}

.service-benefits {
  background: #f3f4fb;
}

.service-benefits > .container > h2 {
  max-width: 790px;
  margin-bottom: 58px;
}

.service-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(98 111 191 / 22%);
  border-left: 1px solid rgb(98 111 191 / 22%);
}

.service-benefit {
  min-height: 300px;
  padding: 34px;
  border-right: 1px solid rgb(98 111 191 / 22%);
  border-bottom: 1px solid rgb(98 111 191 / 22%);
}

.service-benefit__icon {
  margin-bottom: 45px;
  border-color: rgb(98 111 191 / 35%);
}

.service-benefit__icon span {
  color: var(--it-blue);
  font-size: 0.8rem;
}

.service-benefit h3 {
  margin: 0 0 15px;
  font-size: 1.35rem;
  font-weight: 500;
}

.service-benefit p {
  margin: 0;
  color: var(--it-muted);
  line-height: 1.65;
}

.service-contact {
  padding-block: clamp(74px, 8vw, 110px);
  background: var(--it-ink);
  color: var(--it-white);
}

.service-contact__inner {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: clamp(50px, 7vw, 100px);
}

.service-contact h2 {
  max-width: 650px;
  color: var(--it-white);
}

.service-contact__copy > p:not(.service-contact__kicker) {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgb(255 255 255 / 68%);
  line-height: 1.7;
}

.service-contact__kicker {
  margin: 0 0 22px;
  color: rgb(255 255 255 / 55%);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-contact__form {
  padding: clamp(30px, 4vw, 52px);
  border-radius: 6px;
  background: #f4f5f9;
  color: var(--it-navy);
}

.service-contact__form > h3 {
  margin: 0 0 30px;
  color: var(--it-navy);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 400;
}

.service-contact__form .wpforms-container {
  margin: 0;
}

.service-contact__form .wpforms-field {
  padding: 0 0 15px !important;
}

.service-contact__form .wpforms-field-label {
  margin-bottom: 8px !important;
  color: var(--it-navy) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
}

.service-contact__form input[type="text"],
.service-contact__form input[type="email"],
.service-contact__form input[type="tel"],
.service-contact__form input[type="url"],
.service-contact__form input[type="number"],
.service-contact__form select,
.service-contact__form textarea {
  width: 100% !important;
  max-width: none !important;
  min-height: 56px !important;
  padding: 13px 16px !important;
  border: 1px solid rgb(37 40 65 / 13%) !important;
  border-radius: 6px !important;
  background: var(--it-white) !important;
  color: var(--it-navy) !important;
  box-shadow: none !important;
}

.service-contact__form textarea {
  min-height: 145px !important;
  resize: vertical;
}

.service-contact__form input:focus,
.service-contact__form select:focus,
.service-contact__form textarea:focus {
  border-color: var(--it-blue) !important;
}

.service-contact__form .wpforms-submit-container {
  padding-top: 8px !important;
}

.service-contact__form button[type="submit"] {
  width: 100% !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: var(--it-blue) !important;
  color: var(--it-white) !important;
  font-weight: 600 !important;
  transition: background-color 250ms ease !important;
}

.service-contact__form button[type="submit"]:hover {
  background: var(--it-navy) !important;
}

@media (max-width: 1050px) {
  .services-intro__grid,
  .service-overview__grid,
  .service-contact__inner {
    grid-template-columns: 1fr;
    gap: 55px;
  }

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

@media (max-width: 760px) {
  .services-hero {
    min-height: var(--page-hero-min-height);
  }

  .service-detail-hero {
    min-height: var(--page-hero-min-height);
  }

  .services-hero h1 {
    font-size: var(--page-hero-title-font-size);
  }

  .service-detail-hero h1 {
    font-size: var(--page-hero-title-font-size);
  }

  .services-stats,
  .services-principles__grid,
  .services-catalog__heading,
  .services-catalog__grid,
  .service-benefits__grid {
    grid-template-columns: 1fr;
  }

  .services-stat:nth-child(odd) {
    border-right: 0;
  }

  .services-catalog__heading {
    gap: 28px;
  }

  .service-principle,
  .service-benefit {
    min-height: auto;
  }

  .service-media,
  .service-media > img,
  .service-media > video,
  .service-media > iframe {
    min-height: 430px;
    height: 430px;
  }

  .service-media__highlights {
    position: relative;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .service-contact__form {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-service-title-reveal][data-reveal-ready="true"] .service-title-letter {
    opacity: 1;
    transform: none;
  }
}
