/* ============================================================
   showroom.css - Estilos exclusivos para la pagina Showroom
   ============================================================ */

.showroom-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--navbar-height) + var(--space-6));
  padding-bottom: calc(var(--space-14) + var(--space-8));
  background:
    radial-gradient(circle at top left, rgba(130, 94, 69, 0.12) 0%, rgba(130, 94, 69, 0) 36%),
    linear-gradient(180deg, #fffaf6 0%, #f7eee7 100%);
}

.showroom-hero::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 28, 18, 0.08) 0%, rgba(38, 28, 18, 0) 72%);
  pointer-events: none;
}

.showroom-hero__stage {
  position: relative;
  min-height: clamp(580px, 82vh, 760px);
  margin-bottom: var(--space-6);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary);
  border: 1px solid rgba(38, 28, 18, 0.08);
  box-shadow: 0 2rem 4rem rgba(38, 28, 18, 0.14);
}

.showroom-hero__eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.showroom-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 4.8vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--color-white);
  max-width: 7.5ch;
}

.showroom-hero__text {
  margin-top: var(--space-4);
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
}

.showroom-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.showroom-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--color-secondary);
}

.showroom-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 28, 18, 0.72) 0%, rgba(38, 28, 18, 0.42) 34%, rgba(38, 28, 18, 0.16) 64%, rgba(38, 28, 18, 0.06) 100%),
    linear-gradient(0deg, rgba(38, 28, 18, 0.5) 0%, rgba(38, 28, 18, 0) 42%);
}

.showroom-hero__panel {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  z-index: 1;
  max-width: min(40rem, calc(100% - 3rem));
}

.showroom-hero__placeholder,
.showroom-gallery__placeholder,
.showroom-location__placeholder {
  display: grid;
  place-items: center;
  color: rgba(38, 28, 18, 0.42);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(241,230,220,0.96) 100%),
    linear-gradient(135deg, rgba(130,94,69,0.12) 0%, rgba(38,28,18,0.08) 100%);
}

.showroom-hero__media picture,
.showroom-gallery__media picture,
.showroom-hero__media img,
.showroom-gallery__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.showroom-hero__image {
  object-fit: cover;
  object-position: center 38%;
}

.showroom-overview {
  background-color: var(--color-white);
  padding-block: var(--space-12);
}

.showroom-overview__summary {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.showroom-overview .section__title {
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(2rem, 3.25vw, 3rem);
  line-height: 1.04;
}

.showroom-overview__text {
  margin: var(--space-5) auto 0;
  font-size: var(--text-base);
  line-height: 1.9;
  color: rgba(38, 28, 18, 0.66);
  max-width: 56ch;
}

.showroom-overview__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(38, 28, 18, 0.1);
}

.showroom-overview__detail {
  padding-right: var(--space-4);
  border-right: 1px solid rgba(38, 28, 18, 0.1);
}

.showroom-overview__detail:last-child {
  padding-right: 0;
  border-right: 0;
}

.showroom-overview__detail h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(38, 28, 18, 0.84);
}

.showroom-overview__detail p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(38, 28, 18, 0.64);
}

.showroom-gallery {
  padding-bottom: var(--space-20);
}

.showroom-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.showroom-gallery__item {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.showroom-gallery__item--tall {
  grid-row: span 2;
}

.showroom-gallery__item--wide {
  grid-column: span 2;
}

.showroom-gallery__item--interior .showroom-gallery__media {
  aspect-ratio: 4 / 3;
}

.showroom-gallery__media {
  aspect-ratio: 4 / 3;
  background-color: var(--color-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.showroom-gallery__media img {
  object-fit: cover;
  object-position: center center;
}

.showroom-gallery__item--interior .showroom-gallery__media img {
  object-position: center 42%;
}

.showroom-gallery__item--front .showroom-gallery__media img {
  object-position: center 54%;
}

.showroom-gallery__placeholder {
  position: relative;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(79,56,38,0.86) 0%, rgba(38,28,18,0.9) 100%),
    linear-gradient(135deg, rgba(130,94,69,0.2) 0%, rgba(255,255,255,0.04) 100%);
}

.showroom-gallery__item--tall .showroom-gallery__placeholder {
  min-height: 100%;
}

.showroom-gallery__item--tall .showroom-gallery__media {
  aspect-ratio: 4 / 5;
}

.showroom-gallery__item--wide .showroom-gallery__placeholder {
  aspect-ratio: 7 / 3;
}

.showroom-gallery__item--wide .showroom-gallery__media {
  aspect-ratio: 7 / 3;
}

.showroom-gallery__caption {
  padding: var(--space-5);
}

.showroom-gallery__caption h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--color-white);
  line-height: 1.2;
}

.showroom-gallery__caption p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.64);
  max-width: none;
}

.showroom-location {
  background-color: var(--color-white);
}

.showroom-location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: var(--space-10);
  align-items: center;
}

.showroom-location__text {
  font-size: var(--text-base);
  line-height: 1.9;
  color: rgba(38, 28, 18, 0.66);
  max-width: 52ch;
}

.showroom-location__list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.showroom-location__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(38, 28, 18, 0.72);
}

.showroom-location__list li::before {
  content: "";
  position: absolute;
  top: 0.66rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.showroom-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.showroom-location__panel {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background-color: var(--color-white);
  border: 1px solid rgba(38, 28, 18, 0.08);
  box-shadow: var(--shadow-md);
}

.showroom-location__map-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(38, 28, 18, 0.12);
  background-color: rgba(38, 28, 18, 0.05);
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.showroom-location__map-frame:hover,
.showroom-location__map-frame:focus-visible {
  border-color: rgba(38, 28, 18, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.showroom-location__map-frame:focus-visible {
  outline: 2px solid var(--color-accent, #b08a52);
  outline-offset: 3px;
}

.showroom-location__map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.showroom-location__placeholder {
  position: relative;
  margin-top: var(--space-4);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(38, 28, 18, 0.14);
}

.showroom-location__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(38, 28, 18, 0.64);
  max-width: none;
}

.showroom-cta {
  background:
    linear-gradient(135deg, rgba(38,28,18,1) 0%, rgba(79,56,38,1) 100%);
  color: var(--color-white);
}

.showroom-cta__inner {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.showroom-cta .section__label {
  color: rgba(255, 255, 255, 0.72);
}

.showroom-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
}

.showroom-cta__text {
  margin: var(--space-5) auto var(--space-8);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
  max-width: 46ch;
}

@media (max-width: 1180px) {
  .showroom-location__grid {
    grid-template-columns: 1fr;
  }

  .showroom-hero__stage {
    min-height: clamp(520px, 74vh, 680px);
  }

  .showroom-overview__details {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .showroom-overview__detail {
    padding-right: 0;
    padding-bottom: var(--space-5);
    border-right: 0;
    border-bottom: 1px solid rgba(38, 28, 18, 0.1);
  }

  .showroom-overview__detail:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 920px) {
  .showroom-gallery__item--wide,
  .showroom-gallery__item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .showroom-gallery__item--wide .showroom-gallery__placeholder {
    aspect-ratio: 4 / 3;
  }

  .showroom-gallery__item--wide .showroom-gallery__media {
    aspect-ratio: 4 / 3;
  }

  .showroom-gallery__item--tall .showroom-gallery__placeholder {
    min-height: 220px;
  }

  .showroom-gallery__item--tall .showroom-gallery__media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 767px) {
  .showroom-hero {
    padding-top: calc(var(--navbar-height) + var(--space-8));
    padding-bottom: calc(var(--space-8) + var(--space-2));
  }

  .showroom-hero__stage {
    min-height: 540px;
    margin-bottom: 0;
  }

  .showroom-hero__panel {
    left: var(--space-5);
    right: var(--space-5);
    bottom: var(--space-5);
    max-width: none;
  }

  .showroom-hero__image {
    object-position: center 34%;
  }

  .showroom-hero__title {
    font-size: clamp(2rem, 9.6vw, 3.3rem);
    max-width: 7.5ch;
  }

  .showroom-hero__text {
    max-width: none;
  }

  .showroom-hero__actions .btn,
  .showroom-location__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .showroom-gallery__grid {
    grid-template-columns: 1fr;
  }
}
