:root {
  --moto-red: #b50f18;
  --moto-ink: #18191b;
  --moto-muted: #686b70;
  --moto-surface: #ffffff;
  --moto-line: #deded9;
  --moto-shell: 520px;
  --moto-action-height: 48px;
}

html:has(body.catalog-mode-motos) {
  height: 100%;
  overflow: hidden;
  background: #e8e8e5;
  scroll-behavior: smooth;
}

body.catalog-mode-motos {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #e8e8e5;
  color: var(--moto-ink);
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  touch-action: pan-y;
}

body.catalog-mode-motos.modal-open { overflow: hidden; }

.catalog-mode-motos .kiosk-shell {
  width: 100%;
  max-width: none;
  height: 100svh;
  min-height: 100svh;
  height: 100dvh;
  min-height: 100dvh;
  margin-inline: 0;
  overflow: hidden;
  background: #f4f4f1;
  box-shadow: 0 0 34px rgba(30, 30, 28, .08);
}

@media (min-width: 1025px) {
  .catalog-mode-motos .kiosk-shell {
    max-width: var(--moto-shell);
    margin-inline: auto;
  }
}

/* La ficha conserva en pantallas grandes la composición vertical aprobada en mobile. */
@media (min-width: 768px) {
  body.catalog-mode-motos .product-modal:not(.moto-quote-modal) {
    place-items: center;
    padding: 24px;
    overflow-y: auto;
  }

  body.catalog-mode-motos .product-modal:not(.moto-quote-modal) .moto-sheet {
    width: min(660px, calc(100vw - 48px));
    height: auto;
    max-height: calc(100dvh - 48px);
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 30px;
  }

  body.catalog-mode-motos .moto-sheet .moto-detail-hero {
    width: 100%;
    height: clamp(340px, 46dvh, 470px);
    min-height: 0;
  }

  body.catalog-mode-motos .moto-sheet .moto-detail-media,
  body.catalog-mode-motos .moto-sheet .moto-carousel,
  body.catalog-mode-motos .moto-sheet .moto-carousel-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  body.catalog-mode-motos .moto-sheet .moto-carousel-stage img {
    width: 100%;
    height: 100%;
    padding: 2.5%;
    object-fit: contain;
  }

  body.catalog-mode-motos .moto-sheet .moto-detail-content {
    min-height: 0;
    height: auto;
    padding: 26px 30px 30px;
    justify-content: flex-start;
    overflow: visible;
  }

  body.catalog-mode-motos .moto-sheet .moto-price-only {
    margin-top: 22px;
  }
}

.catalog-mode-motos .motos-view {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #f4f4f1;
  color: var(--moto-ink);
  touch-action: pan-y;
  transform: none;
}

.catalog-mode-motos .motos-view.swipe-tracking,
.catalog-mode-motos .motos-view.swipe-returning {
  will-change: transform;
}

.catalog-mode-motos .moto-catalog-header {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  touch-action: pan-y;
}

.catalog-mode-motos .moto-catalog-header:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--moto-red);
  outline-offset: -3px;
}

.catalog-mode-motos .moto-catalog-header-media {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 1;
}

.catalog-mode-motos .moto-header-slides,
.catalog-mode-motos .moto-header-slide{position:absolute;inset:0;width:100%;height:100%}.catalog-mode-motos .moto-header-slide{opacity:0;pointer-events:none;transition:opacity .32s ease}.catalog-mode-motos .moto-header-slide.is-active{opacity:1;pointer-events:auto}.catalog-mode-motos .moto-header-dots{position:absolute;z-index:3;right:0;bottom:8px;left:0;display:flex;justify-content:center;gap:7px}.catalog-mode-motos .moto-header-dots button{width:8px;height:8px;padding:0;border:1px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(0,0,0,.35);box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:pointer}.catalog-mode-motos .moto-header-dots button.is-active{width:22px;border-radius:999px;background:#fff}@media(prefers-reduced-motion:reduce){.catalog-mode-motos .moto-header-slide{transition:none}}

.catalog-mode-motos .moto-catalog-header-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-mode-motos .moto-catalog-header-media.is-fallback { background: #fff; }

.catalog-mode-motos .moto-catalog-header-media.is-fallback img {
  padding: clamp(10px, 3vw, 18px);
  object-fit: contain;
}

.catalog-mode-motos .moto-action-bar {
  position: relative;
  z-index: 40;
  top: auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.catalog-mode-motos .moto-action-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 6px 10px 4px;
  pointer-events: none;
}

.catalog-mode-motos .moto-action-inner > * { pointer-events: auto; }

.catalog-mode-motos .moto-action-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: var(--moto-action-height);
  min-height: var(--moto-action-height);
  padding: 0 14px;
  border: 1px solid rgba(24, 25, 27, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--moto-ink);
  box-shadow: 0 7px 20px rgba(25, 23, 20, .14);
  font: 800 14px/1 Manrope, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.catalog-mode-motos .moto-action-button:hover,
.catalog-mode-motos .moto-action-button:focus-visible {
  border-color: var(--moto-red);
  color: var(--moto-red);
  outline: none;
}

.catalog-mode-motos .moto-back-button { margin-left: auto; }
.catalog-mode-motos .moto-back-button span { font-size: 20px; }

.catalog-mode-motos .moto-action-button svg,
.catalog-mode-motos .moto-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
}

.catalog-mode-motos .moto-search {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 22px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: var(--moto-action-height);
  margin: 0;
  padding: 0 4px 0 13px;
  border: 1px solid rgba(181, 15, 24, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 20px rgba(25, 23, 20, .14);
  backdrop-filter: blur(10px);
}

.catalog-mode-motos .moto-search[hidden] { display: none; }

.catalog-mode-motos .moto-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--moto-ink);
  font: 700 15px/1.25 Manrope, sans-serif;
}

.catalog-mode-motos .moto-search-clear {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--moto-muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.catalog-mode-motos .moto-catalog-content.section-scroll {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 2px 10px max(28px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.catalog-mode-motos .motos-intro { margin: 0; }

.catalog-mode-motos .moto-search-status {
  min-height: 0;
  margin: 0;
}

.catalog-mode-motos .moto-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 2.6vw, 14px);
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  scroll-margin-top: calc(var(--moto-action-height) + max(16px, env(safe-area-inset-top)));
}

.catalog-mode-motos .moto-type-card {
  min-width: 0;
  border: 0;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.catalog-mode-motos .moto-type-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.catalog-mode-motos .moto-type-visual {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 1;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #242629, #111214);
}

.catalog-mode-motos .moto-type-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-mode-motos .moto-type-visual span {
  padding: 6px;
  color: #fff;
  font: 800 clamp(26px, 8vw, 42px)/1 BarlowCondensed, Impact, sans-serif;
  letter-spacing: .025em;
  text-align: center;
  text-transform: uppercase;
}

.catalog-mode-motos .moto-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(7px, 2vw, 10px);
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  scroll-margin-top: calc(var(--moto-action-height) + max(16px, env(safe-area-inset-top)));
}

.catalog-mode-motos .moto-model-grid[hidden] { display: none; }

.catalog-mode-motos .moto-model-card {
  min-width: 0;
  height: 100%;
}

.catalog-mode-motos .moto-model-card > button {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, .08);
  border-radius: 15px;
  background: #fff;
  color: var(--moto-ink);
  text-align: left;
  box-shadow: 0 7px 20px rgba(24, 24, 27, .075);
  cursor: pointer;
  touch-action: manipulation;
}

.catalog-mode-motos .moto-model-media {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / .88;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.catalog-mode-motos .moto-model-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .12));
}

.catalog-mode-motos .moto-placeholder {
  padding: 5px;
  color: #55565a;
  font: 800 clamp(15px, 5vw, 24px)/.9 BarlowCondensed, Impact, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.catalog-mode-motos .moto-model-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 6px 5px 5px;
}

.catalog-mode-motos .moto-model-copy > span {
  overflow: hidden;
  color: var(--moto-red);
  font-size: clamp(8px, 2.15vw, 9px);
  font-weight: 850;
  letter-spacing: .075em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-mode-motos .moto-model-copy h3 {
  min-height: 2.3em;
  margin: 3px 0 7px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--moto-ink);
  font: 800 clamp(11px, 3.2vw, 13.5px)/1.15 Manrope, sans-serif;
  letter-spacing: -.018em;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.catalog-mode-motos .moto-model-copy strong {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--moto-ink);
  box-shadow: none;
  font: 850 clamp(13px, 3.9vw, 17px)/1 BarlowCondensed, Impact, sans-serif;
  letter-spacing: -.015em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-mode-motos .moto-model-copy strong::before,
.catalog-mode-motos .moto-model-copy strong::after { content: none; }

.catalog-mode-motos .moto-model-copy::after {
  content: "VER";
  height: 30px;
  margin-top: 8px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--moto-red);
  color: #fff;
  font-size: clamp(9px, 2.35vw, 10.5px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.catalog-mode-motos .moto-loading,
.catalog-mode-motos .empty-grid {
  grid-column: 1 / -1;
  padding: 36px 12px;
}

@media (max-width: 370px) {
  .catalog-mode-motos .moto-action-inner { padding-inline: 8px; }
  .catalog-mode-motos .moto-action-button { padding-inline: 12px; }
  .catalog-mode-motos .moto-catalog-content.section-scroll { padding-inline: 8px; }
  .catalog-mode-motos .moto-model-grid { gap: 6px; }
  .catalog-mode-motos .moto-model-card > button { padding: 3px; }
  .catalog-mode-motos .moto-model-copy { padding-inline: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.catalog-mode-motos) { scroll-behavior: auto; }
}

/* Ficha pública final: una única caja visual para todos los PNG de color. */
body.catalog-mode-motos .moto-sheet .moto-detail-hero{
  width:100%;
  height:clamp(270px,38svh,410px);
  min-height:0;
  flex:0 0 auto;
  background:#fff;
}
body.catalog-mode-motos .moto-sheet .moto-detail-media,
body.catalog-mode-motos .moto-sheet .moto-static-media{
  width:100%;height:100%;min-height:0;
}
body.catalog-mode-motos .moto-sheet .moto-static-media img{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center;
}
@media (min-width:768px){
  body.catalog-mode-motos .product-modal:not(.moto-quote-modal) .moto-sheet{
    width:min(720px,calc(100vw - 48px));
    max-height:calc(100dvh - 40px);
  }
  body.catalog-mode-motos .moto-sheet .moto-detail-hero{height:clamp(290px,39dvh,410px)}
  body.catalog-mode-motos .moto-sheet .moto-detail-content{padding:20px 30px 26px}
}
@media (max-width:560px){
  body.catalog-mode-motos .moto-sheet .moto-detail-hero{height:clamp(245px,34svh,310px)}
}

/* Notebook/desktop bajo: moto completa y CTA dentro del primer viewport. */
@media (min-width:768px) and (max-height:820px){
  body.catalog-mode-motos .product-modal:not(.moto-quote-modal){padding:16px}
  body.catalog-mode-motos .product-modal:not(.moto-quote-modal) .moto-sheet{max-height:calc(100dvh - 32px)}
  body.catalog-mode-motos .moto-detail-heading{padding:12px 64px 9px 22px}
  body.catalog-mode-motos .moto-detail-heading h2{margin-top:4px;font-size:clamp(34px,5vw,44px)}
  body.catalog-mode-motos .moto-sheet .moto-detail-hero{height:clamp(220px,31dvh,265px)}
  body.catalog-mode-motos .moto-sheet .moto-detail-content{padding:12px 24px 16px}
  body.catalog-mode-motos .moto-detail-colors{margin-bottom:9px}
  body.catalog-mode-motos .moto-detail-speech{margin-bottom:10px!important;font-size:12px!important;line-height:1.38!important}
  body.catalog-mode-motos .moto-price-only{position:sticky;z-index:6;bottom:0;margin:8px -24px -16px;padding:10px 24px 12px;background:rgba(255,255,255,.98);box-shadow:0 -8px 20px rgba(20,20,22,.07)}
  body.catalog-mode-motos .moto-price-only strong{margin-top:3px;font-size:42px}
  body.catalog-mode-motos .moto-quote-cta{min-height:48px}
}
.moto-web-stock {
  margin: 10px 0 0;
  color: #626a76;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.moto-web-stock.is-available { color: #247342; }
.moto-web-stock.is-available::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

