.services-shell {
  width: min(1320px, calc(100% - 64px));
  min-height: 100%;
  padding: 32px 0 30px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.services-heading {
  max-width: 900px;
}

.services-heading .eyebrow {
  margin-bottom: 14px;
}

.services-heading h2 {
  margin: 0;
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 400;
  line-height: 1.08;
}

.services-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.services-tools {
  display: grid;
  grid-template-columns: minmax(390px, 0.8fr) minmax(440px, 1.2fr);
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}

.services-tabs {
  --services-tab-index: 0;
  position: relative;
  min-width: 0;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 5px;
  border-radius: 13px;
}

.services-tabs__indicator {
  position: absolute;
  inset: 5px auto 5px 5px;
  z-index: 1;
  width: calc((100% - 10px) / 2);
  border-radius: 10px;
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 58%),
    rgb(255 255 255 / 18%)
  );
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 76%),
    inset 0 1px 0 rgb(255 255 255 / 82%),
    0 8px 20px rgb(78 57 42 / 9%);
  transform: translateX(calc(var(--services-tab-index) * 100%));
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services-tabs button {
  position: relative;
  z-index: 2;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.services-tabs button[aria-selected="true"] {
  color: var(--ink);
  font-weight: 500;
}

.services-search {
  min-width: 0;
  height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 0 13px 0 18px;
  border-radius: 13px;
}

.services-search > i {
  color: var(--ink);
  font-size: 17px;
}

.services-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.services-search input::placeholder {
  color: rgb(21 20 18 / 46%);
}

.services-search button,
.service-modal__close {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgb(255 255 255 / 28%);
  color: var(--ink-soft);
  cursor: pointer;
}

.services-search button[hidden] {
  display: none !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.service-card {
  min-width: 0;
  min-height: 178px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 12px 18px;
  padding: 24px 26px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 49%),
    rgb(255 255 255 / 15%)
  );
  color: var(--ink);
  text-align: left;
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 74%),
    inset 0 1px 0 rgb(255 255 255 / 76%),
    0 16px 32px rgb(69 51 38 / 8%);
  cursor: pointer;
}

.service-card[hidden] {
  display: none;
}

.service-card > i {
  grid-column: 1 / -1;
  color: var(--bronze-deep);
  font-size: 30px;
}

.service-card__copy {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.service-card__copy strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.service-card__copy small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.service-card__action {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
}

.service-card__action i {
  transition: transform 0.25s ease;
}

.service-card:hover .service-card__action i {
  transform: translateX(5px);
}

.services-empty {
  margin: 36px 0;
  color: var(--ink-soft);
  text-align: center;
}

.services-cta {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 22px 0;
  border-top: 1px solid rgb(139 117 96 / 18%);
}

.services-cta__mark {
  width: 62px;
  aspect-ratio: 1;
  display: grid;
  border: 1px solid rgb(155 113 76 / 42%);
  border-radius: 50%;
  place-items: center;
  color: var(--bronze);
}

.services-cta__mark i {
  font-size: 29px;
}

.services-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.services-cta__copy strong {
  font-size: 21px;
  font-weight: 400;
}

.services-cta__copy small {
  color: var(--ink-soft);
  font-size: 12px;
}

.services-cta .button {
  min-height: 54px;
  gap: 16px;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  padding: 28px;
  place-items: center;
}

.service-modal[hidden] {
  display: none;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(31 26 22 / 50%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.service-modal__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 56px);
  overflow: auto;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 88%),
    rgb(238 229 220 / 84%)
  );
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 88%),
    inset 0 1px 0 rgb(255 255 255 / 92%),
    0 32px 90px rgb(25 18 13 / 28%);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-modal.is-open .service-modal__backdrop,
.service-modal.is-open .service-modal__panel {
  opacity: 1;
}

.service-modal.is-open .service-modal__panel {
  transform: translateY(0) scale(1);
}

.service-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  width: 44px;
  border: 1px solid rgb(155 113 76 / 44%);
  background: rgb(255 255 255 / 34%);
  color: var(--ink);
  font-size: 19px;
}

.service-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  padding: 46px;
}

.service-modal__content > .eyebrow {
  margin-bottom: 18px;
}

.service-modal__content > h2 {
  max-width: 690px;
  margin: 0;
  padding-right: 46px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
}

.service-modal__intro {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.service-modal__content > h3 {
  margin: 32px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(139 117 96 / 28%);
  font-size: 14px;
  font-weight: 600;
}

.service-modal__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.service-modal__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 36px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 22px 0;
  border-bottom: 1px solid rgb(139 117 96 / 20%);
}

.service-modal__item-number {
  width: 28px;
  aspect-ratio: 1;
  display: grid;
  border: 1px solid rgb(155 113 76 / 46%);
  border-radius: 50%;
  place-items: center;
  color: var(--bronze-deep);
  font-size: 10px;
  font-weight: 600;
}

.service-modal__item > i {
  color: var(--ink);
  font-size: 23px;
}

.service-modal__item-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-modal__item-copy strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.service-modal__item-copy small {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.service-modal__aside {
  align-self: center;
}

.service-modal__visual {
  position: relative;
  min-height: 210px;
  display: grid;
  overflow: hidden;
  border-radius: 14px;
  place-items: center;
  background:
    radial-gradient(
      circle at 32% 22%,
      rgb(255 255 255 / 62%),
      transparent 32%
    ),
    linear-gradient(145deg, #e6d6c8, #b99d85);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 68%),
    0 18px 34px rgb(72 49 32 / 14%);
}

.service-modal__visual::before,
.service-modal__visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 1px;
  background: rgb(255 255 255 / 52%);
  transform: rotate(35deg);
}

.service-modal__visual::after {
  transform: rotate(-35deg);
}

.service-modal__visual > i {
  position: relative;
  z-index: 2;
  color: rgb(28 24 21 / 78%);
  font-size: 68px;
  filter: drop-shadow(0 12px 14px rgb(65 43 28 / 16%));
}

.service-modal__aside h3 {
  margin: 26px 0 0;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

.service-modal__aside p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.service-modal__aside .button {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  margin-top: 24px;
}

body.services-modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .services-shell {
    width: min(calc(100% - 36px), 740px);
    min-height: auto;
    padding: 28px 0 30px;
  }

  .services-heading .eyebrow {
    margin-bottom: 12px;
  }

  .services-heading h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .services-heading > p:last-child {
    margin-top: 14px;
    font-size: 15px;
  }

  .services-tools {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }

  .services-tabs,
  .services-search {
    height: 56px;
  }

  .services-tabs button {
    padding: 0 8px;
    font-size: 13px;
    line-height: 1.25;
  }

  .services-search input {
    font-size: 13px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  .service-card {
    min-height: 168px;
    padding: 22px 24px;
  }

  .service-card__copy strong {
    font-size: 21px;
  }

  .service-card__copy small {
    font-size: 12px;
  }

  .services-cta {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0 0;
  }

  .services-cta__mark {
    width: 50px;
  }

  .services-cta__copy strong {
    font-size: 18px;
  }

  .services-cta__copy small {
    font-size: 11px;
    line-height: 1.45;
  }

  .services-cta .button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .service-modal {
    align-items: end;
    padding: 12px;
  }

  .service-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
    transform: translateY(28px);
  }

  .service-modal__close {
    position: sticky;
    top: 14px;
    float: right;
    margin: 14px 14px -54px 0;
  }

  .service-modal__body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 22px 24px;
  }

  .service-modal__content > h2 {
    padding-right: 44px;
    font-size: 36px;
  }

  .service-modal__intro {
    padding-right: 10px;
    font-size: 14px;
  }

  .service-modal__items {
    grid-template-columns: 1fr;
  }

  .service-modal__item {
    grid-template-columns: 28px 32px minmax(0, 1fr);
    padding: 18px 0;
  }

  .service-modal__visual {
    min-height: 160px;
  }

  .service-modal__visual > i {
    font-size: 56px;
  }
}

@media (max-width: 440px) {
  .services-shell {
    width: calc(100% - 28px);
  }

  .services-heading h2 {
    font-size: 35px;
  }

  .services-tabs button {
    font-size: 12px;
  }

  .service-card {
    min-height: 160px;
    padding: 20px;
  }
}

/* ================================================================
   MODAL DE SERVICIOS EN CUADRÍCULA
   ================================================================ */

.page-panel--services {
  scrollbar-gutter: stable;
}

.services-heading h2 {
  margin-top: 0;
}

.service-modal__panel {
  width: min(1040px, calc(100vw - 48px));
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgb(255 255 255 / 91%),
      rgb(239 231 223 / 86%)
    );
}

.service-modal__close {
  top: 20px;
  right: 20px;
  width: 42px;
  background: rgb(255 255 255 / 32%);
}

.service-modal__body {
  display: block;
  padding: 42px 38px 0;
}

.service-modal__header {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-right: 54px;
}

.service-modal__visual {
  width: 82px;
  min-height: 82px;
  aspect-ratio: 1;
  border-radius: 13px;
  background:
    radial-gradient(
      circle at 28% 20%,
      rgb(255 255 255 / 65%),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgb(220 198 180 / 72%),
      rgb(188 156 131 / 54%)
    );
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 78%),
    inset 0 1px 0 rgb(255 255 255 / 84%),
    0 10px 24px rgb(76 55 40 / 10%);
}

.service-modal__visual::before,
.service-modal__visual::after {
  display: none;
}

.service-modal__visual > i {
  color: var(--bronze-deep);
  font-size: 35px;
  filter: none;
}

.service-modal__content > .eyebrow {
  margin: 0 0 5px;
  font-size: 9px;
  letter-spacing: 2px;
}

.service-modal__content > h2 {
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
}

.service-modal__intro {
  max-width: 760px;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.service-modal__services {
  margin-top: 28px;
  padding-top: 18px;
  border-top:
    1px solid rgb(139 117 96 / 22%);
}

.service-modal__services > h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.service-modal__items {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.service-modal__items:has(
  .service-modal__item:nth-child(4):last-child
) {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.service-modal__item {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns:
    42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 0;
  border-radius: 11px;
  background:
    linear-gradient(
      145deg,
      rgb(255 255 255 / 48%),
      rgb(255 255 255 / 13%)
    );
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 78%),
    inset 0 1px 0 rgb(255 255 255 / 76%),
    0 10px 22px rgb(70 51 37 / 7%);
}

.service-modal__item > i {
  width: 42px;
  color: var(--bronze-deep);
  font-size: 27px;
  text-align: center;
}

.service-modal__item-copy {
  gap: 5px;
}

.service-modal__item-copy strong {
  font-size: 12px;
  line-height: 1.3;
}

.service-modal__item-copy small {
  font-size: 9px;
  line-height: 1.45;
}

.service-modal__aside {
  display: grid;
  grid-template-columns:
    42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 28px -38px 0;
  padding: 17px 38px 19px;
  border-top:
    1px solid rgb(139 117 96 / 22%);
  background: rgb(255 255 255 / 12%);
}

.service-modal__help-icon {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  border-radius: 50%;
  place-items: center;
  background: rgb(183 146 116 / 16%);
  color: var(--bronze-deep);
}

.service-modal__help-copy h3,
.service-modal__aside h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.service-modal__help-copy p,
.service-modal__aside p {
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.4;
}

.service-modal__aside .button {
  width: auto;
  min-width: 230px;
  min-height: 50px;
  margin: 0;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 960px) {
  .service-modal {
    align-items: end;
    padding: 10px;
  }

  .service-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .service-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    float: none;
    margin: 0;
  }

  .service-modal__body {
    padding: 24px 18px 0;
  }

  .service-modal__header {
    grid-template-columns:
      58px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding-right: 40px;
  }

  .service-modal__visual {
    width: 58px;
    min-height: 58px;
    border-radius: 10px;
  }

  .service-modal__visual > i {
    font-size: 25px;
  }

  .service-modal__content > .eyebrow {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .service-modal__content > h2 {
    padding: 0;
    font-size: clamp(23px, 7vw, 31px);
  }

  .service-modal__intro {
    padding: 0;
    font-size: 11px;
  }

  .service-modal__services {
    margin-top: 22px;
    padding-top: 16px;
  }

  .service-modal__services > h3 {
    margin-bottom: 13px;
    font-size: 18px;
  }

  .service-modal__items,
  .service-modal__items:has(
    .service-modal__item:nth-child(4):last-child
  ) {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-modal__item {
    min-height: 96px;
    grid-template-columns:
      38px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .service-modal__item > i {
    width: 38px;
    font-size: 24px;
  }

  .service-modal__item-copy strong {
    font-size: 12px;
  }

  .service-modal__item-copy small {
    font-size: 10px;
  }

  .service-modal__aside {
    grid-template-columns:
      38px minmax(0, 1fr);
    gap: 11px;
    margin: 22px -18px 0;
    padding: 16px 18px 18px;
  }

  .service-modal__help-icon {
    width: 38px;
  }

  .service-modal__aside .button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-top: 3px;
  }
}

/* ================================================================
   LEGIBILIDAD DE SERVICIOS Y MODALES
   ================================================================ */

.services-search input {
  font-size: 15px;
}

.service-card {
  min-height: 210px;
  gap: 14px 18px;
  padding: 26px 28px;
}

.service-card__copy {
  gap: 8px;
}

.service-card__copy strong {
  font-size: 22px;
  line-height: 1.25;
}

.service-card__copy small {
  font-size: 14px;
  line-height: 1.55;
}

.service-card__action {
  gap: 18px;
  font-size: 13px;
}

/* Modal */

.service-modal__panel {
  width: min(1120px, calc(100vw - 48px));
}

.service-modal__close {
  border:
    1px solid rgb(139 117 96 / 22%);
  box-shadow: none;
}

.service-modal__content > .eyebrow {
  font-size: 11px;
}

.service-modal__content > h2 {
  font-size: clamp(34px, 3.2vw, 44px);
}

.service-modal__intro {
  max-width: 820px;
  font-size: 15px;
  line-height: 1.55;
}

.service-modal__services > h3 {
  font-size: 23px;
}

.service-modal__item {
  min-height: 142px;
  grid-template-columns:
    46px minmax(0, 1fr);
  gap: 15px;
  padding: 20px;
}

.service-modal__item > i {
  width: 46px;
  font-size: 30px;
}

.service-modal__item-copy {
  gap: 7px;
}

.service-modal__item-copy strong {
  font-size: 16px;
  line-height: 1.35;
}

.service-modal__item-copy small {
  font-size: 13px;
  line-height: 1.5;
}

/* Franja inferior contenida dentro de los márgenes */

.service-modal__aside {
  grid-template-columns:
    44px minmax(0, 1fr) auto;
  gap: 16px;
  margin: 28px 0 0;
  padding: 19px 0 22px;
  border-top:
    1px solid rgb(139 117 96 / 22%);
  background: transparent;
}

.service-modal__help-icon {
  width: 44px;
}

.service-modal__help-copy h3,
.service-modal__aside h3 {
  font-size: 15px;
}

.service-modal__help-copy p,
.service-modal__aside p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.service-modal__aside .button {
  min-height: 54px;
  font-size: 14px;
}

/* ================================================================
   MÓVIL
   ================================================================ */

@media (max-width: 960px) {
  .services-heading .eyebrow {
    text-align: center;
  }

  .service-card {
    min-height: 190px;
    padding: 24px;
  }

  .service-card__copy strong {
    font-size: 21px;
  }

  .service-card__copy small {
    font-size: 14px;
  }

  .service-card__action {
    font-size: 13px;
  }

  .service-modal__content > .eyebrow {
    font-size: 10px;
  }

  .service-modal__content > h2 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .service-modal__intro {
    font-size: 14px;
  }

  .service-modal__services > h3 {
    font-size: 21px;
  }

  .service-modal__item {
    min-height: 112px;
    grid-template-columns:
      42px minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
  }

  .service-modal__item > i {
    width: 42px;
    font-size: 27px;
  }

  .service-modal__item-copy strong {
    font-size: 15px;
  }

  .service-modal__item-copy small {
    font-size: 13px;
  }

  .service-modal__aside {
    grid-template-columns:
      40px minmax(0, 1fr);
    gap: 12px;
    margin: 22px 0 0;
    padding: 17px 0 20px;
  }

  .service-modal__help-icon {
    width: 40px;
  }

  .service-modal__help-copy h3,
  .service-modal__aside h3 {
    font-size: 14px;
  }

  .service-modal__help-copy p,
  .service-modal__aside p {
    font-size: 12px;
  }
}

/* ================================================================
   REFLEJOS INTERACTIVOS
   ================================================================ */

/* Servicios tiene exactamente el mismo tamaño que Buscar */

.services-heading .eyebrow {
  font-size: 15px;
}

/* Brillo de las tarjetas */

.service-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-card::after {
  content: "";
  position: absolute;
  top: -45%;
  left: -34%;
  z-index: 1;
  width: 22%;
  height: 190%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-18deg);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgb(255 255 255 / 34%),
      transparent
    );
}

.service-card:hover::after {
  animation:
    service-card-shine 0.85s ease-out 1;
}

/* La flecha permanece quieta */

.service-card__action i,
.service-card:hover .service-card__action i {
  transform: none;
  transition: none;
}

@keyframes service-card-shine {
  0% {
    left: -34%;
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  100% {
    left: 116%;
    opacity: 0;
  }
}

/* Icono principal de los modales */

.service-modal__visual {
  overflow: hidden;
  isolation: isolate;
  background: #ddc8b6;
}

.service-modal__visual::before {
  display: none;
}

.service-modal__visual::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -65%;
  z-index: 1;
  display: block;
  width: 42%;
  height: 170%;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgb(255 255 255 / 58%),
      transparent
    );
  transform: skewX(-18deg);
  animation:
    modal-icon-shine 4.8s ease-in-out infinite;
}

.service-modal__visual > i {
  position: relative;
  z-index: 2;
}

@keyframes modal-icon-shine {
  0%,
  62% {
    left: -65%;
    opacity: 0;
  }

  68% {
    opacity: 1;
  }

  84%,
  100% {
    left: 125%;
    opacity: 0;
  }
}

/* Botones negros: sin cambio de color */

.button--dark,
.button--dark:hover {
  background-color: var(--control-dark);
}

/* El reflejo comienza a la derecha */

.button--dark::after {
  inset: -70% auto -70% auto;
  right: -40%;
  left: auto;
  opacity: 0;
  transition: none;
}

/* Se ejecuta una sola vez mientras entra el cursor */

.button--dark:hover::after {
  animation:
    dark-button-shine 0.72s ease-out 1;
}

/* Movimiento del reflejo de derecha a izquierda */

@keyframes dark-button-shine {
  0% {
    right: -40%;
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  100% {
    right: 110%;
    opacity: 0;
  }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
  .service-card:hover::after,
  .service-modal__visual::after,
  .button--dark:hover::after {
    animation: none;
  }
}

/* ================================================================
   AJUSTE DE ICONO Y BOTONES OSCUROS
   ================================================================ */

.service-modal__visual {
  background: var(--bronze);
}

.service-modal__visual > i {
  color: #f5f0eb;
}

.service-modal__visual::after {
  width: 48%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 24%),
    transparent
  );
}

/* El botón siempre permanece negro */

.button--dark,
.button--dark:hover,
.button--dark:focus-visible {
  background: #1b1a19;
  color: var(--paper);
}

/* Barra luminosa del botón */

.button--dark::after {
  inset: -70% auto -70% auto;
  right: -40%;
  left: auto;
  width: 28%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 20%),
    transparent
  );
  transition: none;
}

.button--dark:hover::after {
  animation: black-button-shine 0.82s ease-out 1;
}

@keyframes black-button-shine {
  0% {
    right: -40%;
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  100% {
    right: 110%;
    opacity: 0;
  }
}

.button--dark.liquid-control:hover {
  transform: translateY(-1px);
}

.button--dark.liquid-control:active {
  transform: translateY(0) scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .service-modal__visual::after,
  .button--dark:hover::after {
    animation: none;
  }
}

/* ================================================================
   BRILLO SUAVE EN BOTONES NEGROS
   ================================================================ */

.service-modal__visual::after {
  width: 90%;
}

.button--dark,
.button--dark:hover,
.button--dark:focus-visible {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #1b1a19;
  color: var(--paper);
}

.button--dark::after {
  display: none;
}

.button--dark::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 125%;
  z-index: 1;
  width: 90%;
  height: 220%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(255 255 255 / 5%) 24%,
    rgb(255 255 255 / 19%) 50%,
    rgb(255 255 255 / 5%) 76%,
    transparent 100%
  );
  filter: blur(0.6px);
}

.button--dark:hover::before {
  animation:
    black-button-light-pass 0.50s ease-out 1;
}

@keyframes black-button-light-pass {
  0% {
    left: 125%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    left: -45%;
    opacity: 0;
  }
}

.button--dark.liquid-control:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .button--dark:hover::before {
    animation: none;
  }
}

/* ================================================================
   CABECERA Y ACCIÓN DEL MODAL EN MÓVIL
   ================================================================ */

.service-modal__mobile-action {
  display: none;
}

@media (max-width: 960px) {
  .service-modal__header {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-items: start;
    column-gap: 14px;
    row-gap: 0;
    padding-right: 0;
  }

  .service-modal__visual {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  .service-modal__content {
    display: contents;
  }

  .service-modal__content > .eyebrow {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    padding-right: 40px;
  }

  .service-modal__content > h2 {
    grid-column: 2;
    grid-row: 2;
    padding-right: 40px;
  }

  .service-modal__intro {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: none;
    margin: 13px 0 0;
    text-align: left;
    text-justify: auto;
  }

  .service-modal__mobile-action {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    min-height: 50px;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 14px;
  }

  .service-modal__services {
    margin-top: 18px;
  }

  .service-modal__aside .button {
    display: none;
  }

  .service-modal__panel {
    border: 1px solid rgb(255 255 255 / 72%);
  }

  .service-modal__panel.liquid-glass::before {
    content: none;
  }
}
