/* =========================================================
   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);
}


/* =========================================================
   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
========================================================= */






/* =========================================================
   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: var(--flexpace-blue-900);
  font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  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
========================================================= */