/* =========================================================
   FLEXPACE® — PORTADA + PROYECTOS
   ESTRUCTURA VISUAL UNIFICADA CON MOVILX® Y REUBIC®
========================================================= */

:root{
  --flexpace-orange: #F45E34;
  --flexpace-orange-hover: #DE4E28;

  --flexpace-blue-900: #14375F;
  --flexpace-blue-800: #1B416E;
  --flexpace-blue-700: #1F497D;
  --flexpace-blue-600: #2D5C91;
  --flexpace-blue-500: #4F78A6;

  --flexpace-bg: #F3F4F6;
  --flexpace-card: #FFFFFF;
  --flexpace-card-2: #FAFAFA;
  --flexpace-soft-white: #F8F9FB;

  --flexpace-text: #111111;
  --flexpace-text-soft: #6B7280;
  --flexpace-border: #E5E7EB;
  --flexpace-border-strong: #D1D5DB;

  --flexpace-shadow: 0 8px 28px rgba(15,23,42,.06);
  --flexpace-shadow-hover: 0 16px 36px rgba(15,23,42,.10);
  --flexpace-shadow-dark: 0 20px 50px rgba(0,0,0,.18);

  --flexpace-radius-xl: 32px;
  --flexpace-radius-lg: 28px;
  --flexpace-radius-md: 24px;
  --flexpace-radius-sm: 18px;

  /* Escala tipográfica igual a Movilx y Reubic */
  --fs-display: clamp(40px, 5vw, 58px);
  --fs-h1: clamp(30px, 3.5vw, 42px);
  --fs-h2: clamp(26px, 3vw, 34px);
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 12px;

  --lh-tight: 1.05;
  --lh-title: 1.15;
  --lh-body: 1.6;
}

body{
  overflow-x: hidden;
}

main{
  overflow: visible;
}


/* =========================================================
   INICIA PORTADA FLEXPACE
========================================================= */

.flexpace-hero-premium{
  position: relative;
  min-height: 72vh;
  background: #0E0E12;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.flexpace-hero-bg{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.flexpace-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flexpace-hero-img-desktop{
  display: block;
}

.flexpace-hero-img-mobile{
  display: none;
}

.flexpace-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(8,12,18,.76) 0%,
      rgba(8,12,18,.14) 42%,
      transparent 66%
    );
}

.flexpace-hero-content{
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 110px 0 42px;
}

.flexpace-hero-inner{
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.desktop-icons,
.flexpace-hero-icons{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.flexpace-hero-icons-mobile{
  display: none;
}

.flexpace-icon-item{
  text-align: center;
  color: #fff;
  padding: 10px 12px;
}

.flexpace-icon-wrap{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31,73,125,.34);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

.flexpace-icon-wrap i{
  font-size: 1.4rem;
  color: #fff;
}

.flexpace-icon-item p{
  margin: 0 auto;
  max-width: 410px;
  font-size: 1.03rem;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(255,255,255,.96);
  text-wrap: balance;
}

.flexpace-hero-icons-mobile .carousel-inner{
  overflow: visible;
  margin-bottom: -12%;
}

.flexpace-hero-icons-mobile .carousel-item{
  min-height: 170px;
}

.flexpace-hero-icons-mobile .flexpace-icon-item{
  max-width: 330px;
  margin: 0 auto;
  padding: 0;
}

.flexpace-icons-indicators{
  position: static;
  margin: 0 0 45px;
  gap: 8px;
}

.flexpace-icons-indicators [data-bs-target]{
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  opacity: .38;
  background: rgba(255,255,255,.9);
  margin: 0;
}

.flexpace-icons-indicators .active{
  opacity: 1;
  transform: scale(1.1);
}




/* =========================================================
   PORTADA / INFORMACIÓN PRINCIPAL FLEXPACE
   FONDO GRIS ARQUITECTÓNICO
========================================================= */

.flexpace-hero-info{
  position: relative;
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(244,94,52,.08),
      transparent 20%
    ),
    radial-gradient(
      circle at 84% 24%,
      rgba(31,73,125,.07),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #F7F7F5 0%,
      #F1F2F2 52%,
      #EAEBEC 100%
    );
  color: var(--flexpace-text);
  border-top: 1px solid rgba(17,24,39,.08);
  border-bottom: 1px solid rgba(17,24,39,.06);
  overflow: hidden;
}

.flexpace-hero-info::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      rgba(31,73,125,.10) .7px,
      transparent .7px
    );
  background-size: 9px 9px;
  opacity: .10;
  pointer-events: none;
}

.flexpace-hero-info::after{
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(244,94,52,.07);
  pointer-events: none;
}

.flexpace-hero-info-inner{
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 54px;
  align-items: center;
}

.flexpace-info-kicker{
  display: inline-block;
  margin-bottom: 10px;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--flexpace-orange);
  font-weight: 650;
}

.flexpace-hero-info-left h1,
.flexpace-hero-info-left h2{
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 750;
  color: var(--flexpace-blue-900);
  text-wrap: balance;
}

.flexpace-hero-info-right p{
  margin: 0;
  max-width: 760px;
  font-size: 1.14rem;
  line-height: 1.75;
  color: #565D67;
}


/* HERO INFO / TABLET */

@media (max-width: 991.98px){

  .flexpace-hero-info-inner{
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 50px;
  }

  .flexpace-hero-info-right p{
    font-size: 1.04rem;
    line-height: 1.7;
  }

}


/* HERO INFO / MOBILE */

@media (max-width: 767.98px){

  .flexpace-hero-info-inner{
    width: min(100% - 28px, 1320px);
    padding: 38px 0 44px;
  }

  .flexpace-info-kicker{
    font-size: .88rem;
  }

  .flexpace-hero-info-left h1,
  .flexpace-hero-info-left h2{
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .flexpace-hero-info-right p{
    font-size: 1rem;
    line-height: 1.68;
  }

}







/* TERMINA PORTADA FLEXPACE */


/* =========================================================
   TÍTULOS GENERALES
========================================================= */

.flexpace-section-kicker{
  display: inline-block;
  margin-bottom: 10px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--flexpace-orange);
}


/* =========================================================
   PORTADA FLEXPACE / RESPONSIVE
========================================================= */

/* Tablet */
@media (max-width: 991.98px) {

  .flexpace-hero-premium {
    min-height: 78vh;
    align-items: flex-end;
  }

  .flexpace-hero-content {
    padding: 100px 0 34px;
  }

}


/* Móvil */
@media (max-width: 767.98px) {

  /* Cambiar imagen desktop por móvil */
  .flexpace-hero-img-desktop {
    display: none;
  }

  .flexpace-hero-img-mobile {
    display: block;
    object-position: center center;
  }

  /* Ocultar beneficios de escritorio */
  .flexpace-hero-icons.desktop-icons {
    display: none !important;
  }

  /* Mostrar carrusel móvil */
  .flexpace-hero-icons-mobile {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

 .flexpace-hero-icons-mobile .carousel-inner {
    min-height: 180px;
    margin-bottom: -12%;
    overflow: visible;
  }

  .flexpace-hero-icons-mobile .carousel-item {
    height: 180px;
  }

  .flexpace-hero-icons-mobile .flexpace-icon-item {
    width: 100%;
    max-width: 330px;
    min-height: 160px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .flexpace-hero-icons-mobile .flexpace-icon-wrap {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
  }

  .flexpace-hero-icons-mobile .flexpace-icon-wrap i {
    font-size: 1.2rem;
  }

  .flexpace-hero-icons-mobile .flexpace-icon-item p {
    max-width: 380px;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
    text-wrap: balance;
  }

  .flexpace-icons-indicators {
    position: static;
    justify-content: center;
    gap: 8px;
    margin: 0 0 45px;
  }

  .flexpace-icons-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0.38;
  }

  .flexpace-icons-indicators .active {
    opacity: 1;
    transform: scale(1.1);
  }

}


/* Celular */
@media (max-width: 575.98px) {

  .flexpace-hero-premium {
    min-height: 79vh; /* aqui se mueve tamaño de la imagen del hero */
  }

  .flexpace-hero-content {
    padding: 88px 0 28px;
  }

  .flexpace-hero-inner {
    width: min(100% - 28px, 1320px);
  }

}


/* =========================================================
   INICIA SECCIÓN MODELOS Y ALTURAS FLEXPACE
========================================================= */

.flexpace-heights {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(244, 94, 52, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 20%,
      rgba(31, 73, 125, 0.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #f8f9fb 0%,
      #f1f3f5 100%
    );
}

.flexpace-heights-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.flexpace-heights-head {
  max-width: 1200px;
  margin: 0 auto 48px;
  text-align: center;
}

.flexpace-heights-kicker {
  display: inline-block;
  margin-bottom: 14px;

  color: var(--flexpace-orange);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.flexpace-heights-head h2 {
  max-width: 820px;
  margin: 0 auto 22px;

  color: black;
  font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.flexpace-heights-intro {
  max-width: 1000px;
  margin: 0 auto;

  color: #616873;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  text-wrap: balance;
}


/* =========================================================
   MEDIDAS COMPARTIDAS
========================================================= */

.flexpace-heights-common {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  max-width: 1000px;
  margin: 0 auto 34px;
  padding: 20px 30px;

  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--flexpace-border);
  border-radius: 999px;

  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flexpace-common-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.flexpace-common-item span {
  color: var(--flexpace-text-soft);
  font-size: 13px;
  font-weight: 500;
}

.flexpace-common-item strong {
  color: var(--flexpace-blue-900);
  font-size: 16px;
  font-weight: 750;
}

.flexpace-common-divider {
  width: 1px;
  height: 28px;
  background: var(--flexpace-border);
}


/* =========================================================
   COMPARACIÓN
========================================================= */

.flexpace-heights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.flexpace-height-card {
  position: relative;
  min-width: 0;
  padding: 28px;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--flexpace-border);
  border-radius: var(--flexpace-radius-lg);

  box-shadow: var(--flexpace-shadow);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.flexpace-height-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 73, 125, 0.18);
  box-shadow: var(--flexpace-shadow-hover);
}

.flexpace-height-card-extra {
  border-color: rgba(244, 94, 52, 0.18);
}


/* =========================================================
   ENCABEZADO DE TARJETAS
========================================================= */

.flexpace-height-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.flexpace-height-number {
  display: block;
  margin-bottom: 7px;

  color: var(--flexpace-orange);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.flexpace-height-card h3 {
  margin: 0;

  color: var(--flexpace-blue-900);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.flexpace-height-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0 14px;

  border-radius: 999px;
  background: rgba(31, 73, 125, 0.08);
  border: 1px solid rgba(31, 73, 125, 0.12);

  color: var(--flexpace-blue-800);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.flexpace-height-badge-extra {
  background: rgba(244, 94, 52, 0.08);
  border-color: rgba(244, 94, 52, 0.15);
  color: var(--flexpace-orange);
}


/* =========================================================
   DIBUJOS SVG
========================================================= */

.flexpace-height-drawing {
  display: flex;
  align-items: flex-end;
  justify-content: center;

  min-height: 310px;
  margin-bottom: 20px;
  padding: 12px;

  background:
    linear-gradient(
      180deg,
      rgba(248, 249, 251, 0.6),
      rgba(241, 243, 245, 0.7)
    );

  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 22px;
  overflow: hidden;
}

.flexpace-height-drawing svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flexpace-svg-ground {
  stroke: #cfd5dd;
  stroke-width: 2;
}

.flexpace-svg-shell {
  fill: #f5f6f7;
  stroke: var(--flexpace-blue-800);
  stroke-width: 2;
}

.flexpace-svg-glass {
  fill: rgba(79, 120, 166, 0.18);
  stroke: var(--flexpace-blue-600);
  stroke-width: 1.5;
}

.flexpace-svg-door {
  fill: #ffffff;
  stroke: var(--flexpace-blue-600);
  stroke-width: 1.5;
}

.flexpace-svg-handle {
  fill: var(--flexpace-orange);
}

.flexpace-svg-divider {
  stroke: var(--flexpace-blue-600);
  stroke-width: 1.5;
}

.flexpace-svg-measure {
  fill: none;
  stroke: var(--flexpace-orange);
  stroke-width: 2;
}

.flexpace-svg-text {
  fill: var(--flexpace-blue-900);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
}


/* =========================================================
   ESPECIFICACIONES
========================================================= */

.flexpace-height-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  margin-bottom: 20px;
  padding-top: 20px;

  border-top: 1px solid var(--flexpace-border);
}

.flexpace-height-spec {
  padding: 0 20px;
}

.flexpace-height-spec:first-child {
  padding-left: 0;
  border-right: 1px solid var(--flexpace-border);
}

.flexpace-height-spec span {
  display: block;
  margin-bottom: 5px;

  color: var(--flexpace-text-soft);
  font-size: 13px;
  font-weight: 500;
}

.flexpace-height-spec strong {
  display: block;

  color: var(--flexpace-blue-900);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.1;
}

.flexpace-height-description {
  margin: 0;

  color: #656c76;
  font-size: 15px;
  line-height: 1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

  .flexpace-heights {
    padding: 90px 0 100px;
  }

  .flexpace-heights-common {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    border-radius: 24px;
  }

  .flexpace-common-item {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .flexpace-common-divider {
    display: none;
  }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 767.98px) {

  .flexpace-heights {
    padding: 76px 0 82px;
  }

  .flexpace-heights-inner {
    width: min(100% - 28px, 1220px);
  }

  .flexpace-heights-head {
    margin-bottom: 32px;
  }

  .flexpace-heights-head h2 {
    max-width: 350px;
    margin-bottom: 18px;

    font-size: clamp(34px, 10vw, 46px);
    line-height: 1;
  }

  .flexpace-heights-intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .flexpace-heights-common {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;

    margin-bottom: 18px;
    padding: 0;

    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
  }

  .flexpace-common-item {
    min-height: 86px;
    padding: 16px 8px;
    justify-content: center;
  }

  .flexpace-common-item:nth-child(1),
  .flexpace-common-item:nth-child(3) {
    border-right: 1px solid var(--flexpace-border);
  }

  .flexpace-common-item:nth-child(1),
  .flexpace-common-item:nth-child(2) {
    border-bottom: 1px solid var(--flexpace-border);
  }

  .flexpace-heights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flexpace-height-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .flexpace-height-card:hover {
    transform: none;
  }

  .flexpace-height-card-head {
    gap: 12px;
  }

  .flexpace-height-card h3 {
    font-size: 30px;
  }

  .flexpace-height-badge {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  .flexpace-height-drawing {
    min-height: 0;
    padding: 6px;
    border-radius: 18px;
  }

  .flexpace-svg-text {
    font-size: 15px;
  }

  .flexpace-height-spec {
    padding: 0 14px;
  }

  .flexpace-height-spec span {
    font-size: 12px;
  }

  .flexpace-height-spec strong {
    font-size: 21px;
  }

}


/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 380px) {

  .flexpace-height-card-head {
    flex-direction: column;
  }

  .flexpace-height-badge {
    align-self: flex-start;
  }

  .flexpace-heights-head h2 {
    font-size: 33px;
  }

}

/* =========================================================
   TERMINA SECCIÓN MODELOS Y ALTURAS FLEXPACE
========================================================= */


/* =====================================================
   CONFIGURACIÓN + COMPARATIVA: BASE COMPARTIDA
===================================================== */

.fp-configuration,
.fp-difference {
  --fp-navy: #071524;
  --fp-blue: #11385d;
  --fp-orange: #ff5a24;
  --fp-white: #ffffff;
  --fp-gray: #e9edf1;
  --fp-muted: #9aa6b3;

  position: relative;
  overflow: hidden;
  padding: 110px 7vw;
}

.fp-configuration {
  color: var(--fp-white);
  background:
    radial-gradient(circle at 10% 5%, rgba(24, 74, 113, 0.35), transparent 30%),
    var(--fp-navy);
}

.fp-difference {
  color: var(--fp-navy);
  background:
    radial-gradient(circle at 88% 10%, rgba(79, 120, 166, 0.10), transparent 30%),
    linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
}

.fp-configuration *,
.fp-configuration *::before,
.fp-configuration *::after,
.fp-difference *,
.fp-difference *::before,
.fp-difference *::after {
  box-sizing: border-box;
}


/* =====================================================
   INSTALACIÓN
   ===================================================== */

.fp-install {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-top: 0;
  border-top: 0;
}

.fp-install__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 70px;
}

.fp-install__heading h2 {
  max-width: 850px;
  font-size: clamp(42px, 5vw, 76px);
}

.fp-install__heading > p {
  max-width: 500px;
  margin: 0 0 6px;
  padding-left: 28px;
  color: #aab5c0;
  font-size: 17px;
  line-height: 1.65;
  border-left: 2px solid var(--fp-blue);
}

.fp-install__experience {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
  gap: 20px;
}

.fp-install__visual {
  overflow: hidden;
  min-height: 640px;
  border-radius: 28px;
  background: #e8eaec;
}

.fp-install__stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  isolation: isolate;
}

.fp-install__sky {
  position: absolute;
  inset: 0 0 34%;
  background:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,.95), transparent 9%),
    linear-gradient(155deg, #dce7ee, #f7f4ed);
}

.fp-install__ground {
  position: absolute;
  inset: 66% 0 0;
  background:
    linear-gradient(10deg, transparent 49.5%, rgba(10, 30, 48, .08) 50%, transparent 50.5%),
    #cac8c1;
}

.fp-install__scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(.2,.8,.2,1);
}

.fp-install__stage[data-stage="1"] .fp-install__scene--1,
.fp-install__stage[data-stage="2"] .fp-install__scene--2,
.fp-install__stage[data-stage="3"] .fp-install__scene--3,
.fp-install__stage[data-stage="4"] .fp-install__scene--4 {
  z-index: 2;
  opacity: 1;
  transform: none;
}

.fp-scene-caption {
  position: absolute;
  bottom: 36px;
  left: 36px;
  padding: 12px 18px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  background: rgba(7, 21, 36, 0.82);
  backdrop-filter: blur(12px);
}


/* ESCENA 1 */

.fp-site-lines {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: 58%;
  height: 230px;
  border: 2px dashed rgba(17, 56, 93, 0.48);
  transform: translateX(-50%) perspective(500px) rotateX(58deg);
}

.fp-site-base {
  position: absolute;
  left: 50%;
  bottom: 20%;
  width: 55%;
  height: 110px;
  border: 10px solid #91999e;
  background: #b8bdc0;
  box-shadow: 0 30px 40px rgba(7, 21, 36, 0.22);
  transform: translateX(-50%) skewY(-3deg);
}


/* ESCENA 2 */

.fp-truck {
  position: absolute;
  left: 13%;
  bottom: 24%;
  width: 72%;
  height: 220px;
}

.fp-truck__cab {
  position: absolute;
  right: 0;
  bottom: 25px;
  width: 135px;
  height: 120px;
  border-radius: 14px 25px 8px 8px;
  background: var(--fp-orange);
}

.fp-truck__cab::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 14px;
  width: 72px;
  height: 42px;
  border-radius: 5px;
  background: #bcd1dc;
}

.fp-truck__platform {
  position: absolute;
  left: 0;
  right: 110px;
  bottom: 35px;
  height: 20px;
  background: #1e2d39;
}

.fp-truck__module {
  position: absolute;
  left: 5%;
  bottom: 55px;
  width: 72%;
  height: 150px;
  border: 9px solid #263744;
  background:
    repeating-linear-gradient(
      90deg,
      #e4e5e3 0,
      #e4e5e3 80px,
      #cfd2d2 81px,
      #cfd2d2 84px
    );
  box-shadow: 0 20px 30px rgba(7, 21, 36, 0.22);
}

.fp-wheel {
  position: absolute;
  bottom: 0;
  width: 55px;
  height: 55px;
  border: 10px solid #17232d;
  border-radius: 50%;
  background: #87919a;
}

.fp-wheel--1 { left: 18%; }
.fp-wheel--2 { left: 61%; }
.fp-wheel--3 { right: 20px; }


/* ESCENA 3 */

.fp-crane__mast {
  position: absolute;
  right: 14%;
  bottom: 12%;
  width: 25px;
  height: 410px;
  background: var(--fp-orange);
  transform: skewX(-5deg);
}

.fp-crane__arm {
  position: absolute;
  top: 85px;
  right: 14%;
  width: 65%;
  height: 18px;
  background: var(--fp-orange);
  transform-origin: right;
  transform: rotate(-4deg);
}

.fp-crane__cable {
  position: absolute;
  top: 92px;
  left: 36%;
  width: 2px;
  height: 165px;
  background: #263744;
}

.fp-crane__module {
  position: absolute;
  left: 19%;
  top: 250px;
  width: 48%;
  height: 155px;
  border: 9px solid #263744;
  background:
    linear-gradient(90deg, #e7e7e3 0 62%, #aec5d2 62% 84%, #e7e7e3 84%);
  box-shadow: 0 24px 35px rgba(7, 21, 36, 0.25);
}


/* ESCENA 4 */

.fp-ready-module {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 62%;
  height: 290px;
  border: 12px solid #263744;
  background: #e5e4df;
  box-shadow: 0 35px 50px rgba(7, 21, 36, 0.24);
  transform: translateX(-50%);
}

.fp-ready-module__window {
  position: absolute;
  top: 50px;
  left: 9%;
  width: 54%;
  height: 150px;
  border: 7px solid #344450;
  background:
    linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.15)),
    #9eb9c8;
}

.fp-ready-module__window::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 100%;
  background: #344450;
}

.fp-ready-module__door {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 22%;
  height: 205px;
  background: #1d2c38;
}

.fp-ready-module__light {
  position: absolute;
  top: 57px;
  right: 15%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffb24a;
  box-shadow: 0 0 25px 8px rgba(255, 178, 74, 0.55);
}

.fp-ready-line {
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: 74%;
  height: 2px;
  background: var(--fp-orange);
  transform: translateX(-50%);
}


/* BARRA Y PASOS */

.fp-install__progress {
  height: 5px;
  background: #c6cbd0;
}

.fp-install__progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--fp-orange);
  transition: width 0.45s cubic-bezier(.2,.8,.2,1);
}

.fp-install__steps {
  display: grid;
  align-content: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
}

.fp-install__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  width: 100%;
  padding: 28px 30px;
  color: #8c98a4;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.fp-install__step:last-child {
  border-bottom: 0;
}

.fp-install__step:hover {
  color: white;
  background: rgba(255, 255, 255, 0.035);
}

.fp-install__step.is-active {
  color: white;
  background:
    linear-gradient(90deg, rgba(255, 90, 36, 0.15), transparent 80%);
}

.fp-install__number {
  padding-top: 3px;
  color: #667686;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.fp-install__step.is-active .fp-install__number {
  color: var(--fp-orange);
}

.fp-install__copy strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.fp-install__copy small {
  display: block;
  color: #84919e;
  font-size: 14px;
  line-height: 1.55;
}

.fp-install__step.is-active small {
  color: #aeb9c3;
}

.fp-install__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding: 28px 34px;
  color: #aab5c0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.fp-install__footer p {
  max-width: 720px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.fp-install__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  padding: 16px 23px;
  color: var(--fp-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  background: white;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.fp-install__button:hover {
  color: white;
  background: var(--fp-orange);
  transform: translateY(-2px);
}


/* =====================================================
   COMPARATIVA FLEXPACE / CONTENEDOR
===================================================== */


.fp-difference__intro {
  width: min(900px, 100%);
  margin-bottom: 72px;
}

.fp-difference__eyebrow {
  margin: 0 0 20px;
  color: var(--fp-orange);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fp-difference__intro h2,
.fp-install__heading h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.fp-difference__intro h2 span {
  color: var(--fp-orange);
}

.fp-difference__lead {
  width: min(680px, 100%);
  margin: 34px 0 0;
  color: #566271;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.55;
}

.fp-comparison {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.fp-comparison__card {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: clamp(32px, 4vw, 64px);
  border: 1px solid rgba(7, 21, 36, 0.12);
  border-radius: 30px;
}

.fp-comparison__card--flexpace {
  color: var(--fp-navy);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 36, 0.12), transparent 32%),
    #ffffff;
}

.fp-comparison__card--container {
  color: var(--fp-navy);
  background:
    linear-gradient(145deg, #eef1f4, #e5e9ed);
}

.fp-comparison__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fp-comparison__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.fp-comparison__card--flexpace .fp-comparison__dot {
  color: var(--fp-orange);
  box-shadow: 0 0 0 7px rgba(255, 90, 36, 0.12);
}

.fp-comparison__card--container .fp-comparison__dot {
  color: #70808f;
}

.fp-comparison__card h3 {
  max-width: 580px;
  margin: 0 0 42px;
  font-size: clamp(30px, 3vw, 50px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.fp-comparison__card ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fp-comparison__card li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  padding: 21px 0;
  border-top: 1px solid rgba(7, 21, 36, 0.13);
}

.fp-comparison__card--container li {
  border-color: rgba(7, 21, 36, 0.13);
}

.fp-check,
.fp-minus {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.fp-check {
  color: white;
  background: var(--fp-orange);
}

.fp-minus {
  color: #667686;
  border: 1px solid rgba(7, 21, 36, 0.22);
}

.fp-comparison__card li strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.fp-comparison__card li p {
  margin: 0;
  color: #566271;
  font-size: 15px;
  line-height: 1.55;
}

.fp-comparison__card--container li p {
  color: #566271;
}

.fp-difference__note {
  margin: 18px 0 0;
  color: #768493;
  font-size: 12px;
  line-height: 1.5;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1050px) {

  .fp-comparison {
    grid-template-columns: 1fr;
  }

  .fp-comparison__card {
    min-height: auto;
  }

  .fp-install__heading {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .fp-install__heading > p {
    max-width: 680px;
  }

  .fp-install__experience {
    grid-template-columns: 1fr;
  }

  .fp-install__visual {
    min-height: auto;
  }

  .fp-install__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .fp-install__step:nth-child(2) {
    border-right: 0;
  }

  .fp-install__step {
    border-right: 1px solid rgba(255, 255, 255, 0.09);
  }
}

@media (max-width: 700px) {

  .fp-configuration,
  .fp-difference {
    padding: 82px 20px;
  }

  .fp-difference__intro {
    margin-bottom: 45px;
  }

  .fp-comparison__card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .fp-comparison__card li {
    grid-template-columns: 30px 1fr;
  }

  .fp-install {
    margin-top: 0;
    padding-top: 0;
  }

  .fp-install__heading {
    margin-bottom: 42px;
  }

  .fp-install__heading > p {
    padding-left: 19px;
  }

  .fp-install__visual {
    border-radius: 20px;
  }

  .fp-install__stage {
    height: 430px;
  }

  .fp-install__steps {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .fp-install__step {
    padding: 23px 20px;
    border-right: 0;
  }

  .fp-install__footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .fp-install__button {
    justify-content: space-between;
    width: 100%;
  }

  .fp-truck {
    left: 5%;
    width: 90%;
    transform: scale(.8);
  }

  .fp-crane__module {
    left: 9%;
    width: 60%;
  }

  .fp-ready-module {
    width: 82%;
    height: 240px;
  }

  .fp-ready-module__window {
    height: 125px;
  }

  .fp-ready-module__door {
    height: 168px;
  }
}


/* =========================================================
   INICIA SECCIÓN USOS FLEXPACE®
========================================================= */

.flexpace-uses{
  --uses-orange: #f45e34;
  --uses-blue: #14375f;
  --uses-bg: #0d1724;
  position: relative;
  background:
    radial-gradient(circle at 50% 34%, rgba(55, 96, 140, .24), transparent 34%),
    linear-gradient(180deg, #101c2a 0%, #08111c 100%);
  color: #fff;
  overflow: clip;
}

.flexpace-uses-intro{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(90px, 11vw, 100px) 0 40px;
  text-align: center;
}

.flexpace-uses-kicker{
  display: inline-block;
  margin-bottom: 24px;
  color: var(--uses-orange);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.flexpace-uses-intro h2{
  margin: 0;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 700;
  text-wrap: balance;
}

.flexpace-uses-intro h2 span{
  color: rgba(255, 255, 255, .44);
}

.flexpace-uses-intro p{
  max-width: 660px;
  margin: 34px auto 0;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.flexpace-uses-scroll{
  position: relative;
  height: auto;
}

.flexpace-uses-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
}

.flexpace-uses-stage{
  position: relative;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.flexpace-uses-visual{
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: #d8d5d2;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .42);
}

.flexpace-use-image{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.018);
  filter: blur(7px);
  clip-path: inset(0 0 0 100%);
  transition:
    opacity .65s ease,
    transform 1.1s cubic-bezier(.2,.7,.2,1),
    filter .8s ease,
    clip-path .85s cubic-bezier(.22,.72,.18,1);
}

.flexpace-use-image.is-active{
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

.flexpace-uses-glow{
  position: absolute;
  inset: 18% 12%;
  z-index: 0;
  background: rgba(244, 94, 52, .24);
  filter: blur(70px);
}

.flexpace-uses-sweep{
  position: absolute;
  z-index: 3;
  top: -15%;
  bottom: -15%;
  left: -28%;
  width: 20%;
  opacity: 0;
  transform: skewX(-12deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.56),
    rgba(244,94,52,.22),
    transparent
  );
  filter: blur(8px);
  pointer-events: none;
}

.flexpace-uses.is-changing .flexpace-uses-sweep{
  animation: flexpaceUsesSweep .85s ease;
}

.flexpace-uses-copy{
  padding: 0 0 18px;
}

.flexpace-use-number{
  display: block;
  margin-bottom: 20px;
  color: var(--uses-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.flexpace-uses-copy h3{
  margin: 0;
  font-size: clamp(38px, 4.5vw, 70px);
  line-height: .96;
  letter-spacing: -.05em;
  font-weight: 700;
}

.flexpace-uses-copy > p{
  min-height: 84px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, .66);
  font-size: 16px;
  line-height: 1.65;
}

.flexpace-uses-nav{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.flexpace-uses-nav button{
  position: relative;
  border: 0;
  padding: 7px 0 7px 20px;
  background: transparent;
  color: rgba(255, 255, 255, .35);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, transform .25s ease;
}

.flexpace-uses-nav button::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.flexpace-uses-nav button:hover,
.flexpace-uses-nav button.is-active{
  color: #fff;
  transform: translateX(5px);
}

.flexpace-uses-nav button.is-active::before{
  color: var(--uses-orange);
  box-shadow: 0 0 0 5px rgba(244, 94, 52, .14);
}

.flexpace-uses-counter{
  position: absolute;
  z-index: 5;
  left: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(8,17,28,.48);
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flexpace-uses-counter-line{
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,.34);
}

.flexpace-use-trigger{
  position: relative;
  height: 100vh;
  pointer-events: none;
}

.flexpace-uses-end{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 clamp(90px, 10vw, 150px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.flexpace-uses-end p{
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
}

.flexpace-uses-end a{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 999px;
  background: #fff;
  color: #0d1724;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

.flexpace-uses-end a:hover{
  transform: translateY(-3px);
  background: var(--uses-orange);
  color: #fff;
}

@keyframes flexpaceUsesSweep{
  0%{
    left: -28%;
    opacity: 0;
  }
  20%{
    opacity: .8;
  }
  100%{
    left: 115%;
    opacity: 0;
  }
}

@media (max-width: 991px){
  .flexpace-uses-stage{
    width: min(900px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: center;
  }

  .flexpace-uses-copy{
    padding: 0 6px;
  }

  .flexpace-uses-copy > p{
    min-height: 0;
    margin: 13px 0 18px;
  }

  .flexpace-uses-nav{
    flex-direction: row;
    max-width: 100%;
    padding-bottom: 7px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .flexpace-uses-nav::-webkit-scrollbar{
    display: none;
  }

  .flexpace-uses-nav button{
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
  }

  .flexpace-uses-nav button::before{
    display: none;
  }

  .flexpace-uses-nav button:hover,
  .flexpace-uses-nav button.is-active{
    transform: none;
  }

  .flexpace-uses-nav button.is-active{
    border-color: var(--uses-orange);
    background: var(--uses-orange);
  }
}

@media (max-width: 767px){
  .flexpace-uses-intro{
    width: calc(100% - 32px);
    padding: 82px 0 10px;
  }

  .flexpace-uses-intro h2{
    font-size: clamp(45px, 13vw, 64px);
  }

  .flexpace-uses-intro p{
    margin-top: 24px;
    font-size: 15px;
  }

  .flexpace-uses-scroll{
    height: auto;
  }

  .flexpace-uses-sticky{
    min-height: 100svh;
    height: 100svh;
  }

  .flexpace-uses-stage{
    width: calc(100% - 24px);
    gap: 20px;
  }

  .flexpace-uses-visual{
    border-radius: 18px;
    aspect-ratio: 16 / 10;
  }

  .flexpace-use-image{
    object-fit: cover;
  }

  .flexpace-uses-counter{
    top: 10px;
    left: 10px;
  }

  .flexpace-use-number{
    display: none;
  }

  .flexpace-uses-copy h3{
    font-size: clamp(38px, 12vw, 52px);
  }

  .flexpace-uses-copy > p{
    font-size: 14px;
    line-height: 1.55;
  }

  .flexpace-uses-end{
    width: calc(100% - 32px);
    padding-bottom: 90px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce){
  .flexpace-use-image,
  .flexpace-uses-nav button,
  .flexpace-uses-end a{
    transition: none;
  }

  .flexpace-uses.is-changing .flexpace-uses-sweep{
    animation: none;
  }
}

/* =========================================================
   TERMINA SECCIÓN USOS FLEXPACE®
========================================================= */


/* =========================================================
   INICIA BLOQUE PROYECTOS FLEXPACE
   MISMO DISEÑO Y PROPORCIONES QUE REUBIC
========================================================= */

.flexpace-showcase-projects{
  background: var(--flexpace-soft-white);
  padding: 100px 0 110px;
}

.flexpace-showcase-projects-inner{
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.flexpace-showcase-head{
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.flexpace-showcase-head h2{
  margin: 0 0 12px;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--flexpace-text);
  text-wrap: balance;
}

.flexpace-showcase-head p{
  margin: 0 auto;
  max-width: 720px;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--flexpace-text-soft);
}


/* =========================================================
   GRID
========================================================= */

.flexpace-showcase-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}


/* =========================================================
   TARJETA
========================================================= */

.flexpace-showcase-card{
  position: relative;
  min-width: 0;
}

.flexpace-showcase-card-frame{
  background: #fff;
  border: 1px solid var(--flexpace-border);
  border-radius: 30px;
  padding: 16px 16px 0;
  box-shadow: var(--flexpace-shadow);
  transition:
    box-shadow .35s ease,
    transform .35s ease,
    border-color .35s ease;
  overflow: hidden;
}

.flexpace-showcase-card:hover .flexpace-showcase-card-frame{
  transform: translateY(-3px);
  box-shadow: var(--flexpace-shadow-hover);
}

.flexpace-showcase-card.is-open .flexpace-showcase-card-frame,
.flexpace-showcase-card.active .flexpace-showcase-card-frame{
  border-color: rgba(244,94,52,.34);
  box-shadow: 0 18px 42px rgba(244,94,52,.11);
}


/* =========================================================
   IMAGEN DE TARJETA
========================================================= */

.flexpace-showcase-card-media{
  position: relative;
  height: 320px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      #E9EEF4 0%,
      #DCE3EC 100%
    );
}

.flexpace-showcase-card-media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.flexpace-showcase-card:hover .flexpace-showcase-card-media img{
  transform: scale(1.03);
}

.flexpace-showcase-card-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8,10,14,.67) 0%,
      rgba(8,10,14,.10) 65%,
      transparent 100%
    );
}


/* =========================================================
   TEXTO SOBRE IMAGEN
========================================================= */

.flexpace-showcase-card-copy{
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
}

.flexpace-showcase-card-copy h3{
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 600;
  color: #fff;
  text-wrap: balance;
}

.flexpace-showcase-card-copy p{
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}


/* =========================================================
   PARTE INFERIOR / VER PROYECTO
========================================================= */

.flexpace-showcase-card-bottom{
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flexpace-showcase-toggle{
  width: 100%;
  min-height: 60px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--flexpace-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
}

.flexpace-showcase-toggle-text::before{
  content: "Ver proyecto";
}

.flexpace-showcase-card.is-open
.flexpace-showcase-toggle-text::before,
.flexpace-showcase-card.active
.flexpace-showcase-toggle-text::before{
  content: "Cerrar";
}


/* Flecha inferior */

.flexpace-showcase-chevron{
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .28s ease;
}

.flexpace-showcase-card.is-open
.flexpace-showcase-chevron,
.flexpace-showcase-card.active
.flexpace-showcase-chevron{
  transform: rotate(225deg) translate(-2px, -2px);
}


/* =========================================================
   PANEL GENERAL
========================================================= */

.flexpace-showcase-detail{
  grid-column: 1 / -1;
  animation: flexpaceShowcaseFadeUp .3s ease;
  scroll-margin-top: 96px;
}

.flexpace-showcase-detail[hidden]{
  display: none;
}

.flexpace-showcase-detail-shell{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(31,73,125,.08),
      transparent 20%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(255,255,255,.94)
    );

  border: 1px solid var(--flexpace-border);
  border-radius: var(--flexpace-radius-xl);
  padding: 22px;
  box-shadow: var(--flexpace-shadow-hover);
}

.flexpace-showcase-detail-gallery,
.flexpace-showcase-detail-copy{
  min-width: 0;
}


/* =========================================================
   SLIDER
========================================================= */

.flexpace-showcase-detail-slider{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #DFE6EF;
}

.flexpace-showcase-detail-slider-track{
  height: 540px;
}

.flexpace-showcase-detail-slider-track img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}

.flexpace-showcase-detail-slider-track img.is-changing{
  opacity: .18;
}


/* =========================================================
   FLECHAS DEL SLIDER
========================================================= */

.flexpace-showcase-detail-arrow{
  position: absolute;
  top: 50%;
  z-index: 3;

  width: 48px;
  height: 48px;

  transform: translateY(-50%);

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);

  background: rgba(10,12,18,.35);
  color: #fff;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  line-height: 1;

  transition:
    background-color .25s ease,
    transform .25s ease;
}

.flexpace-showcase-detail-arrow:hover{
  background: var(--flexpace-orange);
}

.flexpace-showcase-detail-prev{
  left: 16px;
}

.flexpace-showcase-detail-next{
  right: 16px;
}


/* =========================================================
   DOTS
========================================================= */

.flexpace-showcase-detail-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
}

.flexpace-showcase-detail-dots button{
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #CFD6E0;
  cursor: pointer;
  transition: .25s ease;
}

.flexpace-showcase-detail-dots button.active{
  background: var(--flexpace-orange);
  transform: scale(1.15);
}


/* =========================================================
   INFORMACIÓN DEL PROYECTO
========================================================= */

.flexpace-showcase-detail-copy{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 6px 2px 0;
}

.flexpace-showcase-detail-kicker{
  display: inline-block;
  margin-bottom: 10px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;

  color: var(--flexpace-orange);
}

.flexpace-showcase-detail-copy h3{
  margin: 0 0 8px;

  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;

  color: var(--flexpace-text);
  text-wrap: balance;
}

.flexpace-showcase-detail-location{
  margin: 0;
  font-size: 17px;
  color: var(--flexpace-text-soft);
}


/* =========================================================
   PILLS
========================================================= */

.flexpace-showcase-detail-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.flexpace-showcase-detail-meta span{
  display: inline-flex;
  align-items: center;

  min-height: 40px;
  padding: 0 14px;

  border-radius: 999px;

  background: #F2F4F7;
  border: 1px solid #E4E7EC;

  font-size: 14px;
  font-weight: 600;
  color: #475467;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.flexpace-showcase-detail-body p{
  margin: 0;

  font-size: 16px;
  line-height: 1.78;

  color: var(--flexpace-text-soft);

  white-space: pre-line;
}


/* =========================================================
   BOTONES DEL PANEL
========================================================= */

.flexpace-showcase-detail-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.flexpace-showcase-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 18px;

  border-radius: 999px;
  border: 1px solid transparent;

  font-size: 15px;
  font-weight: 700;
  font-family: inherit;

  text-decoration: none;
  cursor: pointer;
}

.flexpace-showcase-btn-primary{
  background: var(--flexpace-orange);
  color: #fff;
}

.flexpace-showcase-btn-primary:hover{
  background: var(--flexpace-orange-hover);
  color: #fff;
}

.flexpace-showcase-btn-secondary{
  background: #fff;
  color: var(--flexpace-text);
  border-color: #D9DEE6;
}


/* =========================================================
   BOTÓN VER TODOS
========================================================= */

.flexpace-showcase-footer{
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.flexpace-showcase-more{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 20px;

  border-radius: 999px;

  background: #111;
  color: #fff;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  transition:
    transform .25s ease,
    background-color .25s ease;
}

.flexpace-showcase-more:hover{
  color: #fff;
  background: var(--flexpace-orange);
  transform: translateY(-2px);
}


/* =========================================================
   ANIMACIÓN
========================================================= */

@keyframes flexpaceShowcaseFadeUp{

  from{
    opacity: 0;
    transform: translateY(12px);
  }

  to{
    opacity: 1;
    transform: translateY(0);
  }

}


/* =========================================================
   PROYECTOS / TABLET
========================================================= */

@media (max-width: 1199.98px){

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

  .flexpace-showcase-detail-shell{
    grid-template-columns: 1fr;
  }

  .flexpace-showcase-detail-copy{
    padding: 6px 8px 8px;
  }

}


/* =========================================================
   PROYECTOS / MOBILE
========================================================= */

@media (max-width: 767.98px){

  .flexpace-showcase-projects{
    padding: 76px 0 82px;
  }

  .flexpace-showcase-projects-inner{
    width: min(100% - 28px, 1320px);
  }

  .flexpace-showcase-grid{
    grid-template-columns: 1fr;
  }

  .flexpace-showcase-card-media{
    height: 280px;
  }

  .flexpace-showcase-card-frame{
    border-radius: 26px;
    padding: 12px 12px 0;
  }

  .flexpace-showcase-card-media{
    border-radius: 22px;
  }

  .flexpace-showcase-card-bottom{
    min-height: 70px;
  }

  .flexpace-showcase-detail-shell{
    padding: 14px;
    border-radius: 24px;
  }

  .flexpace-showcase-detail-slider{
    border-radius: 20px;
  }

  .flexpace-showcase-detail-slider-track{
    height: 300px;
  }

  .flexpace-showcase-detail-copy h3{
    font-size: 34px;
  }

  .flexpace-showcase-detail-actions{
    flex-direction: column;
  }

  .flexpace-showcase-btn{
    width: 100%;
  }

}


/* =========================================================
   TERMINA BLOQUE PROYECTOS FLEXPACE
========================================================= */




/* =========================================================
   COMPARATIVA FLEXPACE® — CENTRADA Y COMPACTA
========================================================= */

.fp-difference {
  padding-top: 90px;
  padding-bottom: 90px;
}

/* Encabezado centrado */
.fp-difference__intro {
  width: min(920px, 100%);
  margin: 0 auto 52px;
  text-align: center;
}

.fp-difference__intro h2 {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(42px, 5.4vw, 76px);
}

.fp-difference__lead {
  max-width: 700px;
  margin: 26px auto 0;
  font-size: clamp(17px, 1.4vw, 21px);
}

/* Dos tarjetas exactamente del mismo tamaño */
.fp-difference .fp-comparison {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  max-width: 1240px;
}

.fp-difference .fp-comparison__card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: clamp(30px, 3vw, 44px);
  text-align: center;
  border-radius: 24px;
}

/* Etiqueta superior centrada */
.fp-difference .fp-comparison__label {
  justify-content: center;
  margin-bottom: 25px;
}

/* Título centrado */
.fp-difference .fp-comparison__card h3 {
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: clamp(28px, 2.5vw, 40px);
  text-align: center;
}

/* Contenido más compacto */
.fp-difference .fp-comparison__card ul {
  width: 100%;
  margin-top: auto;
}

.fp-difference .fp-comparison__card li {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  text-align: left;
}

.fp-difference .fp-check,
.fp-difference .fp-minus {
  width: 25px;
  height: 25px;
}

.fp-difference .fp-comparison__card li strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.fp-difference .fp-comparison__card li p {
  font-size: 14px;
  line-height: 1.5;
}

/* Nota centrada */
.fp-difference__note {
  max-width: 800px;
  margin: 18px auto 0;
  text-align: center;
}


/* TABLET */
@media (max-width: 1050px) {

  .fp-difference .fp-comparison {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .fp-difference .fp-comparison__card {
    height: auto;
  }
}


/* MÓVIL */
@media (max-width: 700px) {

  .fp-difference {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .fp-difference__intro {
    margin-bottom: 36px;
  }

  .fp-difference__intro h2 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .fp-difference__lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .fp-difference .fp-comparison {
    gap: 14px;
  }

  .fp-difference .fp-comparison__card {
    padding: 27px 21px;
    border-radius: 20px;
  }

  .fp-difference .fp-comparison__card h3 {
    margin-bottom: 23px;
    font-size: 29px;
  }

  .fp-difference .fp-comparison__card li {
    padding: 13px 0;
  }
}


/* =========================================================
   HOMOLOGACIÓN DE TÍTULOS / SOLO ESCRITORIO
   MISMA ESCALA QUE MOVILX® Y REUBIC®
========================================================= */

@media (min-width: 992px) {

  .flexpace-heights-head h2,
  .fp-install__heading h2,
  .fp-difference__intro h2,
  .flexpace-uses-intro h2,
  .flexpace-showcase-head h2 {
    font-size: var(--fs-display);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

}


/* =========================================================
   FOTOS / INSTALACIÓN FLEXPACE
========================================================= */

.fp-install__photo {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* Mantener el nombre del paso encima de la foto */
.fp-install__scene .fp-scene-caption {
  z-index: 2;
}



/* =========================================================
   POSIBILIDADES FLEXPACE / CORRECCIÓN COMPLETA SOLO MÓVIL
========================================================= */

@media (max-width: 767.98px) {

  /* Mantener la animación y el cambio de fotografías */
  .flexpace-uses .flexpace-use-trigger {
    display: block !important;
    width: 100% !important;
    height: 100svh !important;
    min-height: 100svh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .flexpace-uses .flexpace-uses-scroll {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .flexpace-uses .flexpace-uses-sticky {
    position: sticky !important;
    top: 0 !important;

    display: grid !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;
    height: 100svh !important;
    min-height: 100svh !important;

    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Evitar que las pills ensanchen la sección */
  .flexpace-uses .flexpace-uses-stage {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    min-width: 0 !important;

    margin-right: auto !important;
    margin-left: auto !important;

    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;

    box-sizing: border-box !important;
  }

  /* Fotografía dentro de los márgenes */
  .flexpace-uses .flexpace-uses-visual {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    aspect-ratio: 16 / 10;
    border-radius: 18px;

    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .flexpace-uses .flexpace-use-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;
  }

  /* Texto */
  .flexpace-uses .flexpace-uses-copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Pills con desplazamiento horizontal táctil */
  .flexpace-uses .flexpace-uses-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    gap: 8px !important;
    margin: 0 !important;
    padding: 0 0 5px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }

  .flexpace-uses .flexpace-uses-nav::-webkit-scrollbar {
    display: none;
  }

  .flexpace-uses .flexpace-uses-nav button {
    flex: 0 0 auto !important;

    width: auto !important;
    min-width: max-content !important;
    min-height: 48px !important;

    padding: 0 20px !important;

    white-space: nowrap !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    touch-action: manipulation;
  }

  /* Aviso alineado a la derecha */
  .flexpace-uses .flexpace-uses-swipe-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;

    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 8px 0 0 !important;

    color: rgba(255, 255, 255, 0.48);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-align: right !important;
    text-transform: uppercase;

    box-sizing: border-box !important;
  }

  .flexpace-uses .flexpace-uses-swipe-hint i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--uses-orange);
    font-size: 21px;
    line-height: 1;

    animation: flexpaceSwipeArrow 1.5s ease-in-out infinite;
  }
}

@keyframes flexpaceSwipeArrow {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}