/* ============================================================
   Zequeira 7054 · Naón Premium Residences
   AKPROP — sistema de diseño unificado
   ============================================================
   Índice:
   01. Custom Properties
   02. Reset + Base
   03. Tipografía
   04. Layout
   05. Componentes Globales (botones, chips, eyebrow)
   06. Navegación
   07. Hero
   08. Secciones (manifiesto → contacto)
   09. Footer
   10. Flotantes (WhatsApp, Lightbox)
   11. Animaciones
   12. Accesibilidad
   13. Responsive
   ============================================================ */


/* ================================================================
   01. CUSTOM PROPERTIES
   ================================================================ */

:root {
  /* Paleta de color */
  --ink:         #0e0e0e;
  --ink-2:       #1a1a1a;
  --ink-soft:    #3a3a3a;
  --ink-muted:   #8a8a8a;
  --paper:       #faf8f5;
  --paper-alt:   #f4f1ea;
  --paper-warm:  #efe9dd;
  --line:        #e2ddd4;
  --line-strong: #c9c3b8;
  --orange:      #ff6d00;
  --white:       #ffffff;
  --success:     #2d8a5f;
  --danger:      #c94a2e;

  /* Colores sobre fondos oscuros */
  --muted-d:  rgba(255, 255, 255, 0.55);
  --line-d:   rgba(255, 255, 255, 0.12);

  /* Aliases de compatibilidad */
  --bg:        var(--paper);
  --bg-soft:   var(--paper-alt);
  --bg-soft-2: var(--paper-warm);
  --muted:     var(--ink-muted);
  --accent:    var(--orange);
  --accent-2:  var(--danger);

  /* Tipografía */
  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans:  'Inter', system-ui, sans-serif;
  --f-mono:  'Space Mono', monospace;

  /* Layout */
  --container: 1280px;
  --pad-x:     24px;
  --radius:    4px;
  --radius-lg: 12px;
  --nav-h:     64px;

  /* Movimiento */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --reveal-y: 24px;

  /* z-index stack */
  /* wa-float=90  lb=200  vlb=202  mmenu=99  nav=100  skip=9999 */
}

@media (min-width: 768px) {
  :root {
    --pad-x: 40px;
    --nav-h: 76px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-x: 64px;
    --nav-h: 88px;
  }
}


/* ================================================================
   02. RESET + BASE
   ================================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  border: none;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

p {
  margin: 0;
}

/* <em> como énfasis visual naranja — intencional en este sistema */
em {
  font-weight: 400;
  font-style: italic;
  color: var(--orange);
}


/* ================================================================
   03. TIPOGRAFÍA
   ================================================================ */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

/* Display — usado en hero H1 con dos líneas */
.display {
  font-family: var(--f-serif);
  font-size: clamp(38px, 10vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .display {
    font-size: clamp(52px, 6vw, 72px);
  }
}

@media (min-width: 1440px) {
  .display {
    font-size: 80px;
  }
}

@media (min-width: 1920px) {
  .display     { font-size: 96px; }
  .h1          { font-size: 80px; }
  .h2          { font-size: 72px; }
  .h3          { font-size: 38px; }
  .lede        { font-size: 22px; }
  .manifesto p { font-size: 48px; }
}

/* H1 de secciones */
.h1 {
  font-family: var(--f-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .h1 {
    font-size: clamp(48px, 5.5vw, 80px);
  }
}

/* H2 de subsecciones */
.h2 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .h2 {
    font-size: clamp(36px, 4.5vw, 60px);
  }
}

/* H3 */
.h3 {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .h3 {
    font-size: clamp(22px, 2.8vw, 32px);
  }
}

/* Texto grande de apoyo */
.lede {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Texto atenuado */
.muted {
  color: var(--ink-muted);
}

/* Eyebrow — línea naranja + texto uppercase */
.eyebrow {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 1px;
  background: var(--orange);
}

/* Variante sobre fondos oscuros */
.eyebrow--light,
.eyebrow.l {
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow--light::before,
.eyebrow.l::before {
  background: var(--orange);
}


/* ================================================================
   04. LAYOUT
   ================================================================ */

/* Contenedor centrado — usado en todas las secciones */
.container,
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Sección base */
.section {
  padding-block: 56px;
}

@media (min-width: 768px) {
  .section {
    padding-block: 120px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 160px;
  }
}

/* Sección compacta — para secciones contiguas del mismo fondo */
.section--compact {
  padding-block: 40px;
}

@media (min-width: 768px) {
  .section--compact {
    padding-block: 56px;
  }
}

@media (min-width: 1024px) {
  .section--compact {
    padding-block: 72px;
  }
}

/* Modificadores de color de sección */
.dark,
.section--dark {
  background: var(--ink);
  color: var(--white);
}

.soft,
.section--soft {
  background: var(--paper-alt);
}

.soft-2,
.section--warm {
  background: var(--paper-warm);
}

/* Herencias de color dentro de secciones oscuras */
.dark .muted  { color: var(--muted-d); }
.dark .lede   { color: rgba(255, 255, 255, 0.82); }

/* Encabezado de sección */
.shead {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.shead .eyebrow {
  display: block;
  margin-bottom: 20px;
}

.shead h2 {
  margin-bottom: 0.35em;
}

/* Variante centrada (FAQ) */
.shead.center {
  margin-inline: auto;
  text-align: center;
}

.shead.center .eyebrow {
  justify-content: center;
}

.shead.center .eyebrow::before {
  display: none;
}

/* Descripción debajo del título de sección */
.shead__desc {
  margin-top: 14px;
}


/* ================================================================
   05. COMPONENTES GLOBALES
   ================================================================ */

/* --- 05a. Botones --- */

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s,
    border-color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.btn-primary,
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(232, 89, 60, 0.55);
}

.btn-primary:hover,
.btn--primary:hover {
  box-shadow: 0 14px 36px -10px rgba(232, 89, 60, 0.75);
  transform: translateY(-2px);
}

.btn-ghost,
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover,
.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* Variante ghost sobre fondo oscuro */
.btn-ghost--light,
.btn-ghost.l,
.btn--ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost--light:hover,
.btn-ghost.l:hover,
.btn--ghost-light:hover {
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}


/* --- 05b. Chips / Badges --- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
}

/* Variante sobre fondos oscuros */
.chip--light,
.chip.l {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

.chip-row,
.manifesto__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ================================================================
   06. NAVEGACIÓN
   ================================================================ */

/* Barra de navegación — full width, fijo en top */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  transition:
    background 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.nav.is-scrolled,
.nav.is-solid {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

/* Inner wrapper — alinea contenido con el container de las secciones */
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 42px;
  width: auto;
}

@media (min-width: 768px) {
  .nav__logo img {
    height: 46px;
  }
}

/* Links de navegación desktop */
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav__links li {
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  margin-left: 12px;
}

/* Botón burger (circular) */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
}

.nav__burger i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.25s;
}

/* Menú mobile — fade + visibility */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  background: rgba(14, 14, 14, 0.97);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s;
}

.mmenu.open {
  opacity: 1;
  visibility: visible;
}

.mmenu a:not(.btn) {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  padding: 0;
}

.mmenu .btn {
  margin-top: 20px;
}


/* ================================================================
   07. HERO
   ================================================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-h) + 80px);
    padding-bottom: 100px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--nav-h) + 100px);
    padding-bottom: 120px;
  }
}

/* Fondo — video o imagen */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay de gradiente sobre el video */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.72) 0%,
    rgba(14, 14, 14, 0.62) 40%,
    rgba(14, 14, 14, 0.68) 70%,
    rgba(14, 14, 14, 0.88) 100%
  );
}

/* Inner grid: copy | aside */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: flex-end;
}

.hero__badge {
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0.18em 0 0.3em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.hero h1 em {
  color: var(--orange);
  font-style: italic;
}

.hero__sub {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

@media (min-width: 768px) {
  .hero__sub {
    font-size: clamp(15px, 2vw, 17px);
  }
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  text-align: right;
  padding-bottom: 8px;
}

.hero__price .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__price .val {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1;
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__scroll .ln {
  width: 1px;
  height: 40px;
  background: linear-gradient(rgba(255, 255, 255, 0.5), transparent);
  animation: scrolln 2s infinite;
}

/* Badge "en construcción" */
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.7);
  animation: pulse 1.9s infinite;
}


/* ================================================================
   08. SECCIONES
   ================================================================ */

/* --- 08a. Manifiesto --- */

.manifesto {
  text-align: left;
}

/* Split layout: slider | body */
.manifesto__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(480px, 60vh, 680px);
}

/* Slider */
.manifesto__slider {
  position: relative;
  overflow: hidden;
}

.manifesto__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  will-change: transform;
}

.manifesto__slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

/* Salida hacia la izquierda (navegar hacia adelante) */
.manifesto__slide.exit-left {
  transform: translateX(-100%);
  opacity: 0;
}

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

/* Dots indicadores */
.manifesto__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.mdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s;
}

.mdot.is-active {
  background: var(--orange);
}

/* Body copy */
.manifesto__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px);
}

.manifesto p {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

.manifesto p .dim {
  color: rgba(255, 255, 255, 0.4);
}

.manifesto p em {
  color: var(--orange);
}

.manifesto__chips {
  margin-top: 40px;
}

/* Responsive — mobile: apila slider arriba, texto abajo */
@media (max-width: 767px) {
  .manifesto__split {
    grid-template-columns: 1fr;
  }

  .manifesto__slider {
    min-height: 320px;
  }

  .manifesto__body {
    padding: 40px 24px;
  }
}


/* --- 08b. Barrio --- */

.barrio__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.barrio__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
}

.barrio__media img,
.barrio__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barrio__media .tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

/* Mapa */
.barrio__map {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.barrio__map-frame {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

.barrio__map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.barrio__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: var(--ink-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.barrio__address svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Párrafo introductorio bajo el lede */
.barrio__intro {
  margin-top: 18px;
}

/* Lista de puntos de interés */
.poi {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.poi li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line); /* light background → usar --line */
}

.poi li:last-child {
  border-bottom: 1px solid var(--line);
}

.poi .pin {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-2px);
}

.poi .name {
  font-size: 15px;
  font-weight: 600;
}

.poi .meta {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-muted); /* light background → usar --ink-muted */
  white-space: nowrap;
}

/* Mapa (façade lazy) */
.map {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
  background: #1a1a1a;
  cursor: pointer;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map__facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 40%, #262626, #141414);
}

.map__facade .addr {
  padding: 0 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}


/* --- 08c. Bands (El edificio) --- */

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(480px, 65vh, 680px);
}

.band__media {
  position: relative;
  overflow: hidden;
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.band__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(48px, 7vw, 96px);
}

.band__body .eyebrow {
  margin-bottom: 4px;
}

.band__body h2 {
  max-width: 14ch;
}

@media (min-width: 1440px) {
  .band__body h2 {
    max-width: 20ch;
  }
}

.band__body p {
  max-width: 44ch;
}

/* Band con imagen a la derecha */
.band--rev .band__media,
.band.rev .band__media {
  order: 2;
}

.band--rev .band__body,
.band.rev .band__body {
  order: 1;
}

/* Lista de features en band */
.band-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 4px;
}

.band-feats li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 15px;
}

.band-feats li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-2px);
}

.dark .band-feats li {
  color: rgba(255, 255, 255, 0.82);
}


/* --- 08d. Tipologías (tabs dinámicos) --- */

.tipos__tabswrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  margin-bottom: 36px;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tipos__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 0;
}

/* Chevron "ver más tipologías" — oculto en desktop, visible solo en mobile con overflow */
.tipos__tabsmore {
  display: none;
}

.ttab {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.ttab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.ttab.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.ttab .o {
  margin-left: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

/* Panels */
.tpanel {
  display: none;
  animation: fadein 0.35s ease;
}

.tpanel.active {
  display: block;
}

.tpanel__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3.5vw, 52px);
  align-items: start;
}

/* Galería de tipología */
.tgal__main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  background: var(--paper-alt);
  cursor: zoom-in;
}

.tgal__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.tgal__main:hover img {
  transform: scale(1.03);
}

.tgal__main .zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--white);
  background: rgba(14, 14, 14, 0.6);
  backdrop-filter: blur(4px);
}

.tgal__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.tgal__thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  transition: 0.2s;
}

.tgal__thumbs img:hover {
  opacity: 1;
}

.tgal__thumbs img.sel {
  opacity: 1;
  border-color: var(--orange);
}

/* Ficha de tipología */
.ficha h3 {
  margin-bottom: 6px;
}

.ficha__ori {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}

.spec {
  padding: 16px 18px;
  background: var(--paper);
}

.spec .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.spec .v {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  margin-top: 4px;
}

.spec .v small {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
}

/* Tabla de precios por tipología */
.priceTable {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.priceTable .pt-h,
.priceTable .pt-r {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  align-items: center;
  padding: 12px 18px;
}

.priceTable .pt-h {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-alt);
}

.priceTable .pt-r {
  font-size: 15px;
  border-top: 1px solid var(--line);
}

.priceTable .pt-r:hover {
  background: var(--paper-alt);
}

.priceTable .pt-r .u {
  font-weight: 700;
}

.priceTable .pt-r .m {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.priceTable .pt-r .p {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 500;
  text-align: right;
}

.priceTable .pt-r.best {
  background: rgba(255, 109, 0, 0.04);
}

.ficha__note {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: -4px 0 22px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.ficha__note::before {
  content: "✶";
  color: var(--orange);
}

/* Tabla maestra de disponibilidad */
.master {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.master__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.master__title {
  margin-top: 12px;
}

.master__filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.master__cocheras {
  color: var(--danger);
}

.mfilter {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
  transition: 0.2s;
}

.mfilter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.mfilter.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.utable {
  width: 100%;
  font-size: 15px;
  border-collapse: collapse;
}

.utable thead th {
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-muted);
  white-space: nowrap;
}

.utable thead th.r,
.utable tbody td.r {
  text-align: right;
}

.utable tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.utable tbody tr {
  transition: background 0.15s;
}

.utable tbody tr:hover {
  background: var(--paper-alt);
}

.utable .u-id {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
}

.utable .u-type {
  color: var(--ink-2);
}

.utable .u-ori {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.utable .u-price {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 500;
  white-space: nowrap;
}

.utable .u-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--danger);
}

.utable .u-state .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f9d6b;
}

.utable .u-state--off .d {
  background: #d33a2c;
}

.utable tbody tr.dx {
  background: rgba(255, 109, 0, 0.03);
}

.utable tbody tr.dx .u-id {
  color: var(--danger);
}

.utable .u-cta {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  white-space: nowrap;
}

.master__foot {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-muted);
}


/* --- 08e. Dúplex --- */

.duplex {
  position: relative;
  overflow: hidden;
}

.duplex__intro {
  margin-top: 16px;
}

.duplex__hero {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
}

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

.duplex__levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.level {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.level .fl {
  font-family: var(--f-serif);
  font-size: 40px;
  line-height: 1;
  color: var(--orange);
}

.level .nm {
  margin: 10px 0 6px;
  font-weight: 600;
  color: var(--white);
}

.level p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.duplex__stats {
  display: flex;
  gap: clamp(24px, 4vw, 60px);
  flex-wrap: wrap;
  margin-top: 32px;
}

.dstat .v {
  font-family: var(--f-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.dstat .k {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-d);
}

.duplex__cta {
  margin-top: 36px;
}


/* --- 08f. Terminaciones (ficha técnica) --- */

.term__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.term {
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--ink-2);
  transition: background 0.25s;
}

.term:hover {
  background: #1a1a1a;
}

.term .n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

/* h3 en ficha técnica (nivel correcto en jerarquía) */
.term h3 {
  margin: 14px 0 8px;
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--white);
}

.term p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}


/* --- 08g. Galería (masonry) --- */

.gal {
  columns: 3;
  column-gap: 10px;
}

.gal__item {
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: var(--radius-lg);
  background: #1a1a1a;
  cursor: zoom-in;
}

.gal__item img {
  width: 100%;
  opacity: 0;
  transition:
    transform 0.5s,
    opacity 0.3s;
}

.gal__item img.loaded {
  opacity: 1;
}

.gal__item:hover img {
  transform: scale(1.04);
}

/* Variante con fondo blanco (perspectiva isométrica) */
.gal__item--white {
  background: var(--white);
}

/* Item con video */
.gal__video {
  position: relative;
}

.gal__video .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gal__video .play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 109, 0, 0.9);
  color: var(--white);
}

.gal__video .play span::after {
  content: "";
  margin-left: 5px;
  border-left: 18px solid var(--white);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}


/* --- 08h. Condiciones + Cocheras --- */

.cond__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 56px);
}

.cond__card {
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}

.cond__card h3 {
  margin-bottom: 20px;
}

.cond__opt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cond__opt:first-of-type {
  border-top: 0;
}

.cond__opt .t {
  font-size: 16px;
  font-weight: 600;
}

.cond__opt .d {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.cond__opt .big {
  font-family: var(--f-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--danger);
  white-space: nowrap;
}

.cond__nota {
  margin-top: 18px;
  font-size: 14px;
}

@media (max-width: 374px) {
  .cond__opt {
    flex-direction: column;
    gap: 6px;
  }

  .cond__opt .big {
    font-size: 24px;
  }
}

.coch {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.coch__plan {
  flex: 0 0 clamp(140px, 22vw, 200px);
}

.coch__plan img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}

.coch__desc {
  flex: 1;
  min-width: 160px;
  font-size: 14px;
}


/* --- 08i. FAQ --- */

.faq {
  max-width: 880px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq__q .ix {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: auto;
  transition: transform 0.3s;
}

.faq__q .ix::before,
.faq__q .ix::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--orange);
}

.faq__q .ix::before {
  left: 0;
  right: 0;
  top: 12px;
  height: 2px;
}

.faq__q .ix::after {
  top: 0;
  bottom: 0;
  left: 12px;
  width: 2px;
  transition: transform 0.3s;
}

.faq__item.open .ix::after {
  transform: scaleY(0);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__a p {
  padding: 0 44px 28px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}


/* --- 08j. Desarrollista (DIGA) --- */

.diga {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.diga__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}

.diga__logo img {
  max-height: 90px;
  width: auto;
}

.diga__title {
  margin: 16px 0 18px;
}

.diga__cta {
  margin-top: 24px;
}


/* --- 08k. Asesor --- */

.asesor {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.asesor__photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: #1a1a1a;
}

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

.asesor__quote {
  margin: 20px 0 24px;
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.asesor__quote em {
  color: var(--orange);
}

.asesor__name {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}

.asesor .mat {
  margin: 6px 0 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-d);
}


/* --- 08l. Contacto / Formulario --- */

.ctaf__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 80px);
  align-items: start;
}

.ctaf__title {
  margin-top: 14px;
}

.ctaf__sub {
  margin-top: 16px;
}

.ctaf__contact {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.ctaf__contact a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.ctaf__contact a:hover {
  color: var(--ink);
}

.ctaf__contact a svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--orange);
}

/* Formulario */
.form {
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-alt);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--paper);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field.err input,
.field.err select {
  border-color: var(--orange);
}

.field .msg {
  display: none;
  margin-top: 5px;
  font-size: 12px;
  color: var(--danger);
}

.field.err .msg {
  display: block;
}

.form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form__hint {
  margin-top: 14px;
  font-size: 12px;
  text-align: center;
  color: var(--ink-muted);
}

.form__success {
  display: none;
  padding: 32px 10px;
  text-align: center;
}

.form__success.show {
  display: block;
}

.form__success .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(45, 138, 95, 0.1);
  color: var(--success);
  margin: 0 auto 20px;
}

.form.sent .field,
.form.sent .btn-primary,
.form.sent .form__hint {
  display: none;
}


/* ================================================================
   09. FOOTER
   ================================================================ */

/* .dark agrega color:white — .footer sobreescribe el background
   para usar --ink-2 (#1a1a1a) en lugar de --ink (#0e0e0e) */
.footer {
  padding-block: clamp(56px, 7vw, 96px) 0;
  font-size: 14px;
  line-height: 1.6;
  background: var(--ink-2); /* override del .dark */
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__logo {
  display: block;
  height: 28px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer__address {
  max-width: 32ch;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__col h4 {
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.footer__col a,
.footer__col p {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}


/* ================================================================
   10. FLOTANTES (WhatsApp, Lightbox)
   ================================================================ */

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  transition: transform 0.25s var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 768px) {
  .wa-float {
    right: 28px;
    bottom: 28px;
    width: 64px;
    height: 64px;
  }

  .wa-float svg {
    width: 32px;
    height: 32px;
  }
}

/* Lightbox imagen */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.95);
}

.lb.open {
  display: flex;
}

.lb img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lb__close,
.lb__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition: 0.2s;
}

.lb__close:hover,
.lb__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb__close {
  top: 24px;
  right: 24px;
  font-size: 20px;
}

.lb__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lb__nav.prev {
  left: 24px;
}

.lb__nav.next {
  right: 24px;
}

.lb__cap {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* Lightbox video */
.vlb {
  position: fixed;
  inset: 0;
  z-index: 202;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.96);
}

.vlb.open {
  display: flex;
}

.vlb__frame {
  width: min(100%, 1100px);
  aspect-ratio: 16 / 9;
}

.vlb__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

.vlb__close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}


/* ================================================================
   11. ANIMACIONES
   ================================================================ */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

/* Zequeira usa .in · alias .is-visible para compatibilidad */
.reveal.in,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Fade de tabs */
@keyframes fadein {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* Scroll indicator */
@keyframes scrolln {
  0%    { transform: scaleY(0); transform-origin: top; }
  50%   { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100%  { transform: scaleY(0); transform-origin: bottom; }
}

/* Pulse del punto "en construcción" */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 109, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0); }
}


/* ================================================================
   12. ACCESIBILIDAD
   ================================================================ */

/* Skip link (visible al recibir foco por teclado) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--pad-x);
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--orange);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible — teclado */
:focus-visible {
  border-radius: var(--radius);
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.nav :focus-visible,
.mmenu :focus-visible {
  outline-color: var(--white);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Dark mode — placeholder para futura implementación */
@media (prefers-color-scheme: dark) {
  /* Sin overrides por ahora — la landing tiene paleta propia */
}


/* ================================================================
   13. RESPONSIVE
   ================================================================ */

/* Tablet landscape / Desktop chico */
@media (max-width: 1024px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .barrio__grid,
  .tpanel__grid,
  .cond__grid,
  .diga,
  .asesor,
  .ctaf__grid {
    grid-template-columns: 1fr;
  }

  .band {
    grid-template-columns: 1fr;
  }

  .band__body h2 {
    max-width: none;
  }

  .band--rev .band__media,
  .band.rev .band__media {
    order: 0;
  }

  .band--rev .band__body,
  .band.rev .band__body {
    order: 0;
  }

  .band__media img {
    min-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .term__grid {
    grid-template-columns: 1fr 1fr;
  }

  .duplex__levels {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero__aside {
    align-items: flex-start;
    text-align: left;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .gal {
    columns: 2;
  }

  .specs {
    grid-template-columns: 1fr 1fr;
  }

  .tgal__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* Mobile chico */
@media (max-width: 480px) {
  .term__grid {
    grid-template-columns: 1fr;
  }

  .gal {
    columns: 1;
  }

  .duplex__levels {
    grid-template-columns: 1fr;
  }

  /* Tabla responsive — card mode */
  .utable thead {
    display: none;
  }

  .utable,
  .utable tbody,
  .utable tr,
  .utable td {
    display: block;
    width: 100%;
  }

  .utable tbody tr {
    margin-bottom: 12px;
    padding: 6px 4px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
  }

  .utable tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    border: 0;
  }

  .utable tbody td::before {
    content: attr(data-l);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  .utable td.r {
    text-align: right;
  }
}

/* Landscape mobile / pantallas de poca altura */
@media (max-height: 600px) {
  .hero {
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 48px;
  }

  .hero__scroll {
    display: none;
  }
}


/* ================================================================
   14. HERO TIMELINE + HERO STATS
   ================================================================ */

/* Ajuste hero__inner: una sola columna ahora que no hay aside */
.hero__inner {
  grid-template-columns: 1fr;
}

/* CTAs */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Timeline */
.hero__timeline {
  margin-top: 32px;
  max-width: 60%;
}

.hero__timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.htl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.htl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.2s, border-color 0.2s;
}

.htl-step--done .htl-dot {
  background: var(--orange);
  border-color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.htl-step--done .htl-dot::after {
  content: "✓";
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.htl-step--active .htl-dot {
  background: transparent;
  border-color: var(--orange);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.25);
}

.htl-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.htl-step--done .htl-label,
.htl-step--active .htl-label {
  color: rgba(255, 255, 255, 0.9);
}

.htl-step--active .htl-label strong {
  color: var(--orange);
  font-weight: 600;
  display: block;
}

/* Línea: se alinea con el centro del dot (14px / 2 = 7px) */
.htl-line {
  flex: 1;
  height: 2px;
  margin-top: 6px;
  margin-left: -7px;
  margin-right: -7px;
  background: rgba(255, 255, 255, 0.2);
}

.htl-line--done {
  background: var(--orange);
}

/* Último segmento: naranja → gris, corte al 55% */
.htl-line--active {
  background: linear-gradient(to right, var(--orange) 55%, rgba(255, 255, 255, 0.2) 55%);
}

/* Spans full/abbr — desktop muestra full, mobile muestra abbr */
.htl-label__abbr { display: none; }
.htl-label__full { display: inline; }

/* Timeline responsive — mobile */
@media (max-width: 767px) {
  .hero__timeline {
    max-width: 100%;
  }

  .htl-label__full { display: none; }
  .htl-label__abbr { display: inline; }

  /* Filtros master — scroll horizontal, misma lógica que tipos__tabs */
  .master__filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .master__filters::-webkit-scrollbar {
    display: none;
  }

  /* Formulario contacto — evitar overflow horizontal */
  #contacto .wrap {
    overflow: hidden;
  }

  .ctaf__grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .form {
    width: 100%;
    box-sizing: border-box;
  }

  /* CTAs asesor full-width */
  .asesor .btn-row {
    flex-direction: column;
  }

  .asesor .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* CTAs dúplex full-width */
  .duplex__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .duplex__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* CTAs de tipología full-width */
  .ficha .btn-row {
    flex-direction: column;
  }

  .ficha .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Tabs tipologías — scroll horizontal, una sola fila */
  .tipos__tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    padding-bottom: 4px;
    gap: 8px;
  }

  .tipos__tabs::-webkit-scrollbar {
    display: none;               /* Chrome / Safari */
  }

  /* Peek: chips más compactos para que asome el siguiente tab */
  .tipos__tabswrap.has-overflow .tipos__tabs {
    padding-right: 40px;         /* espacio bajo el chevron */
  }

  .ttab {
    padding: 10px 15px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  /* Chevron tappable + degradado derecho (señal de "hay más, deslizá") */
  .tipos__tabsmore {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 4px;
    width: 52px;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    border: 0;
    margin: 0;
    cursor: pointer;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    z-index: 2;
    background: linear-gradient(to right, rgba(250, 248, 245, 0) 0%, rgba(250, 248, 245, 0.96) 55%);
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s;
  }

  .tipos__tabswrap.has-overflow .tipos__tabsmore {
    display: flex;
  }

  /* Al llegar al final, ocultar chevron/degradado derecho */
  .tipos__tabswrap.is-end .tipos__tabsmore {
    opacity: 0;
    pointer-events: none;
  }

  /* Degradado izquierdo cuando ya se scrolleó (refuerza dirección) */
  .tipos__tabswrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 4px;
    left: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    background: linear-gradient(to left, rgba(250, 248, 245, 0) 0%, rgba(250, 248, 245, 0.96) 60%);
  }

  .tipos__tabswrap.is-scrolled::before {
    opacity: 1;
  }

  /* CTAs hero full-width */
  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Scroll indicator — oculto en mobile */
  .hero__scroll {
    display: none;
  }

  /* Párrafos estandarizados en mobile — 16px / 1.65 */
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .lede {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero__sub {
    font-size: 16px;
    line-height: 1.65;
  }

  /* Interlineado estandarizado 1.65 en mobile */
  .manifesto p,
  .asesor__quote,
  .faq__a p {
    line-height: 1.65;
  }

  /* Jerarquía de headings en mobile — tamaño + interlineado */
  .display {
    line-height: 1.12;
  }

  .h1 {
    font-size: 30px;
    line-height: 1.25;
  }

  .h2 {
    font-size: 24px;
    line-height: 1.28;
  }

  .h3 {
    line-height: 1.32;
  }

  h1, h2, h3, h4 {
    line-height: 1.2;
  }

  /* Logo DIGA — padding reducido en mobile */
  .diga__logo {
    padding: 24px;
  }

  /* Eyebrow — línea arriba, texto abajo en mobile */
  .eyebrow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    letter-spacing: 0.15em;
  }

  .eyebrow::before {
    width: 24px;
    height: 2px;
  }

  /* Eyebrow centrado (FAQ) — mantiene centrado */
  .shead.center .eyebrow {
    align-items: center;
  }
}

/* Barra de destacados */
.hero-stats {
  background: var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats .wrap {
  padding-block: 0;
}

.hero-stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.hero-stats__item {
  padding: 40px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats__item:first-child {
  padding-left: 0;
}

.hero-stats__item:last-child {
  border-right: none;
  padding-right: 0;
}

.hero-stats__lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.hero-stats__val {
  font-family: var(--f-sans);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--white);
}

.hero-stats__item:first-child .hero-stats__val {
  color: var(--orange);
}

/* Responsive stats — tablet */
@media (max-width: 1023px) {
  .hero-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats__item:nth-child(3) {
    border-right: none;
    padding-right: 0;
  }

  .hero-stats__item:nth-child(4) {
    padding-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Responsive stats — mobile */
@media (max-width: 599px) {
  .hero-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats__item {
    padding: 20px 16px;
  }

  .hero-stats__item:nth-child(odd) {
    padding-left: 0;
  }

  .hero-stats__item:nth-child(even) {
    border-right: none;
    padding-right: 0;
    padding-left: 16px; /* resetea el padding-left: 0 heredado del breakpoint tablet */
  }

  .hero-stats__item:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Item 5 — centrado, ancho completo, separador arriba */
  .hero-stats__item:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-inline: 0;
    text-align: center;
  }

  /* Reducir tamaño de valor para evitar wrapping en celdas angostas */
  .hero-stats__val {
    font-size: 15px;
  }

  .hero-stats__lbl {
    font-size: 10px;
    margin-bottom: 6px;
  }
}
