/* =========================================================
   NOCITO GRUPO — Sistema de diseño base
   Replica del sitio Wix. Colores aproximados a partir de
   capturas — ver README.md. Tipografía: Archivo (variable).
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-Variable.ttf') format('truetype-variations'),
       url('../assets/fonts/Archivo-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-Italic-Variable.ttf') format('truetype-variations'),
       url('../assets/fonts/Archivo-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #000000;
  --near-black: #0a0a0a;
  --card-dark: #2b2b2b;
  --card-dark-alt: #333333;
  --white: #ffffff;
  --orange: #ff6a1a;
  --orange-dark: #e35a00;
  --gray-text: #b3b3b3;
  --gray-line: #3a3a3a;

  --font: 'Archivo', 'Segoe UI', Arial, sans-serif;
  --weight-bold: 700;      /* Titulares */
  --weight-semibold: 600;  /* Titulares (alternativa) */
  --weight-medium: 500;    /* Bajadas */
  --weight-regular: 400;   /* Párrafos */

  --container: none;
  --pad: clamp(20px, 9vw, 240px);

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --header-h: 89px;
}

* { box-sizing: border-box; }

/* Los form controls no heredan font-family por defecto en los navegadores
   (usan la fuente del sistema) — sin esto, botones, inputs y selects se
   ven con una tipografía distinta al resto del sitio (no Archivo). */
button, input, textarea, select { font-family: inherit; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--weight-bold);
  line-height: 1.083; /* ~52/48 */
  letter-spacing: -0.02em; /* -20/1000 */
}
h2 { font-size: clamp(28px, 4vw, 44px); }

section { position: relative; }

.section-pad { padding: clamp(48px, 8vw, 96px) 0; }
/* Desktop: acercar "Lo que construimos" a la grilla de proyectos. */
@media (min-width: 761px) {
  #estado-proyecto + .section-pad { padding-top: clamp(24px, 3vw, 36px); }
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.eyebrow-row h2 { font-size: clamp(28px, 4vw, 44px); }

.arrow-badge {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid var(--gray-line);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.arrow-badge svg { transition: transform 0.35s ease; }
.eyebrow-row:hover .arrow-badge svg,
.arrow-badge:hover svg { transform: rotate(90deg); }

/* ---------- Placeholder de asset (foto / video / logo) ---------- */
.asset-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, #1c1c1c 0 12px, #202020 12px 24px);
  color: var(--gray-text);
  border: 1px dashed #4a4a4a;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 100%;
  width: 100%;
}
.asset-placeholder__label {
  padding: 10px 14px;
  background: rgba(0,0,0,0.55);
  border-radius: 8px;
  max-width: 80%;
}

/* ---------- Header / Nav ---------- */
/* Nav fija en todo el sitio: se oculta al scrollear hacia abajo y reaparece
   al scrollear hacia arriba o al llevar el mouse al borde superior (JS:
   initStickyHeader). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--gray-line);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header--hidden { transform: translateY(-100%); }

/* Compensar el alto de la nav fija (salvo en el home, cuyo hero pasa por debajo) */
body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }

/* Home: la nav flota sobre el carrusel del hero con efecto glass; los botones
   siguen legibles. Al dejar atrás el hero pasa a sólida (.site-header--solid). */
.site-header--hero {
  background: rgba(10, 10, 10, 0.32);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-header--hero.site-header--solid {
  background: var(--black);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--gray-line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo-mark { width: 48px; height: 48px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}
.nav-links a:hover {
  border-bottom-color: var(--white);
}
.nav-links a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 2px;
}
.nav-dropdown-toggle svg { transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 160px;
  background: var(--orange);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 14px 20px;
  color: var(--black);
  font-weight: 700;
}
.nav-dropdown-menu a:hover { background: rgba(0,0,0,0.12); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  flex: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-cta:hover { background: var(--orange); color: var(--black); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

@media (max-width: 860px) {
  /* El menú mobile es `position: fixed` y vive dentro del <header>. Si el
     header tiene backdrop-filter (glass del home), se vuelve el bloque
     contenedor de sus descendientes fixed y el menú queda recortado a la
     altura de la nav. Por eso acá el header del home NO usa glass. */
  .site-header--hero {
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--pad) 32px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links > a,
  .nav-dropdown { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--gray-line); }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 0; }
  .nav-dropdown-menu {
    position: static;
    margin-top: 12px;
    box-shadow: none;
  }
  .nav-toggle { display: block; }
  .header-cta { padding: 8px 12px; font-size: 12px; gap: 4px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding-top: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.breadcrumb a { color: var(--gray-text); }
.breadcrumb .current { color: var(--white); font-weight: 700; }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  background: var(--black);
  padding-bottom: clamp(8px, 1.5vw, 20px);
}
.hero-content {
  padding-top: clamp(56px, 9vw, 96px);
  width: 100%;
}
.hero-title {
  font-size: clamp(38px, 6.4vw, 124px);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  opacity: 0;
  animation: heroTitleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-title strong { display: block; font-weight: var(--weight-regular); }
@media (max-width: 760px) {
  .hero-title { white-space: normal; }
  .hero-content { padding-top: 20px; }
  .hero-visual { margin-top: 20px; }
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title { opacity: 1; animation: none; }
}

/* Botón + video: el botón se superpone a la esquina superior izquierda
   (cuadrada) del video. Como el fondo del bolsillo y el fondo de la
   página son el mismo negro, se funden sin necesidad de ninguna máscara. */
.hero-visual {
  position: relative;
  margin-top: 40px;
}
.hero-cta-area {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: inline-flex;
  padding: 14px;
  background: var(--black);
  border-radius: 0 44px 44px 0;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
}
.btn-pill svg { flex: none; }

.hero-video-box {
  position: relative;
  background: var(--black);
  padding: 14px;
  border-radius: 0 44px 44px 44px;
  overflow: hidden;
  min-height: 460px;
}
.hero-video-box video {
  width: 100%;
  height: 100%;
  min-height: 432px;
  object-fit: cover;
  display: block;
  border-radius: 0 32px 32px 32px;
}
/* Mobile: el rounded externo del video baja a 20px (igual que las cards de
   estadísticas). Va después de las reglas base para ganar por orden. */
@media (max-width: 760px) {
  .hero-cta-area { border-radius: 0 20px 20px 0; }
  .hero-video-box { border-radius: 0 20px 20px 20px; }
  .hero-video-box video { border-radius: 0 20px 20px 20px; }
}

/* ---------- Hero · carrusel full-bleed detrás de la nav ----------
   Rollback del hero anterior: memoria "home-hero-pre-carousel" +
   .claude/backups/home-hero-header_pre-carousel_2026-09-01.css.txt */
.hero--carousel {
  position: relative;
  min-height: clamp(460px, 56vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
  background: #0c0c0c;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 16%),
    linear-gradient(to right, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.36) 42%, rgba(0, 0, 0, 0.1) 78%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 46%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(104px, 13vh, 148px);
  padding-bottom: clamp(64px, 9vh, 104px);
}
.hero-caption { display: none; }
.hero-caption.is-active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero--carousel .hero-title {
  color: var(--white);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.hero-caption-title {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: var(--weight-semibold);
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}
.hero-caption-text {
  margin: 12px 0 0;
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-line;
}
.hero-pill { margin-top: clamp(18px, 2.6vw, 28px); }
.hero-controls {
  position: absolute;
  right: clamp(16px, 5vw, 64px);
  bottom: clamp(20px, 5vh, 48px);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.24); }
.hero-arrow:active { transform: scale(0.94); }

/* Puntos del carrusel — reemplazan a las flechas en mobile/tablet */
.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(20px, 5vh, 48px);
  z-index: 3;
  display: none;
  gap: 11px;
  align-items: center;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active { background: var(--white); transform: scale(1.15); }

@media (max-width: 1024px) {
  .hero-controls { display: none; }
  .hero-dots { display: flex; }
}
@media (max-width: 760px) {
  .hero--carousel { min-height: clamp(400px, 62vh, 520px); }
  .hero-inner { padding-top: 104px; padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ---------- Estado del proyecto ---------- */
.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.status-filter {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.status-filter.active,
.status-filter:hover {
  background: var(--white);
  color: var(--black);
}

/* Mobile: fila única deslizable (chips tipo filtro), sin desprolijidad de
   varias líneas con anchos distintos. El scroll es interno: no debe mover
   la página. */
@media (max-width: 600px) {
  .status-header { display: block; }
  .status-header > div { min-width: 0; max-width: 100%; }
  .status-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .status-filters::-webkit-scrollbar { display: none; }
  .status-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 9px 15px;
    font-size: 12px;
    letter-spacing: 0.04em;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
  }
  .status-filter.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--black);
    font-weight: var(--weight-semibold);
  }
  .status-filter:hover { background: transparent; color: rgba(255, 255, 255, 0.85); }
  .status-filter.active:hover { background: var(--orange); color: var(--black); }
}

.status-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.status-decor { display: flex; }
/* Círculos decorativos: solo en desktop */
@media (max-width: 1024px) {
  .status-decor { display: none; }
}
.status-decor span {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  opacity: 0;
  transform: translateX(160px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.status-decor span:nth-child(1) { background: var(--white); z-index: 2; }
.status-decor span:nth-child(2) {
  background: var(--orange);
  margin-left: -1px;
  z-index: 1;
  transition-delay: 0.18s;
}
.status-header.is-visible .status-decor span {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .status-decor span { opacity: 1; transform: none; transition: none; }
}

.project-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
}
/* Tablet: una card por fila, con ancho acotado para que se lea igual
   que en desktop (a 2 columnas la card queda muy angosta y se rompe). */
@media (min-width: 601px) and (max-width: 1024px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   Project card · rediseño (foto vertical + overlay tipo listing)
   Backups: .claude/backups/project-card-styles_2col_2026-09-02.css.txt
            .claude/backups/project-card-styles_2026-09-01.css.txt (original)
   ============================================================ */
.project-card {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card-dark);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover { transform: translateY(-4px); }

.project-card-img,
.project-card .asset-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.project-card-img {
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-card-img { transform: scale(1.05); }

.project-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--white);
  color: #1b1b1b;
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.project-card-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.project-card-logo {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-brand {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.project-card-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 72px 22px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.88) 24%,
    rgba(0, 0, 0, 0.68) 44%,
    rgba(0, 0, 0, 0.32) 66%,
    rgba(0, 0, 0, 0) 100%);
}

.project-card-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card-price {
  font-size: 30px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--white);
}

.project-card-titles {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: right;
}
.project-card-address {
  font-size: 15px;
  font-weight: var(--weight-regular);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}
.project-card-hood {
  font-size: 15px;
  font-weight: var(--weight-regular);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.66);
}

.project-card-stats {
  display: flex;
  gap: 26px;
}
.project-card-stat {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pc-stat-ico {
  width: 23px;
  height: 23px;
  flex: none;
  color: rgba(255, 255, 255, 0.9);
}
.pc-stat-val {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  color: var(--white);
  white-space: nowrap;
}

.project-card[hidden] { display: none; }

@media (max-width: 600px) {
  .project-card { aspect-ratio: 5 / 6; }
  .project-card-scrim { padding: 64px 18px 18px; gap: 14px; }
  .project-card-price { font-size: 22px; line-height: 1.22; }
  .project-card-address,
  .project-card-hood { font-size: 13px; line-height: 1.28; }
  .pc-stat-val { font-size: 14.5px; }
  .pc-stat-ico { width: 20px; height: 20px; }
}

/* ---------- Lo que construimos ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 55%),
    var(--card-dark);
  display: flex;
  flex-direction: column;
  min-height: 190px;
}
.stat-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 32px 24px 16px;
}
.stat-number { font-size: clamp(32px, 3vw, 42px); line-height: 1.08; font-weight: var(--weight-bold); color: var(--orange); }
.stat-unit { display: block; font-size: 0.46em; font-weight: var(--weight-semibold); letter-spacing: 0.02em; margin-top: 3px; }
.stat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 10.5px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gray-text);
  transition: background 0.2s ease, color 0.2s ease;
}
.stat-footer span { display: inline-block; transition: transform 0.25s ease; }
.stat-card:hover .stat-footer {
  background: var(--white);
  color: var(--black);
}
.stat-card:hover .stat-footer span { transform: rotate(-90deg); }

.map-wrap {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
}
#map { width: 100%; height: 100%; background: #1a1a1a; }
.leaflet-popup-content-wrapper { background: var(--card-dark); color: var(--white); border-radius: 10px; }
.leaflet-popup-tip { background: var(--card-dark); }
.map-popup strong { display: block; margin-bottom: 4px; }
.map-popup-status { display: inline-block; margin: 5px 0; font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange); }
.map-popup a { color: var(--orange); font-size: 13px; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--gray-line); }
.footer-grid {
  display: grid;
  grid-template-columns: 140px 1.3fr 1fr 1fr;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-body { padding: 24px 24px 18px; }
  .stat-number { font-size: 42px; }
  .stat-footer { padding: 14px 24px; font-size: 12px; letter-spacing: 0.03em; }
}
.footer-logo { width: 96px; height: 96px; }
.footer-col h4 {
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col p { margin: 0 0 16px; font-size: 14px; color: #d8d8d8; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; text-decoration: underline; text-underline-offset: 3px; }
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--gray-line);
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-text);
}
.footer-bottom .legal-links a { margin-right: 24px; text-decoration: underline; }
.footer-bottom .legal-links a:hover { color: var(--white); }

/* ---------- Legal (Términos / Privacidad) ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.legal-page .lead { font-size: 15px; color: var(--gray-text); margin-bottom: 48px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 20px; margin-top: 40px; margin-bottom: 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 15px; line-height: 1.6; color: #d8d8d8; margin: 0 0 16px; }
.legal-body a { text-decoration: underline; }
.legal-body a:hover { color: var(--orange); }
.footer-bottom-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  flex: 1;
}
.back-to-top {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-line);
  background: none;
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.back-to-top:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
  transform: translateY(-3px);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 400;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}
@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: 90px; width: 52px; height: 52px; }
}

.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.social-row a:hover { background: var(--orange); }

/* ---------- Empresa: hero gradiente ---------- */
.hero-glow {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,106,26,0.35) 0%, rgba(120,45,0,0.18) 35%, rgba(0,0,0,0) 65%),
    var(--black);
  text-align: center;
  padding: clamp(64px, 10vw, 120px) 0 40px;
}
.hero-glow .container { position: relative; }
.hero-glow-ring-wrap {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(calc(-50% + var(--px, 0px)), var(--py, 0px));
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hero-glow-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,26,0.55) 0%, rgba(255,106,26,0.18) 55%, rgba(255,106,26,0) 75%);
  animation: heroRingBreathe 4.5s ease-in-out infinite;
}
@keyframes heroRingBreathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}
.hero-glow-text {
  position: relative;
  z-index: 1;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.hero-glow h1 {
  font-size: clamp(32px, 5vw, 56px);
  max-width: 780px;
  margin: 0 auto;
}
.hero-glow .subtitle {
  margin-top: 28px;
  font-size: 18px;
  font-weight: var(--weight-medium);
}
.hero-glow-story {
  max-width: 768px;
  margin: 56px auto 0;
  text-align: left;
}
.hero-glow-story p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #cfcfcf;
}
.hero-glow-story p:last-child { margin-bottom: 0; }
@media (min-width: 761px) {
  .hero-glow-story { max-width: 922px; }
  .hero-glow-story p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow-ring { animation: none; }
}
.video-testimonial-wrap {
  max-width: 768px;
  margin: 72px auto 0;
  text-align: left;
}
@media (min-width: 761px) {
  .video-testimonial-wrap { max-width: 922px; }
}
.video-testimonial-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
  cursor: pointer;
  border: 1px solid var(--gray-line);
}
.video-testimonial-card .yt-meta {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0));
  font-size: 13px;
  z-index: 2;
}
.yt-meta img, .yt-meta .yt-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
}
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,0,0,0.85);
  display: grid;
  place-items: center;
  z-index: 2;
}
.video-testimonial-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- Empresa: Nuestras marcas · paneles expansibles (GSAP) ---------- */
.brand-panels {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  height: clamp(400px, 46vw, 480px);
}
.brand-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: flex-grow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 30%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.22) 100%);
  transition: opacity 0.5s ease;
}
.brand-panel:not(.is-active)::after { opacity: 0.8; }
.brand-panel.is-active .brand-panel-bg { transform: scale(1.07); }

.brand-panel-chip {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.brand-panel-chip svg { width: 25px; height: 25px; }

.brand-panel-inner {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  overflow: hidden;
}
.brand-panel-name {
  margin: 0;
  color: var(--white);
  font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-panel:not(.is-active) .brand-panel-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: flex-start;
}
.brand-panel-reveal {
  max-width: 460px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin-top 0.4s ease;
}
.brand-panel.is-active .brand-panel-reveal {
  max-height: 440px;
  opacity: 1;
  margin-top: 14px;
}
.brand-panel-tag {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: var(--weight-medium);
}
.brand-panel-bio {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}
.brand-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.brand-panel-actions a[aria-label] {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}
.brand-panel-actions a[aria-label]:hover { background: rgba(255, 255, 255, 0.26); }
.brand-panel-actions a[aria-label] svg { width: 16px; height: 16px; }
.brand-panel-cta {
  margin-left: 4px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: #141414;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.brand-panel-cta:hover { opacity: 0.85; }

@media (min-width: 821px) {
  .brand-panel.is-active { flex-grow: 4.2; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-panel, .brand-panel-bg { transition: none; }
}

/* ---- Mobile: acordeón vertical ---- */
@media (max-width: 820px) {
  .brand-panels {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .brand-panel {
    flex: none;
    min-height: 84px;
  }
  .brand-panel-inner {
    position: relative;
    inset: auto;
    padding: 20px 22px 22px;
  }
  /* En accordion el nombre va arriba: el logo se corre a la derecha para
     no pisarlo, y el nombre se centra verticalmente con el logo. */
  .brand-panel-chip { left: auto; right: 20px; top: 20px; }
  .brand-panel-name {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding-right: 62px;
  }
  .brand-panel:not(.is-active) .brand-panel-name {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .brand-panel-reveal { max-width: none; }
  .brand-panel.is-active .brand-panel-reveal { max-height: 620px; }
  .brand-panel::after { opacity: 1; }
  /* Al desplegar, oscurecer más la imagen para leer mejor */
  .brand-panel.is-active::after {
    background:
      linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
      linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 32%, rgba(0, 0, 0, 0.45) 64%, rgba(0, 0, 0, 0.3) 100%);
  }
}
.btn-outline {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--white);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}
.btn-outline:hover { background: var(--white); color: var(--black); }

/* ---------- Empresa: Nocito junto al arte ---------- */
.art-block { padding-top: 0; }
.art-block .art-intro {
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.7;
  max-width: 760px;
  margin-top: 18px;
}
.mural-gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .mural-gallery { grid-template-columns: 1fr; gap: 20px; }
}
.mural-card {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
}
.mural-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.mural-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mural-media .asset-placeholder { height: 100%; }
.mural-card:hover .mural-media img { transform: scale(1.05); }

.mural-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(20, 20, 20, 0.42);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.mural-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 40px 22px 20px;
  color: var(--white);
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.42) 42%,
    rgba(0, 0, 0, 0) 100%);
}
.mural-info::before {
  content: "";
  position: absolute;
  inset: -48px 0 0 0;
  z-index: -1;
  backdrop-filter: blur(11px) saturate(1.15);
  -webkit-backdrop-filter: blur(11px) saturate(1.15);
  -webkit-mask-image: linear-gradient(to top, #000 52%, transparent 100%);
  mask-image: linear-gradient(to top, #000 52%, transparent 100%);
  pointer-events: none;
}
.mural-name {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  color: var(--white);
}
.mural-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.35;
}
@media (max-width: 600px) {
  /* Mobile: mismo alto/ancho que las cards de proyectos */
  .mural-card { aspect-ratio: 5 / 6; }
  .mural-info { padding: 44px 20px 20px; }
  .mural-name { font-size: 19px; }
}

/* ---------- Contacto ---------- */
.contact-hero { padding: 56px 0 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.05fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}
@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-form-card { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; margin-top: 14px; }
  .contact-grid .contact-form-card { grid-column: auto; order: -1; margin-bottom: 8px; }
  .contact-hero { padding-top: 18px; }
  .breadcrumb { padding-top: 18px; }
}
.contact-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  margin-bottom: 24px;
}
.contact-hero .lead { font-size: 22px; font-weight: var(--weight-medium); color: #e2e2e2; }
.contact-hero .lead strong { display: block; font-weight: var(--weight-bold); color: var(--white); }
.contact-decor { margin-top: 48px; }

.contact-brand-block { margin-bottom: 32px; }
.contact-brand-block h3 {
  color: var(--orange);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-brand-block .sede { margin-bottom: 14px; }
.contact-brand-block .sede .label { font-size: 13px; color: var(--gray-text); margin-bottom: 2px; }
.contact-brand-block a,
.contact-brand-block .phone { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-brand-block .phone { font-weight: 700; }
.contact-brand-block a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contacto: formulario "Escribinos" ---------- */
.contact-form-section { padding-bottom: clamp(48px, 8vw, 96px); }
.contact-form-card {
  background: var(--card-dark);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  max-width: 760px;
}
.contact-form-card h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 32px; }
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: var(--weight-medium);
  margin-bottom: 8px;
}
.form-field label .req { color: var(--white); margin-left: 2px; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--card-dark-alt);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--weight-regular);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #8a8a8a; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--orange); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-submit-row { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 8px; }
.form-status { font-size: 13px; color: var(--gray-text); }
.btn-solid {
  padding: 14px 32px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--weight-bold);
  cursor: pointer;
}
.btn-solid:hover { background: var(--orange); color: var(--black); }

/* =========================================================
   Ajustes globales de mobile: laterales fijos en 20px y
   medianiles (gaps entre elementos) más ajustados (~16px).
   ========================================================= */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .project-grid { gap: 16px; }
  .stats-grid { gap: 16px; }
  .brand-grid { gap: 16px; }
  .footer-grid { gap: 16px 24px; }
  .contact-grid { gap: 28px; }
  .status-filters { gap: 8px; }
  .brand-detail-list { gap: 16px; }
  .social-row { gap: 10px; }
}

/* =========================================================
   Animación de entrada al scrollear (IntersectionObserver
   en js/main.js agrega .is-visible cuando el elemento entra
   en viewport). Sutil: opacidad + leve desplazamiento vertical.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Ficha de proyecto (PDP) — modal glass sobre el Home.
   Se abre para proyectos de Nocito Constructora. El fondo
   queda oscurecido + desenfocado, sin perder scroll ni estado.
   ========================================================= */
.pdp {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(0px, 4vh, 48px) clamp(0px, 4vw, 48px);
}
.pdp[hidden] { display: none; }
body.pdp-open { overflow: hidden; }
body.pdp-open .whatsapp-float,
body.pdp-open .site-header { pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }

.pdp-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.62);
  backdrop-filter: blur(7px) saturate(0.9);
  -webkit-backdrop-filter: blur(7px) saturate(0.9);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.pdp.is-open .pdp-scrim { opacity: 1; }

.pdp-dialog {
  position: relative;
  width: min(1000px, 100%);
  max-height: min(920px, 100%);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: rgba(22, 22, 24, 0.72);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.3s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
.pdp.is-open .pdp-dialog { opacity: 1; transform: none; }
.pdp.is-closing .pdp-dialog { opacity: 0; transform: translateY(10px) scale(0.99); transition-duration: 0.16s; }
.pdp.is-closing .pdp-scrim { opacity: 0; transition-duration: 0.16s; }

.pdp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.pdp-close:hover { background: rgba(0, 0, 0, 0.55); }
.pdp-close:active { transform: scale(0.92); }
.pdp-close svg { width: 18px; height: 18px; }

.pdp-content { overflow-y: auto; overscroll-behavior: contain; }
.pdp-content::-webkit-scrollbar { width: 10px; }
.pdp-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }

.pdp-hero {
  position: relative;
  min-height: clamp(220px, 34vh, 340px);
  display: flex;
  align-items: flex-end;
  padding: clamp(22px, 4vw, 40px);
  color: var(--white);
}
.pdp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.15) 100%);
}
.pdp-hero-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.pdp-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pdp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.pdp-hero h2 { margin: 0; font-size: clamp(26px, 3.6vw, 42px); font-weight: var(--weight-semibold); line-height: 1.06; }
.pdp-hero-hood { font-size: 15px; color: rgba(255, 255, 255, 0.72); }

.pdp-section { padding: clamp(22px, 3.5vw, 38px); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pdp-section:first-child { border-top: none; }
.pdp-section h3 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.pdp-desc { margin: 0; font-size: clamp(15px, 1.5vw, 16.5px); line-height: 1.65; color: rgba(255, 255, 255, 0.88); white-space: pre-line; }

.pdp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.pdp-fact {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pdp-fact dt { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-text); margin-bottom: 5px; }
.pdp-fact dd { margin: 0; font-size: 16px; font-weight: var(--weight-semibold); color: var(--white); }

/* Galería de fotos del edificio (scroll horizontal, clic = lightbox) */
.pdp-gallery-section { overflow: hidden; padding-top: clamp(18px, 3vw, 28px); padding-bottom: clamp(18px, 3vw, 28px); }
.pdp-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  margin-right: calc(-1 * clamp(22px, 3.5vw, 38px));
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.pdp-gallery::-webkit-scrollbar { height: 8px; }
.pdp-gallery::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 999px; }
.pdp-gallery-item {
  flex: 0 0 clamp(240px, 62%, 380px);
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-dark);
  cursor: zoom-in;
}
.pdp-gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform 0.4s ease; }
.pdp-gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .pdp-gallery-item { flex-basis: 82%; } }

/* Tipologías: fila de cards (browse, ~1,7 visibles, se cortan contra el
   borde del modal) + al hacer clic en una, debajo aparece SU desarrollo:
   el listado de unidades (piso / disposición / m² / valor). */
.pdp-tipos-section { overflow: hidden; }
.pdp-tipos {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  margin-right: calc(-1 * clamp(22px, 3.5vw, 38px));
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.pdp-tipos::-webkit-scrollbar { height: 8px; }
.pdp-tipos::-webkit-scrollbar-track { background: transparent; }
.pdp-tipos::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 999px; }

.pdp-tipo {
  flex: 0 0 clamp(230px, 60%, 300px);
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pdp-tipo:hover { border-color: rgba(255, 255, 255, 0.26); }
.pdp-tipo.is-active { border-color: var(--orange); background: rgba(255, 106, 26, 0.09); }
.pdp-tipo-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--card-dark); display: block; }
.pdp-tipo-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px 15px;
  flex: 1;
  min-width: 0;
}
.pdp-tipo-name { font-size: 16px; font-weight: var(--weight-semibold); color: var(--white); }
.pdp-tipo-priceline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pdp-tipo-price { font-size: 14px; font-weight: var(--weight-semibold); color: var(--orange); white-space: nowrap; }
.pdp-tipo-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}
.pdp-tipo-open svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.pdp-tipo.is-active .pdp-tipo-open { color: var(--orange); }
.pdp-tipo.is-active .pdp-tipo-open svg { transform: rotate(90deg); }

/* Panel de desarrollo de la tipología activa (ancho completo del modal) */
.pdp-tipo-detail { margin-top: 22px; }
.pdp-tipo-detail-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.pdp-tipo-detail-name { font-size: 17px; font-weight: var(--weight-semibold); color: var(--white); }
.pdp-tipo-detail-sub { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-text); }

.pdp-units {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
/* Desktop (>1024px): tabla alineada con encabezado de columnas. */
.pdp-unit {
  display: grid;
  grid-template-columns: 34px 56px minmax(110px, 1.2fr) 118px 128px minmax(92px, auto);
  gap: 8px 16px;
  align-items: center;
  padding: 13px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.pdp-unit:first-child { border-top: none; }
.pdp-unit-head {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-text);
  background: rgba(255, 255, 255, 0.03);
}
.pdp-unit-head span:last-child { text-align: right; }
.pdp-unit-tag {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--white);
}
.pdp-unit-fields { display: contents; }
.pdp-unit-f { min-width: 0; }
.pdp-unit-f i { display: none; }
.pdp-unit-f b { font-weight: var(--weight-semibold); color: var(--white); }
.pdp-unit-valor { justify-self: end; }
.pdp-unit-valor b { color: var(--orange); white-space: nowrap; }
.pdp-unit.is-out { color: rgba(255, 255, 255, 0.4); }
.pdp-unit.is-out .pdp-unit-tag { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.14); }
.pdp-unit.is-out .pdp-unit-f b { color: rgba(255, 255, 255, 0.4); font-weight: var(--weight-regular); }
.pdp-unit.is-out .pdp-unit-valor b { color: rgba(255, 255, 255, 0.4); }
.pdp-units-empty { margin: 0; padding: 18px; border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: var(--radius-md); font-size: 13.5px; color: var(--gray-text); }

.pdp-tipo-plano {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pdp-tipo-plano:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }

@media (max-width: 640px) {
  .pdp-tipo { flex-basis: 78%; }
}
/* Mobile + tablet: cada unidad funcional como una tarjetita — encabezado
   (letra + valor) y debajo una fila por dato (etiqueta izq / valor der).
   En desktop (>1024px) vuelve a ser una fila de tabla. */
@media (max-width: 1024px) {
  .pdp-units .pdp-unit-head { display: none; }
  .pdp-unit {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-areas: "tag valor" "fields fields";
    gap: 10px 12px;
    padding: 16px;
  }
  .pdp-unit-tag { grid-area: tag; align-self: center; }
  .pdp-unit-valor {
    grid-area: valor;
    align-self: center;
    justify-self: end;
  }
  .pdp-unit-valor b { font-size: 15px; }
  .pdp-unit-fields {
    grid-area: fields;
    display: block;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .pdp-unit-f {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
    font-size: 13.5px;
  }
  .pdp-unit-f i {
    display: inline;
    flex: none;
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-text);
  }
  .pdp-unit-f b { text-align: right; }
  .pdp-unit-valor i { display: none; }
  .pdp-unit.is-out .pdp-unit-f i { color: rgba(255, 255, 255, 0.4); }
}

.pdp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.pdp-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.pdp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pdp-list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; color: var(--gray-text); }
.pdp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
}

#pdp-map { height: 260px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
#pdp-map .leaflet-container { background: #0c0c0c; }

.pdp-cta {
  position: sticky;
  bottom: 0;
  z-index: 8;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px) clamp(22px, 3.5vw, 38px);
  background: rgba(20, 20, 22, 0.66);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06), 0 -16px 30px -12px rgba(0, 0, 0, 0.5);
}
/* Leaflet usa z-index altos en sus panes/controles; los contenemos para
   que nunca tapen el zócalo de CTA que va siempre por encima. */
#pdp-map { position: relative; z-index: 0; isolation: isolate; }
.pdp-cta a {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: var(--weight-bold);
  transition: opacity 0.2s ease, background 0.2s ease;
}
.pdp-cta .pdp-cta-primary { background: var(--orange); color: var(--black); }
.pdp-cta .pdp-cta-primary:hover { opacity: 0.9; }
.pdp-cta .pdp-cta-ghost { border: 1px solid rgba(255, 255, 255, 0.28); color: var(--white); }
.pdp-cta .pdp-cta-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.pdp-lightbox {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: clamp(64px, 12vh, 110px) clamp(28px, 9vw, 120px);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pdp-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.pdp-lightbox[hidden] { display: none; }
.pdp-lightbox-btn {
  position: absolute;
  top: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.pdp-lightbox-btn:hover { background: rgba(255, 255, 255, 0.24); }
.pdp-lightbox-btn:active { transform: scale(0.92); }
.pdp-lightbox-btn svg { width: 20px; height: 20px; }
.pdp-lightbox-back { left: 16px; }
.pdp-lightbox-close { right: 16px; }

.pdp-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease;
}
.pdp-lightbox-nav:hover { background: rgba(255, 255, 255, 0.26); }
.pdp-lightbox-nav svg { width: 22px; height: 22px; }
.pdp-lightbox-prev { left: clamp(6px, 3vw, 26px); }
.pdp-lightbox-next { right: clamp(6px, 3vw, 26px); }

.pdp-lightbox-dots {
  position: absolute;
  bottom: clamp(20px, 5vh, 44px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  align-items: center;
}
.pdp-lightbox-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pdp-lightbox-dot.is-active { background: var(--white); transform: scale(1.2); }

@media (max-width: 640px) {
  .pdp { padding: 0; align-items: stretch; }
  .pdp-dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
  .pdp.is-open .pdp-dialog { transform: none; }
  .pdp-cta a { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-scrim, .pdp-dialog { transition: opacity 0.15s ease; transform: none; }
  .pdp.is-open .pdp-dialog { transform: none; }
}
