.ficha-page {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 169, 98, 0.12), transparent 55%),
    linear-gradient(180deg, #141414 0%, #0b0b0b 45%, #101010 100%);
  min-height: 100vh;
}

.ficha-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--fm-border);
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(10px);
}

.ficha-toolbar__inner {
  width: min(100% - 1.25rem, 64rem);
  margin-inline: auto;
  padding: 0.85rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.ficha-toolbar__back {
  color: var(--fm-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ficha-toolbar__back:hover,
.ficha-toolbar__back:focus-visible {
  color: var(--fm-text);
}

.ficha-toolbar__back:focus-visible {
  outline: 2px solid var(--fm-focus);
  outline-offset: 2px;
}

.ficha-toolbar__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.ficha-toolbar__actions .btn {
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

@media (min-width: 480px) {
  .ficha-toolbar__actions {
    width: auto;
    grid-auto-flow: column;
    grid-template-columns: none;
  }
}

.ficha-wrap {
  width: min(100% - 1.25rem, 64rem);
  margin: 1.5rem auto 3.5rem;
}

.ficha-status {
  color: var(--fm-text-muted);
  text-align: center;
  padding: 3rem 1rem;
}

.sheet {
  background: linear-gradient(165deg, #1c1c1c 0%, #151515 48%, #121212 100%);
  color: #f0ece6;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: visible;
}

.sheet__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #171411 100%);
  border: 1px solid rgba(201, 169, 98, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

img.sheet__logo {
  width: auto;
  height: clamp(4.5rem, 14vw, 6rem);
  max-width: none;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.sheet__brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet__brand-tag {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a958c;
}

.sheet__ref {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a958c;
  text-align: right;
}

.sheet__hero {
  display: block;
  width: calc(100% - 2.8rem);
  max-height: min(16rem, 42vw);
  margin: 0 1.4rem;
  padding: 0;
  border: 0;
  background: var(--fm-bg-soft, #242424);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  cursor: zoom-in;
}

.sheet__hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sheet__photos-count {
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a958c;
}

.sheet__photos--mosaic {
  padding: 0 1.4rem 0.35rem;
}

.sheet__mosaic {
  display: grid;
  gap: 0.65rem;
}

.sheet__mosaic-main {
  display: block;
  width: 100%;
  max-height: min(16rem, 42vw);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  background: var(--fm-bg-soft, #242424);
}

.sheet__mosaic-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sheet__mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.sheet__mosaic-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  cursor: zoom-in;
  background: #121212;
}

.sheet__mosaic-thumb img {
  width: 100%;
  max-height: 6.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--fm-bg-soft, #242424);
}

.sheet__mosaic-thumb--more img {
  filter: brightness(0.72);
}

.sheet__mosaic-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.2rem;
  background: rgba(8, 8, 8, 0.55);
  color: #f3e6c4;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet__mosaic-more-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #d5cfc4;
}

.sheet__photos-print {
  display: none;
}

.sheet__body {
  padding: 1.45rem 1.4rem 1.85rem;
  background:
    linear-gradient(180deg, rgba(201, 169, 98, 0.04) 0%, transparent 12%),
    transparent;
}

.sheet__contact--prominent {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(201, 169, 98, 0.32);
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.sheet__contact--prominent .sheet__contact-title {
  color: #e8dcc0;
}

.sheet__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a962;
  font-weight: 600;
}

.sheet__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}

.sheet__meta {
  margin: 0 0 1.1rem;
  color: #b7b1a8;
  font-size: 0.95rem;
}

.sheet__price {
  display: inline-block;
  margin: 0 0 1.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.1);
  color: #f3e6c4;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sheet__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.sheet__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ddd8d0;
}

.sheet__badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #6fbf8b;
  display: inline-block;
}

.sheet__specs {
  margin: 0 0 1rem;
  color: #cfc8bd;
  font-size: 0.92rem;
  line-height: 1.7;
}

.sheet__specs strong {
  color: #f0ece6;
}

.sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.sheet__chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: #ddd8d0;
}

.sheet__section-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c9a962;
}

.sheet__description {
  margin: 0 0 1.5rem;
  color: #ddd8d0;
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-line;
}

.sheet__martillero {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cfc8bd;
}

.sheet__qr {
  display: block;
  width: 118px;
  height: 118px;
  background: #f3efe8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.4rem;
  text-decoration: none;
}

.sheet__qr img {
  width: 100%;
  height: 100%;
  border-radius: 0.65rem;
}

.sheet__qr-caption {
  margin: 0.4rem 0 0;
  font-size: 0.68rem;
  color: #9a958c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet__qr-phone {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0ece6;
}

.sheet__details {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.sheet__details li {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.sheet__details span:first-child {
  color: #9a958c;
  font-weight: 500;
}

.sheet__gallery-wrap {
  padding: 0 1.4rem;
  margin: 0.65rem 0 0;
}

.sheet__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.sheet__gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 0.9rem;
  overflow: hidden;
}

.sheet__gallery-item img,
.sheet__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1a1a1a;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
}

.photo-lightbox {
  width: min(96vw, 72rem);
  max-width: none;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 8, 0.94);
  color: #f0ece6;
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.photo-lightbox__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
}

.photo-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.photo-lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 52rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
}

.photo-lightbox__caption {
  font-size: 0.85rem;
  color: #c9c4bb;
}

.photo-lightbox__close,
.photo-lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f3e6c4;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.photo-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  z-index: 2;
}

.photo-lightbox__nav {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.6rem;
}

.photo-lightbox__close:hover,
.photo-lightbox__close:focus-visible,
.photo-lightbox__nav:hover,
.photo-lightbox__nav:focus-visible {
  outline: 2px solid #c9a962;
  outline-offset: 2px;
}

.sheet__location {
  margin: 0 0 1.5rem;
}

.sheet__address {
  margin: 0 0 0.75rem;
  color: #cfc8bd;
  font-size: 0.92rem;
}

.sheet__map-link-wrap {
  margin: 0.65rem 0 0;
}

.sheet__map-link {
  color: #c9a962;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.sheet__map-link:hover,
.sheet__map-link:focus-visible {
  text-decoration: underline;
}

.sheet__map {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
}

.sheet__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.sheet__agent {
  margin: 0 0 1.5rem;
}

.sheet__agent-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
}

.sheet__agent-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 169, 98, 0.35);
  flex-shrink: 0;
}

.sheet__agent-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 98, 0.15);
  color: #f3e6c4;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.sheet__agent-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.sheet__agent-phone {
  color: #c9a962;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.sheet__agent-phone:hover,
.sheet__agent-phone:focus-visible {
  text-decoration: underline;
}

.sheet__contact {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
}

.sheet__contact-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c9a962;
}

.sheet__contact-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.sheet__contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.sheet__contact-list a {
  color: #f0ece6;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.sheet__contact-list a:hover,
.sheet__contact-list a:focus-visible {
  border-bottom-color: #c9a962;
  outline: none;
}

.sheet__reveal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(201, 169, 98, 0.45);
  background: rgba(201, 169, 98, 0.12);
  color: #f3e6c4;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
}

.sheet__reveal-btn:hover,
.sheet__reveal-btn:focus-visible {
  background: rgba(201, 169, 98, 0.22);
  outline: none;
}

.sheet__reveal-btn--block {
  display: flex;
  width: 118px;
  height: 118px;
  text-align: center;
  border-radius: 1rem;
}

.sheet__reveal-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #9a958c;
}

.reveal-dialog {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  padding: 0;
  background: linear-gradient(165deg, #1c1c1c 0%, #151515 60%, #121212 100%);
  color: #f0ece6;
  width: min(92vw, 26rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.reveal-dialog::backdrop {
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(3px);
}

.reveal-dialog__form {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.reveal-dialog__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cfc8bd;
  cursor: pointer;
}

.reveal-dialog__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  padding-right: 1.8rem;
}

.reveal-dialog__subtitle {
  margin: -0.35rem 0 0.2rem;
  font-size: 0.85rem;
  color: #b7b1a8;
  line-height: 1.5;
}

.reveal-dialog__field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #cfc8bd;
}

.reveal-dialog__field input,
.reveal-dialog__field textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f0ece6;
  resize: vertical;
}

.reveal-dialog__field input:focus-visible,
.reveal-dialog__field textarea:focus-visible {
  outline: 2px solid var(--fm-focus, #c9a962);
  outline-offset: 1px;
}

.reveal-dialog__error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  background: rgba(201, 90, 90, 0.14);
  border: 1px solid rgba(201, 90, 90, 0.35);
  color: #f3c4c4;
  font-size: 0.82rem;
}

.reveal-dialog__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.2rem;
}

.sheet__disclaimer {
  margin: 1.25rem 0 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: rgba(201, 169, 98, 0.08);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #d5cfc4;
}

.sheet__footer {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: #8f897f;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .ficha-wrap {
    width: min(100% - 2rem, 68rem);
    margin-top: 2rem;
  }

  .sheet {
    border-radius: 1.6rem;
  }

  .sheet__contact-grid {
    grid-template-columns: 1fr auto;
  }

  .sheet__mosaic {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }

  .sheet__mosaic-main {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .sheet__mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .sheet__gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .sheet__body {
    padding: 1.85rem 2.1rem 2.15rem;
  }

  .sheet__header {
    padding: 1.55rem 2.1rem;
  }
}

@media print {
  .no-print {
    display: none !important;
  }

  .ficha-page {
    background: #fff;
  }

  .ficha-wrap {
    width: 100%;
    margin: 0;
  }

  .sheet {
    box-shadow: none;
    border-radius: 0;
    background: #fff;
    color: #141414;
    border: none;
  }

  .sheet__brand {
    background: #111;
    border-color: #333;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  img.sheet__logo {
    filter: none;
  }

  .sheet__photos--mosaic,
  .sheet__mosaic {
    display: none !important;
  }

  .sheet__photos-print {
    display: grid !important;
    gap: 0.35rem;
    padding: 0 0 0.75rem;
  }

  .sheet__photos-print--brief {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sheet__photos-print--brief img {
    width: 100%;
    height: 2.6cm;
    object-fit: cover;
    border-radius: 0.2rem;
  }

  .sheet__photos-print--full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sheet__photos-print--full img {
    width: 100%;
    height: 2.2cm;
    object-fit: cover;
    border-radius: 0.15rem;
  }

  body.print-mode--brief .sheet__location--screen,
  body.print-mode--brief .sheet__section-title--details,
  body.print-mode--brief .sheet__details,
  body.print-mode--brief .sheet__photos-print--full,
  body.print-mode--brief .sheet__chips,
  body.print-mode--brief .sheet__disclaimer {
    display: none !important;
  }

  body.print-mode--brief .sheet__description {
    max-height: 9.5cm;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 18;
    -webkit-box-orient: vertical;
  }

  body.print-mode--full .sheet__photos-print--brief {
    display: none !important;
  }

  body.print-mode--full .sheet__description {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .sheet__map {
    display: none;
  }

  .sheet__header,
  .sheet__contact,
  .sheet__contact--prominent,
  .sheet__agent-card,
  .sheet__details li,
  .sheet__disclaimer {
    background: #f7f5f2;
    color: inherit;
  }

  .sheet__kicker,
  .sheet__section-title,
  .sheet__contact-title {
    color: #666;
  }

  .sheet__description,
  .sheet__meta,
  .sheet__martillero,
  .sheet__contact-list a,
  .sheet__qr-phone {
    color: #222;
  }

  .sheet__price {
    background: transparent;
    color: #141414;
    border-color: #141414;
  }

  .sheet__gallery img,
  .sheet__hero img,
  .sheet__qr {
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }
}
