/* ===== Página de sector: Desarrolladores inmobiliarios =====
   Complementa a page-sector.css (estilos comunes de páginas de sector).
   Bloques propios: hero con foto + tarjetas flotantes, diagrama del ciclo y métricas. */

/* ============================ HERO ============================ */
.sector-hero--dark {
  padding: 130px 0 96px;
  position: relative;
  overflow: hidden;
}
/* Foto de fondo (cuando se agregue el <img>) + velo navy para legibilidad */
.inmob-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(20, 42, 71, 0.35);
}
.inmob-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Velo en degradado: oscuro donde va el texto (izquierda) y más transparente a
   la derecha, para que la foto del desarrollo se aprecie detrás del mockup. */
.inmob-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 26, 46, 0.90) 0%, rgba(12, 26, 46, 0.68) 44%, rgba(12, 26, 46, 0.34) 100%);
}
.sector-hero--dark .sector-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.sector-hero--dark .sector-hero__title { color: var(--paper); }
.sector-hero--dark .sector-hero__title em { color: var(--orange-light); }
.sector-hero--dark .sector-hero__subtitle { color: rgba(250, 248, 243, 0.85); }
.sector-hero--dark .sector-hero__media { position: relative; min-height: 540px; }

/* Pantalla / mockup del ERP (ocupa toda la columna: las tarjetas se movieron
   a la 2ª sección, así que ya no hace falta dejarle aire) */
.inmob-hero__screen {
  position: absolute;
  top: 6%;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border-color: rgba(250, 248, 243, 0.26);
  background: rgba(250, 248, 243, 0.07);
  box-shadow: 0 30px 70px rgba(6, 16, 32, 0.45);
}
.inmob-hero__screen::after { color: rgba(250, 248, 243, 0.55); }
/* Con la imagen puesta (laptop en PNG transparente): sin caja ni sombra
   rectangular; la profundidad la da un drop-shadow que sigue la silueta. */
.inmob-hero__screen:has(img) {
  border: 0;
  background: none;
  box-shadow: none;
  aspect-ratio: auto;
  overflow: visible;
}
.inmob-hero__screen > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 26px 50px rgba(6, 16, 32, 0.5));
}

/* ---- Tarjetas flotantes (glass) ---- */
/* Glass con tinte navy: mantiene el efecto vidrio pero garantiza contraste del
   texto claro tanto sobre la foto como sobre la pantalla blanca del mockup. */
.hcard {
  position: absolute;
  z-index: 3;
  padding: 16px 18px;
  border-radius: 15px;
  background: rgba(13, 28, 50, 0.62);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 44px rgba(6, 16, 32, 0.42);
  color: var(--paper);
  font-family: var(--sans);
}
.hcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.hcard__head strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.hcard__ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--paper);
}
.hcard__ic svg { width: 16px; height: 16px; }
.hcard__titles { display: flex; flex-direction: column; line-height: 1.2; }
.hcard__titles small { font-size: 11.5px; color: rgba(250, 248, 243, 0.72); }

/* Filas etiqueta/valor */
.hcard__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hcard__rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(250, 248, 243, 0.82);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hcard__rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.hcard__rows b { font-size: 12.5px; font-weight: 600; color: var(--paper); }

/* KPIs (unidades vendidas) */
.hcard__kpis { display: flex; gap: 26px; }
.hcard__kpi { display: flex; flex-direction: column; }
.hcard__kpi b {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--paper);
}
.hcard__kpi small { margin-top: 5px; font-size: 11.5px; line-height: 1.35; color: rgba(250, 248, 243, 0.72); }
.hcard__kpi--accent b { color: var(--orange-light); }

/* Lista de contratos */
.hcard__tablehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: rgba(250, 248, 243, 0.66);
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 9px;
}
.hcard__tablehead--foot { margin: 10px 0 0; padding: 8px 0 0; border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.hcard__tablehead--foot b { font-size: 15px; font-weight: 700; color: var(--paper); }
.hcard__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hcard__list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hcard__item { display: flex; flex-direction: column; line-height: 1.25; }
.hcard__item b { font-size: 12.5px; font-weight: 600; color: var(--paper); }
.hcard__item small { font-size: 10.5px; color: rgba(250, 248, 243, 0.6); }
.hcard__date { font-size: 11.5px; color: rgba(250, 248, 243, 0.78); white-space: nowrap; }

/* Avance de obra */
.hcard__head--split { justify-content: flex-start; }
.hcard__head--split strong { margin-right: auto; }
.hcard__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
.hcard__pct { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--paper); }
.hcard__bar {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-bottom: 12px;
}
.hcard__bar span { display: block; height: 100%; border-radius: 4px; background: var(--orange); }
.hcard__chart { display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.hcard__chart i { flex: 1; border-radius: 2px 2px 0 0; background: var(--orange); opacity: 0.9; }
.hcard__chart i.is-navy { background: #24476F; opacity: 1; }
.hcard__foot { margin: 11px 0 0; font-size: 11px; line-height: 1.35; color: rgba(250, 248, 243, 0.66); }

/* Compras */
.hcard__chips { display: flex; gap: 8px; }
.hcard__chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10.5px;
  line-height: 1.3;
  color: rgba(250, 248, 243, 0.9);
  text-align: center;
}
.hcard__chip svg { width: 17px; height: 17px; color: var(--orange-light); }

/* Posiciones de las tarjetas (como en la maquetación) */


/* ============ ¿SABES CÓMO AVANZA? (claro: texto + imagen) ============ */
.inmob-know__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.inmob-know__title {
  text-align: left;
  margin-bottom: 22px;
  max-width: 26ch;
  font-size: clamp(24px, 2.9vw, 36px);
}
/* Primera línea (entrada) más pequeña que la pregunta */
.inmob-know__lead {
  display: block;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.inmob-know__title em {
  display: block;
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.12;
  font-style: italic;
  color: var(--orange);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
}
.inmob-know__body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.55vw, 16.5px);
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 16px;
}
.inmob-know__body:last-of-type { margin-bottom: 0; }
/* Lista de lo que se controla (2 columnas) */
.inmob-know__list {
  list-style: none;
  margin: 14px 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  max-width: 420px;
}
.inmob-know__list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--sans);
  font-size: clamp(14.5px, 1.5vw, 16px);
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}
.inmob-know__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
/* Frase de cierre */
.inmob-know__closing {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.35;
  color: var(--navy);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
/* Tarjetas (antes flotaban en el hero) en 2 columnas dentro de esta sección.
   Van sobre fondo claro, así que el glass navy se vuelve navy sólido. */
.inmob-know__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}
.inmob-know__cards .hcard {
  position: static;
  inset: auto;
  width: auto;
  background: rgba(20, 42, 71, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(20, 42, 71, 0.18);
}
.inmob-know__cards .hcard--contracts { grid-column: 1 / -1; }

/* Imagen con las esquinas redondeadas del sitio */
.inmob-know__media .sector-ph {
  aspect-ratio: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(20, 42, 71, 0.16);
}
.inmob-know__media .sector-ph > img { height: auto; object-fit: cover; }

/* ====== IMPLEMENTARLO ES SENCILLO (navy: texto arriba + imagen centrada) ====== */
.inmob-implem { padding: 92px 0 96px; }
.inmob-implem__head { max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; }
.inmob-implem .sector-band__title--center { max-width: 26ch; margin-bottom: 18px; }
.inmob-implem__text {
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: rgba(250, 248, 243, 0.86);
  margin: 0 auto;
  max-width: 58ch;
}
/* Escenario: indicadores a los lados y el teléfono al centro */
.inmob-implem__stage {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 0 40px;
  display: grid;
  /* La columna del teléfono lleva ancho fijo: con `auto` el track se mide por
     max-content y `.phone` (width:100% + aspect-ratio) colapsaba a 0. */
  grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
/* Tarjetas repartidas en vertical, pero sin llegar a los extremos del teléfono
   (punto medio entre el grupo compacto y el reparto de borde a borde) */
.inmob-implem__side {
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(56px, 7vw, 104px);
}
.inmob-implem__side--left { align-items: flex-end; }
.inmob-implem__device { position: relative; width: 100%; }
/* La captura de la app es 360×800: se ajusta el alto de la pantalla a su
   proporción exacta para que no se recorte nada. */
.inmob-implem__device .phone__screen { aspect-ratio: 360 / 800; }
/* Halo suave detrás del teléfono */
.inmob-implem__device::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20), transparent 68%);
  pointer-events: none;
}
/* Indicador (glass sobre navy) */
.pchip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 260px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(250, 248, 243, 0.08);
  border: 1px solid rgba(250, 248, 243, 0.18);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 14px 30px rgba(6, 16, 32, 0.28);
}
.pchip__ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--orange-light);
}
.pchip__ic svg { width: 18px; height: 18px; }
.pchip__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pchip__txt b {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.25;
}
.pchip__txt small {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(250, 248, 243, 0.68);
}

.inmob-implem__shot {
  margin: 44px auto 0;
  max-width: 860px;
  padding: 0 24px;
}
/* Imagen con las esquinas redondeadas del sitio */
.inmob-implem__shot .sector-ph {
  aspect-ratio: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(6, 16, 32, 0.38);
}
.inmob-implem__shot .sector-ph > img { height: auto; object-fit: cover; filter: none; }

/* ====== UNA SOLA PLATAFORMA (claro: laptop izquierda + texto derecha) ====== */
.inmob-platform { padding: 96px 0 100px; }
.inmob-platform__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: center;
}
.inmob-platform__media .laptop { max-width: 100%; }
.inmob-platform__title {
  text-align: left;
  margin: 0 0 20px;
  max-width: 22ch;
  font-size: clamp(26px, 3vw, 38px);
}
.inmob-platform__body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.55vw, 16.5px);
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0;
  max-width: 44ch;
}
.inmob-platform__closing {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.35;
  color: var(--navy);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* ================== CICLO DEL DESARROLLO (claro) ================== */
.inmob-cycle__intro { max-width: 820px; margin: 0 auto; text-align: center; }
.inmob-cycle__intro p {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 14px;
}
.inmob-cycle__intro p:last-child { margin-bottom: 0; }

.flow { max-width: 1080px; margin: 56px auto 0; }

/* --- Fila superior: entradas · nube · salidas --- */
.flow__hub {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  justify-items: center;
}
.flow__io { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.flow__io--left { align-items: flex-start; }
.flow__io--right { align-items: flex-end; }
.flow__io-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(20, 42, 71, 0.07);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}
.flow__io-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(0, 64, 172, 0.09);
  color: var(--azul-teckio);
  flex: 0 0 auto;
}
.flow__io-ic svg { width: 13px; height: 13px; }
/* Línea punteada hacia la nube (azul a la izquierda, naranja a la derecha) */
.flow__io-item::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(40px, 9vw, 116px);
  border-top: 1.5px dashed rgba(61, 111, 180, 0.55);
}
.flow__io--left .flow__io-item::after { left: 100%; }
.flow__io--right .flow__io-item::after { right: 100%; border-top-color: rgba(217, 119, 6, 0.5); }

/* --- Nube central con el isotipo --- */
.flow__cloud { position: relative; width: clamp(220px, 26vw, 300px); }
.flow__cloud-shape { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 26px rgba(20, 42, 71, 0.12)); }
.flow__cloud-logo {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(48px, 5.6vw, 66px);
  height: auto;
}

/* --- Conectores en árbol (nube → etapas) --- */
.flow__tree { position: relative; height: 54px; margin: 0 0 6px; }
.flow__trunk,
.flow__bus,
.flow__drop { position: absolute; display: block; }
.flow__trunk {
  top: 0;
  left: 50%;
  width: 2px;
  height: 22px;
  margin-left: -1px;
  background: rgba(61, 111, 180, 0.55);
}
.flow__bus {
  top: 21px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(61, 111, 180, 0.6) 0%, rgba(61, 111, 180, 0.6) 34%, rgba(217, 119, 6, 0.6) 58%, rgba(217, 119, 6, 0.6) 100%);
}
.flow__drop { top: 21px; width: 2px; height: 33px; margin-left: -1px; border-radius: 2px; }
.flow__drop--1 { left: 10%; background: rgba(61, 111, 180, 0.6); }
.flow__drop--2 { left: 30%; background: rgba(61, 111, 180, 0.6); }
.flow__drop--3 { left: 50%; background: rgba(217, 119, 6, 0.6); }
.flow__drop--4 { left: 70%; background: rgba(217, 119, 6, 0.6); }
.flow__drop--5 { left: 90%; background: rgba(217, 119, 6, 0.6); }

/* --- Etapas ---
   Flex (no grid) para que al envolverse en tablet/móvil las etapas sobrantes
   queden CENTRADAS en su fila en vez de dejar un hueco a la derecha. */
.flow__stages {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}
.flow__stage {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.flow__stage-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(150deg, #1E3A5F 0%, #0C1F45 100%);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(20, 42, 71, 0.20);
}
.flow__items {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow__items li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(20, 42, 71, 0.05);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--navy);
}
/* Icono en recuadro crema (como la referencia) */
.flow__ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #F6EDE1;
  color: var(--orange);
}
.flow__ic svg { width: 15px; height: 15px; }

/* Texto destacado de "El reto" (bajo el título de la banda navy) */
.inmob-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.25;
  color: var(--orange-light) !important;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  margin: -6px 0 20px !important;
}

/* ===== TODO LO QUE NECESITAS (azul de marca + 6 tarjetas con icono) =====
   Mismo fondo que "¿Por qué Teckio?" del index (azul de marca con blobs).
   Las tarjetas se mantienen claras para que el texto navy siga legible. */
.inmob-control {
  position: relative;
  overflow: hidden;
  padding: 92px 0 100px;
  background:
    radial-gradient(42% 46% at 12% 18%, rgba(150, 190, 240, 0.28), transparent 70%),
    radial-gradient(40% 44% at 90% 82%, rgba(0, 28, 90, 0.45), transparent 70%),
    radial-gradient(28% 34% at 62% 8%, rgba(217, 119, 6, 0.16), transparent 70%),
    linear-gradient(150deg, var(--azul-teckio) 0%, #003795 55%, #0045AE 100%);
}
/* Cuadrícula tenue (misma que las bandas navy del sitio) */
.inmob-control::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 248, 243, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 248, 243, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}
.inmob-control__title {
  position: relative;
  z-index: 1;
  max-width: 22ch;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.inmob-control__title em {
  font-style: italic;
  color: var(--orange-light);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
}
.inmob-control__grid {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* --- Tarjeta --- */
.ctrl-card {
  padding: 30px 26px 32px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F8 100%);
  box-shadow: 0 18px 38px rgba(4, 14, 44, 0.30);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ctrl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(4, 14, 44, 0.38);
}
.ctrl-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  color: #fff;
  margin-bottom: 22px;
}
.ctrl-card__icon svg { width: 26px; height: 26px; }
/* Colores de cada icono */
.ctrl-card__icon--green  { background: linear-gradient(160deg, #22C55E, #15803D); box-shadow: 0 10px 22px rgba(21, 128, 61, 0.30); }
.ctrl-card__icon--blue   { background: linear-gradient(160deg, #3B82F6, #1D4ED8); box-shadow: 0 10px 22px rgba(29, 78, 216, 0.30); }
.ctrl-card__icon--purple { background: linear-gradient(160deg, #A855F7, #7C3AED); box-shadow: 0 10px 22px rgba(124, 58, 237, 0.30); }
.ctrl-card__icon--teal   { background: linear-gradient(160deg, #14B8A6, #0F766E); box-shadow: 0 10px 22px rgba(15, 118, 110, 0.30); }
.ctrl-card__icon--orange { background: linear-gradient(160deg, #F59E0B, #C2620A); box-shadow: 0 10px 22px rgba(194, 98, 10, 0.30); }
.ctrl-card__icon--indigo { background: linear-gradient(160deg, #6366F1, #4338CA); box-shadow: 0 10px 22px rgba(67, 56, 202, 0.30); }
.ctrl-card__title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.ctrl-card__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 24ch;
  margin-inline: auto;
}

/* ===== SOLO LO QUE IMPORTA (claro: tablet al centro + info alrededor) ===== */
.inmob-focus { padding: 96px 0 104px; }
.inmob-focus__head { max-width: 760px; margin: 0 auto 56px; padding: 0 24px; text-align: center; }
.inmob-focus__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.inmob-focus__title em {
  font-style: italic;
  color: var(--orange);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
}
.inmob-focus__lead {
  margin: 0 auto;
  max-width: 58ch;
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--text-soft);
}
/* --- Escenario: 3 columnas (info · tablet · info) --- */
.inmob-focus__stage {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) minmax(190px, 250px);
  grid-template-rows: auto auto auto;
  gap: 40px 52px;
  align-items: center;
}
/* Halo tenue detrás de la tablet (sin anillo: se retiró para acercarse al mockup) */
.inmob-focus__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  width: min(760px, 62%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 64, 172, 0.10) 0%, transparent 62%),
    radial-gradient(circle, rgba(217, 119, 6, 0.10) 52%, transparent 72%);
  filter: blur(6px);
}
.inmob-focus__device {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
}
/* --- Bloques de información (sin tarjeta: como en el mockup) --- */
.fchip {
  position: relative;
  z-index: 1;
  padding: 0;
}
.fchip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 14px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 42, 71, 0.10);
  box-shadow: 0 6px 16px rgba(20, 42, 71, 0.07);
}
.fchip__icon svg { width: 20px; height: 20px; }
.fchip__title {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}
.fchip__list { list-style: none; margin: 0; padding: 0; }
.fchip__list li {
  position: relative;
  padding-left: 14px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.fchip__list li + li { margin-top: 7px; }
.fchip__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
/* Variante chica (Reportes y Multiproyecto) */
.fchip--sm .fchip__icon { width: 36px; height: 36px; margin-bottom: 11px; }
.fchip--sm .fchip__icon svg { width: 17px; height: 17px; }
.fchip--sm .fchip__title { font-size: 12px; margin-bottom: 12px; }
.fchip--sm .fchip__list li { font-size: 12.5px; padding-left: 12px; }
.fchip--sm .fchip__list li::before { width: 4px; height: 4px; }
/* Posiciones: 2 a la izquierda, 2 a la derecha y 2 debajo de la tablet */
.fchip--budget   { grid-column: 1; grid-row: 1; }
.fchip--docs     { grid-column: 1; grid-row: 2; }
.fchip--progress { grid-column: 3; grid-row: 1; }
.fchip--plans    { grid-column: 3; grid-row: 2; }
.inmob-focus__bottom {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 3;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 52px;
}
.inmob-focus__bottom .fchip { flex: 0 1 230px; }

/* ===== ENFÓCATE EN LO QUE MUEVE EL PROYECTO (indicadores) ===== */
.inmob-kpi { padding: 30px 0 104px; }
.inmob-kpi__head { max-width: 760px; margin: 0 auto 46px; padding: 0 24px; text-align: center; }
.inmob-kpi__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.inmob-kpi__title em {
  font-style: italic;
  color: var(--orange);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
}
.inmob-kpi__lead {
  margin: 0 auto;
  max-width: 58ch;
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--text-soft);
}
/* Órbita con los indicadores como nodos (4 nodos → 90°) */
.orbit--kpi {
  --orbit-r: 210px;
  --orbit-step: 90deg;
  width: 720px;
  height: 560px;
  margin: 0 auto;
}
.orbit--kpi .kpi {
  width: 232px;
  animation: orbitCounter 46s linear infinite;
}
.orbit--kpi:hover .kpi { animation-play-state: paused; }
/* --- Indicador --- */
.kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(20, 42, 71, 0.07);
  box-shadow: 0 14px 32px rgba(20, 42, 71, 0.10);
}
.kpi__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
}
.kpi__icon svg { width: 21px; height: 21px; }
.kpi__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi__label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.kpi__value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.kpi__check { width: 14px; height: 14px; flex: 0 0 auto; }
/* Colores por indicador */
.kpi--blue   .kpi__icon { background: linear-gradient(160deg, #3B82F6, #1D4ED8); box-shadow: 0 8px 18px rgba(29, 78, 216, 0.30); }
.kpi--blue   .kpi__value { color: #1D4ED8; }
.kpi--green  .kpi__icon { background: linear-gradient(160deg, #22C55E, #15803D); box-shadow: 0 8px 18px rgba(21, 128, 61, 0.30); }
.kpi--green  .kpi__value { color: #15803D; }
.kpi--indigo .kpi__icon { background: linear-gradient(160deg, #6366F1, #4338CA); box-shadow: 0 8px 18px rgba(67, 56, 202, 0.30); }
.kpi--indigo .kpi__value { color: #4338CA; }
.kpi--orange .kpi__icon { background: linear-gradient(160deg, #F59E0B, #C2620A); box-shadow: 0 8px 18px rgba(194, 98, 10, 0.30); }
.kpi--orange .kpi__value { color: #C2620A; }

/* ============================ RESPONSIVE ============================ */
/* 1400–1241: se estrechan un poco las tarjetas manteniendo el aire */
@media (max-width: 1400px) {
  .sector-hero--dark .sector-hero__inner { gap: 32px; }
}
/* 1240–1041 (portátiles de 1280/1366): laptop más chica y tipografía un punto
   menor, para que nada se apriete ni se solape de más */
@media (max-width: 1240px) {
  .hcard { padding: 13px 15px; }
  .hcard__head strong { font-size: 14px; }
  .hcard__rows li, .hcard__rows b, .hcard__item b { font-size: 11.5px; }
  .hcard__kpi b { font-size: 25px; }
  .hcard__chart { height: 40px; }
}
/* 1140–1041: último ajuste antes de apilar */
@media (max-width: 1140px) {
  .hcard__kpi b { font-size: 23px; }
  .hcard__kpis { gap: 18px; }
}

/* TABLET GRANDE: 3 etapas por fila; las 2 restantes quedan centradas */
@media (max-width: 1040px) {
  .flow__stages { flex-wrap: wrap; gap: 26px 20px; }
  .flow__stage { flex: 0 1 calc((100% - 40px) / 3); }
  /* Con las etapas envueltas el árbol ya no corresponde: se oculta */
  .flow__tree { display: none; }
  .flow__hub { margin-bottom: 30px; }
  .inmob-control__grid { grid-template-columns: repeat(2, 1fr); }
}
/* ≤1040: el hero deja de ser flotante (mockup arriba + tarjetas en cuadrícula),
   así en portátiles/tablets nunca se encima nada */
@media (max-width: 1040px) {
  .sector-hero--dark { padding: 110px 0 64px; }
  .sector-hero--dark .sector-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 0 24px;
    text-align: center;
  }
  .sector-hero--dark .sector-hero__subtitle { margin-left: auto; margin-right: auto; }
  /* El mockup deja de flotar */
  .sector-hero--dark .sector-hero__media { min-height: 0; text-align: left; }
  .inmob-hero__screen { position: static; width: 100%; }
  /* Texto y tarjetas en una columna (tarjetas debajo del texto) */
  .inmob-know__inner { grid-template-columns: 1fr; gap: 30px; }
  .inmob-know__cards { max-width: 620px; margin: 0 auto; }
  .inmob-know__title { max-width: none; }
  .inmob-know__list { max-width: none; }
  .flow { margin-top: 40px; }
  .flow__hub { grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }
  .flow__io { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center !important; }
  .flow__io-item::after { display: none; }
  .flow__io--left { order: -1; }
  .flow__cloud { width: clamp(170px, 42vw, 220px); margin: 2px auto; }
  .inmob-implem { padding: 72px 0 76px; }
  .inmob-implem__shot { margin-top: 32px; }
  /* Teléfono arriba y los indicadores en 2 columnas debajo */
  .inmob-implem__stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 24px;
    margin-top: 36px;
  }
  .inmob-implem__device { grid-column: 1 / -1; margin-bottom: 22px; }
  .inmob-implem__side { grid-column: auto; align-self: auto; justify-content: flex-start; gap: 16px; }
  .inmob-implem__side--left { align-items: stretch; }
  .pchip { max-width: none; }
  /* Laptop arriba, texto abajo (centrado) */
  .inmob-platform { padding: 76px 0 80px; }
  .inmob-platform__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 0 24px;
    text-align: center;
  }
  .inmob-platform__media { order: -1; }
  .inmob-platform__title { text-align: center; max-width: none; }
  .inmob-platform__body { max-width: 60ch; margin: 0 auto; }
  .inmob-control { padding: 76px 0 80px; }
  .inmob-control__title { margin-bottom: 36px; }
  .inmob-control__grid { padding: 0 24px; }
  /* La tablet pasa arriba y la información se acomoda en 2 columnas debajo */
  .inmob-focus { padding: 76px 0 84px; }
  .inmob-focus__head { margin-bottom: 40px; }
  .inmob-focus__stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 34px 32px;
    padding: 0 24px;
  }
  /* Ojo: sin márgenes auto ni justify-self en el contenedor de la tablet —
     eso desactiva el stretch del grid y la deja en ancho 0. El centrado lo
     hace .tablet con su propio max-width + margin auto. */
  .inmob-focus__device {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-bottom: 26px;
  }
  .inmob-focus__device .tablet { max-width: 560px; }
  .fchip--budget, .fchip--docs,
  .fchip--progress, .fchip--plans { grid-column: auto; grid-row: auto; }
  .inmob-focus__bottom { grid-column: 1 / -1; grid-row: auto; margin-top: 0; gap: 32px; }
  .inmob-focus__glow { display: none; }
  .inmob-kpi { padding: 20px 0 84px; }
  .inmob-kpi__head { margin-bottom: 36px; }
  /* La órbita se desarma: isotipo arriba y los indicadores en columna */
  .orbit--kpi {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
  }
  .orbit--kpi .orbit__glow,
  .orbit--kpi .orbit__ring { display: none; }
  .orbit--kpi .orbit__center { position: static; transform: none; }
  .orbit--kpi .orbit__spin {
    position: static;
    inset: auto;
    animation: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .orbit--kpi .orbit__node {
    position: static;
    width: auto; height: auto;
    transform: none;
  }
  .orbit--kpi .orbit__upright { position: static; transform: none; }
  .orbit--kpi .kpi { animation: none; width: 240px; }
}
/* TABLET CHICO: 2 por fila (la 5ª centrada) */
@media (max-width: 820px) {
  .flow__stages { gap: 30px 20px; }
  .flow__stage { flex: 0 1 calc((100% - 20px) / 2); }
}
/* MÓVIL: una etapa por bloque, en columna, con separación clara entre etapas */
@media (max-width: 640px) {
  .inmob-know__cards { grid-template-columns: 1fr; }
  .inmob-know__cards .hcard--contracts { grid-column: auto; }
  .inmob-implem__stage { grid-template-columns: 1fr; }
  .inmob-implem__device::before { width: 240px; height: 240px; }
  .flow__stages { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .flow__stage {
    flex: 1 1 auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding-bottom: 30px;
  }
  .flow__stage:last-child { padding-bottom: 0; }
  /* Línea divisoria tenue entre etapas */
  .flow__stage + .flow__stage { border-top: 1px dashed rgba(20, 42, 71, 0.14); padding-top: 30px; }
  .flow__items { width: 100%; }
  .inmob-control__grid { grid-template-columns: 1fr; gap: 16px; }
  .ctrl-card { padding: 26px 22px 28px; }
  .inmob-focus__stage { grid-template-columns: 1fr; }
  .inmob-focus__bottom { flex-direction: column; gap: 34px; }
  .inmob-focus__bottom .fchip { flex: 1 1 auto; }
  .tablet { padding: 10px 14px; border-radius: 18px; }
  .tablet::before { left: 6px; }
  .orbit--kpi .orbit__center img { width: 72px; }
  .orbit--kpi .orbit__spin { flex-direction: column; align-items: center; }
  .orbit--kpi .kpi { width: 100%; max-width: 320px; }
  .inmob-cycle__intro p { font-size: 15px; }
}
