#servicios {
  --mxs-ink: #f6f4ef;
  --mxs-muted: #d4d5cf;
  --mxs-accent: #ff5b47;
  --mxs-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  padding-block: clamp(3.4rem, 6.5vw, 7rem);
  background: #1c1f1e;
  color: var(--mxs-ink);
}
.mxs-wrap {
  width: min(100%, 1570px);
  padding-inline: var(--edge, clamp(1.25rem, 5.2vw, 6rem));
  margin-inline: auto;
}
.mxs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.4rem, 3vw, 3.1rem);
}
.mxs-header h2, .mxs-dialog-top h2 {
  margin: 0;
  color: #faf9f4;
  font-family: var(--mxs-display);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.023em;
}
.mxs-header h2 { max-width: 15ch; font-size: clamp(3.2rem, 6.5vw, 7rem); }
.mxs-intro {
  width: min(100%, 31ch);
  color: var(--mxs-muted);
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.48;
}
.mxs-grid {
  display: grid;
  grid-template-columns: 1.24fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(11.5rem, 16.5vw, 16rem));
  gap: clamp(.35rem, .85vw, .85rem);
}
.mxs-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border: 1px solid #515651;
  background: #101312;
}
.mxs-diagnostico { grid-row: span 2; }
.mxs-photo, .mxs-card::before, .mxs-detail-photo, .mxs-dialog-top::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mxs-photo, .mxs-detail-photo {
  z-index: -2;
  object-fit: cover;
}
.mxs-photo {
  filter: saturate(.82);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .4s;
}
.mxs-diagnostico .mxs-photo { object-position: 50% 43%; }
.mxs-frenos .mxs-photo { object-position: 50% 52%; }
.mxs-mantenimiento .mxs-photo { object-position: 50% 50%; }
.mxs-suspension .mxs-photo { object-position: 50% 47%; }
.mxs-mecanica .mxs-photo { object-position: 50% 45%; }
.mxs-card::before, .mxs-dialog-top::before {
  content: '';
  z-index: -1;
  background: linear-gradient(0deg, rgb(9 12 11 / .98), rgb(12 14 14 / .69) 31%, rgb(12 14 14 / .05) 81%);
}
.mxs-card-copy {
  width: 100%;
  padding: clamp(.9rem, 1.7vw, 1.7rem);
}
.mxs-card h3 { margin: 0; font-size: 1rem; }
.mxs-open {
  display: block;
  width: fit-content;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: 700 clamp(1.65rem, 2.6vw, 3.2rem)/.98 var(--mxs-display);
  text-align: left;
  letter-spacing: -.012em;
}
.mxs-open::after { content: ''; position: absolute; inset: 0; cursor: pointer; z-index: 2; }
.mxs-open:focus-visible { outline: none; }
.mxs-card:focus-within { outline: 3px solid var(--mxs-accent); outline-offset: 2px; z-index: 1; }
.mxs-card-copy p {
  margin: .43rem 0 0;
  color: #e0e2dd;
  font-size: clamp(.94rem, 1.12vw, 1.08rem);
  line-height: 1.23;
  max-width: 36ch;
}
.mxs-diagnostico .mxs-card-copy { padding: clamp(1.2rem, 2.6vw, 2.6rem); }
.mxs-diagnostico .mxs-open { font-size: clamp(2.4rem, 4.8vw, 5.6rem); }
.mxs-expand {
  position: absolute;
  inset: .85rem .85rem auto auto;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgb(255 255 255 / .6);
  border-radius: 50%;
  color: white;
  background: rgb(15 19 17 / .77);
  pointer-events: none;
  transition: color .25s, background .25s;
}
.mxs-expand::before, .mxs-expand::after {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  top: calc(50% - 1px);
  height: 2px;
  background: currentColor;
}
.mxs-expand::after { transform: rotate(90deg); }
.mxs-card:focus-within .mxs-expand { background: var(--mxs-accent); color: #151616; }
@media (hover: hover) {
  .mxs-card:hover .mxs-photo { filter: saturate(1); transform: scale(1.045); }
  .mxs-card:hover .mxs-expand { background: var(--mxs-accent); color: #151616; }
}

dialog.mxs-dialog {
  width: min(37rem, calc(100% - 1.5rem));
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #6b706b;
  border-radius: 2px;
  background: #222624;
  color: var(--mxs-ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 2rem 7rem rgb(0 0 0 / .58);
}
.mxs-dialog[open] { animation: mxs-modal-in .22s ease-out; }
.mxs-dialog::backdrop { background: rgb(8 10 10 / .86); }
.mxs-dialog-top {
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  padding: clamp(1.2rem, 3vw, 1.9rem);
  min-height: clamp(8.5rem, 24vh, 13rem);
  overflow: hidden;
}
.mxs-dialog-top::before { background: linear-gradient(0deg, rgb(15 20 18 / .93), rgb(15 20 18 / .17) 78%); }
.mxs-dialog-top h2 { font-size: clamp(2.7rem, 7vw, 4.5rem); }
.mxs-close {
  display: grid;
  place-content: center;
  position: absolute;
  top: .72rem;
  right: .72rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: white;
  background: #1a1c1c;
  border: 1px solid #acb0a9;
  border-radius: 50%;
  font: 400 1.8rem/1 Arial, sans-serif;
}
.mxs-dialog-body { padding: clamp(1.3rem, 3vw, 1.9rem); }
.mxs-dialog-body dl { margin: 0 0 1.3rem; }
.mxs-dialog-body dt { font-weight: 600; font-size: 1.05rem; }
.mxs-dialog-body dd { color: #d9dcd7; font-size: 1rem; line-height: 1.43; margin: .22rem 0 1rem; }
.mxs-dialog-body dd:last-child { margin-bottom: 0; }
.mxs-visit {
  border: none;
  border-radius: 2px;
  background: #bb291a;
  color: white;
  padding: .75rem 1.25rem;
  min-height: 2.75rem;
  font-weight: 600;
}
.mxs-close:focus-visible, .mxs-visit:focus-visible { outline: 3px solid white; outline-offset: 3px; }
@keyframes mxs-modal-in { from { opacity: 0; transform: translateY(.45rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .mxs-header { display: block; }
  .mxs-intro { width: min(100%, 43ch); margin-top: .85rem; }
  .mxs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: none; }
  .mxs-card { min-height: clamp(9.5rem, 26vw, 13rem); }
  .mxs-diagnostico { grid-row: auto; grid-column: 1/-1; min-height: clamp(12.5rem, 47vw, 18.5rem); }
  .mxs-diagnostico .mxs-photo { object-position: 50% 45%; }
  .mxs-diagnostico .mxs-open { font-size: clamp(2.8rem, 8.5vw, 4rem); }
  .mxs-card-copy { padding: .8rem; }
  .mxs-card-copy p { font-size: .94rem; }
  .mxs-expand { inset: .6rem .6rem auto auto; width: 1.55rem; height: 1.55rem; }
}
@media (max-width: 385px) {
  .mxs-card-copy { padding: .65rem; }
  .mxs-open { font-size: clamp(1.27rem, 5.6vw, 1.52rem); }
  .mxs-card-copy p { font-size: .91rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mxs-photo, .mxs-expand { transition: none; }
  .mxs-card:hover .mxs-photo { transform: none; }
  .mxs-dialog[open] { animation: none; }
}
@media (forced-colors: active) {
  .mxs-open { background: Canvas; }
  .mxs-card-copy p { background: Canvas; }
  .mxs-expand::before, .mxs-expand::after { background: ButtonText; }
}
