.home-map {
  height: clamp(420px, calc(100svh - 240px), 1000px);
}

.home-map > [class*="col-"] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.home-map-image {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-map > .col, .home-map > .col-auto {
  display: flex;
  align-items: center;
  height: 100%;
}

.home-map > .col-auto {
  justify-content: flex-start;
}

.home-map > .col {
  min-width: 0;
  justify-content: flex-start;
}

.home-floor-selector {
  width: clamp(180px, 12vw, 250px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* Añadir estas reglas al final de assets/css/home.css. */

.home-selector {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.home-selector .home-floor-selector {
  display: block;
}

.home-floor-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.home-floor-zone:hover, .home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 24%);
  outline: none;
}

.home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 36%);
}

.home-selector.is-residential-selected .home-floor-zone {
  background: rgb(84 207 255 / 8%);
}

.home-selector.is-residential-selected .home-floor-zone:hover, .home-selector.is-residential-selected .home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 28%);
}

/* Añadir estas reglas al final de assets/css/home.css. */

.home-selector {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.home-selector .home-floor-selector {
  display: block;
}

.home-floor-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.home-floor-zone:hover, .home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 24%);
  outline: none;
}

.home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 36%);
}

.home-selector.is-residential-selected .home-floor-zone {
  background: rgb(84 207 255 / 8%);
}

.home-selector.is-residential-selected .home-floor-zone:hover, .home-selector.is-residential-selected .home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 28%);
}

.home-selector.is-collective-selected .home-floor-zone--collective {
  background: rgb(56 183 138 / 18%);
}

.home-selector.is-collective-selected .home-floor-zone--collective:hover, .home-selector.is-collective-selected .home-floor-zone--collective:focus-visible {
  background: rgb(56 183 138 / 32%);
}

.home-selector.is-logistics-selected .home-floor-zone--logistics {
  background: rgb(243 184 77 / 18%);
}

.home-selector.is-logistics-selected .home-floor-zone--logistics:hover, .home-selector.is-logistics-selected .home-floor-zone--logistics:focus-visible {
  background: rgb(243 184 77 / 32%);
}

/* Añadir estas reglas al final de assets/css/home.css. */

.home-selector {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.home-selector .home-floor-selector {
  display: block;
}

.home-floor-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.home-floor-zone:hover, .home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 24%);
  outline: none;
}

.home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 36%);
}

.home-selector.is-residential-selected .home-floor-zone {
  background: rgb(84 207 255 / 8%);
}

.home-selector.is-residential-selected .home-floor-zone:hover, .home-selector.is-residential-selected .home-floor-zone:focus-visible {
  background: rgb(84 207 255 / 28%);
}

.home-selector.is-collective-selected .home-floor-zone--collective {
  background: rgb(56 183 138 / 18%);
}

.home-selector.is-collective-selected .home-floor-zone--collective:hover, .home-selector.is-collective-selected .home-floor-zone--collective:focus-visible {
  background: rgb(56 183 138 / 32%);
}

/* Identifica la cubierta activa sin ocultar el plano. */

.home-plan-stage {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 24px);
  height: 100%;
  min-width: 0;
}

.home-plan-stage .home-map-image {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - clamp(58px, 6vw, 94px));
}

.home-deck-number {
  flex: 0 0 clamp(48px, 5vw, 78px);
  color: #bdeeff;
  font-family: Bahnschrift, Arial, sans-serif;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 12px rgb(98 207 239 / 38%);
}

.home-deck-number span {
  display: block;
  font-size: clamp(0.45rem, 0.7vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.home-deck-number strong {
  display: block;
  font-size: clamp(3.4rem, 6vw, 6.5rem);
  font-weight: 500;
}

.home-data-section {
  margin-top: 22px;
}

.home-data-section h3 {
  margin: 0 0 10px;
  color: #54cfff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.home-accommodation {
  border: 1px solid #1c638b;
}

.home-accommodation__row {
  display: grid;
  grid-template-columns: 62px 38px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 9px 11px;
  border-bottom: 1px solid #1c638b;
  background: #061e2b;
}

.home-accommodation__row:last-child {
  border-bottom: 0;
}

.home-accommodation__row span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-accommodation__row strong {
  color: #fff;
  font-size: 1.1rem;
}

.home-accommodation__row small {
  color: #b9d3df;
  font-size: .75rem;
  line-height: 1.3;
}

.home-accommodation__row--a span {
  color: #55bfe9;
}

.home-accommodation__row--b span {
  color: #42bd91;
}

.home-accommodation__row--c span {
  color: #b781dc;
}

.home-info-card__footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #1c638b;
  color: #76ccef;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-info-card__footer strong {
  color: #fff;
  font-size: .78rem;
}

/* Ficha técnica HOME: mismo lenguaje visual que Explorar */

.home-info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  max-height: calc(100vh - 220px);
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(17, 24, 34, .96);
  border: 1px solid rgba(111, 214, 255, .24);
  border-radius: 16px;
  color: #d5dbe2;
}

.home-info-card__eyebrow {
  margin: 0 0 10px;
  color: #8ea1b5;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.home-info-card h2 {
  margin: 0 0 8px;
  color: #f2f4f6;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.home-info-card__area {
  margin: 0 0 18px;
  color: #6fd6ff;
  font-weight: 600;
  letter-spacing: .03em;
}

.home-info-card__intro {
  margin: 0;
  color: #d5dbe2;
  line-height: 1.65;
}

@media (min-width: 1200px) {
  .home-info-card {
    max-width: none;
    align-self: stretch;
  }
}

.home-data-section {
  margin-top: 22px;
}

.home-data-section__title {
  margin: 0 0 10px;
  color: #6fd6ff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(111, 214, 255, .24);
  background: rgba(111, 214, 255, .24);
}

.home-stat {
  padding: 12px;
  background: rgba(12, 17, 24, .88);
}

.home-stat__label {
  margin: 0 0 5px;
  color: #8ea1b5;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-stat__value {
  margin: 0;
  color: #f2f4f6;
  font-size: 1.05rem;
  font-weight: 600;
}

@media (min-width: 1400px) {
  .home-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(111, 214, 255, .24);
  background: rgba(111, 214, 255, .24);
}

.home-unit {
  min-width: 0;
  padding: 13px;
  background: rgba(12, 17, 24, .88);
}

.home-unit__name, .home-unit__size, .home-unit__detail {
  margin: 0;
}

.home-unit__name {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.home-unit__size {
  margin-top: 7px;
  color: #f2f4f6;
  font-size: 1rem;
  font-weight: 600;
}

.home-unit__detail {
  margin-top: 7px;
  color: #b9c8d3;
  font-size: .73rem;
  line-height: 1.4;
}

.home-unit--a .home-unit__name {
  color: #57a6d9;
}

.home-unit--b .home-unit__name {
  color: #38b78a;
}

.home-unit--c .home-unit__name {
  color: #9d7bd8;
}

.home-info-card__note {
  margin-top: 22px;
  padding: 14px;
  border-left: 3px solid #6fd6ff;
  background: rgba(111, 214, 255, .07);
}

.home-info-card__note strong {
  color: #6fd6ff;
  font-size: .68rem;
  letter-spacing: .09em;
}

.home-info-card__note p {
  margin: 7px 0 0;
  color: #b9c8d3;
  font-size: .82rem;
  line-height: 1.5;
}

.home-lift-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(111, 214, 255, .24);
  border-radius: 10px;
  background: #0c1118;
}

.home-lift-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-plan-stage {
  position: relative;
}

.home-poi-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.home-poi {
  position: absolute;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #d9f7ff;
  border-radius: 50%;
  background: #27c8ff;
  box-shadow: 0 0 0 4px rgba(39, 200, 255, .18), 0 0 16px rgba(39, 200, 255, .95);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, background-color .18s ease;
}

.home-poi::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.home-poi:hover, .home-poi:focus-visible {
  background: #ffffff;
  outline: none;
  transform: translate(-50%, -50%) scale(1.25);
}

.home-poi--lift {
  background: #c77be8;
  box-shadow: 0 0 0 4px rgba(199, 123, 232, .18), 0 0 16px rgba(199, 123, 232, .95);
}

/* Ficha A-3000: composición compacta para priorizar la imagen */

#home-lift-card {
  padding: 18px;
}

#home-lift-card .home-info-card__eyebrow {
  margin-bottom: 6px;
  font-size: .70rem;
}

#home-lift-card h2 {
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
}

#home-lift-card .home-info-card__intro {
  font-size: .84rem;
  line-height: 1.42;
}

#home-lift-card .home-lift-card__image-wrap {
  height: clamp(180px, 25vh, 250px);
  aspect-ratio: auto;
  margin: 0 0 14px;
  flex: 0 0 auto;
}

#home-lift-card .home-data-section {
  margin-top: 14px;
}

#home-lift-card .home-data-section__title {
  margin-bottom: 7px;
  font-size: .66rem;
}

#home-lift-card .home-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#home-lift-card .home-stat {
  padding: 8px;
}

#home-lift-card .home-stat__label {
  margin-bottom: 4px;
  font-size: .55rem;
}

#home-lift-card .home-stat__value {
  font-size: .86rem;
}

#home-lift-card .home-info-card__note {
  margin-top: 14px;
  padding: 10px;
}

#home-lift-card .home-info-card__note p {
  font-size: .74rem;
  line-height: 1.38;
}

@media (max-width: 1199.98px) {
  #home-lift-card .home-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#home-lift-card .home-lift-card__image {
  object-fit: contain;
  object-position: center;
}

.home-cabin-card__plan {
  height: clamp(150px, 22vh, 230px);
  margin: 12px 0 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 35, 49, 0.72);
  border: 1px solid rgba(98, 207, 229, 0.38);
  border-radius: 10px;
}

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

.home-poi--cabin {
  background: #36c997;
  box-shadow: 0 0 0 4px rgba(54, 201, 151, 0.20), 0 0 16px rgba(54, 201, 151, 0.92);
}

.home-poi--technical {
  background: #f3b84d;
  box-shadow: 0 0 0 4px rgba(243, 184, 77, .20), 0 0 16px rgba(243, 184, 77, .92);
}

/* En pantallas compactas, la ficha deja de estrecharse a la derecha.   El alzado y el plano siguen juntos; la información continúa debajo. */

@media (max-width: 991.98px) {
  .home-map {
    height: auto;
    row-gap: 1rem;
  }
}

@media (max-width: 991.98px) {
  .home-map > [class*="col-"] {
    height: auto;
    align-items: flex-start;
  }
}

@media (max-width: 991.98px) {
  .home-map > .col-auto {
    flex: 0 0 34%;
    max-width: 34%;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .home-map > .col:nth-child(2) {
    flex: 0 0 66%;
    max-width: 66%;
    padding-left: .75rem !important;
  }
}

@media (max-width: 991.98px) {
  .home-map > .col:nth-child(3) {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .home-floor-selector, .home-map-image, .home-plan-stage {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 991.98px) {
  .home-info-card {
    max-width: none;
    max-height: none;
    overflow: visible;
  }
}

/* Acción principal de la ficha técnica y visor estructural 3D. */

.home-technical-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.home-technical-card__heading .home-info-card__eyebrow {
  margin-bottom: 8px;
}

.home-technical-card__heading h2 {
  margin-bottom: 0;
}

.home-structure-button {
  flex: 0 0 auto;
  min-width: 178px;
  padding: 12px 14px;
  border: 1px solid #55cbf3;
  background: linear-gradient(135deg, rgba(12, 67, 88, .85), rgba(8, 25, 39, .96));
  color: #e4f9ff;
  font-family: Tektur, sans-serif;
  text-align: left;
  letter-spacing: .055em;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.home-structure-button span, .home-structure-button strong {
  display: block;
}

.home-structure-button span {
  color: #7bcee8;
  font-size: .64rem;
  letter-spacing: .13em;
}

.home-structure-button strong {
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 600;
}

.home-structure-button:hover, .home-structure-button:focus-visible {
  background: rgba(24, 104, 134, .95);
  box-shadow: 0 0 18px rgba(79, 211, 255, .28);
  outline: none;
  transform: translateY(-2px);
}

.home-structure-viewer {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 42px);
  background: rgba(1, 8, 14, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-structure-viewer[hidden] {
  display: none;
}

.home-structure-viewer__panel {
  position: relative;
  width: min(1180px, 100%);
  height: min(820px, 100%);
  overflow: hidden;
  border: 1px solid rgba(100, 209, 243, .62);
  background: radial-gradient(circle at 50% 42%, #09293a 0%, #03131e 64%, #01080e 100%);
  box-shadow: 0 0 50px rgba(44, 186, 238, .18);
}

.home-structure-viewer model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.home-structure-viewer__title {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 2.5vw, 30px);
  left: clamp(16px, 2.5vw, 30px);
  pointer-events: none;
}

.home-structure-viewer__title p, .home-structure-viewer__hint {
  margin: 0;
  color: #75d5f6;
  font-family: Tektur, sans-serif;
  font-size: .68rem;
  letter-spacing: .12em;
}

.home-structure-viewer__title h2 {
  margin: 7px 0 0;
  color: #f2fbff;
  font-family: Tektur, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
}

.home-structure-viewer__close {
  position: absolute;
  z-index: 3;
  top: clamp(16px, 2.5vw, 30px);
  right: clamp(16px, 2.5vw, 30px);
  padding: 12px 16px;
  border: 1px solid #75d5f6;
  background: rgba(4, 24, 37, .92);
  color: #9dddff;
  font-family: Tektur, sans-serif;
  font-size: .75rem;
  letter-spacing: .1em;
  cursor: pointer;
}

.home-structure-viewer__close:hover, .home-structure-viewer__close:focus-visible {
  background: #0d5270;
  color: #fff;
  outline: none;
}

.home-structure-viewer__hint {
  position: absolute;
  z-index: 2;
  bottom: clamp(14px, 2vw, 24px);
  left: 50%;
  padding: 8px 12px;
  background: rgba(2, 13, 21, .7);
  color: #b3d9e8;
  transform: translateX(-50%);
  white-space: nowrap;
}

body.home-structure-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .home-technical-card__heading {
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .home-technical-card__heading h2 {
    font-size: 1.23rem;
  }
}

@media (max-width: 575.98px) {
  .home-structure-button {
    min-width: 122px;
    padding: 10px;
  }
}

@media (max-width: 575.98px) {
  .home-structure-button strong {
    font-size: .67rem;
  }
}

@media (max-width: 575.98px) {
  .home-structure-viewer {
    padding: 0;
  }
}

@media (max-width: 575.98px) {
  .home-structure-viewer__panel {
    width: 100%;
    height: 100%;
    border: 0;
  }
}

@media (max-width: 575.98px) {
  .home-structure-viewer__title {
    top: 16px;
    left: 16px;
    max-width: calc(100% - 140px);
  }
}

@media (max-width: 575.98px) {
  .home-structure-viewer__hint {
    font-size: .55rem;
  }
}

#home-technical-card {
  position: relative;
}

#home-technical-card .home-structure-button {
  position: absolute !important;
  top: 18px;
  right: 18px;
  display: block !important;
  width: 178px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid #55cbf3;
  background: #0b2b3b;
  color: #e4f9ff;
  font-family: Tektur, sans-serif;
  text-align: left;
  cursor: pointer;
}

#home-technical-card .home-structure-button span, #home-technical-card .home-structure-button strong {
  display: block;
}

#home-technical-card .home-structure-button span {
  color: #7bcee8;
  font-size: .64rem;
  letter-spacing: .13em;
}

#home-technical-card .home-structure-button strong {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  letter-spacing: .055em;
}

.home-structure-viewer__panel {
  position: relative;
  width: min(1180px, 100%);
  height: min(820px, 100%);
  overflow: hidden;
  border: 1px solid rgba(100, 209, 243, .62);
  background: radial-gradient(circle at 50% 42%, #09293a 0%, #03131e 64%, #01080e 100%);
}

.home-structure-viewer model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.home-c8-cabin-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(111, 214, 255, .28);
  border-radius: 10px;
  background: #0c1118;
}

.home-c8-cabin-card__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-poi--collective-cabin {
  background: #ffad4d;
  box-shadow: 0 0 0 4px rgba(255, 173, 77, .20), 0 0 16px rgba(255, 173, 77, .92);
}

.home-c8-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(111, 214, 255, .28);
  border-radius: 10px;
  background: #050a0e;
}

.home-c8-card__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-poi--collective-overview {
  background: #f3b84d;
  box-shadow: 0 0 0 4px rgba(243, 184, 77, .20), 0 0 16px rgba(243, 184, 77, .92);
}

.home-poi--collective-cabin {
  background: #ff8d63;
  box-shadow: 0 0 0 4px rgba(255, 141, 99, .20), 0 0 16px rgba(255, 141, 99, .92);
}

.home-poi--collective-showers {
  background: #56c8ff;
  box-shadow: 0 0 0 4px rgba(86, 200, 255, .20), 0 0 16px rgba(86, 200, 255, .92);
}

.home-poi--collective-common {
  background: #c77be8;
  box-shadow: 0 0 0 4px rgba(199, 123, 232, .20), 0 0 16px rgba(199, 123, 232, .92);
}

/* Las imágenes de la cubierta 8 no se encogen dentro de la ficha. */

.home-c8-card__image-wrap {
  flex: 0 0 clamp(180px, 24vh, 280px) !important;
  height: clamp(180px, 24vh, 280px) !important;
  aspect-ratio: auto !important;
}

.home-c8-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

