/* ==========================================================================
   CONSTRUCTORA SANTANA - DISEÑO Y ESTILOS PRINCIPALES (VANILLA CSS)
   ========================================================================== */

:root {
  --brand-navy: #002b4d;
  --brand-navy-dark: #001a30;
  --brand-blue: #0077c8;
  --brand-blue-light: #e0f2fe;
  --brand-green: #8cc63f;
  --brand-green-dark: #7cb342;
  --brand-slate: #555555;
  
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --text-main: #1e293b;
  --text-slate: #64748b;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;

  --font-heading: 'Outfit', sans-serif;
  --font-main: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 43, 77, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 43, 77, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* PANTALLA DE CARGA INICIAL (ver plantilla.html + js/preloader.js) */
html.preloader-active,
html.preloader-active body {
  overflow: hidden;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}

.site-preloader.is-leaving {
  transform: translateY(-100%);
  opacity: 0.5;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.preloader-logo {
  width: 240px;
  height: auto;
}

.preloader-wordmark {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.preloader-wordmark.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preloader-wordmark .brand-constructora {
  color: var(--brand-slate) !important;
  margin-right: 0.4ch;
}

.preloader-wordmark .brand-santana {
  color: var(--brand-navy) !important;
}

@media (max-width: 480px) {
  .preloader-logo {
    width: 170px;
  }
  .preloader-wordmark {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader {
    transition: opacity 0.2s ease;
  }
  .site-preloader.is-leaving {
    transform: none;
    opacity: 0;
  }
  .preloader-wordmark {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/* Entorno del proyecto: colores por familia y distribución legible. */
.nearby-public-map>.nearby-public-pin{--nearby-color:#526675;width:36px;height:36px;background:var(--nearby-color)}.nearby-public-map>.nearby-public-pin>i{font-style:normal;pointer-events:none}.nearby-public-map>.nearby-public-pin>em{position:absolute;left:42px;top:50%;min-width:max-content;max-width:145px;padding:5px 7px;border:1px solid color-mix(in srgb,var(--nearby-color) 45%,white);border-radius:7px;background:rgba(255,255,255,.96);color:var(--brand-navy);box-shadow:0 4px 12px rgba(0,43,77,.16);font-size:.58rem;font-style:normal;font-weight:850;line-height:1.15;text-align:left;transform:translateY(-50%)}.nearby-public-map>.nearby-public-pin>em small{display:block;margin-top:2px;color:#607889;font-size:.52rem}.nearby-public-map>.nearby-public-pin[data-family="education"]{--nearby-color:#78aa27}.nearby-public-map>.nearby-public-pin[data-family="health"]{--nearby-color:#dc3f4f}.nearby-public-map>.nearby-public-pin[data-family="commerce"]{--nearby-color:#ef8b20}.nearby-public-map>.nearby-public-pin[data-family="nature"]{--nearby-color:#238b57}.nearby-public-map>.nearby-public-pin[data-family="mobility"]{--nearby-color:#1487c9}.nearby-public-map>.nearby-public-pin[data-family="finance"]{--nearby-color:#7656c8}.nearby-public-map>.nearby-public-pin[data-family="community"]{--nearby-color:#b06e18}.nearby-public-map>.nearby-public-pin[data-family="safety"]{--nearby-color:#be3340}
.nearby-public-legend{position:absolute;z-index:4;left:10px;right:10px;bottom:9px;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;pointer-events:none}.nearby-public-legend b{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid rgba(190,210,221,.9);border-radius:999px;background:rgba(255,255,255,.94);color:var(--brand-navy);box-shadow:0 2px 7px rgba(0,43,77,.1);font-size:.52rem}.nearby-public-legend i{width:7px;height:7px;border-radius:50%;background:#526675}.nearby-public-legend [data-family="education"] i{background:#78aa27}.nearby-public-legend [data-family="health"] i{background:#dc3f4f}.nearby-public-legend [data-family="commerce"] i{background:#ef8b20}.nearby-public-legend [data-family="nature"] i{background:#238b57}.nearby-public-legend [data-family="mobility"] i{background:#1487c9}.nearby-public-legend [data-family="finance"] i{background:#7656c8}.nearby-public-legend [data-family="community"] i{background:#b06e18}.nearby-public-legend [data-family="safety"] i{background:#be3340}
.nearby-public-map.is-streets{background:#dfe8df}.nearby-public-street-map{position:absolute;z-index:0;width:768px;height:768px;pointer-events:none}.nearby-public-street-map img{position:absolute!important;width:256px!important;height:256px!important;min-height:0!important;max-width:none!important;object-fit:cover}.nearby-public-map-attribution{position:absolute;z-index:5;right:7px;top:7px;padding:3px 5px;border-radius:4px;background:rgba(255,255,255,.92);color:#35596e;font-size:.52rem;text-decoration:none}
@media(max-width:760px){.nearby-public-map>.nearby-public-pin>em{display:none}.nearby-public-legend{justify-content:flex-start}}

[hidden] {
  display: none !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   HEADER & LOGO OFICIAL (ALINEACIÓN PERFECTA)
   ========================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.3s ease;
}

/* Se oculta al bajar y reaparece al subir, para dejar más pantalla libre al leer. */
.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Header integrado sobre la fotografía del hero de Inicio: transparente
   mientras se ve la foto, sólido en cuanto se hace scroll o se cambia de pestaña. */
.site-header.header-on-hero {
  background: linear-gradient(180deg, rgba(0, 26, 48, 0.72) 0%, rgba(0, 26, 48, 0.38) 65%, rgba(0, 26, 48, 0.05) 100%);
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header.header-on-hero .brand-constructora,
.site-header.header-on-hero .brand-santana {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55), 0 1px 8px rgba(255, 255, 255, 0.4);
}

.site-header.header-on-hero .brand-logo img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.site-header.header-on-hero .main-nav a.tab-nav-link {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.site-header.header-on-hero .main-nav a.tab-nav-link.active {
  color: #ffffff;
  background: rgba(0, 26, 48, 0.4);
}

.site-header.header-on-hero .main-nav a.tab-nav-link:hover {
  color: #ffffff;
  background: rgba(0, 26, 48, 0.55);
}

.site-header.header-on-hero .main-nav a.tab-nav-link.active::after {
  background-color: #ffffff;
}

/* El acceso rápido a un proyecto usa un azul muy claro sobre fondo blanco,
   invisible sobre una foto clara. Aquí pasa a chip oscuro sólido. */
.site-header.header-on-hero .nav-highlight-pill {
  background: rgba(0, 26, 48, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.site-header.header-on-hero .nav-highlight-pill:hover {
  background: rgba(0, 26, 48, 0.7) !important;
}

.site-header.header-on-hero .nav-toggle span {
  background-color: #ffffff;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: filter 0.35s ease;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--brand-slate);
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
}

.brand-name span {
  color: var(--brand-navy);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Colorimetría invariable del nombre corporativo. */
.brand-constructora { color: var(--brand-slate) !important; }
.brand-santana { color: var(--brand-navy) !important; }
.brand-signature {
  display: inline-block;
}
.web-hero-badge.brand-lockup {
  background: #ffffff;
  border: 1px solid rgba(0, 43, 77, 0.15);
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.main-nav a.tab-nav-link {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-navy);
  padding: 8px 12px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.main-nav a.tab-nav-link:hover,
.main-nav a.tab-nav-link.active {
  color: var(--brand-blue);
}

.main-nav a.tab-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--brand-blue);
  border-radius: 2px;
}

.nav-highlight-pill {
  background: rgba(0, 119, 200, 0.08);
  color: var(--brand-blue) !important;
  padding: 8px 16px !important;
  border-radius: 20px;
  font-weight: 800 !important;
  border: 1px solid rgba(0, 119, 200, 0.2);
}

.dropdown-trigger {
  position: relative;
}

.dropdown-menu-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 10px 0;
  z-index: 1100;
}

.dropdown-trigger:hover .dropdown-menu-box {
  display: block;
}

.dropdown-category-label {
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-slate);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dropdown-subitem {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--brand-navy);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-subitem:hover {
  background: var(--bg-surface);
  color: var(--brand-blue);
}

.btn-header-cta {
  background: var(--brand-green-dark);
  color: var(--brand-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
}

.btn-header-cta:hover {
  background: var(--brand-green);
  color: var(--brand-navy);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--brand-navy);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ==========================================
   VISTAS DE PESTAÑAS (TAB VIEWS)
   ========================================== */
.tab-page-view {
  display: none;
  animation: fadeIn 0.35s ease-in-out;
}

.tab-page-view.active {
  display: flow-root;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   HERO BANNER (INICIO)
   ========================================== */
.web-hero-santana {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #eef6fb 62%, #e5f1f8 100%);
  color: #ffffff;
  margin-top: -84px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 90px;
  text-align: center;
}

.web-hero-badge {
  display: inline-block;
  background: var(--brand-blue);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.web-hero-santana h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.75), 0 1px 3px rgba(255, 255, 255, 0.9);
}

.web-hero-santana h1 span {
  color: var(--brand-green);
}

.web-hero-santana p {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--brand-navy);
  font-weight: 600;
}

/* Portadas oficiales administrables. Sin URL estas reglas no alteran el
   fondo neutro de cada pÃ¡gina. La fotografÃ­a solo se activa tras precarga. */
.cms-page-hero {
  --cms-page-hero-image: none;
  position: relative;
  isolation: isolate;
}

.cms-page-hero::before,
.cms-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.cms-page-hero::before {
  background-image: var(--cms-page-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cms-page-hero::after {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 252, 253, 0.82) 52%, rgba(241, 246, 249, 0.68) 100%);
}

/* El hero de Inicio lleva menos velo blanco que el resto (fotos con texto
   más corto): la foto se ve más clara y nítida. El texto lleva un halo
   blanco propio para seguir leyéndose sobre cualquier zona de la foto. */
.cms-page-hero-home.has-cms-hero-image::after {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.5) 0%, rgba(250, 252, 253, 0.32) 55%, rgba(241, 246, 249, 0.2) 100%);
}

.cms-page-hero > * {
  position: relative;
  z-index: 1;
}

.cms-page-hero.has-cms-hero-image {
  overflow: hidden;
}

.cms-page-hero.has-cms-hero-image::before,
.cms-page-hero.has-cms-hero-image::after {
  opacity: 1;
}

/* Marca corporativa reutilizable para material fotográfico público. Se aplica
   como una sola firma discreta; planos, mapas y logotipos quedan excluidos. */
.cms-page-hero.has-cms-hero-image::before {
  background-image: url("../images/icono_marcadeagua.svg?v=13.78.0"), var(--cms-page-hero-image);
  background-position: calc(100% - clamp(18px, 4vw, 54px)) calc(100% - clamp(18px, 4vw, 44px)), center;
  background-repeat: no-repeat, no-repeat;
  background-size: clamp(54px, 7vw, 92px) auto, cover;
}

:is(.web-card-img-wrapper, .details-banner, .unit-cover-wrapper, .team-photo-wrapper, .gallery-photo-card, .project-detail-gallery a, .lightbox-img-wrapper, .project-cover-placeholder.has-image) {
  position: relative;
}

:is(.web-card-img-wrapper, .details-banner, .unit-cover-wrapper, .team-photo-wrapper, .gallery-photo-card, .project-detail-gallery a, .lightbox-img-wrapper, .project-cover-placeholder.has-image):has(img:not([hidden]))::after {
  content: "";
  position: absolute;
  right: clamp(9px, 2.2%, 20px);
  bottom: clamp(9px, 2.2%, 20px);
  z-index: 2;
  width: clamp(38px, 12%, 76px);
  aspect-ratio: 267.6 / 332.7;
  background: url("../images/icono_marcadeagua.svg?v=13.78.0") center / contain no-repeat;
  opacity: .24;
  filter: drop-shadow(0 1px 2px rgba(0, 26, 48, .42));
  pointer-events: none;
  user-select: none;
}

.lightbox-img-wrapper:has(img:not([hidden]))::after {
  width: clamp(54px, 9vw, 92px);
  opacity: .28;
}

.web-card-img-wrapper .card-tag-badge,
.project-cover-placeholder.has-image .project-cover-copy,
.gallery-photo-card > div {
  z-index: 3;
}

.cms-page-hero-inline.has-cms-hero-image {
  width: 100%;
  max-width: none !important;
  min-height: 250px;
  padding: clamp(34px, 6vw, 64px) !important;
  border: 1px solid rgba(0, 43, 77, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 43, 77, 0.12);
}

.cms-page-hero-inline.has-cms-hero-image > p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cms-page-hero-row.has-cms-hero-image > div:first-child {
  max-width: 720px;
}

/* SelecciÃ³n visual disponible exclusivamente dentro del iframe ?preview=1. */
body.cms-preview-mode [data-cms],
body.cms-preview-mode [data-cms-href-path],
body.cms-preview-mode [data-cms-visual-path],
body.cms-preview-mode [data-cms-entity-type][data-cms-entity-id],
body.cms-preview-mode [data-cms-hero] {
  cursor: pointer;
}

body.cms-preview-mode .cms-preview-hover,
body.cms-preview-mode .cms-preview-selected {
  outline: 2px solid #0077c8 !important;
  outline-offset: 4px;
}

body.cms-preview-mode .cms-preview-selected {
  box-shadow: 0 0 0 6px rgba(0, 119, 200, 0.18) !important;
}

.cms-preview-field-label {
  position: fixed;
  z-index: 20000;
  max-width: min(360px, calc(100vw - 16px));
  padding: 7px 11px;
  border-radius: 8px;
  background: #002b4d;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 31, 63, 0.28);
  font: 700 12px/1.25 var(--font-body);
  letter-spacing: 0.15px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search-bar-widget {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-col {
  text-align: left;
  min-width: 0;
  flex: 1;
}

/* El nombre del proyecto suele ser más largo que la ubicación. */
.search-col:first-child {
  flex: 1.4;
}

.search-col-label {
  font-size: 0.72rem;
  color: var(--brand-navy);
  text-transform: uppercase;
  font-weight: 800;
  display: block;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.search-col-value {
  font-size: 0.92rem;
  color: var(--brand-navy);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.search-col-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
  padding: 0 20px 0 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-navy);
  cursor: pointer;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002b4d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
}

.search-col-select:disabled {
  cursor: default;
  opacity: 1;
  padding-right: 0;
  background-image: none;
}

.search-col-select:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-search-trigger {
  background: var(--brand-navy);
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.terrazas-badge {
  background: rgba(140, 198, 63, 0.15);
  color: var(--brand-green);
  border: 1px solid rgba(140, 198, 63, 0.4);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.terrazas-hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.terrazas-hero-title span {
  color: var(--brand-green);
}

.terrazas-hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 580px;
}

.terrazas-hero-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  max-height: 380px;
  display: flex;
}

.terrazas-hero-img-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.terrazas-hero-img-box:hover img {
  transform: scale(1.03);
}

.terrazas-hero-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 26, 48, 0.88) 100%);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.terrazas-hero-img-tag {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
}

.urban-implantation-box {
  background: linear-gradient(180deg, #001a33 0%, #001124 100%);
  border: 2px solid #003366;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  margin-bottom: 36px;
}

.urban-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #00264d;
  border: 1px solid #004080;
  border-radius: 30px;
  padding: 10px 24px;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.urban-pill-tag {
  background: #001a33;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #004d99;
}

.urban-pill-tag.center-tag {
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 800;
  border: none;
}

.urban-pill-tag.rear-tag {
  background: rgba(140, 198, 63, 0.2);
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
}

.block-selectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: flex-end;
  min-height: 220px;
  padding-top: 10px;
}

.block-select-card {
  background: #002244;
  border: 2px solid #004080;
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.block-select-card.step-b1 { height: 200px; border-top: 5px solid var(--brand-blue); }
.block-select-card.step-b2 { height: 170px; border-top: 5px solid var(--brand-blue); }
.block-select-card.step-b3 { height: 140px; border-top: 5px solid var(--brand-blue); }
.block-select-card.step-b4 { height: 115px; border-top: 5px solid var(--brand-green); }

.block-select-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-blue);
  background: #003366;
  box-shadow: 0 8px 24px rgba(0, 119, 200, 0.3);
}

.block-select-card.active-block {
  border-color: var(--brand-green) !important;
  background: linear-gradient(180deg, #003366 0%, #001a33 100%) !important;
  box-shadow: 0 0 24px rgba(140, 198, 63, 0.4) !important;
  transform: translateY(-4px);
}

.block-select-card.active-block::before {
  content: '✓ SELECCIONADO';
  position: absolute;
  top: -12px;
  background: var(--brand-green);
  color: var(--brand-navy);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 1px;
}

.block-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  margin-top: 6px;
}

.badge-delivery-immediate { background: var(--brand-green); color: #002b4d; }
.badge-delivery-year { background: var(--brand-navy); color: #ffffff; }
.badge-delivery-plans { background: var(--brand-blue); color: #ffffff; }

/* SECCIÓN DE TARJETAS DE DEPARTAMENTOS */
.units-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}


.units-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  align-items: stretch;
}

.project-cover-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  background: linear-gradient(145deg, #f7fbfe, #e7f2f9);
  border: 1px dashed rgba(0, 119, 200, 0.35);
  color: var(--brand-navy);
}

.project-cover-placeholder > img {
  width: 100%;
  min-height: 300px;
  max-height: 360px;
  object-fit: cover;
}

.project-cover-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.project-cover-placeholder.has-image {
  padding: 0;
  border-style: solid;
  background: var(--brand-navy);
}

.project-cover-placeholder.has-image .project-cover-copy {
  position: absolute;
  inset: auto 0 0;
  align-items: flex-start;
  padding: 48px 24px 22px;
  text-align: left;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 26, 48, 0.94));
}

.project-cover-placeholder.has-image .project-cover-copy span,
.project-cover-placeholder.has-image .project-cover-copy a { color: #e2edf5; }

.project-cover-copy a { color: var(--brand-blue); font-weight: 800; font-size: 0.84rem; }

.project-cover-placeholder strong { font-family: var(--font-heading); font-size: 1.15rem; }
.project-cover-placeholder span { color: #526b7f; font-size: 0.88rem; }

.units-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-slate);
  text-align: center;
  font-weight: 700;
}

/* Presentación del proyecto cuando aún no se elige un bloque */
.units-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: 32px;
  align-items: center;
  padding: 8px 4px;
}

.units-showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.units-showcase-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.units-showcase-copy p {
  margin: 0;
  color: var(--text-slate);
  font-size: 0.98rem;
  line-height: 1.65;
}

.units-showcase-hint {
  font-size: 0.85rem !important;
  font-weight: 700;
  color: var(--brand-navy) !important;
}

.units-showcase-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 108px;
  gap: 10px;
}

.units-showcase-gallery .showcase-photo:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.showcase-photo {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}

.showcase-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.showcase-photo:hover img {
  transform: scale(1.05);
}

@media (max-width: 850px) {
  .units-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .units-showcase-gallery {
    grid-auto-rows: 92px;
  }
}

@media (max-width: 1200px) {
  .units-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .units-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .units-cards-grid {
    grid-template-columns: 1fr !important;
  }
}


.unit-card-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.unit-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.unit-cover-wrapper {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #001a33 0%, #002b4d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.unit-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image-placeholder {
  text-align: center;
  color: #cbd5e1;
  padding: 16px;
}

.no-image-badge {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.unit-card-header {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unit-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.unit-avail-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.avail-disponible { background: #d1fae5; color: #065f46; }
.avail-reservado { background: var(--brand-blue-light); color: var(--brand-navy); }
.avail-vendido { background: #f1f5f9; color: #64748b; }

.unit-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.unit-general-area {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.unit-general-area strong {
  color: var(--brand-blue);
}

.unit-specs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.unit-spec-tag {
  background: var(--bg-surface);
  color: var(--brand-navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.unit-card-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 14px;
}

.unit-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-view-photos,.btn-view-plans {
  background: #f1f5f9;
  color: var(--brand-navy);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-view-photos:hover,.btn-view-plans:hover {
  background: #e2e8f0;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* ==========================================
   TARJETAS DE PROYECTOS (PORTAFOLIO)
   ========================================== */
.web-projects-section {
  padding: 60px 0;
}

.web-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.web-project-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.web-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.web-card-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.btn-view-plans{background:#e5f4fc;border-color:#b9dcf0;color:var(--brand-blue)}

.btn-view-photos:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  background: var(--bg-surface);
  color: var(--text-slate);
  border-color: var(--border-light);
}

@media (max-width: 768px) {
  .lightbox-top-bar {
    padding: 12px 14px;
  }

  .lightbox-info {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .lightbox-title-text {
    max-width: 72vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .lightbox-main-stage {
    padding: 10px 4px;
  }

  .lightbox-img-wrapper {
    max-width: 100vw;
  }

  .lightbox-arrow-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox-arrow-btn.prev-btn { left: 10px; }
  .lightbox-arrow-btn.next-btn { right: 10px; }
}

.project-detail-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.project-detail-gallery a{display:block;height:130px;border-radius:10px;overflow:hidden;background:#e8f0f5}.project-detail-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.project-detail-gallery a:hover img{transform:scale(1.04)}

.brand-image-placeholder {
  width: 100%;
  min-height: 220px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-surface), var(--brand-blue-light));
  color: var(--brand-navy);
  border: 1px dashed var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.details-banner {
  position: relative;
  min-height: 240px;
}

.details-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.web-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.web-project-card:hover .web-card-img-wrapper img {
  transform: scale(1.05);
}

.card-tag-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
}

.web-card-body {
  padding: 24px;
}

.web-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.web-card-specs {
  font-size: 0.88rem;
  color: var(--text-slate);
  margin-bottom: 14px;
}

.web-card-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 18px;
}

.card-btn-row {
  display: flex;
  gap: 10px;
}

.btn-wa-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-green-dark);
  color: var(--brand-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.btn-wa-unit:hover {
  background: var(--brand-green);
  color: var(--brand-navy);
}

/* BANNER DE EMPLEO / CARRERAS */
/* ==========================================
   CATÁLOGO DE SERVICIOS (TARJETAS LIMPIAS Y BANNER CTA ÚNICO)
   ========================================== */
.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
  align-items: start;
}

.service-item-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  width: 100%;
  font: inherit;
  text-align: left;
}

.service-item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.service-item-card.is-expanded {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lg);
}

.service-icon-box {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.service-title-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 10px;
  line-height: 1.25;
}

.service-card-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  align-self: flex-start;
}

.service-item-card:hover .service-card-link {
  gap: 10px;
  color: var(--brand-navy);
}

.service-detail-panel {
  margin-top: 4px;
}

.service-detail-image {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-text p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-slate);
  margin: 0 0 14px;
}

.service-detail-cta {
  display: inline-flex;
  margin-bottom: 18px;
}

/* BANNER PRINCIPAL DE SERVICIOS */
.service-global-cta-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #001a33 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.service-cta-text h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.service-cta-text p {
  color: #cbd5e1;
  font-size: 0.92rem;
}

/* FORMULARIOS */
.form-wrapper {
  background: #ffffff;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.15);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-slate);
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--brand-navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-blue);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--brand-navy);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

/* DIRECTORIO DE EQUIPO */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-member-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 32px 22px 26px;
}

.team-photo-wrapper {
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--brand-blue-light);
  box-shadow: var(--shadow-sm);
}

.team-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-wrapper .brand-image-placeholder {
  min-height: 0;
  height: 100%;
  padding: 8px;
  font-size: 0.56rem;
  line-height: 1.3;
  border: 0;
}

.team-info-body {
  padding: 0;
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.team-member-role {
  font-size: 0.82rem;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 6px;
}

.team-member-email {
  font-size: 0.8rem;
  color: var(--text-slate);
  display: block;
  margin-bottom: 12px;
}

.btn-linkedin-profile {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.team-member-card-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-member-card-clickable:hover,
.team-member-card-clickable:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
  outline: none;
}

.team-card-more {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.team-member-card-clickable:hover .team-card-more span {
  transform: translateX(3px);
}

.team-card-more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.team-modal-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.team-modal-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--brand-blue-light);
  box-shadow: var(--shadow-sm);
}

.team-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal-photo .brand-image-placeholder {
  min-height: 0;
  height: 100%;
  padding: 8px;
  font-size: 0.62rem;
  border: 0;
}

.team-modal-role {
  font-size: 0.95rem;
  color: var(--brand-blue);
  font-weight: 700;
}

.team-modal-title-line {
  font-size: 0.85rem;
  color: var(--text-slate);
  margin-top: 3px;
}

.team-modal-bio {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-slate);
}

.team-modal-bio p {
  margin: 0 0 12px;
}

.team-modal-bio p:last-child {
  margin-bottom: 0;
}

.team-modal-credentials {
  margin-top: 16px;
}

.team-modal-credentials h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-navy);
  margin: 0 0 8px;
}

.team-modal-credentials ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.team-modal-credentials li {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-slate);
}

.team-modal-credentials li strong {
  color: var(--brand-navy);
}

.team-modal-specialties {
  margin-top: 16px;
}

.team-modal-specialties h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-navy);
  margin: 0 0 8px;
}

.team-modal-specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-modal-specialty-tags span {
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.team-modal-contact {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.team-modal-contact-item {
  font-size: 0.85rem;
  color: var(--text-slate);
  text-decoration: none;
}

.team-modal-contact-item:hover {
  color: var(--brand-blue);
}

@media (max-width: 560px) {
  .team-modal-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .team-modal-contact {
    justify-content: center;
  }
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 2000;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* MODALES */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 26, 48, 0.75);
  backdrop-filter: blur(4px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-card-lg {
  max-width: 780px;
}

.modal-header {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

/* FOOTER CORPORATIVO */
.site-footer {
  background: var(--bg-surface);
  color: var(--brand-navy);
  padding: 60px 0 24px;
  border-top: 4px solid var(--brand-blue);
}

.team-member-title {
  margin-top: 4px;
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.team-member-bio {
  margin-top: 10px;
  color: var(--text-slate);
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-slate);
  font-size: 0.88rem;
  max-width: 380px;
}

.footer-brand .brand-logo {
  width: fit-content;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--brand-navy);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-slate);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-slate);
}

/* El panel "Más" pertenece exclusivamente a la navegación móvil. */
.mobile-more-menu-sheet {
  display: none;
}

/* ==========================================================================
   EXPERIENCIA WEB APP MÓVIL PWA & RESPONSIVE PREMIUM
   ========================================================================== */

html, body {
  overflow-x: clip !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

button, a, .block-select-card, .service-item-card, .unit-card-item, .web-project-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:active, a:active, .block-select-card:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease !important;
}

/* BARRA INFERIOR DE ACCIÓN RÁPIDA (DOCK MÓVIL) */
.mobile-app-dock {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); /* Espacio reservado para la barra de navegación móvil */
  }

  .site-header {
    height: 72px;
    padding: 0 16px;
  }

  .web-hero-santana {
    margin-top: -72px;
  }

  .nav-wrapper {
    height: 72px;
    gap: 12px;
  }

  .brand-logo img {
    height: 52px;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: -0.3px;
  }

  .brand-name span {
    font-size: 0.72rem;
  }

  /* DRAWER MÓVIL PANTALLA COMPLETA */
  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 43, 77, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px 20px 80px;
    z-index: 2500;
    overflow-y: auto;
    animation: mobileDrawerSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileDrawerSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-nav a.tab-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
  }

  .main-nav a.tab-nav-link.active,
  .main-nav a.tab-nav-link:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(0, 119, 200, 0.3);
  }

  .main-nav a.tab-nav-link.active::after {
    display: none;
  }

  .btn-header-cta {
    display: none;
  }

  /* BARRA MÓVIL DOCK DE NAVEGACIÓN RÁPIDA */
  .mobile-app-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 64px;
    background: rgba(0, 26, 48, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 2px solid var(--brand-blue);
    z-index: 2400;
    justify-content: space-around;
    align-items: center;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
  }

  .mobile-dock-btn {
    background: none;
    border: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
  }

  .mobile-dock-btn .dock-icon {
    font-size: 1.2rem;
    line-height: 1;
  }

  .mobile-dock-btn.active,
  .mobile-dock-btn:active {
    color: #ffffff;
    background: rgba(0, 119, 200, 0.25);
  }

  .mobile-dock-btn.active .dock-icon {
    transform: scale(1.15);
  }

  .mobile-dock-btn.wa-dock-btn {
    color: #4ade80;
  }

  /* POPUP MENU FLOTANTE PARA 'MÁS' EN DOCK MÓVIL */
  .mobile-more-menu-sheet {
    display: none;
    position: fixed;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    width: 250px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 43, 77, 0.3);
    border: 1px solid var(--border-light);
    z-index: 2450;
    overflow: hidden;
    animation: moreSheetPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-more-menu-sheet.active {
    display: block;
  }

  @keyframes moreSheetPop {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .more-menu-header {
    background: var(--brand-navy);
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
  }

  .close-more-menu {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
  }

  .more-menu-list {
    padding: 6px 0;
    margin: 0;
    list-style: none;
  }

  .more-menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-navy);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
  }

  .more-menu-list li a:hover,
  .more-menu-list li a:active {
    background: var(--bg-surface);
    color: var(--brand-blue);
  }

  .whatsapp-float {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 52px;
    height: 52px;
  }

  /* MODALES ESTILO BOTTOM SHEET MÓVIL NATIVO */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card, .modal-card-lg {
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    animation: bottomSheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0;
    width: 100%;
  }

  @keyframes bottomSheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-header {
    padding: 16px 20px;
    border-radius: 24px 24px 0 0;
  }

  .modal-body {
    padding: 20px 16px 36px;
    max-height: calc(88vh - 60px);
  }

  /* HERO Y CONTENIDOS MÓVILES */
  .web-hero-santana {
    min-height: 82vh;
    padding: 120px 16px 60px;
  }

  .web-hero-santana h1 {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .web-hero-santana p {
    font-size: 0.95rem;
  }

  .cms-page-hero-inline.has-cms-hero-image {
    min-height: 220px;
    padding: 28px 18px !important;
    border-radius: 16px;
  }

  .cms-page-hero-row.has-cms-hero-image {
    align-items: flex-start !important;
  }

  .hero-search-bar-widget {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .terrazas-grid-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* En móvil, la sección "Todo lo que necesitas cerca" más abajo ya cubre
     este mismo mapa de servicios cercanos; mostrar ambos es redundante.
     En escritorio se mantienen los dos. !important porque la regla base
     (más abajo en este archivo, fuera de todo media query) fija su propio
     display:flex y gana por orden de cascada si no se fuerza aquí. */
  .project-hero-map-wrapper {
    display: none !important;
  }

  .terrazas-hero-title {
    font-size: 2.1rem;
  }

  .terrazas-hero-desc {
    font-size: 0.95rem;
  }

  .terrazas-hero-img-box img {
    height: 250px;
  }

  .urban-implantation-box {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .urban-top-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 12px 16px;
    gap: 8px;
  }

  /* SELECTORES DE BLOQUE EN PERFIL EN GRADAS CON SWIPE HORIZONTAL EN MÓVIL */
  .block-selectors-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 14px 4px 8px;
    align-items: flex-end;
    -webkit-overflow-scrolling: touch;
  }

  .block-selectors-grid::-webkit-scrollbar {
    height: 4px;
  }

  .block-selectors-grid::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 4px;
  }

  .block-select-card {
    flex: 0 0 135px;
    scroll-snap-align: start;
    padding: 14px 10px;
  }

  .block-select-card.step-b1 { height: 180px; }
  .block-select-card.step-b2 { height: 155px; }
  .block-select-card.step-b3 { height: 135px; }
  .block-select-card.step-b4 { height: 115px; }

  .units-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .units-cards-grid,
  .web-cards-grid,
  .services-catalog-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-global-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
  }

  .service-global-cta-banner a {
    width: 100%;
  }

  .form-wrapper {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .web-hero-santana h1 {
    font-size: 1.85rem;
  }

  .terrazas-hero-title {
    font-size: 1.85rem;
  }

  .btn-wa-unit {
    width: 100%;
  }
}

/* PLANO ARQUITECTÓNICO VECTORIAL (SVG NATIVO ORIGINAL) */
.blueprint-wrapper-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 30, 60, 0.07);
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-quote-cta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--brand-blue);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 43, 77, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blueprint-quote-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 43, 77, 0.32);
}

@media (max-width: 600px) {
  .blueprint-quote-cta {
    left: 10px;
    bottom: 10px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

.blueprint-svg-host {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-svg-host svg {
  width: 100%;
  height: auto;
  display: block;
}
.blueprint-svg-host.has-blueprint-background{background-position:center;background-repeat:no-repeat;background-size:contain}.blueprint-svg-host.has-blueprint-background svg{background:transparent}
.blueprint-raster{display:block;width:100%;height:auto;max-height:760px;object-fit:contain}.unit-group.unit-state-vendido{opacity:.46}.unit-group.unit-state-oculto{display:none}
.project-nearby-public{width:min(1280px,calc(100% - 32px));margin:0 auto 42px;display:grid;grid-template-columns:minmax(300px,.75fr) minmax(420px,1.25fr);gap:24px;padding:24px;border:1px solid #d5e4ed;border-radius:18px;background:#f7fbfd;box-shadow:0 14px 38px rgba(0,43,77,.1)}.nearby-public-copy>span{color:var(--brand-blue);font-size:.72rem;font-weight:900;letter-spacing:1.5px}.nearby-public-copy h3{margin:7px 0 18px;color:var(--brand-navy);font-size:clamp(1.45rem,2.5vw,2.2rem)}.nearby-public-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nearby-public-list article{display:flex;align-items:center;gap:9px;padding:9px;border-radius:10px;background:#fff;border:1px solid #e0eaf0}.nearby-public-list article>b{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#e5f4fc;color:var(--brand-navy)}.nearby-public-list strong,.nearby-public-list small{display:block}.nearby-public-list strong{font-size:.72rem;color:var(--brand-navy)}.nearby-public-list small{font-size:.64rem;color:#607889;margin-top:2px}.nearby-public-list article.nearby-list-extra{display:none}.nearby-public-list.is-expanded article.nearby-list-extra{display:flex}.nearby-public-list-toggle{display:inline-flex;align-items:center;gap:4px;margin-top:10px;padding:0;border:none;background:none;color:var(--brand-blue);font-size:.76rem;font-weight:800;cursor:pointer}.nearby-public-list-toggle:hover{text-decoration:underline}.nearby-public-map{position:relative;align-self:center;min-height:300px;border-radius:14px;overflow:hidden;background:#e8f0f5}.nearby-public-map-base{position:absolute;inset:0}.nearby-public-map img{display:block;width:100%;height:100%;min-height:300px;max-height:520px;object-fit:contain}.nearby-public-map span{position:absolute;width:34px;height:34px;display:grid;place-items:center;transform:translate(-50%,-100%);border:2px solid #fff;border-radius:50% 50% 50% 8px;background:var(--brand-navy);color:#fff;box-shadow:0 5px 14px rgba(0,43,77,.28)}
.nearby-public-view-toggle{position:absolute;left:10px;top:10px;z-index:10;display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px 0 8px;background:rgba(255,255,255,0.88);border:1px solid rgba(0,43,77,0.12);border-radius:14px;font-size:0.66rem;font-weight:800;font-family:var(--font-main);cursor:pointer;box-shadow:0 2px 8px rgba(0,43,77,0.12);opacity:0.8;transition:opacity 0.2s ease;color:var(--brand-navy)}
.nearby-public-view-toggle:hover{opacity:1}
@media(max-width:850px){.project-nearby-public{grid-template-columns:1fr}.nearby-public-map{order:-1}}@media(max-width:520px){.nearby-public-list{grid-template-columns:1fr}.project-nearby-public{width:calc(100% - 20px);padding:14px}}
/* En escritorio la navegación es más cómoda: se ven los 7-8 puntos completos, sin colapsar. */
@media(min-width:851px){.nearby-public-list article.nearby-list-extra{display:flex}.nearby-public-list-toggle{display:none}}

.nearby-public-map.is-generated{min-height:0;aspect-ratio:1/1;max-width:440px;width:100%;margin-inline:auto;background:linear-gradient(145deg,#f8fcfe,#e8f3f8)}.nearby-public-schematic{position:absolute;inset:0;width:100%;height:100%}.nearby-public-schematic rect{fill:#f4fafc}.nearby-public-schematic pattern path,.nearby-public-schematic circle{fill:none;stroke:#d1e4ed;stroke-width:.35}.nearby-public-schematic line{stroke:#84b8d1;stroke-width:.45;stroke-dasharray:1.4 1.2}.nearby-public-schematic .nearby-public-road{fill:none;stroke:#bfd8e4;stroke-width:1.35}.nearby-public-project{position:absolute;z-index:1;transform:translate(-50%,-50%);padding:8px 11px;border:2px solid #fff;border-radius:9px;background:var(--brand-green);color:var(--brand-navy);box-shadow:0 6px 18px rgba(0,43,77,.22);font-size:.68rem}.nearby-public-map span{z-index:2}.nearby-public-attribution{display:inline-block;margin-top:12px;color:#607889;font-size:.62rem;text-decoration:underline}
.nearby-public-caption{position:absolute;right:10px;bottom:8px;z-index:1;padding:4px 7px;border-radius:6px;background:rgba(255,255,255,.88);color:#607889;font-size:.58rem;font-style:normal}

/* ILUMINACIÓN VECTORIAL DIRECTA DE LÍNEAS DEPARTAMENTALES */
.dept-layer, .unit-group {
  cursor: pointer;
}

.dept-hitbox {
  pointer-events: all !important;
  cursor: pointer !important;
}

.dept-layer .dept-cad-lines,
.dept-layer path,
.dept-layer line {
  transition: stroke 0.25s ease, stroke-width 0.25s ease, filter 0.25s ease;
  pointer-events: none;
}

.dept-layer:hover .dept-cad-lines,
.dept-layer.active-highlight .dept-cad-lines {
  stroke: #00e5ff !important;
  stroke-width: 2.6px !important;
  filter: drop-shadow(0 0 10px #00e5ff) drop-shadow(0 0 3px #ffffff) !important;
}
.dept-hitbox,
.plan-custom-zone,
.plan-custom-region path,
.plan-unit-interaction-outline path {
  fill: transparent !important;
  stroke: transparent !important;
  stroke-width: 0 !important;
  pointer-events: all !important;
  cursor: pointer !important;
  filter: none !important;
  transition: all 0.25s ease !important;
}

.plan-custom-zone:hover,
.plan-custom-region path:hover,
.plan-unit-interaction-outline path:hover {
  fill: rgba(0, 229, 255, 0.08) !important;
  stroke: #00e5ff !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.75)) !important;
}
.block-stepped-backdrop.active-block-backdrop .plan-custom-zone {
  fill: rgba(0, 119, 200, 0.14) !important;
  stroke: #0077c8 !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 8px rgba(0, 119, 200, 0.5)) !important;
}
.plan-native-line-highlight,
.plan-native-selection-use {
  pointer-events: none !important;
}
.plan-native-unit-source .dept-hitbox {
  pointer-events: none !important;
}
.plan-native-unit-source.active-highlight .dept-cad-lines,
.plan-native-unit-source.active-highlight path:not(.dept-hitbox),
.plan-native-unit-source.active-highlight line {
  stroke: #0077c8 !important;
  stroke-width: 2.6px !important;
  filter: drop-shadow(0 0 8px rgba(0, 119, 200, 0.45)) !important;
}

/* TOOLTIP TÉCNICO FLOTANTE SIN INTERFERENCIA DE CURSOR (ZERO FLICKER) */
#blueprint-unit-tooltip {
  position: absolute;
  pointer-events: none !important;
  user-select: none;
  z-index: 100;
  display: none;
  background: #ffffff;
  color: var(--brand-navy);
  border: 1.5px solid var(--brand-blue);
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 12px 30px rgba(0, 43, 77, 0.18);
  backdrop-filter: blur(8px);
  max-width: 320px;
  transform: translate(16px, 16px);
  transition: opacity 0.15s ease;
}
#blueprint-unit-tooltip strong {
  color: var(--brand-navy) !important;
}
#blueprint-unit-tooltip small {
  color: #64748b !important;
}

/* LIGHTBOX MODAL DE FOTOGRAFÍAS HD */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 15, 30, 0.96);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-title-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
}

.urban-block-nav-bar {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 43, 77, 0.06);
  padding: 6px;
  margin-bottom: 16px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.urban-block-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  background: transparent;
  color: var(--brand-slate);
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.urban-block-btn .block-btn-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--brand-blue);
  opacity: 0.85;
}

.urban-block-btn-all {
  border-left: 1px solid #e2e8f0;
  margin-left: 2px;
  padding-left: 18px;
}

.block-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.2;
}

.block-btn-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: inherit;
}

.block-btn-badge {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-slate);
  letter-spacing: 0.1px;
}

.urban-block-btn:hover {
  background: var(--bg-surface);
  border-color: #e2e8f0;
}

.urban-block-btn.active-block {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.urban-block-btn.active-block .block-btn-icon {
  color: #ffffff;
  opacity: 1;
}

.urban-block-btn.active-block .block-btn-title {
  color: #ffffff;
}

.urban-block-btn.active-block .block-btn-badge {
  color: rgba(255, 255, 255, 0.72);
}

.badge-immediate {
  background: rgba(140, 198, 63, 0.18);
  color: #547c1f;
}

.lightbox-counter-badge {
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #ff4757;
  transform: scale(1.1);
}

.lightbox-main-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.lightbox-img-wrapper {
  max-width: 85vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.lightbox-arrow-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  z-index: 10;
  user-select: none;
}

.lightbox-arrow-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: scale(1.15);
}

.lightbox-filmstrip {
  display: flex;
  gap: 8px;
  padding: 12px 20px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow-x: auto;
  scrollbar-width: thin;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 52px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb:hover {
  opacity: 0.85;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .lightbox-filmstrip {
    padding: 10px 12px 14px;
  }
  .lightbox-thumb {
    width: 54px;
    height: 42px;
  }
}

/* CARD PULSE HIGHLIGHT EFFECT WHEN SCROLLING FROM BLUEPRINT */
.card-highlight-pulse {
  animation: pulseCardGlow 2.5s ease;
}

@keyframes pulseCardGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 119, 200, 0.8);
    border-color: var(--brand-blue);
    transform: scale(1.02);
  }
  50% {
    box-shadow: 0 0 35px 8px rgba(140, 198, 63, 0.4);
    border-color: var(--brand-green);
    transform: scale(1.03);
  }
  100% {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
    transform: scale(1);
  }
}

/* BADGE DE UBICACIÓN POR BLOQUE EN TARJETAS DE INVENTARIO */
.block-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-filter-all-blocks {
  background: #002b4d;
  color: #ffffff;
  border: 1.5px solid var(--brand-blue);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-all-blocks:hover,
.btn-filter-all-blocks.active-block {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 119, 200, 0.3);
}

@media (max-width: 768px) {
  .lightbox-top-bar { padding: 12px 14px; }
  .lightbox-info {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .lightbox-title-text {
    max-width: 72vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
  }
  .lightbox-main-stage { padding: 10px 4px; }
  .lightbox-img-wrapper { max-width: 100vw; }
  .lightbox-arrow-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .lightbox-arrow-btn.prev-btn { left: 10px; }
  .lightbox-arrow-btn.next-btn { right: 10px; }
}

/* ==========================================================================
   SUPRESIÓN PERMANENTE DEL MODAL OBSOLETO
   ========================================================================== */
#project-details-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* ==========================================================================
   VISTA DEDICADA DE PROYECTO DINÁMICO (SANTANA PROJECT SUITE)
   ========================================================================== */
.project-top-nav-bar {
  /* Sin fondo propio: la foto del hero sube por debajo tanto de esta barra
     como del header (ver margin-top negativo en .terrazas-hero-banner y
     header-on-hero en app.js), igual que en el hero de Inicio, en vez de
     verse como una franja de color aparte. */
  position: relative;
  z-index: 3;
  background: transparent;
  padding: 12px 0;
}
.project-top-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-back-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Sin la franja oscura detrás, este chip necesita su propio fondo sólido
     para leerse bien sobre cualquier foto, no solo un tinte translúcido. */
  background: rgba(0, 23, 43, 0.72);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-back-portfolio:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}
.project-status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 122, 64, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Barra de Especificaciones Rápidas */
.project-specs-strip {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  padding: 24px 0;
}
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.project-spec-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-blue);
  min-width: 0;
  overflow: hidden;
}
.project-spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-slate);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-spec-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

/* Memoria de Acabados & Amenidades */
.project-features-section {
  padding: 50px 0;
  background: #f8fafc;
}
.project-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.project-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.project-feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--brand-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-feature-card p {
  color: #475569;
  line-height: 1.65;
  font-size: 0.95rem;
  white-space: pre-line;
}
.project-amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.project-amenities-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-navy);
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}
.project-amenities-list li svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

.project-amenities-list li.is-view-highlight {
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  border: 1px solid rgba(0, 119, 200, 0.25);
  font-weight: 800;
}

.project-amenities-list li.is-view-highlight svg {
  color: var(--brand-blue);
}

/* Galería Comercial del Proyecto */
.project-gallery-section {
  padding: 50px 0;
  background: #ffffff;
}
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.project-gallery-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  cursor: pointer;
  background: #0f172a;
}
.project-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.project-gallery-thumb:hover img {
  transform: scale(1.05);
}
.project-gallery-thumb .thumb-zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 6px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.project-gallery-thumb:hover .thumb-zoom-icon {
  opacity: 1;
}

/* Ubicación y Entorno */
.project-location-section {
  padding: 50px 0;
  background: #f8fafc;
}
.project-location-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.project-location-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--brand-navy);
  margin-bottom: 8px;
}
.project-location-info p {
  color: var(--text-slate);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.btn-maps-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-green);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.25);
  transition: all 0.2s ease;
}
.btn-maps-action:hover {
  background: #008f4c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 168, 89, 0.35);
}

.blueprint-empty-notice {
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  color: var(--text-slate);
}
.blueprint-empty-notice strong {
  display: block;
  font-size: 1.1rem;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

/* ==========================================================================
   ESTILOS PREMIUM: CABECERA LUMINOSA CORPORATIVA & MAPA DE RADAR EN HERO
   ========================================================================== */
.terrazas-hero-banner {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fc 55%, #e9f2f8 100%) !important;
  color: var(--brand-navy) !important;
  /* Sube por debajo de .project-top-nav-bar Y del header (ambos ya quedaron
     transparentes) para que la foto sea una sola imagen continua desde arriba
     de la página, igual que en el hero de Inicio, en vez de verse como
     bloques de color separados. 84px header + 58px barra superior. */
  margin-top: -142px;
  padding: 196px 0 70px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  isolation: isolate;
}

.terrazas-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--project-hero-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.terrazas-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 251, 253, 0.6) 50%, rgba(235, 245, 251, 0.42) 100%);
  pointer-events: none;
  z-index: 1;
}

.terrazas-grid-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.terrazas-badge {
  background: rgba(0, 114, 206, 0.1) !important;
  color: var(--brand-blue) !important;
  border: 1px solid rgba(0, 114, 206, 0.25) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.terrazas-hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem !important;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--brand-navy) !important;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.terrazas-hero-title span {
  color: var(--brand-green) !important;
}

.terrazas-hero-desc {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #475569 !important;
  margin-bottom: 24px;
  max-width: 580px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Recuadro Hero: Mapa de Entorno con Servicios, Calles y Radar */
.project-hero-map-wrapper {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 43, 77, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  position: relative;
}

.project-hero-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.project-hero-map-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 0 rgba(0, 168, 89, 0.7);
  animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 89, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 168, 89, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 168, 89, 0); }
}

.btn-hero-maps-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  background: #eef6fc;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #d0e4f5;
  transition: all 0.2s ease;
}

.btn-hero-maps-link:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

.project-hero-radar-canvas {
  position: relative;
  flex: 1;
  min-height: 270px;
  background: linear-gradient(145deg, #f8fcfe, #eef5f9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-radar-footer {
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.project-hero-radar-address {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CAJA DE IMPLANTACIÓN URBANA (FONDO CLARO ARQUITECTÓNICO) */
.urban-implantation-box {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 30, 60, 0.06) !important;
  margin-bottom: 36px;
}

.urban-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 30px;
  padding: 10px 24px;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.urban-pill-tag {
  background: #ffffff !important;
  color: var(--brand-navy) !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.urban-pill-tag.center-tag {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  font-weight: 800;
  border: none !important;
}

.urban-pill-tag.rear-tag {
  background: rgba(0, 168, 89, 0.12) !important;
  color: var(--brand-green) !important;
  border: 1px solid rgba(0, 168, 89, 0.3) !important;
}

@media (max-width: 900px) {
  .terrazas-grid-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .terrazas-hero-banner {
    margin-top: -130px !important;
    padding: 184px 0 70px !important;
  }
}


/* ==========================================
   CATÁLOGO DE PRODUCTOS (SANTANA TECH)
   ========================================== */
.products-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.products-eyebrow-suffix {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.products-eyebrow-suffix:empty { display: none; }

.products-page-section {
  background: var(--bg-surface);
  min-height: 80vh;
  padding: 60px 0;
}

.products-page-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.products-page-head h2 {
  font-size: 2.2rem;
  color: var(--brand-navy);
}

.products-page-head p {
  color: var(--text-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

.products-catalog-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 20px;
  font-size: 0.88rem;
}

.products-catalog-download[hidden] { display: none; }

.products-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.products-filter-bar[hidden] { display: none; }

.products-filter-pill {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 8px 18px;
  font: 700 0.82rem var(--font-main);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.products-filter-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.products-filter-pill.is-active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}

.products-grid-featured { margin-bottom: 0; }

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.product-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  background: var(--bg-surface);
  cursor: pointer;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-media img { transform: scale(1.04); }

.product-card-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.4rem;
  color: var(--border-subtle);
}

.product-card-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 43, 77, 0.9);
  color: #ffffff;
  font: 700 0.66rem var(--font-main);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.product-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.product-card-tagline {
  font-size: 0.86rem;
  color: var(--text-slate);
  line-height: 1.45;
}

.product-card-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card-highlights li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-navy);
  background: var(--brand-blue-light);
  padding: 4px 9px;
  border-radius: 6px;
}

.product-card-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-actions .btn,
.product-card-actions .btn-wa-unit {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.84rem;
  text-align: center;
}

.products-cta-banner { margin-top: 8px; }

/* Sección de productos en la página de inicio */
.home-products-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 56px 0;
}

.home-products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.home-products-head h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 4px 0;
}

.home-products-head p {
  color: var(--text-slate);
  font-size: 0.92rem;
  max-width: 620px;
}

.home-products-link {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Vista de catálogo del inicio: sin caja de tarjeta (ni borde, ni sombra,
   ni fondo propio) — la foto y el texto se abren lado a lado como una
   página de catálogo impreso, alternando de lado en cada fila, en vez de
   apilarse en una cuadrícula de tarjetas iguales. */
/* #home-featured-projects reutiliza la clase .web-cards-grid (cuadrícula de
   2 columnas de tarjetas de la página de Portafolio); aquí se anula por id
   porque ahora contiene la misma fila abierta que #home-featured-products,
   no tarjetas en caja. */
#home-featured-projects,
#home-featured-products {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-product-row {
  display: grid;
  grid-template-columns: minmax(200px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.home-product-row + .home-product-row {
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

/* "order" también reordena en qué columna del grid cae cada elemento, así
   que la fila volteada necesita las columnas en espejo — si no, la foto
   termina en la columna sin límite de tamaño (por eso salía gigante). */
.home-product-row.is-reversed {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 380px);
}
/* Por posición, no por nombre de clase: así funciona igual para una sola
   foto (.home-product-media) que para el mosaico de varias fotos
   (.home-project-gallery) del inicio. */
.home-product-row > *:first-child { order: 1; }
.home-product-row > *:last-child { order: 2; }
.home-product-row.is-reversed > *:first-child { order: 2; }
.home-product-row.is-reversed > *:last-child { order: 1; }

.home-product-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
}

.home-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-product-media:hover img {
  transform: scale(1.03);
}

.home-product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-product-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.home-product-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.15;
  margin-top: 2px;
}

.home-product-tagline {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-slate);
  max-width: 42ch;
  line-height: 1.5;
}

.home-product-link {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.home-product-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .home-product-row,
  .home-product-row.is-reversed {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-product-row.is-reversed > *:first-child,
  .home-product-row.is-reversed > *:last-child {
    order: initial;
  }
  .home-product-row + .home-product-row {
    padding-top: 32px;
  }
  #home-featured-projects,
  #home-featured-products {
    gap: 32px;
  }
}

/* Ventana de detalle del producto */
.product-modal-card { max-width: 980px; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.product-detail-gallery {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-thumb {
  width: 68px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb:hover { border-color: var(--brand-blue-light); }
.product-thumb.is-active { border-color: var(--brand-blue); }

.product-detail-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.15;
  margin: 4px 0;
}

.product-detail-tagline {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.product-detail-text p {
  color: var(--text-slate);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.product-detail-heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand-green);
}

.product-spec-row {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.86rem;
}

.product-spec-row dt { color: var(--text-slate); font-weight: 600; }
.product-spec-row dd { color: var(--brand-navy); font-weight: 600; margin: 0; }
.product-spec-plain { display: block; }

.product-feature-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.product-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.product-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-green-dark);
  font-weight: 800;
}

.product-feature-list strong { color: var(--brand-navy); margin-right: 6px; }
.product-feature-list span { color: var(--text-slate); }

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.product-detail-actions .btn,
.product-detail-actions .btn-wa-unit {
  flex: 1 1 200px;
  padding: 12px 16px;
  text-align: center;
}

@media (max-width: 820px) {
  .products-page-section { padding: 40px 0; }
  .products-page-head h2 { font-size: 1.8rem; }
  .home-products-section { padding: 40px 0; }
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .product-detail-gallery { position: static; }
  .product-detail-title { font-size: 1.4rem; }
  .product-spec-row { grid-template-columns: 1fr; gap: 2px; }
  .products-cta-banner { flex-direction: column; text-align: center; padding: 24px 18px; }
  .products-cta-banner a { width: 100%; }
}

/* Menú principal compacto: con 8 enlaces el encabezado no cabe en pantallas medianas */
@media (min-width: 901px) and (max-width: 1600px) {
  .nav-wrapper { gap: 14px; }
  .main-nav ul { gap: 2px; }
  .main-nav a.tab-nav-link { padding: 8px 9px; font-size: 0.86rem; }
  .main-nav a.tab-nav-link.active::after { left: 9px; right: 9px; }
  .nav-highlight-pill { padding: 8px 12px !important; }
  .btn-header-cta { padding: 9px 16px; font-size: 0.85rem; }
}

@media (min-width: 901px) and (max-width: 1400px) {
  .btn-header-cta { display: none; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .brand-name { display: none; }
  .main-nav a.tab-nav-link { padding: 8px 6px; font-size: 0.82rem; }
  .main-nav a.tab-nav-link.active::after { left: 6px; right: 6px; }
}

/* ==========================================
   PRODUCTOS · SELECTOR DE VISTA Y CATÁLOGO POR CATEGORÍA
   ========================================== */

.products-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.products-toolbar .products-filter-bar { margin-bottom: 0; }
.products-grid[hidden] { display: none; }

.products-view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.products-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text-slate);
  font: 700 0.84rem var(--font-main);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.products-view-btn:hover { color: var(--brand-navy); }
.products-view-btn[aria-pressed="true"] { background: var(--brand-navy); color: #ffffff; }
.products-view-btn:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* --- Vista Catálogo: acordeón por categoría, misma línea gráfica del sitio --- */
.pcat[hidden] { display: none; }

.pcat-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pcat-cat {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.pcat-cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.pcat-cat-header:hover { background: var(--bg-surface); }

.pcat-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  flex-shrink: 0;
}

.pcat-cat-name {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pcat-cat-count {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-slate);
  background: var(--bg-surface);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pcat-cat-chevron {
  color: var(--brand-navy);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.pcat-cat.is-open .pcat-cat-header { border-bottom: 1px solid var(--border-subtle); }
.pcat-cat.is-open .pcat-cat-chevron { transform: rotate(180deg); }

.pcat-cat-panel {
  padding: 24px 20px;
  background: var(--bg-surface);
}

.pcat-cat-panel .products-grid { margin: 0; }

@media (max-width: 600px) {
  .pcat-cat-header { padding: 13px 14px; gap: 10px; }
  .pcat-cat-icon { width: 34px; height: 34px; }
  .pcat-cat-name { font-size: 0.9rem; }
  .pcat-cat-panel { padding: 16px 12px; }
}

