.rsv-showcase,
.rsv-showcase * {
  box-sizing: border-box;
}

.rsv-showcase {
  --rsv-navy: #172f68;
  --rsv-deep: #1b3d82;
  --rsv-primary: #2858c7;
  --rsv-cta: #2e61d5;
  --rsv-hover: #3573e3;
  --rsv-soft: #6d9bed;
  --rsv-ice: #edf3fc;
  --rsv-border: #d5e0ef;
  --rsv-text: #17243b;
  --rsv-muted: #617189;
  color: var(--rsv-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 1240px;
  padding: 58px 20px;
}

.rsv-showcase .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.rsv-heading {
  align-items: flex-end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 25px;
}

.rsv-heading > div > p {
  color: var(--rsv-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.rsv-heading h2 {
  color: var(--rsv-navy);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.04;
  margin: 0;
}

.rsv-heading > span {
  color: var(--rsv-muted);
  font-size: 14px;
  max-width: 390px;
}

.rsv-carousel-controls {
  display: flex;
  gap: 8px;
}

.rsv-carousel-controls button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rsv-border);
  border-radius: 11px;
  color: var(--rsv-primary);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 43px;
  justify-content: center;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
  width: 43px;
}

.rsv-carousel-controls button:hover:not(:disabled),
.rsv-carousel-controls button:focus-visible {
  background: var(--rsv-primary);
  border-color: var(--rsv-primary);
  color: #fff;
  outline: 0;
}

.rsv-carousel-controls button:disabled {
  cursor: default;
  opacity: .35;
}

.rsv-card {
  background: #fff;
  border: 1px solid var(--rsv-border);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.rsv-card figure {
  margin: 0;
  overflow: hidden;
}

.rsv-card figure img {
  display: block;
  object-fit: cover;
  width: 100%;
}

.rsv-placeholder {
  align-items: center;
  background: linear-gradient(135deg, var(--rsv-navy), var(--rsv-primary));
  display: flex;
  justify-content: center;
}

.rsv-placeholder span {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 34px;
  font-weight: 700;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.rsv-card-copy h3 {
  color: var(--rsv-navy);
  margin: 0;
}

.rsv-card-copy p {
  color: var(--rsv-muted);
}

.rsv-text-button {
  color: var(--rsv-primary);
  text-decoration: none;
}

.rsv-progress {
  background: var(--rsv-border);
  border-radius: 9px;
  height: 4px;
  overflow: hidden;
}

.rsv-progress i {
  background: var(--rsv-primary);
  border-radius: 9px;
  display: block;
  height: 100%;
  transition: width .2s ease;
  width: 24%;
}

/* Carrusel visual: cinco servicios en escritorio. */
.rsv-carousel .rsv-track {
  display: grid;
  gap: 14px;
  grid-auto-columns: calc((100% - 56px) / 5);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 8px 2px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rsv-carousel .rsv-track::-webkit-scrollbar {
  display: none;
}

.rsv-carousel .rsv-card {
  aspect-ratio: 4 / 5;
  background: #17366f;
  border: 1px solid #8fb2ff;
  border-radius: 22px;
  isolation: isolate;
  min-height: 0;
  scroll-snap-align: start;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  width: auto;
}

.rsv-carousel .rsv-card::before {
  background: linear-gradient(180deg, rgba(8, 30, 72, .02) 18%, rgba(19, 62, 142, .22) 48%, rgba(10, 36, 88, .97) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background .3s ease;
  z-index: 1;
}

.rsv-carousel .rsv-card figure,
.rsv-carousel .rsv-placeholder {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.rsv-carousel .rsv-card figure img {
  height: 100%;
  object-position: center;
  transition: transform .45s ease;
}

.rsv-carousel .rsv-placeholder span {
  display: none;
}

.rsv-carousel .rsv-card-copy {
  background: transparent;
  bottom: 0;
  left: 0;
  min-width: 0;
  padding: 22px 19px;
  position: absolute;
  right: 0;
  z-index: 3;
}

.rsv-carousel .rsv-card-copy h3 {
  color: #fff;
  font-size: clamp(18px, 1.2vw, 24px);
  font-weight: 750;
  hyphens: none;
  letter-spacing: -.025em;
  line-height: 1.12;
  max-width: 100%;
  overflow-wrap: normal;
  padding-right: 44px;
  text-shadow: 0 2px 12px rgba(0, 20, 60, .4);
  word-break: normal;
}

.rsv-carousel .rsv-card-copy p {
  display: none;
}

.rsv-carousel .rsv-text-button {
  align-items: center;
  background: rgba(46, 97, 213, .92);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  bottom: 18px;
  color: transparent;
  display: flex;
  font-size: 0;
  height: 38px;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  right: 17px;
  transition: transform .3s ease, background-color .3s ease;
  width: 38px;
  z-index: 5;
}

.rsv-carousel .rsv-text-button span {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

/* Listado técnico: seis servicios iniciales, dos columnas. */
.rsv-listing .rsv-list-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-auto-rows: 300px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rsv-listing .rsv-card {
  align-self: stretch;
  border: solid #d1ddec;
  border-radius: 3px 18px 3px 3px;
  border-width: 1px 1px 1px 6px;
  border-left-color: #2858c7;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  transition: border-color .32s ease;
  width: 100%;
}

.rsv-listing .rsv-card > figure,
.rsv-listing .rsv-placeholder {
  background: #173471;
  height: 100%;
  min-height: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.rsv-listing .rsv-card > figure::after {
  background: linear-gradient(90deg, rgba(20, 55, 120, .02), rgba(20, 55, 120, .18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background .4s ease;
}

.rsv-listing .rsv-card > figure img {
  filter: none;
  height: 100%;
  min-height: 0;
  object-position: center;
  transform: none;
}

.rsv-listing .rsv-placeholder span {
  font-size: 28px;
  height: 62px;
  width: 62px;
}

.rsv-listing .rsv-card-copy {
  align-items: flex-start;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  isolation: isolate;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 20px 21px 18px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.rsv-listing .rsv-card-copy::after {
  background: linear-gradient(105deg, #173f94 0%, #2858c7 62%, #3f82e8 84%, #69c5f3 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-102%);
  transition: transform .42s cubic-bezier(.22, .8, .3, 1);
  z-index: -1;
}

.rsv-listing .rsv-card-copy::before {
  color: #2858c7;
  content: "SERVICIO DE TALLER";
  display: block;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
  transition: color .32s ease;
  z-index: 2;
}

.rsv-listing .rsv-card-copy > * {
  position: relative;
  z-index: 2;
}

.rsv-listing .rsv-card-copy h3 {
  color: #173471;
  flex: 0 0 auto;
  font-size: clamp(20px, 1.5vw, 27px);
  font-weight: 750;
  hyphens: none;
  letter-spacing: -.035em;
  line-height: 1.05;
  min-height: 2.1em;
  overflow-wrap: normal;
  padding-top: 12px;
  transition: color .32s ease;
  width: 100%;
  word-break: normal;
}

.rsv-listing .rsv-card-copy h3::before {
  background: #2858c7;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  top: 0;
  transition: width .35s ease, background-color .32s ease;
  width: 25px;
}

.rsv-listing .rsv-card-copy p {
  display: -webkit-box;
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.43;
  margin: 9px 0 13px;
  overflow: hidden;
  transition: color .32s ease;
  width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rsv-listing .rsv-text-button {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  margin-top: auto;
  transition: color .32s ease;
}

.rsv-listing .rsv-text-button span {
  align-items: center;
  background: #2858c7;
  border-radius: 3px;
  color: #fff;
  display: flex;
  font-size: 16px;
  height: 27px;
  justify-content: center;
  line-height: 1;
  transition: color .3s ease, background-color .3s ease;
  width: 27px;
}

.rsv-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.rsv-load-more-wrap[hidden] {
  display: none;
}

.rsv-load-more {
  align-items: center;
  background: var(--rsv-primary);
  border: 1px solid var(--rsv-primary);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 12px;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  transition: background-color .2s ease, border-color .2s ease;
}

.rsv-load-more:hover,
.rsv-load-more:focus-visible {
  background: var(--rsv-hover);
  border-color: var(--rsv-hover);
  outline: 3px solid rgba(105, 197, 243, .35);
  outline-offset: 3px;
}

.rsv-load-more:disabled {
  cursor: wait;
  opacity: .72;
}

.rsv-load-more span {
  font-size: 18px;
  line-height: 1;
}

@media (hover: hover) {
  .rsv-carousel .rsv-card:hover {
    border-color: #2f66d5;
    box-shadow: 0 18px 38px rgba(15, 49, 105, .24);
    transform: translateY(-7px);
  }

  .rsv-carousel .rsv-card:hover figure img {
    transform: scale(1.06);
  }

  .rsv-carousel .rsv-card:hover::before {
    background: linear-gradient(180deg, rgba(17, 55, 130, .04) 14%, rgba(31, 89, 208, .4) 54%, rgba(8, 34, 86, .98) 100%);
  }

  .rsv-carousel .rsv-card:hover .rsv-text-button {
    background: #3573e3;
    transform: translateX(3px);
  }

  .rsv-listing .rsv-card:hover,
  .rsv-listing .rsv-card:focus-within {
    border-color: #69c5f3;
  }

  .rsv-listing .rsv-card:hover .rsv-card-copy::after,
  .rsv-listing .rsv-card:focus-within .rsv-card-copy::after {
    transform: translateX(0);
  }

  .rsv-listing .rsv-card:hover .rsv-card-copy::before,
  .rsv-listing .rsv-card:hover .rsv-card-copy h3,
  .rsv-listing .rsv-card:hover .rsv-card-copy p,
  .rsv-listing .rsv-card:hover .rsv-text-button,
  .rsv-listing .rsv-card:focus-within .rsv-card-copy::before,
  .rsv-listing .rsv-card:focus-within .rsv-card-copy h3,
  .rsv-listing .rsv-card:focus-within .rsv-card-copy p,
  .rsv-listing .rsv-card:focus-within .rsv-text-button {
    color: #fff;
  }

  .rsv-listing .rsv-card:hover .rsv-card-copy h3::before,
  .rsv-listing .rsv-card:focus-within .rsv-card-copy h3::before {
    background: #8dd8ff;
    width: 50px;
  }

  .rsv-listing .rsv-card:hover .rsv-text-button span,
  .rsv-listing .rsv-card:focus-within .rsv-text-button span {
    background: #8dd8ff;
    color: #173471;
  }

  .rsv-listing .rsv-card:hover figure::after,
  .rsv-listing .rsv-card:focus-within figure::after {
    background: linear-gradient(90deg, rgba(19, 55, 127, .04), rgba(64, 145, 232, .24));
  }
}

@media (max-width: 1100px) {
  .rsv-carousel .rsv-track {
    grid-auto-columns: calc((100% - 28px) / 3);
  }
}

@media (min-width: 681px) and (max-width: 920px) {
  .rsv-listing .rsv-list-grid {
    grid-auto-rows: 280px;
    grid-template-columns: 1fr;
  }

  .rsv-listing .rsv-card {
    grid-template-columns: 38% minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .rsv-carousel .rsv-track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }
}

/* Lista compacta tipo Google en móvil. */
@media (max-width: 680px) {
  .rsv-showcase {
    padding: 42px 18px;
  }

  .rsv-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .rsv-heading h2 {
    font-size: 32px;
  }

  .rsv-carousel .rsv-track {
    gap: 12px;
    grid-auto-columns: 82%;
  }

  .rsv-carousel .rsv-card {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .rsv-carousel .rsv-card-copy {
    padding: 20px 17px;
  }

  .rsv-carousel .rsv-card-copy h3 {
    font-size: 22px;
    line-height: 1.1;
    padding-right: 46px;
  }

  .rsv-carousel .rsv-text-button {
    bottom: 16px;
    right: 15px;
  }

  .rsv-listing {
    padding: 38px 20px;
  }

  .rsv-listing .rsv-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  .rsv-listing .rsv-heading h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1;
  }

  .rsv-listing .rsv-heading > span {
    line-height: 1.5;
    margin: 0;
  }

  .rsv-listing .rsv-list-grid {
    display: grid;
    gap: 0;
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }

  .rsv-listing .rsv-card {
    align-items: start;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rsv-border);
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    height: auto;
    isolation: isolate;
    min-height: 0;
    overflow: visible;
    padding: 26px 0;
    transform: none;
  }

  .rsv-listing .rsv-card:has(figure) {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .rsv-listing .rsv-card-copy {
    align-items: flex-start;
    background: transparent;
    display: flex;
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 104px;
    overflow: visible;
    padding: 0;
    z-index: 1;
  }

  .rsv-listing .rsv-card-copy::before,
  .rsv-listing .rsv-card-copy::after {
    display: none;
  }

  .rsv-listing .rsv-card-copy h3 {
    display: -webkit-box;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 0 0 10px;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .rsv-listing .rsv-card-copy h3::before {
    display: none;
  }

  .rsv-listing .rsv-card-copy p {
    display: -webkit-box;
    font-size: .9rem;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .rsv-listing .rsv-card > figure {
    align-self: start;
    background: var(--rsv-ice);
    border-radius: 15px;
    grid-column: 2;
    grid-row: 1;
    height: 104px;
    overflow: hidden;
    width: 116px;
    z-index: 1;
  }

  .rsv-listing .rsv-card > figure::after {
    display: none;
  }

  .rsv-listing .rsv-card > figure img {
    height: 100%;
    object-position: center;
    width: 100%;
  }

  .rsv-listing .rsv-placeholder {
    display: none;
  }

  .rsv-listing .rsv-card .rsv-text-button {
    background: transparent;
    border: 0;
    color: transparent !important;
    display: block;
    font-size: 0 !important;
    height: 100%;
    inset: 0;
    line-height: 0;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    text-indent: -9999px;
    touch-action: manipulation;
    white-space: nowrap;
    width: 100%;
    z-index: 5;
  }

  .rsv-listing .rsv-card .rsv-text-button span {
    display: none !important;
  }

  .rsv-listing .rsv-card:active {
    background: rgba(40, 88, 199, .045);
  }

  .rsv-load-more-wrap {
    margin-top: 28px;
  }

  .rsv-load-more {
    min-height: 52px;
    width: 100%;
  }
}

@media (max-width: 390px) {
  .rsv-listing {
    padding-left: 17px;
    padding-right: 17px;
  }

  .rsv-listing .rsv-card {
    gap: 15px;
    padding: 23px 0;
  }

  .rsv-listing .rsv-card:has(figure) {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .rsv-listing .rsv-card > figure {
    height: 98px;
    width: 104px;
  }

  .rsv-listing .rsv-card-copy {
    min-height: 98px;
  }

  .rsv-listing .rsv-card-copy h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
  }

  .rsv-listing .rsv-card-copy p {
    font-size: .84rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsv-showcase *,
  .rsv-showcase *::before,
  .rsv-showcase *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
