/* ==========================================================================
   showrooms.css — Página Showrooms
   ========================================================================== */

.page-showrooms .crumb {
  padding-top: clamp(20px, 2.5vw, 28px);
  padding-bottom: 8px;
  font-size: .86rem;
  color: var(--ink-soft);
}

.page-showrooms .wrap.crumb,
.page-showrooms .contact > .wrap {
  width: min(var(--frame-max), calc(100% - (var(--frame-gutter) * 2)));
  max-width: none;
  margin-inline: auto;
}

/* Showrooms: tarjeta de foto + lista, no un panel full-bleed — contenedor estándar
   (--maxw) en vez del marco amplio, para que no se vea estirada a lo ancho. */

.page-showrooms .crumb a:hover {
  color: var(--ink);
}

.page-showrooms .crumb span {
  margin: 0 8px;
  opacity: .45;
}

.page-showrooms .showrooms.block {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(16px, 2vw, 24px);
}

.page-showrooms .contact {
  padding-top: clamp(20px, 2.5vw, 32px);
  padding-bottom: clamp(72px, 8vw, 100px);
}

/* ---------- SHOWROOMS ---------- */
.showrooms {
  background: var(--surface);
}

.show-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.show-head .sec-head {
  margin-bottom: 0;
}

.show-count {
  text-align: right;
}

.show-count b {
  font-weight: var(--fw-emphasis);
  font-size: 3rem;
  line-height: .9;
  display: block;
  letter-spacing: -.03em;
}

.show-count small {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sr-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  min-width: 0;
}

/* Se activa solo mientras la tarjeta principal se desliza (swipe o
   flechas), para que el desplazamiento no se monte sobre la lista de
   tabs contigua. */
.sr-wrap.sr-clip {
  overflow: hidden;
}

/* El alto de la fila lo fija el contenido de la lista — sin este piso la foto queda
   cada vez más ancha y plana ("estirada"). También abrimos el espacio entre columnas
   en laptop y computadoras grandes para que se vea más aireado, no apretado. */
@media (min-width: 1440px) {
  .sr-wrap {
    min-height: 460px;
    gap: 28px;
  }
}

@media (min-width: 1920px) {
  .sr-wrap {
    min-height: 520px;
    gap: 32px;
  }
}

@media (min-width: 2560px) {
  .sr-wrap {
    min-height: 600px;
    gap: 36px;
  }
}

.sr-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.sr-photo {
  position: relative;
  flex: 1 1 0;
  min-height: 180px;
  background: linear-gradient(135deg, #dadad3, #c4c4ba);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.sr-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sr-photo .sr-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, .32);
  font-style: italic;
  font-size: .86rem;
}

.sr-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: #fff;
  border-radius: 999px;
  padding: 7px 15px;
  font-weight: 600;
  font-size: .82rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.sr-info {
  flex: none;
  padding: 26px 30px 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: flex-end;
}

@media (min-width: 1440px) {
  .sr-info {
    padding: 30px 34px 32px;
  }
}

@media (min-width: 1920px) {
  .sr-info {
    padding: 34px 38px 36px;
  }
}

.sr-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.sr-info .det {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 46ch;
}

.sr-info .det b {
  color: var(--ink-mid);
  font-weight: 600;
}

.sr-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}

.sr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  min-width: 0;
  max-width: 100%;
}

.sr-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.sr-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sr-scroll-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
  font-size: 1rem;
  line-height: 1;
}

.sr-scroll-btn:hover:not(:disabled) {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.sr-scroll-btn:disabled {
  opacity: .35;
  cursor: default;
}

.sr-scroll-track {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 140px;
}

.sr-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 28px;
  border-radius: 999px;
  background: var(--brand);
  transition: transform 0.12s ease, width 0.12s ease;
  will-change: transform, width;
}

.sr-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: .18s;
  width: 100%;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
}

.sr-item:hover {
  border-color: var(--brand);
}

.sr-item.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  background: rgba(96, 102, 70, .06);
}

.sr-thumb {
  flex: none;
  width: 58px;
  height: 46px;
  border-radius: 7px;
  background: linear-gradient(135deg, #dadad3, #c2c2b8);
  background-size: cover;
  background-position: center;
}

.sr-item .nm {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.2;
}

.sr-item .ct {
  font-size: .76rem;
  color: var(--ink-soft);
}

.sr-item.soon {
  opacity: .6;
  cursor: default;
}

.sr-item.soon:hover {
  border-color: var(--line);
}

.sr-soon-tag {
  margin-left: auto;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .sr-wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .page-showrooms .showrooms.block {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .page-showrooms .contact {
    padding-top: 20px;
    padding-bottom: 64px;
  }

  .sr-wrap {
    min-width: 0;
  }

  .sr-main,
  .sr-list {
    min-width: 0;
    max-width: 100%;
  }

  .show-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
  }

  .show-head .sec-head {
    margin-bottom: 0;
    flex: none;
    width: 100%;
    max-width: none;
  }

  .show-count {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    flex-shrink: 0;
    white-space: normal;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .show-count b {
    font-size: 2.25rem;
    display: block;
    line-height: .9;
  }

  .show-count small {
    display: block;
    font-size: .68rem;
    letter-spacing: .1em;
    line-height: 1.35;
    white-space: nowrap;
  }

  .sr-info {
    padding: 20px 22px 22px;
  }

  .sr-info h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 820px) {
  .show-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
  }

  .show-head .sec-head {
    margin-bottom: 0;
    flex: none;
    width: 100%;
    max-width: none;
  }

  .show-head .sec-head h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.75rem);
    max-width: 16ch;
  }

  .show-head .sec-head p {
    display: block;
    font-size: .92rem;
    max-width: 36ch;
  }

  .show-count {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    flex-shrink: 0;
    white-space: normal;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .show-count b {
    font-size: 2.1rem;
    display: block;
    line-height: .9;
    letter-spacing: -.03em;
  }

  .show-count small {
    display: block;
    font-size: .66rem;
    letter-spacing: .1em;
    line-height: 1.35;
    white-space: nowrap;
  }

  .sr-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sr-list-wrap {
    order: -1;
  }

  .sr-main {
    height: auto;
  }

  .sr-photo {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 240px;
  }

  .sr-list {
    flex-direction: row;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .sr-list::-webkit-scrollbar {
    display: none;
  }

  .sr-list-wrap .sr-scroll-hint {
    display: flex;
    padding: 12px 4px 0;
  }

  .sr-scroll-track {
    max-width: 120px;
    margin-inline: 0;
  }

  .sr-item {
    min-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .sr-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .sr-cta {
    flex-direction: column;
    width: 100%;
  }

  .sr-cta .btn-primary,
  .sr-cta .btn-ghost,
  .sr-cta a {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 560px) {
  .show-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
  }

  .show-head .sec-head h2 {
    font-size: clamp(1.35rem, 6vw, 1.6rem);
    max-width: 14ch;
  }

  .show-head .sec-head p {
    display: block;
    font-size: .88rem;
    max-width: none;
  }

  .show-count {
    padding: 10px 14px;
    gap: 10px;
  }

  .show-count b {
    font-size: 1.85rem;
    display: block;
  }

  .show-count small {
    display: block;
    font-size: .62rem;
    letter-spacing: .08em;
    line-height: 1.3;
    white-space: nowrap;
  }

  .sr-list-wrap {
    order: -1;
  }

  .sr-scroll-hint {
    display: flex;
    padding: 12px 4px 0;
  }

  .sr-scroll-track {
    max-width: 120px;
    margin-inline: 0;
  }

  .sr-photo {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }

  .sr-info {
    padding: 16px 16px 18px;
    gap: 14px;
  }

  .sr-info h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .sr-info .det {
    font-size: .84rem;
  }

  .sr-cta {
    flex-direction: column;
    width: 100%;
  }

  .sr-item {
    min-width: 168px;
    padding: 12px;
    min-height: 56px;
    gap: 12px;
  }

  .sr-thumb {
    width: 48px;
    height: 42px;
  }
}
