/* Original Series — drops, marcos y canje NFC */

.os-main {
  max-width: 1200px;
}

.os-hero {
  margin-bottom: 2rem;
}

.os-hero__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-secondary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.os-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.os-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

.os-guest-banner,
.os-unlocked-banner {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.75);
  line-height: 1.5;
}

.os-guest-banner a,
.os-unlocked-banner strong {
  color: var(--accent);
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.os-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.65);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.os-card:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 184, 218, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.os-card--unlocked {
  border-color: rgba(196, 165, 116, 0.45);
}

.os-card__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f1624;
  overflow: hidden;
}

.os-card__frame img,
.os-detail__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Miniatura del modelo: muestra el coche completo centrado */
.os-card__frame--model {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(56, 78, 110, 0.35) 0%, transparent 65%),
    #0b1220;
}

.os-card__frame--model img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.85rem 1.1rem;
  box-sizing: border-box;
}

.os-card__placeholder,
.os-detail__frame .os-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
}

/* Ficha técnica por capas — posiciones medidas sobre el SVG real (1920×1080) */
.os-ficha {
  --os-owner-left: 21.4%;
  --os-owner-top: 48.7%;
  --os-owner-width: 15.5%;
  --os-owner-height: 4.4%;
  --os-plate-left: 21.4%;
  --os-plate-top: 77.4%;
  --os-plate-width: 16.15%;
  --os-plate-height: 12.9%;
  --os-about-left: 40%;
  --os-about-top: 14.5%;
  --os-about-width: 21%;
  --os-about-height: 46.5%;
  --os-features-left: 40%;
  --os-features-top: 66%;
  --os-features-width: 21%;
  --os-features-height: 24.5%;
  --os-studio-left: 63.1%;
  --os-studio-top: 6.1%;
  --os-studio-width: 34.2%;
  --os-studio-height: 85%;

  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1220;
}

.os-ficha__variant--mobile {
  display: none;
}

.os-ficha__art {
  position: relative;
  width: 100%;
  line-height: 0;
  container-type: inline-size;
  container-name: os-ficha;
}

.os-ficha__base {
  width: 100%;
  height: auto;
  display: block;
  padding: 0;
}

.os-ficha__placeholder {
  width: 100%;
  aspect-ratio: 1920 / 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: linear-gradient(160deg, #0b1220 0%, #1a2336 100%);
  line-height: normal;
}

.os-ficha__owner {
  position: absolute;
  left: var(--os-owner-left);
  top: var(--os-owner-top);
  width: var(--os-owner-width);
  height: var(--os-owner-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  font-size: clamp(0.42rem, 1.55cqw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fcfbfb;
  overflow: hidden;
  pointer-events: none;
  line-height: 1.15;
  box-sizing: border-box;
}

.os-ficha__owner span {
  display: block;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-align: left;
}

.os-ficha__plate {
  position: absolute;
  left: var(--os-plate-left);
  top: var(--os-plate-top);
  width: var(--os-plate-width);
  height: var(--os-plate-height);
  padding: 0.35%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 0;
  overflow: hidden;
}

.os-ficha__plate img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}

.os-ficha__plate:hover img {
  transform: scale(1.04);
}

.os-ficha__hotzone {
  position: absolute;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: zoom-in;
  z-index: 2;
}

.os-ficha__hotzone--about {
  left: var(--os-about-left);
  top: var(--os-about-top);
  width: var(--os-about-width);
  height: var(--os-about-height);
}

.os-ficha__hotzone--features {
  left: var(--os-features-left);
  top: var(--os-features-top);
  width: var(--os-features-width);
  height: var(--os-features-height);
}

.os-ficha__hotzone--studio {
  left: var(--os-studio-left);
  top: var(--os-studio-top);
  width: var(--os-studio-width);
  height: var(--os-studio-height);
}

.os-ficha__hotzone:hover,
.os-ficha__hotzone:focus-visible {
  outline: 1px solid rgba(6, 152, 184, 0.55);
  outline-offset: 2px;
  background: rgba(6, 152, 184, 0.06);
}

/* Ficha vertical en móvil — coordenadas propias en su variante (SVG 1080×1920) */
@media (max-width: 860px) {
  .os-ficha--has-vertical .os-ficha__variant--desktop {
    display: none;
  }

  .os-ficha--has-vertical .os-ficha__variant--mobile {
    display: block;
    --os-owner-left: 38.1%;
    --os-owner-top: 26.15%;
    --os-owner-width: 22%;
    --os-owner-height: 3.1%;
    --os-plate-left: 37.65%;
    --os-plate-top: 42.05%;
    --os-plate-width: 29.4%;
    --os-plate-height: 6.6%;
    --os-about-left: 68.5%;
    --os-about-top: 14.2%;
    --os-about-width: 28.5%;
    --os-about-height: 18%;
    --os-features-left: 68.5%;
    --os-features-top: 33%;
    --os-features-width: 28.5%;
    --os-features-height: 16.5%;
    --os-studio-left: 17.3%;
    --os-studio-top: 55.1%;
    --os-studio-width: 61.6%;
    --os-studio-height: 43.3%;
  }

  .os-ficha--has-vertical .os-ficha__variant--mobile .os-ficha__owner {
    font-size: clamp(0.48rem, 3cqw, 0.95rem);
  }
}

.os-unit-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.os-unit-switcher__item {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.os-unit-switcher__item.is-active,
.os-unit-switcher__item:hover {
  border-color: rgba(126, 184, 218, 0.45);
  color: var(--accent);
  background: rgba(126, 184, 218, 0.1);
}

.os-detail__model {
  margin: 0.25rem 0 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.os-detail__model--blur {
  filter: blur(5px);
  user-select: none;
}

.os-detail__model--peek {
  filter: blur(2px);
  opacity: 0.75;
}

.os-detail__model--hidden {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}

.os-card__frame--blur img {
  filter: blur(8px) saturate(0.7);
  transform: scale(1.05);
}

.os-card__frame--peek img {
  filter: blur(3px);
  opacity: 0.85;
}

.os-card__frame--hidden {
  background: #0b1220;
}

.os-card__placeholder--secret {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.5;
}

.os-card__model {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.os-card__model.is-blurred {
  filter: blur(4px);
  user-select: none;
}

.os-zoom-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 6, 23, 0.92);
  color: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: none;
}

.os-zoom-dialog::backdrop {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(4px);
}

.os-zoom-dialog__close {
  position: fixed;
  top: calc(0.65rem + env(safe-area-inset-top, 0px));
  right: 0.65rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.os-zoom-dialog__stage {
  min-height: 100dvh;
  padding: calc(3.25rem + env(safe-area-inset-top, 0px)) 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.os-zoom-dialog__tilt-wrap {
  width: min(100%, 980px);
  transform-style: preserve-3d;
  will-change: transform;
  touch-action: none;
  transform: translateZ(0);
}

.os-zoom-dialog__img {
  width: 100%;
  max-height: min(82dvh, 860px);
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #0b1220;
}

.os-zoom-dialog__loading {
  margin: 0;
  padding: 3rem 1rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

body.os-zoom-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 860px) {
  .os-zoom-dialog__stage {
    align-items: flex-start;
    padding-top: calc(3.25rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .os-zoom-dialog__img {
    max-height: none;
    height: auto;
  }

  .os-zoom-dialog__tilt-wrap {
    width: 100%;
    margin: 0.25rem 0 1.5rem;
  }
}

.os-redeem {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}

.os-redeem__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 2rem;
}

.os-redeem__card > h1 {
  margin: 0 0 1.25rem;
  font-size: 1.55rem;
  text-align: center;
}

.os-redeem__grid {
  display: grid;
  gap: 1.5rem;
}

.os-redeem__ficha .os-ficha {
  max-width: 100%;
}

.os-redeem-vehicle__name {
  margin: 0.85rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.os-redeem-vehicle__meta {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.os-redeem-warning {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  line-height: 1.5;
}

.os-redeem-warning strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #fcd34d;
}

.os-redeem-warning p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.os-confirm-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
}

.os-confirm-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .os-redeem {
    width: min(980px, calc(100% - 2rem));
  }

  .os-redeem__card {
    padding: 2rem 2.25rem 2.35rem;
  }

  .os-redeem__card > h1 {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .os-redeem__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .os-redeem-vehicle__name,
  .os-redeem-vehicle__meta {
    text-align: left;
  }
}

@media (max-width: 899px) {
  .os-redeem {
    width: min(560px, calc(100% - 1.5rem));
  }
}


.os-card__plates {
  margin: 0.65rem 0 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.os-detail__plate-hint {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.os-detail__unit-tag {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(196, 165, 116, 0.08);
  font-size: 0.92rem;
}

.os-plate-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.os-card__owned {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(196, 165, 116, 0.92);
  color: #0a0e17;
  font-size: 0.75rem;
  font-weight: 700;
}

.os-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.os-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.os-badge--soon {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.os-badge--upcoming {
  background: rgba(126, 184, 218, 0.18);
  color: var(--accent);
}

.os-badge--available {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
}

.os-badge--soldout {
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}

.os-badge--owned {
  background: rgba(196, 165, 116, 0.22);
  color: var(--accent-secondary);
}

.os-card__units {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.os-card__tagline,
.os-detail__tagline {
  margin: 0 0 0.35rem;
  color: var(--accent-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.os-card__body h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.os-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.os-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.os-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.os-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.os-detail__visual .os-ficha {
  width: 100%;
}

.os-detail__frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: #0f1624;
}

.os-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.os-detail__info h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.os-detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.55);
}

.os-detail__stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.os-detail__public h2,
.os-detail__unlocked h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.os-detail__content {
  line-height: 1.65;
  color: var(--text-muted);
}

.os-detail__content--exclusive {
  color: var(--text);
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(196, 165, 116, 0.08);
}

.os-detail__unit-tag {
  margin: 0 0 0.75rem;
  color: var(--accent-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.os-detail__locked {
  margin-top: 1.5rem;
}

.os-detail__locked-inner {
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(17, 24, 39, 0.45);
}

.os-detail__locked-inner h3 {
  margin: 0 0 0.5rem;
}

.os-detail__locked-inner p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.os-detail__nfc-hint {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.os-detail__locked-inner .btn-auth {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.os-redeem-preview {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.55);
}

.os-redeem-preview p {
  margin: 0 0 0.45rem;
}

.os-redeem-preview p:last-child {
  margin-bottom: 0;
}

.os-code {
  display: block;
  word-break: break-all;
  font-size: 0.78rem;
  color: var(--accent);
}

.os-regen-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.os-units-table code {
  max-width: 280px;
}

@media (max-width: 768px) {
  .os-grid {
    grid-template-columns: 1fr;
  }

  .site-sections__item {
    min-width: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }

  .os-detail__stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .os-units-table code {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .os-card__plate,
  .os-detail__plate {
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
  }
}
