/* ==========================================================================
   THE9 PAGE — Diseño exacto Figma
   ========================================================================== */

/* ==========================================================================
   HERO — 769px, "The9" italic grande
   ========================================================================== */
.setra-hero {
  height: 100vh;
  max-height: none;
}

/* Logo SVG del hero — medidas y posición exactas de Figma */
.the9-hero__logo {
  position: absolute;
  z-index: 2;
  display: block;
}

@media (min-width: 1200px) {
  .the9-hero__logo {
    width: 327px;
    height: 103px;
    bottom: 41px;
    left: var(--padding-x);
  }
}

@media (max-width: 1199px) {
  .the9-hero__logo {
    width: 180px;
    height: auto;
    bottom: 40px;
    left: var(--padding-x);
    top: auto;
  }
}

@media (max-width: 991px) {
  .the9-hero__logo {
    width: calc(100% - (var(--padding-x) * 2)) !important;
    max-width: none !important;
    height: auto !important;
  }

  .the9-distances__row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px 15px !important;
    flex-wrap: unset !important;
  }

  .the9-distances__item {
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
  }

  .the9-experience__row {
    display: flex !important;
    flex-direction: column !important;
  }

  .the9-experience__col-left,
  .the9-experience__col-right,
  .the9-experience__abs-container {
    display: contents !important;
  }

  .pos-exp-1 {
    order: 1 !important;
  }

  .pos-exp-2 {
    order: 2 !important;
    margin-bottom: 40px !important;
  }

  #the9Accordion {
    order: 3 !important;
    width: 100% !important;
  }

  .the9-experience__cta {
    position: relative !important;
    inset: auto !important;
    order: 4 !important;
    align-self: center !important;
    width: max-content !important;
    margin-top: 60px !important;
    display: inline-block !important;
  }

  .the9-quote__text {
    font-size: 32px !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    margin: 0 auto !important;
  }

  .the9-quote {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    overflow: hidden !important;
  }

  .the9-plans__tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 40px !important;
    flex-wrap: nowrap !important;
  }

  .the9-plans__tab {
    width: 100% !important;
    padding: 10px 5px !important;
    text-align: center !important;
    font-size: 14px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .the9-plans__unit {
    position: relative !important;
    display: block !important;
    padding-top: 50px !important;
    margin-bottom: 80px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 40px !important;
  }

  .the9-plans__unit:last-child {
    margin-bottom: 0 !important;
    border-bottom: none;
    padding-bottom: 0 !important;
  }

  .the9-plans__unit-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
  }

  .the9-plans__status {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    width: auto !important;
  }

  .the9-plans__unit-body {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .the9-specs-table {
    width: 100% !important;
  }

  .the9-carousel__img {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  #the9Carousel .carousel-inner {
    height: 180px !important;
  }
}


/* ==========================================================================
   SPECS BAR — Barra de datos del proyecto
   ========================================================================== */
.the9-specs-bar {
  background-color: #A1988F;
  padding: 25px var(--padding-x);
}

.the9-specs-bar__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

/* Laptop: 3 columnas */
@media (min-width: 992px) and (max-width: 1199px) {
  .the9-specs-bar__row {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* Desktop: proporciones Figma en 6 columnas */
@media (min-width: 1200px) {
  .the9-specs-bar__row {
    grid-template-columns: 18.5% 14.1% 18.2% 19% 11% 1fr;
    align-items: center;
    gap: 0;
  }

  .the9-specs-bar__item {
    padding: 0;
  }
}

.the9-specs-bar__label {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: var(--lh);
  text-transform: uppercase;
  color: #2F2A2A;
  display: block;
  margin-bottom: 8px;
}

.the9-specs-bar__value {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 18px;
  line-height: var(--lh);
  color: #2F2A2A;
  display: block;
}

/* ==========================================================================
   INTRO — 2 columnas + stats
   ========================================================================== */
.the9-intro {
  padding: 80px 0;
}

@media (min-width: 1200px) {
  .the9-intro__row {
    display: flex;
    align-items: flex-start;
  }
}

@media (max-width: 1199px) {
  .the9-intro__row {
    display: flex;
    flex-direction: column;
  }
}

.the9-intro__heading {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 26px;
  line-height: 109%;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
}

.the9-intro__subtitle {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 109%;
  color: var(--color-text);
  margin: 0;
}

.the9-intro__text p {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 18px;
  line-height: 155%;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.the9-intro__text p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   LOCATION — BIENESTAR MEDITERRANEO + Mapa
   ========================================================================== */
.the9-location {
  padding: 80px 0;
}

@media (min-width: 1200px) {
  .the9-location__text-wrap {
    width: 437px;
    max-width: 100%;
  }
}

.the9-location__heading {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 26px;
  line-height: 109%;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 8px;
}

.the9-location__subheading {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 109%;
  color: var(--color-text);
  margin-bottom: 32px;
}

.the9-location__text p {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.the9-location__map {
  overflow: hidden;
}

.the9-location__map img {
  width: 100%;
  height: auto;
  display: block;
}

/* Distances — debajo del mapa, dentro de col-lg-7 */
.the9-distances {
  margin-top: 32px;
  padding-top: 20px;
  padding-bottom: 24px;
}

.the9-distances__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.the9-distances__item {
  padding-right: 16px;
}

.the9-distances__item:last-child {
  padding-right: 0;
}

.the9-distances__name {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--color-text);
  display: block;
  margin-bottom: 6px;
}

.the9-distances__value {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 18px;
  line-height: 130%;
  color: var(--color-text);
  display: block;
}

/* ==========================================================================
   EXPERIENCE — Fondo oscuro + Acordeón
   ========================================================================== */
.the9-experience {
  background-color: var(--color-bg-dark);
  padding: 100px 0;
}

/* Desktop: flex asimétrico — izquierda 650px, acordeón en el resto */
@media (min-width: 1200px) {
  .the9-experience__row {
    display: flex;
    align-items: flex-start;
  }

  .the9-experience__col-left {
    width: 650px;
    flex-shrink: 0;
  }

  .the9-experience__col-right {
    flex: 1;
  }

  .the9-experience__abs-container {
    position: relative;
    height: 750px;
  }

  .pos-exp-1 { position: absolute; top: 0;     left: 0; width: 437px; margin: 0; }
  .pos-exp-2 { position: absolute; top: 196px; left: 0; width: 437px; margin: 0; }
  .pos-exp-3 { position: absolute; top: 694px; left: 0; }
}

/* Mobile: flujo en columna */
@media (max-width: 1199px) {
  .the9-experience__row {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .the9-experience__abs-container {
    height: auto;
  }

  .pos-exp-1,
  .pos-exp-2,
  .pos-exp-3 {
    position: static;
    width: 100%;
    margin-bottom: 24px;
  }
}

.the9-experience__heading {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 26px;
  line-height: 109%;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.the9-experience__subheading {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 109%;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.the9-experience__text {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  opacity: 0.8;
  margin-bottom: 0;
}

/* CTA — botón píldora outline, en la base de la columna */
.the9-experience__cta {
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light) !important;
  border: 1px solid rgba(230, 225, 221, 0.6);
  border-radius: 100px;
  padding: 10px 28px;
  display: inline-block;
  text-decoration: none;
  align-self: flex-start;
}

.the9-experience__cta:hover {
  background: rgba(230, 225, 221, 0.08);
  color: var(--color-text-light) !important;
}

.the9-experience__cta:hover * {
  color: var(--color-text-light) !important;
}

/* Accordion — dark theme override */
.the9-accordion .accordion-item,
.the9-accordion .accordion-button,
.the9-accordion .accordion-button:not(.collapsed) {
  border-radius: 0 !important;
}

.the9-accordion .accordion-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(230, 225, 221, 0.2);
}

.the9-accordion .accordion-item:first-child {
  border-top: 1px solid rgba(230, 225, 221, 0.2);
}

.the9-accordion .accordion-button {
  background-color: transparent;
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 26px;
  line-height: 109%;
  padding: 28px 0;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 0;
}

.the9-accordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--color-text-light);
  box-shadow: none;
}

.the9-accordion .accordion-button::after {
  display: none;
}

/* Icono oval +/— */
.the9-accordion__icon {
  width: 52px;
  height: 30px;
  border-radius: 100px;
  border: 1px solid rgba(230, 225, 221, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 18px;
  color: rgba(230, 225, 221, 0.5);
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
}

.the9-accordion__icon::after {
  content: '+';
}

.the9-accordion .accordion-button:not(.collapsed) .the9-accordion__icon {
  background: rgba(230, 225, 221, 0.18);
  border-color: transparent;
  color: rgba(230, 225, 221, 0.85);
}

.the9-accordion .accordion-button:not(.collapsed) .the9-accordion__icon::after {
  content: '—';
  font-size: 14px;
}

.the9-accordion__num {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  opacity: 0.5;
  flex: 0 0 80px;
}

.the9-accordion .accordion-body {
  padding: 0 0 28px 80px;
  color: var(--color-text-light);
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  opacity: 0.8;
}

.the9-accordion .accordion-collapse {
  background-color: transparent;
}

/* ==========================================================================
   QUOTE — Cita tipográfica grande
   ========================================================================== */
.the9-quote {
  padding: 100px var(--padding-x);
}

.the9-quote__text {
  font-family: var(--font-primary);
  font-weight: 400;
  font-style: normal;
  font-size: 64px;
  line-height: 1.09;
  text-transform: uppercase;
  color: #A1988F;
  max-width: none;
  text-align: left;
  margin: 0;
}

/* ==========================================================================
   HABITAR CONSCIENTE — Low Tox
   ========================================================================== */
.the9-lowtox {
  padding: 100px 0;
}

@media (min-width: 1200px) {
  .setra-col-lowtox-left {
    width: 652px;
    flex-shrink: 0;
  }
}

.the9-lowtox__heading {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 26px;
  line-height: 109%;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 6px;
}

.the9-lowtox__subheading {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 26px;
  line-height: 109%;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0;
}

.the9-lowtox__text p {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.the9-lowtox__text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   FLOOR PLANS — Planta + Specs
   ========================================================================== */
.the9-plans {
  padding: 0 var(--padding-x) 80px;
}

.the9-plans__tabs {
  display: flex;
  gap: 0;
  border-bottom: none;
  margin-bottom: 40px;
}

.the9-plans__tab {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #A1988F;
  padding: 12px 0;
  margin-right: 40px;
  border: none;
  margin-bottom: 0;
  cursor: pointer;
  background: none;
  transition: color 0.2s;
  box-shadow: none;
}

.the9-plans__tab::before,
.the9-plans__tab::after {
  display: none !important;
}

.the9-plans__tab:hover,
.the9-plans__tab.active {
  color: var(--color-text);
  border-bottom: none !important;
  box-shadow: none !important;
}

.the9-plans__image-wrap--double {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.the9-plans__image {
  overflow: hidden;
  background-color: rgba(47, 42, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

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

.the9-plans__image-placeholder {
  width: 100%;
  min-height: 380px;
  background-color: rgba(47, 42, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  opacity: 0.3;
  font-family: var(--font-secondary);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Bloque por vivienda: número encima de la línea, badge+tabla debajo */
.the9-plans__unit-header {
  padding: 12px 0;
  border-bottom: 1px solid rgba(47, 42, 42, 0.15);
}

.the9-plans__floor-num {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 16px;
  color: #A1988F;
  margin: 0;
}

.the9-plans__unit-body {
  display: flex;
  align-items: flex-start;
}

.the9-plans__unit-body > .the9-plans__status {
  flex-shrink: 0;
  width: 130px;
  margin: 14px 20px 0 0;
}

.the9-plans__unit-body > .the9-specs-table {
  flex: 1;
  margin-bottom: 0;
}

.the9-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.the9-specs-table tr {
  border-bottom: 1px solid rgba(47, 42, 42, 0.15);
}

.the9-specs-table td {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text);
  padding: 14px 0;
}

.the9-specs-table td:last-child {
  text-align: right;
  font-family: var(--font-secondary);
  font-size: 22px;
  font-weight: 300;
}

/* Estado de la vivienda */
.the9-plans__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: 50px;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: uppercase;
  margin-bottom: 0;
  border: 1px solid transparent;
  user-select: none;
}

.the9-plans__status--disponible {
  background-color: #A1988F;
  color: #E6E1DD;
  border-color: #A1988F;
}

.the9-plans__status--reservado {
  background-color: transparent;
  color: #2F2A2A;
  border-color: #2F2A2A;
}

.the9-plans__status--vendido {
  background-color: #E6E1DD;
  color: rgba(47, 42, 42, 0.5);
  border-color: #E6E1DD;
  text-decoration: line-through;
}

.the9-plans__desc-block {
  margin-top: 20px;
  border-top: 1px solid rgba(47, 42, 42, 0.12);
}

.the9-plans__desc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(47, 42, 42, 0.12);
}

.the9-plans__description {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #2F2A2A;
  margin: 0;
}

.the9-plans__price {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #2F2A2A;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   CAROUSEL — 3 imágenes con navegación inferior
   ========================================================================== */
.the9-carousel {
  background-color: var(--color-bg);
  padding: 60px var(--padding-x) 28px;
}

.the9-carousel__img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  display: block;
}

.the9-carousel__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.the9-carousel__btn {
  width: 52px;
  height: 30px;
  border-radius: 100px;
  border: 1px solid rgba(47, 42, 42, 0.35);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background 0.2s;
  flex-shrink: 0;
}

.the9-carousel__btn:hover {
  background: rgba(47, 42, 42, 0.06);
}

/* ==========================================================================
   CTA PRE-FOOTER — Texto centrado + contacto
   ========================================================================== */
.the9-cta {
  background-color: var(--color-bg);
  padding: 130px var(--padding-x);
  text-align: center;
}

.the9-cta__heading {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.09;
  text-transform: uppercase;
  color: #2F2A2A;
  max-width: 680px;
  margin: 0 auto 48px;
}

.the9-cta__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.the9-cta__link {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: #2F2A2A !important;
  text-decoration: none;
}

/* ==========================================================================
   SLIDER THE9 (Transform)
   ========================================================================== */
.the9-slider {
  padding: 80px 0;
  overflow: hidden;
}

.the9-slider__track {
  display: flex;
  gap: 24px;
  padding: 0 var(--padding-x);
  transition: transform 0.4s ease-in-out;
}

.the9-slider__slide {
  flex: 0 0 auto;
}

/* Desktop: altura fija, ancho se adapta a las proporciones originales de cada foto */
@media (min-width: 1200px) {
  .the9-slider__slide {
    height: 630px;
  }
  .the9-slider__slide img {
    height: 100%;
    width: auto;
    object-fit: cover;
  }
}

/* Mobile/Tablet: altura reducida, cada slide ocupa el 85% del viewport */
@media (max-width: 1199px) {
  .the9-slider__slide {
    height: 400px;
    width: 85vw;
  }
  .the9-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Barra inferior: [ < ]   texto centrado   [ > ] */
.the9-slider__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.the9-slider__text {
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  opacity: 0.6;
  text-align: center;
  flex: 1;
  margin: 0 24px;
}

.the9-slider__arrow {
  width: 52px;
  height: 30px;
  border-radius: 100px;
  border: 1px solid rgba(47, 42, 42, 0.35);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background 0.2s;
  flex-shrink: 0;
}

.the9-slider__arrow:hover {
  background: rgba(47, 42, 42, 0.06);
}


/* ==========================================================================
   SPECS BAR — Ajustes para versión EN (inglés) en escritorio
   ========================================================================== */

@media (min-width: 992px) {
  html[lang="en"] .the9-specs-bar__row {
    display: grid !important;
    grid-template-columns: 15% 18% 19% 23% 8% 17% !important;
    gap: 0 !important;
  }
}
