@font-face {
  font-family: "GruppoX";
  src: url("assets/fonts/Gruppo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZalandoX";
  src: url("assets/fonts/ZalandoSansExpanded-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZalandoX";
  src: url("assets/fonts/ZalandoSansExpanded-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZalandoX";
  src: url("assets/fonts/ZalandoSansExpanded-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NunitoX";
  src: url("assets/fonts/NunitoSans.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --x-cyan: #a4dbff;
  --x-blue: #28466d;
  --x-magenta: #b90081;
  --x-magenta-hot: #df007f;
  --x-pink: #fbdcef;
  --x-ivory: #f2ece6;
  --x-night: #070b12;
  --x-graphite: #10131a;
  --x-smoke: #d7d2cd;

  --font-display: "ZalandoX", "Arial Black", "Arial", sans-serif;
  --font-body: "NunitoX", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --font-detail: "GruppoX", "ZalandoX", Arial, sans-serif;

  --bg: #090d14;
  --bg-soft: #111722;
  --bg-elevated: rgba(22, 29, 43, .74);
  --bg-glass: rgba(18, 24, 35, .56);
  --bg-glass-strong: rgba(17, 23, 34, .82);
  --text: #ffffff;
  --text-strong: #ffffff;
  --muted: rgba(255, 255, 255, .72);
  --muted-2: rgba(255, 255, 255, .48);
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .24);
  --shadow: 0 28px 90px rgba(0, 0, 0, .45);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, .26);
  --glow-magenta: 0 0 0 1px rgba(223, 0, 127, .42), 0 18px 54px rgba(223, 0, 127, .28);
  --glow-cyan: 0 0 0 1px rgba(164, 219, 255, .30), 0 18px 54px rgba(164, 219, 255, .15);

  --container: min(1440px, calc(100vw - 96px));
  --wide-container: min(1640px, calc(100vw - 72px));
  --header-h: 92px;
  --scene-min: 114vh;
  --scene-pad-y: clamp(112px, 12vh, 172px);
  --section-gap: clamp(86px, 9vw, 150px);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-xl: 48px;
  --ease-premium: cubic-bezier(.19, 1, .22, 1);
}

:root[data-theme="day"] {
  --bg: #f2ece6;
  --bg-soft: #f8f1eb;
  --bg-elevated: rgba(255, 250, 245, .78);
  --bg-glass: rgba(255, 250, 245, .58);
  --bg-glass-strong: rgba(255, 250, 245, .86);
  --text: #102439;
  --text-strong: #071b2f;
  --muted: rgba(16, 36, 57, .72);
  --muted-2: rgba(16, 36, 57, .50);
  --line: rgba(40, 70, 109, .15);
  --line-strong: rgba(40, 70, 109, .30);
  --shadow: 0 30px 90px rgba(43, 35, 32, .16);
  --shadow-soft: 0 18px 50px rgba(43, 35, 32, .12);
  --glow-magenta: 0 0 0 1px rgba(185, 0, 129, .30), 0 18px 54px rgba(185, 0, 129, .20);
  --glow-cyan: 0 0 0 1px rgba(40, 70, 109, .16), 0 18px 54px rgba(40, 70, 109, .10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  text-rendering: geometricPrecision;
}

html[data-theme="day"] {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% -12%, rgba(223, 0, 127, .28), transparent 36vw),
    radial-gradient(circle at 5% 20%, rgba(164, 219, 255, .11), transparent 28vw),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

html[data-theme="day"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(251, 220, 239, .70), transparent 34vw),
    radial-gradient(circle at 92% 26%, rgba(251, 220, 239, .62), transparent 30vw),
    linear-gradient(135deg, #f2ece6 0%, #f8f1eb 52%, #fbdcef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 36%, #000, transparent 76%);
  opacity: .45;
}

html[data-theme="day"] body::before {
  background-image:
    linear-gradient(rgba(40, 70, 109, .052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 70, 109, .052) 1px, transparent 1px);
  opacity: .32;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .40), transparent 35%, rgba(185, 0, 129, .12)),
    radial-gradient(circle at 90% 40%, rgba(185, 0, 129, .20), transparent 32vw);
}

html[data-theme="day"] body::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .42), transparent 45%, rgba(251, 220, 239, .36)),
    radial-gradient(circle at 90% 36%, rgba(185, 0, 129, .11), transparent 32vw);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(223, 0, 127, .72);
  color: #fff;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 16px;
  left: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--x-magenta-hot);
  color: #fff;
  font-weight: 900;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.site-header {
  position: fixed;
  z-index: 200;
  top: 24px;
  left: 50%;
  width: var(--container);
  transform: translateX(-50%);
  transition:
    transform .45s var(--ease-premium),
    opacity .45s var(--ease-premium);
}

.site-header.is-scrolled {
  transform: translateX(-50%) translateY(-6px);
}

.nav-shell {
  display: grid;
  grid-template-columns: minmax(170px, .6fr) 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  min-height: var(--header-h);
  padding: 14px 18px;
  border: 1px solid rgba(185, 0, 129, .22);
  border-radius: 22px;
  background: rgba(8, 13, 23, .58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
}

html[data-theme="day"] .nav-shell {
  background: rgba(255, 250, 245, .72);
  border-color: rgba(185, 0, 129, .15);
  box-shadow: 0 22px 70px rgba(40, 70, 109, .14);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-link img {
  width: clamp(150px, 15vw, 220px);
  max-height: 60px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 40px);
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .25s ease, opacity .25s ease;
}

html[data-theme="day"] .main-nav a {
  color: rgba(16, 36, 57, .86);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--x-magenta-hot);
  box-shadow: 0 0 22px rgba(223, 0, 127, .45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-premium);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--x-magenta-hot);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  backdrop-filter: blur(16px);
}

html[data-theme="day"] .theme-toggle {
  background: rgba(255, 255, 255, .56);
}

.theme-toggle__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.theme-toggle[data-theme-state="day"] .theme-toggle__sun,
.theme-toggle[data-theme-state="night"] .theme-toggle__moon {
  background: var(--x-magenta-hot);
  color: #fff;
  box-shadow: 0 0 26px rgba(223, 0, 127, .45);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid rgba(223, 0, 127, .26);
  border-radius: 15px;
  background: rgba(223, 0, 127, .13);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium), background .35s ease;
}

html[data-theme="day"] .nav-cta {
  color: var(--x-magenta);
  background: rgba(251, 220, 239, .50);
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--x-magenta-hot);
  color: #fff;
  box-shadow: var(--glow-magenta);
}

.menu-toggle {
  display: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform .35s var(--ease-premium),
    box-shadow .35s var(--ease-premium),
    border-color .35s ease,
    background .35s ease,
    color .35s ease;
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70% -35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: translateX(-72%) rotate(18deg);
  transition: transform .7s var(--ease-premium);
}

.btn:hover::before {
  transform: translateX(72%) rotate(18deg);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--x-magenta-hot);
  color: #fff;
  box-shadow: 0 18px 45px rgba(223, 0, 127, .22);
}

.btn-primary:hover {
  box-shadow: var(--glow-magenta);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

html[data-theme="day"] .btn-secondary {
  border-color: rgba(40, 70, 109, .24);
  background: rgba(255, 255, 255, .48);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(223, 0, 127, .45);
  box-shadow: var(--glow-magenta);
}

.btn-light {
  background: rgba(255, 255, 255, .92);
  color: #102439;
}

.btn-ghost {
  border-color: rgba(223, 0, 127, .38);
  background: rgba(223, 0, 127, .08);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(223, 0, 127, .22);
  box-shadow: var(--glow-magenta);
}

.scene {
  position: relative;
  min-height: var(--scene-min);
  padding-block: var(--scene-pad-y);
  display: grid;
  align-items: center;
  overflow: clip;
  border-bottom: 0;
  isolation: isolate;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -15vh 0 auto;
  height: 35vh;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .045), transparent);
  opacity: calc(.16 + (var(--scene-visibility, 0) * .32));
}

.scene__inner {
  position: relative;
  z-index: 3;
  width: var(--container);
  margin-inline: auto;
}

.scene__content,
.scene [data-reveal],
.scene .reveal {
  transform: translateY(calc(42px - (var(--scene-visibility, 0) * 34px)));
  opacity: calc(.52 + (var(--scene-visibility, 0) * .48));
  filter: blur(calc((1 - var(--scene-visibility, 0)) * 7px));
  transition:
    transform .7s var(--ease-premium),
    opacity .7s var(--ease-premium),
    filter .7s var(--ease-premium);
}

.scene.is-scene-active .scene__content,
.scene.is-scene-active [data-reveal],
.scene.is-scene-active .reveal,
.reveal.is-visible,
[data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--x-magenta-hot);
  font-family: var(--font-display);
  font-size: clamp(11px, .82vw, 14px);
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.eyebrow--cyan {
  color: var(--x-cyan);
}

html[data-theme="day"] .eyebrow--cyan {
  color: #1987c5;
  text-shadow: 0 2px 18px rgba(255, 255, 255, .78);
}

.display-title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 154px);
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: .88;
  text-transform: uppercase;
  text-wrap: balance;
}

.display-title strong,
.display-title .accent {
  color: var(--x-magenta-hot);
  font-weight: inherit;
}

html[data-theme="day"] .display-title {
  color: #102439;
}

.section-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.2vw, 23px);
  line-height: 1.75;
}

.split-line {
  display: block;
  transform: translateY(calc(18px - (var(--scene-visibility, 0) * 18px)));
  transition:
    transform .85s var(--ease-premium),
    opacity .85s var(--ease-premium);
  transition-delay: calc(var(--line-index, 0) * 70ms);
}

.is-scene-active .split-line {
  opacity: 1;
  transform: translateY(0);
}

/* Intro visual para main-v8.js */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(223, 0, 127, .25), transparent 34vw),
    linear-gradient(135deg, #060912, #15111e);
  color: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity .75s var(--ease-premium), visibility .75s var(--ease-premium);
}

.intro-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-loader__inner {
  display: grid;
  place-items: center;
  gap: 28px;
  text-align: center;
}

.intro-loader__mark {
  width: clamp(92px, 10vw, 150px);
  opacity: .95;
  filter: drop-shadow(0 0 32px rgba(223, 0, 127, .32));
}

.intro-loader__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 54px);
  color: var(--x-magenta-hot);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 24px);
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.intro-loader__words span {
  opacity: 0;
  transform: translateY(18px);
  animation: introWord .85s var(--ease-premium) forwards;
}

.intro-loader__words span:nth-child(2) {
  animation-delay: .18s;
}

.intro-loader__words span:nth-child(3) {
  animation-delay: .36s;
}

@keyframes introWord {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 60px);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -4;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 1s var(--ease-premium),
    transform 4.8s var(--ease-premium),
    filter 1s var(--ease-premium);
  filter: saturate(.88) contrast(1.02) brightness(.74);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(.95) contrast(1.05) brightness(.80);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(6, 10, 16, .82) 0%, rgba(6, 10, 16, .46) 44%, rgba(6, 10, 16, .22) 72%, rgba(6, 10, 16, .68) 100%),
    radial-gradient(circle at 10% 72%, rgba(223, 0, 127, .42), transparent 32vw),
    radial-gradient(circle at 72% 6%, rgba(164, 219, 255, .15), transparent 30vw);
}

html[data-theme="day"] .hero__overlay {
  background:
    linear-gradient(90deg, rgba(242, 236, 230, .78) 0%, rgba(242, 236, 230, .38) 45%, rgba(242, 236, 230, .14) 72%, rgba(242, 236, 230, .58) 100%),
    radial-gradient(circle at 10% 72%, rgba(223, 0, 127, .22), transparent 32vw),
    radial-gradient(circle at 72% 6%, rgba(164, 219, 255, .12), transparent 30vw);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, .54fr);
  align-items: end;
  gap: clamp(34px, 5vw, 84px);
}

.hero__title {
  max-width: 1040px;
  font-size: clamp(54px, 7vw, 126px);
  letter-spacing: -.085em;
}

.hero__text {
  max-width: 600px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(18px, 1.2vw, 23px);
}

html[data-theme="day"] .hero__text {
  color: rgba(16, 36, 57, .78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 46px;
}

.hero__counter {
  font-family: var(--font-detail);
  font-size: 22px;
  letter-spacing: .14em;
}

.progress-line {
  position: relative;
  flex: 0 1 320px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.progress-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 20%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--x-magenta-hot), var(--x-cyan));
  transition: width .55s var(--ease-premium);
}

.hero-card {
  align-self: center;
  min-height: 500px;
  padding: clamp(32px, 4vw, 58px);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 34px;
  background: rgba(255, 255, 255, .13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
}

html[data-theme="day"] .hero-card {
  background: rgba(255, 255, 255, .42);
  border-color: rgba(40, 70, 109, .16);
}

.hero-card__logo {
  width: 110px;
  margin-bottom: 42px;
  opacity: .96;
}

.hero-stat {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  padding-block: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

html[data-theme="day"] .hero-stat {
  border-bottom-color: rgba(40, 70, 109, .12);
}

.hero-stat__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(164, 219, 255, .32);
  border-radius: 16px;
  color: var(--x-magenta-hot);
  font-size: 19px;
}

.hero-stat span {
  display: block;
  color: rgba(255, 255, 255, .70);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

html[data-theme="day"] .hero-stat span {
  color: rgba(16, 36, 57, .72);
}

html[data-theme="day"] .hero-stat strong {
  color: #102439;
}

.hero-card .btn {
  width: 100%;
  margin-top: 32px;
}

.hero-controls {
  position: absolute;
  right: max(32px, calc((100vw - var(--container)) / 2));
  bottom: 46px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
}

.circle-btn {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  backdrop-filter: blur(14px);
  transition: transform .3s var(--ease-premium), background .3s ease, border-color .3s ease;
}

.circle-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 0, 127, .55);
  background: rgba(223, 0, 127, .22);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  transition: width .3s var(--ease-premium), background .3s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--x-magenta-hot);
}

.project {
  min-height: 108vh;
}

.project .scene__inner {
  width: min(100vw, 1720px);
  margin-left: 0;
  margin-right: auto;
}

.project__grid {
  display: grid;
  grid-template-columns: minmax(480px, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 112px);
}

.project-media {
  position: relative;
  border-radius: 0 34px 34px 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 5 / 5;
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, transparent 58%, var(--bg) 100%);
}

html[data-theme="day"] .project-media::before {
  background: linear-gradient(90deg, transparent 0%, transparent 58%, rgba(242, 236, 230, .96) 100%);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: auto 18px 18px auto;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: rgba(223, 0, 127, .88);
  box-shadow: 0 0 60px rgba(223, 0, 127, .35);
  mask: url("assets/img/logo/isologo-x-blanco.png") center / 62% no-repeat;
}

.project .scene__content {
  padding-right: max(48px, calc((100vw - var(--container)) / 2));
}

.project-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.feature-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feature-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.development {
  min-height: 118vh;
}

.development .scene__inner {
  width: var(--wide-container);
}

.development__grid {
  display: grid;
  grid-template-columns: minmax(500px, .62fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(50px, 6vw, 108px);
}

.development-copy {
  max-width: 690px;
}

.development-copy .display-title {
  font-size: clamp(54px, 5.2vw, 102px);
  letter-spacing: -.075em;
  max-width: 730px;
}

.development-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(320px, 32vw, 500px);
  gap: clamp(20px, 2vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50%;
  padding: 30px min(7vw, 80px) 44px;
  margin-inline: min(-5vw, -40px);
  outline: none;
  scrollbar-width: none;
}

.development-track::-webkit-scrollbar {
  display: none;
}

.development-card {
  position: relative;
  min-height: clamp(460px, 54vh, 680px);
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: var(--bg-glass);
  box-shadow: var(--shadow-soft);
  transform: scale(.86);
  opacity: .42;
  filter: blur(6px) saturate(.72);
  transition:
    transform .55s var(--ease-premium),
    opacity .55s var(--ease-premium),
    filter .55s var(--ease-premium),
    border-color .55s ease;
}

.development-card.is-active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0) saturate(1);
  border-color: rgba(223, 0, 127, .58);
}

.development-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.development-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 12, .86), transparent 55%);
}

.development-card__content {
  position: absolute;
  z-index: 2;
  inset: auto 28px 28px;
}

.development-card__number {
  display: block;
  color: var(--x-cyan);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.development-card h3 {
  margin: 10px 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.5vw, 44px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.development-card p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.carousel-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.carousel-label {
  color: var(--muted);
  font-family: var(--font-detail);
  font-size: 18px;
  letter-spacing: .12em;
}

.carousel-progress {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.carousel-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 20%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--x-magenta-hot), var(--x-cyan));
  transition: width .4s var(--ease-premium);
}

.carousel-arrows {
  display: flex;
  gap: 10px;
}

.models {
  min-height: 122vh;
}

.models .scene__inner {
  width: var(--wide-container);
}

.models__grid {
  display: grid;
  grid-template-columns: minmax(640px, 1.08fr) minmax(420px, .66fr);
  align-items: center;
  gap: clamp(44px, 5vw, 82px);
}

.models-copy {
  display: none;
}

.model-visual-card {
  position: relative;
  display: grid;
  min-height: clamp(650px, 76vh, 880px);
  place-items: center;
  padding: clamp(22px, 3.2vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background:
    radial-gradient(circle at 60% 18%, rgba(223, 0, 127, .16), transparent 35%),
    var(--bg-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

html[data-theme="day"] .model-visual-card {
  background:
    radial-gradient(circle at 60% 18%, rgba(251, 220, 239, .65), transparent 35%),
    rgba(255, 255, 255, .42);
}

.model-visual-card__inner {
  width: 100%;
}

.model-image-wrap {
  display: grid;
  place-items: center;
  min-height: clamp(470px, 61vh, 700px);
  padding: clamp(8px, 1.2vw, 16px);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
}

html[data-theme="day"] .model-image-wrap {
  background: rgba(255, 255, 255, .22);
}

.model-image-wrap img {
  width: min(100%, 940px);
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .16));
}

.model-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.model-details {
  align-self: center;
  max-width: 470px;
}

.model-details__eyebrow {
  color: var(--x-magenta-hot);
}

.model-title {
  margin: 0;
  color: var(--x-cyan);
  font-family: var(--font-display);
  font-size: clamp(72px, 6.3vw, 120px);
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: .82;
  text-transform: uppercase;
}

html[data-theme="day"] .model-title {
  color: var(--x-blue);
}

.model-area {
  display: block;
  margin-top: 26px;
  color: var(--text-strong);
  font-size: clamp(27px, 2vw, 38px);
  font-weight: 900;
}

.model-rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.model-rooms li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.model-rooms li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--x-pink);
}

html[data-theme="day"] .model-rooms li::before {
  color: var(--x-magenta-hot);
}

.model-selector {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--bg-glass);
  box-shadow: var(--shadow-soft);
}

.model-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  transition: color .25s ease, background .25s ease, transform .25s var(--ease-premium);
}

.model-option.is-active {
  background: var(--x-magenta-hot);
  color: #fff;
  box-shadow: 0 14px 34px rgba(223, 0, 127, .25);
}

.model-option:hover {
  transform: translateX(3px);
}

.model-views {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.model-view {
  flex: 1 1 110px;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease-premium);
}

.model-view.is-active {
  background: var(--x-cyan);
  color: #102439;
}

.model-view:hover {
  transform: translateY(-2px);
}

.model-brochure {
  width: 100%;
  margin-top: 16px;
}

.amenities {
  min-height: 118vh;
}

.amenities .scene__inner {
  width: var(--wide-container);
}

.amenities__grid {
  display: grid;
  grid-template-columns: minmax(430px, .48fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 104px);
}

.amenities-copy {
  max-width: 620px;
}

.amenities-copy .display-title {
  color: var(--text-strong);
  font-size: clamp(52px, 5vw, 92px);
  max-width: 630px;
  letter-spacing: -.075em;
}

.amenities-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(300px, 27vw, 420px);
  gap: clamp(18px, 2vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50%;
  padding: 36px min(8vw, 96px) 50px;
  margin-inline: 0 min(-4vw, -42px);
  outline: none;
  scrollbar-width: none;
}

.amenities-track::-webkit-scrollbar {
  display: none;
}

.amenity-card {
  position: relative;
  min-height: clamp(470px, 60vh, 720px);
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: var(--bg-glass);
  box-shadow: var(--shadow-soft);
  transform: scale(.86);
  opacity: .44;
  filter: blur(4px) saturate(.72);
  transition:
    transform .55s var(--ease-premium),
    opacity .55s var(--ease-premium),
    filter .55s var(--ease-premium),
    border-color .55s ease;
}

.amenity-card.is-active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0) saturate(1);
  border-color: rgba(223, 0, 127, .50);
}

.amenity-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amenity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 12, .86), rgba(5, 8, 12, .12) 65%);
}

.amenity-card__content {
  position: absolute;
  z-index: 2;
  inset: auto 28px 28px;
}

.amenity-card__count {
  color: var(--x-cyan);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.amenity-card h3 {
  margin: 12px 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(30px, 2.6vw, 48px);
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.amenity-card p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.55;
}

.location {
  min-height: 112vh;
}

.location__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(440px, .86fr);
  align-items: center;
  gap: clamp(46px, 7vw, 112px);
}

.location .display-title {
  font-size: clamp(54px, 5.8vw, 108px);
}

.location-list {
  max-width: 680px;
  padding: 0;
  margin: 42px 0 0;
  list-style: none;
}

.location-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
  font-weight: 900;
}

.location-list span:last-child {
  color: var(--x-cyan);
}

html[data-theme="day"] .location-list span:last-child {
  color: var(--x-magenta);
}

.map-card {
  position: relative;
  min-height: clamp(520px, 68vh, 780px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 20%, rgba(223, 0, 127, .17), transparent 36%),
    var(--bg-glass);
  box-shadow: var(--shadow-soft);
}

.map-card iframe,
.map-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  object-fit: cover;
  filter: saturate(.85) contrast(1.02);
}

.map-card__overlay {
  position: absolute;
  inset: auto 22px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 10, 16, .72);
  backdrop-filter: blur(18px);
}

html[data-theme="day"] .map-card__overlay {
  background: rgba(255, 250, 245, .82);
}

.map-card__x-marker {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: clamp(54px, 5.2vw, 82px);
  height: clamp(54px, 5.2vw, 82px);
  transform: translate(-50%, -82%);
  border: 1px solid rgba(223, 0, 127, .42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 0, 129, .82), rgba(185, 0, 129, .55)),
    rgba(7, 11, 18, .74);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .36),
    0 0 0 8px rgba(223, 0, 127, .10),
    0 0 34px rgba(223, 0, 127, .32);
  pointer-events: none;
}

.map-card__x-marker::before {
  content: "";
  position: absolute;
  inset: 13px;
  background: url("assets/img/logo/isologo-x-blanco.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .22));
}

.map-card__x-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(223, 0, 127, .42);
  border-bottom: 1px solid rgba(223, 0, 127, .42);
  background: rgba(185, 0, 129, .70);
}

html[data-theme="day"] .map-card__x-marker {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 245, .98), rgba(255, 250, 245, .86)),
    rgba(255, 250, 245, .92);
}

html[data-theme="day"] .map-card__x-marker::before {
  background-image: url("assets/img/logo/isologo-x-rosa.png");
}

.contact-register {
  min-height: 116vh;
}

.contact-register__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, .9fr);
  align-items: start;
  gap: clamp(42px, 7vw, 110px);
}

.contact-card,
.register-card {
  width: 100%;
  max-width: 720px;
  padding: clamp(34px, 4.2vw, 62px);
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background: var(--bg-glass-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.register-card {
  align-self: start;
  justify-self: end;
  margin-top: clamp(90px, 10vh, 150px);
}

html[data-theme="day"] .contact-card,
html[data-theme="day"] .register-card {
  background: rgba(255, 250, 245, .74);
}

.contact-card .display-title,
.register-card .display-title {
  font-size: clamp(38px, 4vw, 72px);
  letter-spacing: -.075em;
  overflow-wrap: normal;
  word-break: normal;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-control {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

html[data-theme="day"] .form-control {
  background: rgba(255, 255, 255, .48);
  color: var(--text);
}

.form-control:focus {
  border-color: rgba(223, 0, 127, .72);
  box-shadow: 0 0 0 4px rgba(223, 0, 127, .12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 8px;
  color: var(--muted);
  font-size: 13px;
}

.form-check input {
  margin-top: 4px;
  accent-color: var(--x-magenta-hot);
}

.captcha-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.captcha-question {
  min-width: 86px;
  color: var(--x-cyan);
  font-family: var(--font-display);
  font-weight: 900;
}

html[data-theme="day"] .captcha-question {
  color: var(--x-magenta);
}

.captcha-refresh {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}

.form-status {
  display: none;
  margin-top: 12px;
  color: var(--muted);
}

.form-status.is-visible {
  display: block;
}

.form-status[data-status="success"] {
  color: #8be6b3;
}

.form-status[data-status="error"] {
  color: #ff9fbc;
}

.honeypot {
  display: none;
}

.register-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(223, 0, 127, .18), transparent 36%),
    var(--bg-glass-strong);
}

.register-card .btn {
  margin-top: 34px;
}

.site-footer {
  min-height: 96px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 16, .78);
}

html[data-theme="day"] .site-footer {
  background: rgba(255, 250, 245, .78);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: var(--container);
  margin-inline: auto;
}

.footer-logo {
  width: 160px;
  filter: none;
}

html[data-theme="day"] .footer-logo {
  filter: invert(18%) sepia(20%) saturate(1994%) hue-rotate(176deg) brightness(88%) contrast(91%);
  opacity: .92;
}

.footer-meta,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--x-magenta-hot);
}

.whatsapp-float {
  position: fixed;
  z-index: 150;
  right: 34px;
  bottom: 34px;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--x-magenta-hot);
  color: #fff;
  box-shadow: 0 18px 48px rgba(223, 0, 127, .34);
  transition: transform .3s var(--ease-premium), box-shadow .3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--glow-magenta);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 1440px) {
  .hero__title {
    font-size: clamp(50px, 6.2vw, 108px);
  }

  .display-title {
    font-size: clamp(52px, 7.2vw, 132px);
  }

  .models__grid {
    grid-template-columns: minmax(560px, 1fr) minmax(390px, .62fr);
  }

  .model-image-wrap img {
    max-height: 560px;
  }
}

@media (max-width: 1280px) {
  :root {
    --container: min(1180px, calc(100vw - 64px));
    --wide-container: min(1220px, calc(100vw - 56px));
    --header-h: 82px;
  }

  .main-nav {
    gap: 22px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .hero__grid,
  .project__grid,
  .development__grid,
  .models__grid,
  .amenities__grid,
  .location__grid,
  .contact-register__grid {
    gap: 46px;
  }

  .models__grid {
    grid-template-columns: minmax(480px, .95fr) minmax(360px, .62fr);
  }

  .model-visual-card {
    min-height: clamp(560px, 72vh, 760px);
  }

  .model-image-wrap {
    min-height: clamp(420px, 56vh, 590px);
  }

  .model-image-wrap img {
    max-height: 510px;
  }
}

@media (max-width: 1024px) {
  :root {
    --container: min(900px, calc(100vw - 40px));
    --wide-container: min(900px, calc(100vw - 40px));
    --scene-min: auto;
    --scene-pad-y: 110px;
  }

  .site-header {
    top: 14px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto auto;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-glass-strong);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: var(--text);
  }

  .menu-toggle span,
  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: currentColor;
  }

  .hero__grid,
  .project__grid,
  .development__grid,
  .models__grid,
  .amenities__grid,
  .location__grid,
  .contact-register__grid {
    grid-template-columns: 1fr;
  }

  .project .scene__inner,
  .project .scene__content {
    width: var(--container);
    margin-inline: auto;
    padding-right: 0;
  }

  .project-media {
    max-width: 620px;
    border-radius: 30px;
  }

  .project-media::before {
    background: linear-gradient(to top, var(--bg), transparent 34%);
  }

  html[data-theme="day"] .project-media::before {
    background: linear-gradient(to top, rgba(242, 236, 230, .96), transparent 34%);
  }

  .hero-card {
    min-height: auto;
  }

  .models-copy {
    display: block;
  }

  .model-visual-card {
    min-height: auto;
  }

  .model-details {
    order: 2;
  }

  .model-visual-card {
    order: 1;
  }

  .models-copy {
    order: 0;
  }

  .amenities-track,
  .development-track {
    margin-inline: -20px;
    padding-inline: 20px;
    grid-auto-columns: min(78vw, 420px);
  }

  .map-card {
    min-height: 460px;
  }

  .register-card {
    justify-self: stretch;
    margin-top: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 560px);
    --wide-container: min(100% - 28px, 560px);
    --scene-pad-y: 96px;
  }

  body {
    font-size: 15px;
  }

  .nav-shell {
    gap: 10px;
    min-height: 72px;
    padding: 10px;
  }

  .brand-link img {
    width: 126px;
  }

  .nav-cta {
    display: none;
  }

  .theme-toggle {
    height: 38px;
  }

  .theme-toggle__icon {
    width: 28px;
    height: 28px;
  }

  .hero {
    padding-top: 120px;
  }

  .display-title,
  .hero__title {
    font-size: clamp(42px, 14vw, 72px);
    letter-spacing: -.07em;
  }

  .hero__meta {
    margin-top: 34px;
  }

  .hero-controls {
    right: 16px;
    bottom: 22px;
  }

  .hero-card__logo {
    width: 78px;
  }

  .hero-stat {
    grid-template-columns: 48px 1fr;
  }

  .hero-stat__icon {
    width: 44px;
    height: 44px;
  }

  .hero-stat strong {
    font-size: 18px;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .development-copy .display-title,
  .amenities-copy .display-title,
  .location .display-title,
  .models-copy .display-title {
    font-size: clamp(42px, 13vw, 68px);
  }

  .development-card,
  .amenity-card {
    min-height: 440px;
  }

  .model-title {
    font-size: clamp(58px, 16vw, 84px);
  }

  .model-rooms {
    grid-template-columns: 1fr;
  }

  .model-option {
    padding: 15px;
  }

  .location-list li {
    font-size: 14px;
  }

  .contact-card,
  .register-card {
    padding: 26px;
    border-radius: 26px;
  }

  .contact-card .display-title,
  .register-card .display-title {
    font-size: clamp(38px, 12vw, 64px);
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .scene__content,
  .scene [data-reveal],
  .scene .reveal,
  .development-card,
  .amenity-card {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .intro-loader {
    display: none;
  }
}

/* =========================================================
   X APARTMENTS — V9 REFINEMENTS
   Ajustes: logo day mode, hero card, proyecto, modelos,
   espaciados entre escenas y proporciones generales.
   ========================================================= */

:root {
  --scene-min: 106vh;
  --scene-pad-y: clamp(88px, 9vh, 138px);
}

.site-header {
  top: 22px;
}

html[data-theme="day"] .brand-link img {
  opacity: 1;
  filter:
    saturate(1.65)
    contrast(1.28)
    brightness(.92)
    drop-shadow(0 2px 10px rgba(16, 36, 57, .12));
}

html[data-theme="day"] .nav-shell {
  background: rgba(255, 250, 245, .78);
}

html[data-theme="day"] .main-nav a {
  color: rgba(16, 36, 57, .92);
}

.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 44px);
  padding-bottom: 60px;
}

.hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 480px);
  align-items: center;
  gap: clamp(30px, 4.5vw, 72px);
}

.hero__title {
  max-width: 1010px;
  font-size: clamp(50px, 6.35vw, 118px);
  letter-spacing: -.084em;
}

.hero-card {
  width: 100%;
  max-width: 480px;
  min-height: auto;
  padding: clamp(34px, 3.8vw, 54px);
}

.hero-card__logo {
  width: clamp(112px, 9vw, 142px);
  margin: 0 auto 42px;
}

.hero-stat {
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding-block: 21px;
}

.hero-stat__icon {
  width: 64px;
  height: 64px;
  border-radius: 19px;
  font-size: 24px;
  border-color: rgba(164, 219, 255, .48);
}

html[data-theme="day"] .hero-stat__icon {
  background: rgba(255, 255, 255, .20);
  border-color: rgba(164, 219, 255, .62);
  color: var(--x-magenta-hot);
}

.hero-stat span {
  font-size: 11px;
  letter-spacing: .15em;
}

.hero-stat strong {
  font-size: clamp(21px, 1.3vw, 24px);
  line-height: 1.25;
}

.hero-card .btn {
  margin-top: 34px;
}

.project {
  min-height: 104vh;
}

.project .scene__inner {
  width: min(100vw, 1680px);
}

.project__grid {
  grid-template-columns: minmax(520px, .92fr) minmax(560px, .96fr);
  gap: clamp(32px, 5.3vw, 88px);
}

.project-media {
  min-height: clamp(600px, 71vh, 780px);
  aspect-ratio: auto;
}

.project .display-title {
  font-size: clamp(58px, 5.55vw, 104px);
  line-height: .91;
  letter-spacing: -.078em;
  max-width: 800px;
}

.project .section-copy {
  max-width: 620px;
  font-size: clamp(17px, 1.05vw, 20px);
  margin-top: 24px;
}

.project-features {
  margin-top: 36px;
}

.development {
  min-height: 106vh;
}

.development__grid {
  grid-template-columns: minmax(520px, .58fr) minmax(0, 1fr);
}

.development-copy .display-title {
  font-size: clamp(52px, 4.95vw, 96px);
  max-width: 760px;
}

.development-track {
  padding-top: 22px;
  padding-bottom: 34px;
}

.models {
  min-height: 106vh;
  padding-block: clamp(86px, 8.5vh, 132px);
}

.models__grid {
  grid-template-columns: minmax(720px, 1.18fr) minmax(390px, .52fr);
  align-items: center;
  gap: clamp(36px, 4.4vw, 72px);
}

.model-visual-card {
  min-height: clamp(620px, 74vh, 840px);
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="day"] .model-visual-card {
  background: transparent;
}

.model-image-wrap {
  min-height: clamp(600px, 72vh, 820px);
  padding: 0;
  border-radius: 0;
  background: transparent;
}

html[data-theme="day"] .model-image-wrap {
  background: transparent;
}

.model-image-wrap img {
  width: min(100%, 1080px);
  max-height: 760px;
  object-fit: contain;
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, .18));
}

.model-note {
  max-width: 980px;
  margin-top: 12px;
  color: var(--muted-2);
}

.model-details {
  max-width: 440px;
}

.model-title {
  font-size: clamp(66px, 5.6vw, 108px);
}

.model-area {
  margin-top: 22px;
}

.model-rooms {
  margin: 24px 0;
}

.model-selector {
  margin-top: 18px;
}

.model-option {
  padding: 16px 17px;
}

.model-views {
  margin-top: 18px;
}

.model-brochure {
  margin-top: 14px;
}

.amenities {
  min-height: 108vh;
  padding-block: clamp(90px, 8.8vh, 138px);
}

.amenities__grid {
  grid-template-columns: minmax(430px, .43fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px);
}

.amenities-copy .display-title {
  font-size: clamp(50px, 4.8vw, 86px);
  max-width: 600px;
}

.amenities-track {
  grid-auto-columns: clamp(300px, 26vw, 410px);
  padding-top: 28px;
  padding-bottom: 38px;
}

.amenity-card {
  min-height: clamp(460px, 58vh, 680px);
}

.amenity-card h3 {
  font-size: clamp(29px, 2.45vw, 44px);
}

.location {
  min-height: 104vh;
}

.map-card {
  min-height: clamp(560px, 70vh, 820px);
}

.contact-register {
  min-height: 106vh;
  padding-block: clamp(90px, 8.8vh, 140px);
}

.contact-register__grid {
  align-items: center;
}

.register-card {
  margin-top: clamp(46px, 5vh, 82px);
}

.site-footer {
  min-height: 88px;
  padding: 18px 0;
}

.footer-logo {
  width: 148px;
}

/* Desktop compacto: evita cortes horizontales sin hacer todo pequeño */
@media (max-width: 1440px) {
  :root {
    --scene-min: 104vh;
    --scene-pad-y: clamp(82px, 8vh, 124px);
  }

  .hero__grid {
    grid-template-columns: minmax(0, .98fr) minmax(390px, 440px);
    gap: 42px;
  }

  .hero__title {
    font-size: clamp(48px, 6vw, 102px);
  }

  .hero-card {
    max-width: 440px;
    padding: 36px;
  }

  .hero-stat {
    grid-template-columns: 62px 1fr;
    gap: 18px;
  }

  .hero-stat__icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .hero-stat strong {
    font-size: 21px;
  }

  .project__grid {
    grid-template-columns: minmax(470px, .9fr) minmax(500px, .95fr);
    gap: 54px;
  }

  .project-media {
    min-height: clamp(560px, 68vh, 720px);
  }

  .project .display-title {
    font-size: clamp(54px, 5.25vw, 94px);
  }

  .models__grid {
    grid-template-columns: minmax(640px, 1.08fr) minmax(360px, .54fr);
  }

  .model-image-wrap {
    min-height: clamp(540px, 68vh, 720px);
  }

  .model-image-wrap img {
    max-height: 670px;
  }

  .model-title {
    font-size: clamp(62px, 5.3vw, 96px);
  }

  .amenities__grid {
    grid-template-columns: minmax(380px, .42fr) minmax(0, 1fr);
  }
}

@media (max-width: 1280px) {
  .hero__grid,
  .project__grid,
  .development__grid,
  .models__grid,
  .amenities__grid,
  .location__grid,
  .contact-register__grid {
    gap: 34px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    justify-self: start;
    max-width: 560px;
  }

  .project__grid {
    grid-template-columns: 1fr;
  }

  .project .scene__inner,
  .project .scene__content {
    width: var(--container);
    margin-inline: auto;
    padding-right: 0;
  }

  .project-media {
    width: 100%;
    max-width: 760px;
    min-height: 520px;
    border-radius: 30px;
  }

  .project-media::before {
    background: linear-gradient(to top, var(--bg), transparent 36%);
  }

  html[data-theme="day"] .project-media::before {
    background: linear-gradient(to top, rgba(242, 236, 230, .96), transparent 36%);
  }

  .models__grid {
    grid-template-columns: 1fr;
  }

  .model-details {
    max-width: 760px;
  }

  .model-visual-card {
    min-height: auto;
  }

  .model-image-wrap {
    min-height: auto;
  }

  .model-image-wrap img {
    max-height: 620px;
  }

  .amenities__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --scene-min: auto;
    --scene-pad-y: 82px;
  }

  .hero-card {
    max-width: 100%;
    padding: 28px;
  }

  .hero-card__logo {
    width: 92px;
  }

  .hero-stat {
    grid-template-columns: 52px 1fr;
  }

  .hero-stat__icon {
    width: 46px;
    height: 46px;
  }

  .hero-stat strong {
    font-size: 18px;
  }

  .project-media {
    min-height: 420px;
  }

  .project .display-title {
    font-size: clamp(42px, 13vw, 68px);
  }

  .model-image-wrap img {
    max-height: 440px;
  }
}

/* =========================================================
   X APARTMENTS — ROOT STYLE FIX + PROJECT FULL BACKGROUND
   Este bloque asume que style.css vive en /public_html/style.css
   y por eso las rutas usan assets/... sin ../
   ========================================================= */

:root {
  --scene-min: 102vh;
  --scene-pad-y: clamp(78px, 7.5vh, 118px);
}

/* Evita que el fallback Arial Black domine si alguna fuente tarda en cargar */
.display-title,
.hero__title,
.project .display-title,
.development-copy .display-title,
.amenities-copy .display-title,
.location .display-title,
.contact-card .display-title,
.register-card .display-title,
.model-title {
  font-family: "ZalandoX", "Trebuchet MS", "Arial", sans-serif;
  font-weight: 400;
}

.main-nav a,
.btn,
.eyebrow,
.nav-cta,
.model-option,
.model-view,
.feature-item strong {
  font-family: "ZalandoX", "Trebuchet MS", "Arial", sans-serif;
}

/* Logo superior más legible en modo día */
html[data-theme="day"] .brand-link img {
  opacity: 1;
  filter:
    saturate(1.95)
    contrast(1.45)
    brightness(.86)
    drop-shadow(0 2px 8px rgba(16, 36, 57, .18));
}

html[data-theme="day"] .nav-shell {
  background: rgba(255, 250, 245, .84);
}

/* Hero card: X centrada y estadísticas más fuertes */
.hero-card__logo {
  margin-left: auto;
  margin-right: auto;
}

.hero-stat__icon {
  color: var(--x-magenta-hot);
}

html[data-theme="day"] .hero-stat__icon {
  background: rgba(255, 255, 255, .28);
  border-color: rgba(164, 219, 255, .72);
  color: var(--x-magenta-hot);
}

.hero-stat strong {
  white-space: normal;
}

/* Proyecto como imagen full background + mitad blur */
.project {
  min-height: 100vh;
  padding-block: 0;
  overflow: hidden;
}

.project .scene__inner {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
}

.project__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 780px);
  align-items: center;
  min-height: 100vh;
  gap: 0;
  padding: calc(var(--header-h) + 72px) max(72px, calc((100vw - var(--container)) / 2)) 72px;
}

.project-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  border-radius: 0;
  aspect-ratio: auto;
  box-shadow: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(7, 11, 18, .10) 0%,
      rgba(7, 11, 18, .16) 42%,
      rgba(7, 11, 18, .48) 56%,
      rgba(7, 11, 18, .78) 100%);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  z-index: 3;
  width: auto;
  height: auto;
  border-radius: 0;
  background: rgba(7, 11, 18, .26);
  box-shadow: none;
  mask: none;
  backdrop-filter: blur(24px) saturate(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(1.05);
}

html[data-theme="day"] .project-media::before {
  background:
    linear-gradient(90deg,
      rgba(242, 236, 230, .10) 0%,
      rgba(242, 236, 230, .18) 42%,
      rgba(242, 236, 230, .56) 56%,
      rgba(242, 236, 230, .88) 100%);
}

html[data-theme="day"] .project-media::after {
  background: rgba(242, 236, 230, .38);
}

.project .scene__content {
  grid-column: 2;
  position: relative;
  z-index: 4;
  max-width: 760px;
  padding: clamp(30px, 3vw, 52px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 32px;
  background: rgba(7, 11, 18, .16);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme="day"] .project .scene__content {
  border-color: rgba(40, 70, 109, .12);
  background: rgba(255, 250, 245, .28);
  box-shadow: 0 26px 80px rgba(40, 70, 109, .10);
}

.project .display-title {
  max-width: 720px;
  font-size: clamp(54px, 5.15vw, 96px);
  line-height: .92;
  letter-spacing: -.078em;
}

.project .section-copy {
  max-width: 650px;
  font-size: clamp(17px, 1.08vw, 20px);
}

.project-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* Modelos: imagen más protagónica sin card pesada */
.models {
  min-height: 100vh;
}

.model-visual-card {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.model-image-wrap {
  background: transparent !important;
}

.model-image-wrap img {
  width: min(100%, 1120px);
  max-height: 800px;
}

/* Menos aire muerto entre escenas */
.development,
.amenities,
.location,
.contact-register {
  min-height: 100vh;
}

.amenities-track {
  padding-bottom: 30px;
}

/* Mobile/tablet: Proyecto vuelve a layout vertical */
@media (max-width: 1024px) {
  .project {
    padding-block: var(--scene-pad-y);
  }

  .project .scene__inner {
    width: var(--container);
    min-height: auto;
    margin-inline: auto;
  }

  .project__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
    gap: 28px;
  }

  .project-media {
    position: relative;
    min-height: 440px;
    border-radius: 30px;
  }

  .project-media::before {
    background: linear-gradient(to top, rgba(7, 11, 18, .72), transparent 48%);
  }

  .project-media::after {
    display: none;
  }

  html[data-theme="day"] .project-media::before {
    background: linear-gradient(to top, rgba(242, 236, 230, .82), transparent 48%);
  }

  .project .scene__content {
    grid-column: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 760px) {
  .project-media {
    min-height: 360px;
  }

  .project .display-title {
    font-size: clamp(42px, 13vw, 68px);
  }
}

/* =========================================================
   X APARTMENTS — FORCE PATCH V11.1
   SENTINEL: XA_PROJECT_FULL_BACKGROUND_FORCE_20260731
   - Proyecto como background real del section.
   - Sin figure visible, sin franjas, sin card.
   - Degradado largo: 0% limpio → 45% transición → 100% lectura.
   - Hero stats/icons más visibles.
   - Lightbox preparado para modelos por click.
   ========================================================= */

/* HERO CARD */
.hero-card__logo {
  width: clamp(78px, 6vw, 104px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 34px !important;
}

.hero-stat {
  grid-template-columns: 78px 1fr !important;
  gap: 22px !important;
}

.hero-stat__icon {
  width: 68px !important;
  height: 68px !important;
  border-radius: 20px !important;
  font-size: 25px !important;
  border-color: rgba(164, 219, 255, .70) !important;
  color: var(--x-magenta-hot) !important;
}

.hero-stat span {
  font-size: 12px !important;
}

.hero-stat strong {
  font-size: clamp(22px, 1.45vw, 27px) !important;
  line-height: 1.18 !important;
}

html[data-theme="day"] .hero-stat__icon {
  background: rgba(255, 255, 255, .32) !important;
  border-color: rgba(164, 219, 255, .78) !important;
}

/* PROYECTO: background real */
section.project,
.project {
  position: relative !important;
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(90deg,
      rgba(7, 11, 18, 0) 0%,
      rgba(7, 11, 18, 0) 12%,
      rgba(7, 11, 18, .02) 28%,
      rgba(7, 11, 18, .10) 42%,
      rgba(7, 11, 18, .30) 56%,
      rgba(7, 11, 18, .58) 74%,
      rgba(7, 11, 18, .86) 100%),
    url("assets/img/renders/exteriores/05.%20Comercio.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

html[data-theme="day"] section.project,
html[data-theme="day"] .project {
  background-image:
    linear-gradient(90deg,
      rgba(242, 236, 230, 0) 0%,
      rgba(242, 236, 230, 0) 12%,
      rgba(242, 236, 230, .02) 28%,
      rgba(242, 236, 230, .12) 42%,
      rgba(242, 236, 230, .36) 56%,
      rgba(242, 236, 230, .68) 74%,
      rgba(242, 236, 230, .94) 100%),
    url("assets/img/renders/exteriores/05.%20Comercio.jpg") !important;
}

/* Blur progresivo solo del lado de lectura */
section.project::after,
.project::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg,
      rgba(7, 11, 18, 0) 0%,
      rgba(7, 11, 18, 0) 45%,
      rgba(7, 11, 18, .12) 55%,
      rgba(7, 11, 18, .34) 75%,
      rgba(7, 11, 18, .56) 100%) !important;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    transparent 45%,
    rgba(0, 0, 0, .18) 55%,
    rgba(0, 0, 0, .62) 75%,
    #000 100%) !important;
  mask-image: linear-gradient(90deg,
    transparent 0%,
    transparent 45%,
    rgba(0, 0, 0, .18) 55%,
    rgba(0, 0, 0, .62) 75%,
    #000 100%) !important;
  backdrop-filter: blur(26px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.08) !important;
}

html[data-theme="day"] section.project::after,
html[data-theme="day"] .project::after {
  background:
    linear-gradient(90deg,
      rgba(242, 236, 230, 0) 0%,
      rgba(242, 236, 230, 0) 45%,
      rgba(242, 236, 230, .14) 55%,
      rgba(242, 236, 230, .40) 75%,
      rgba(242, 236, 230, .62) 100%) !important;
}

/* Apaga el figure original para quitar franjas/bordes/duplicados */
.project-media,
.project figure.project-media {
  display: none !important;
}

/* Layout de texto */
.project .scene__inner {
  width: 100vw !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
}

.project__grid {
  position: relative !important;
  z-index: 3 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 45%) minmax(520px, 720px) !important;
  align-items: center !important;
  min-height: 100vh !important;
  padding:
    calc(var(--header-h) + 70px)
    max(72px, calc((100vw - var(--container)) / 2))
    72px
    max(72px, calc((100vw - var(--container)) / 2)) !important;
  gap: 0 !important;
  overflow: visible !important;
}

.project .scene__content {
  grid-column: 2 !important;
  position: relative !important;
  z-index: 4 !important;
  max-width: 720px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.project .display-title {
  max-width: 720px !important;
  font-size: clamp(54px, 5vw, 94px) !important;
  line-height: .92 !important;
  letter-spacing: -.078em !important;
}

.project .section-copy {
  max-width: 660px !important;
  font-size: clamp(17px, 1.08vw, 20px) !important;
}

.project-features {
  max-width: 690px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

html[data-theme="day"] .project .display-title,
html[data-theme="day"] .project .feature-item strong {
  color: #102439 !important;
  text-shadow: 0 12px 34px rgba(255, 255, 255, .70) !important;
}

html[data-theme="day"] .project .section-copy,
html[data-theme="day"] .project .feature-item p {
  color: rgba(16, 36, 57, .78) !important;
  text-shadow: 0 10px 30px rgba(255, 255, 255, .78) !important;
}

/* MODELOS: apaga hover flotante viejo */
.models::after {
  display: none !important;
}

.model-visual-card,
.model-visual-card:hover,
.model-visual-card:focus-within {
  position: relative !important;
  z-index: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: clamp(620px, 74vh, 840px) !important;
  padding: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: zoom-in !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  outline: 0 !important;
}

.model-visual-card::before {
  display: none !important;
}

.model-visual-card:hover .model-image-wrap,
.model-visual-card:focus-within .model-image-wrap {
  height: auto !important;
  overflow: visible !important;
}

.model-visual-card:hover .model-image-wrap img,
.model-visual-card:focus-within .model-image-wrap img {
  transform: none !important;
  max-width: 100% !important;
  max-height: 800px !important;
}

.model-visual-card:hover .model-note,
.model-visual-card:focus-within .model-note {
  position: static !important;
  margin-top: 12px !important;
  text-align: left !important;
}

/* LIGHTBOX preparado para script.js */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: clamp(20px, 4vw, 54px);
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 0, 127, .13), transparent 36vw),
    rgba(4, 7, 12, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html[data-theme="day"] .image-lightbox {
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 0, 127, .10), transparent 36vw),
    rgba(242, 236, 230, .72);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox__dialog {
  position: relative;
  display: grid;
  place-items: center;
  width: min(84vw, 1320px);
  height: min(84vh, 900px);
  padding: clamp(18px, 2.5vw, 34px);
  border: 1px solid rgba(164, 219, 255, .24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 68% 18%, rgba(223, 0, 127, .12), transparent 34%),
    rgba(7, 11, 18, .84);
  box-shadow: 0 42px 120px rgba(0, 0, 0, .62);
  overflow: hidden;
}

html[data-theme="day"] .image-lightbox__dialog {
  background:
    radial-gradient(circle at 68% 18%, rgba(223, 0, 127, .10), transparent 34%),
    rgba(255, 250, 245, .88);
  box-shadow: 0 42px 120px rgba(40, 70, 109, .22);
}

.image-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, .20));
}

.image-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: var(--x-magenta-hot);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 16px 40px rgba(223, 0, 127, .28);
  cursor: pointer;
}

.image-lightbox__caption {
  position: absolute;
  left: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 2.5vw, 34px);
  bottom: 14px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}

html[data-theme="day"] .image-lightbox__caption {
  color: rgba(16, 36, 57, .58);
}

/* Responsive */
@media (max-width: 1024px) {
  .project {
    padding-block: var(--scene-pad-y) !important;
    background-position: center center !important;
  }

  .project::after {
    display: none !important;
  }

  .project .scene__inner {
    width: var(--container) !important;
    min-height: auto !important;
    margin-inline: auto !important;
  }

  .project__grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .project .scene__content {
    grid-column: auto !important;
    padding: 28px !important;
    border-radius: 26px !important;
    background: rgba(7, 11, 18, .52) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  html[data-theme="day"] .project .scene__content {
    background: rgba(255, 250, 245, .68) !important;
  }
}

@media (max-width: 760px) {
  .hero-stat {
    grid-template-columns: 56px 1fr !important;
  }

  .hero-stat__icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }

  .project .display-title {
    font-size: clamp(42px, 13vw, 68px) !important;
  }

  .image-lightbox__dialog {
    width: 92vw;
    height: 78vh;
    border-radius: 24px;
  }
}

/* =========================================================
   X APARTMENTS — PROJECT FINE TUNE V11.2
   Mueve ligeramente el texto a la derecha y adelanta el blur
   para que abrace mejor el contenido sin tapar toda la imagen.
   ========================================================= */

section.project,
.project {
  background-image:
    linear-gradient(90deg,
      rgba(7, 11, 18, 0) 0%,
      rgba(7, 11, 18, 0) 8%,
      rgba(7, 11, 18, .02) 24%,
      rgba(7, 11, 18, .10) 36%,
      rgba(7, 11, 18, .28) 50%,
      rgba(7, 11, 18, .56) 70%,
      rgba(7, 11, 18, .86) 100%),
    url("assets/img/renders/exteriores/05.%20Comercio.jpg") !important;
}

html[data-theme="day"] section.project,
html[data-theme="day"] .project {
  background-image:
    linear-gradient(90deg,
      rgba(242, 236, 230, 0) 0%,
      rgba(242, 236, 230, 0) 8%,
      rgba(242, 236, 230, .02) 24%,
      rgba(242, 236, 230, .12) 36%,
      rgba(242, 236, 230, .34) 50%,
      rgba(242, 236, 230, .66) 70%,
      rgba(242, 236, 230, .94) 100%),
    url("assets/img/renders/exteriores/05.%20Comercio.jpg") !important;
}

section.project::after,
.project::after {
  background:
    linear-gradient(90deg,
      rgba(7, 11, 18, 0) 0%,
      rgba(7, 11, 18, 0) 36%,
      rgba(7, 11, 18, .10) 46%,
      rgba(7, 11, 18, .32) 66%,
      rgba(7, 11, 18, .56) 100%) !important;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    transparent 36%,
    rgba(0, 0, 0, .16) 46%,
    rgba(0, 0, 0, .62) 66%,
    #000 100%) !important;
  mask-image: linear-gradient(90deg,
    transparent 0%,
    transparent 36%,
    rgba(0, 0, 0, .16) 46%,
    rgba(0, 0, 0, .62) 66%,
    #000 100%) !important;
}

html[data-theme="day"] section.project::after,
html[data-theme="day"] .project::after {
  background:
    linear-gradient(90deg,
      rgba(242, 236, 230, 0) 0%,
      rgba(242, 236, 230, 0) 36%,
      rgba(242, 236, 230, .12) 46%,
      rgba(242, 236, 230, .38) 66%,
      rgba(242, 236, 230, .62) 100%) !important;
}

/* Texto un pelín más a la derecha */
.project__grid {
  grid-template-columns: minmax(0, 50%) minmax(520px, 720px) !important;
}

.project .scene__content {
  transform: translateX(clamp(10px, 1.5vw, 24px)) !important;
}

@media (max-width: 1024px) {
  .project__grid {
    grid-template-columns: 1fr !important;
  }

  .project .scene__content {
    transform: none !important;
  }
}

/* =========================================================
   X APARTMENTS — STYLE FINAL V12
   SENTINEL: XA_STYLE_FINAL_V12_PROJECT_PREMIUM_20260731
   Cierre premium:
   - Proyecto con imagen full background.
   - Capa de lectura independiente para day/night.
   - Blur más orgánico, menos mancha, más editorial.
   - Texto con mejor jerarquía y contraste.
   - Navbar, hero stats y modelos refinados.
   - Lightbox visual listo para script.js.
   ========================================================= */

/* Ajuste global fino de ritmo */
:root {
  --scene-min: 100vh;
  --scene-pad-y: clamp(74px, 7vh, 112px);
}

/* Navbar un poco más premium sin perder lectura */
.nav-shell {
  border-color: rgba(223, 0, 127, .18) !important;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, .30),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

html[data-theme="day"] .nav-shell {
  background:
    linear-gradient(135deg, rgba(255, 250, 245, .88), rgba(255, 244, 250, .78)) !important;
  border-color: rgba(223, 0, 127, .14) !important;
  box-shadow:
    0 22px 70px rgba(40, 70, 109, .12),
    inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

html[data-theme="day"] .brand-link img {
  opacity: 1 !important;
  filter:
    saturate(2.05)
    contrast(1.48)
    brightness(.84)
    drop-shadow(0 2px 8px rgba(16, 36, 57, .18)) !important;
}

/* HERO: stats más premium, X controlada */
.hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .07)),
    radial-gradient(circle at 80% 20%, rgba(164, 219, 255, .12), transparent 34%) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

html[data-theme="day"] .hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .54), rgba(255, 250, 245, .34)),
    radial-gradient(circle at 80% 20%, rgba(251, 220, 239, .30), transparent 34%) !important;
  border-color: rgba(40, 70, 109, .13) !important;
}

.hero-card__logo {
  width: clamp(76px, 5.8vw, 102px) !important;
  margin-inline: auto !important;
  margin-bottom: 34px !important;
}

.hero-stat {
  grid-template-columns: 78px 1fr !important;
  gap: 22px !important;
  padding-block: 22px !important;
}

.hero-stat__icon {
  width: 68px !important;
  height: 68px !important;
  border-radius: 20px !important;
  border-color: rgba(164, 219, 255, .70) !important;
  color: var(--x-magenta-hot) !important;
  font-size: 25px !important;
  background: rgba(255, 255, 255, .04) !important;
}

html[data-theme="day"] .hero-stat__icon {
  background: rgba(255, 255, 255, .36) !important;
  border-color: rgba(164, 219, 255, .80) !important;
}

.hero-stat span {
  font-size: 12px !important;
  letter-spacing: .15em !important;
}

.hero-stat strong {
  font-size: clamp(22px, 1.45vw, 27px) !important;
  line-height: 1.18 !important;
}

/* =========================================================
   PROYECTO FINAL PREMIUM
   ========================================================= */

section.project,
.project {
  position: relative !important;
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(90deg,
      rgba(7, 11, 18, .00) 0%,
      rgba(7, 11, 18, .00) 16%,
      rgba(7, 11, 18, .02) 32%,
      rgba(7, 11, 18, .12) 45%,
      rgba(7, 11, 18, .35) 60%,
      rgba(7, 11, 18, .62) 78%,
      rgba(7, 11, 18, .86) 100%),
    url("assets/img/renders/exteriores/05.%20Comercio.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

html[data-theme="day"] section.project,
html[data-theme="day"] .project {
  background-image:
    linear-gradient(90deg,
      rgba(242, 236, 230, .00) 0%,
      rgba(242, 236, 230, .00) 14%,
      rgba(242, 236, 230, .03) 30%,
      rgba(242, 236, 230, .15) 43%,
      rgba(242, 236, 230, .38) 58%,
      rgba(242, 236, 230, .69) 76%,
      rgba(242, 236, 230, .94) 100%),
    url("assets/img/renders/exteriores/05.%20Comercio.jpg") !important;
}

/* Mata por completo el figure original para que no haya franjas ni duplicados */
.project-media,
.project figure.project-media {
  display: none !important;
}

/* Capa blur real: empieza antes pero entra suave */
section.project::after,
.project::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 70% 48%, rgba(223, 0, 127, .13), transparent 34vw),
    linear-gradient(90deg,
      rgba(7, 11, 18, 0) 0%,
      rgba(7, 11, 18, 0) 34%,
      rgba(7, 11, 18, .08) 45%,
      rgba(7, 11, 18, .30) 64%,
      rgba(7, 11, 18, .56) 100%) !important;
  -webkit-mask-image:
    linear-gradient(90deg,
      transparent 0%,
      transparent 35%,
      rgba(0, 0, 0, .14) 45%,
      rgba(0, 0, 0, .54) 64%,
      #000 100%) !important;
  mask-image:
    linear-gradient(90deg,
      transparent 0%,
      transparent 35%,
      rgba(0, 0, 0, .14) 45%,
      rgba(0, 0, 0, .54) 64%,
      #000 100%) !important;
  backdrop-filter: blur(22px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
}

html[data-theme="day"] section.project::after,
html[data-theme="day"] .project::after {
  background:
    radial-gradient(circle at 72% 48%, rgba(223, 0, 127, .10), transparent 34vw),
    linear-gradient(90deg,
      rgba(242, 236, 230, 0) 0%,
      rgba(242, 236, 230, 0) 34%,
      rgba(242, 236, 230, .12) 45%,
      rgba(242, 236, 230, .38) 64%,
      rgba(242, 236, 230, .66) 100%) !important;
}

/* Velo extra para lectura, pero con look suave tipo editorial */
.project::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 43%,
      rgba(255, 255, 255, .06) 56%,
      rgba(255, 255, 255, .10) 100%),
    linear-gradient(to bottom,
      rgba(0, 0, 0, .08),
      transparent 22%,
      transparent 72%,
      rgba(0, 0, 0, .18)) !important;
}

html[data-theme="day"] .project::before {
  background:
    linear-gradient(90deg,
      rgba(242, 236, 230, 0) 0%,
      rgba(242, 236, 230, 0) 40%,
      rgba(242, 236, 230, .22) 54%,
      rgba(255, 250, 245, .38) 100%),
    linear-gradient(to bottom,
      rgba(255, 255, 255, .08),
      transparent 24%,
      transparent 72%,
      rgba(255, 244, 250, .22)) !important;
}

/* Layout del proyecto */
.project .scene__inner {
  width: 100vw !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
}

.project__grid {
  position: relative !important;
  z-index: 4 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 52%) minmax(520px, 720px) !important;
  align-items: center !important;
  min-height: 100vh !important;
  padding:
    calc(var(--header-h) + 70px)
    max(72px, calc((100vw - var(--container)) / 2))
    72px
    max(72px, calc((100vw - var(--container)) / 2)) !important;
  gap: 0 !important;
  overflow: visible !important;
}

.project .scene__content {
  grid-column: 2 !important;
  position: relative !important;
  z-index: 5 !important;
  max-width: 720px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(clamp(12px, 1.8vw, 30px)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.project .eyebrow {
  color: var(--x-magenta-hot) !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .22) !important;
}

.project .display-title {
  max-width: 720px !important;
  font-size: clamp(54px, 4.85vw, 92px) !important;
  line-height: .92 !important;
  letter-spacing: -.078em !important;
  color: #fff !important;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, .08),
    0 18px 54px rgba(0, 0, 0, .38) !important;
}

.project .section-copy {
  max-width: 660px !important;
  margin-top: 24px !important;
  color: rgba(255, 255, 255, .82) !important;
  font-size: clamp(17px, 1.08vw, 20px) !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .34) !important;
}

.project-features {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  max-width: 690px !important;
  margin-top: 34px !important;
}

.project .feature-item {
  border-top-color: rgba(255, 255, 255, .20) !important;
}

.project .feature-item strong {
  color: rgba(255, 255, 255, .96) !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .30) !important;
}

.project .feature-item p {
  color: rgba(255, 255, 255, .74) !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .26) !important;
}

/* Day mode: texto azul oscuro, lectura limpia, pero imagen viva */
html[data-theme="day"] .project .display-title {
  color: #102439 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .52),
    0 18px 46px rgba(255, 255, 255, .78) !important;
}

html[data-theme="day"] .project .section-copy {
  color: rgba(16, 36, 57, .80) !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .56),
    0 12px 34px rgba(255, 255, 255, .74) !important;
}

html[data-theme="day"] .project .feature-item {
  border-top-color: rgba(16, 36, 57, .18) !important;
}

html[data-theme="day"] .project .feature-item strong {
  color: #102439 !important;
  text-shadow: 0 10px 30px rgba(255, 255, 255, .72) !important;
}

html[data-theme="day"] .project .feature-item p {
  color: rgba(16, 36, 57, .72) !important;
  text-shadow: 0 10px 30px rgba(255, 255, 255, .70) !important;
}

/* Modelos: imagen limpia, lista para lightbox */
.models::after {
  display: none !important;
}

.model-visual-card,
.model-visual-card:hover,
.model-visual-card:focus-within {
  position: relative !important;
  z-index: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: clamp(620px, 74vh, 840px) !important;
  padding: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: zoom-in !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  outline: 0 !important;
}

.model-visual-card::before {
  display: none !important;
}

.model-visual-card:hover .model-image-wrap,
.model-visual-card:focus-within .model-image-wrap {
  height: auto !important;
  overflow: visible !important;
}

.model-visual-card:hover .model-image-wrap img,
.model-visual-card:focus-within .model-image-wrap img {
  transform: none !important;
  max-width: 100% !important;
  max-height: 800px !important;
}

/* Lightbox final para el JS */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: clamp(20px, 4vw, 54px);
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 0, 127, .13), transparent 36vw),
    rgba(4, 7, 12, .74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="day"] .image-lightbox {
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 0, 127, .10), transparent 36vw),
    rgba(242, 236, 230, .74);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox__dialog {
  position: relative;
  display: grid;
  place-items: center;
  width: min(84vw, 1320px);
  height: min(84vh, 900px);
  padding: clamp(18px, 2.5vw, 34px);
  border: 1px solid rgba(164, 219, 255, .24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 68% 18%, rgba(223, 0, 127, .12), transparent 34%),
    rgba(7, 11, 18, .86);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, .64),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}

html[data-theme="day"] .image-lightbox__dialog {
  background:
    radial-gradient(circle at 68% 18%, rgba(223, 0, 127, .10), transparent 34%),
    rgba(255, 250, 245, .90);
  box-shadow:
    0 42px 120px rgba(40, 70, 109, .24),
    inset 0 1px 0 rgba(255, 255, 255, .70);
}

.image-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, .20));
}

.image-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: var(--x-magenta-hot);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 16px 40px rgba(223, 0, 127, .28);
  cursor: pointer;
}

.image-lightbox__caption {
  position: absolute;
  left: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 2.5vw, 34px);
  bottom: 14px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}

html[data-theme="day"] .image-lightbox__caption {
  color: rgba(16, 36, 57, .58);
}

/* Responsive del proyecto */
@media (max-width: 1024px) {
  .project {
    padding-block: var(--scene-pad-y) !important;
    background-position: center center !important;
  }

  .project::before,
  .project::after {
    display: none !important;
  }

  .project .scene__inner {
    width: var(--container) !important;
    min-height: auto !important;
    margin-inline: auto !important;
  }

  .project__grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .project .scene__content {
    grid-column: auto !important;
    max-width: none !important;
    padding: 28px !important;
    border-radius: 26px !important;
    background: rgba(7, 11, 18, .54) !important;
    transform: none !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  html[data-theme="day"] .project .scene__content {
    background: rgba(255, 250, 245, .70) !important;
  }
}

@media (max-width: 760px) {
  .hero-stat {
    grid-template-columns: 56px 1fr !important;
  }

  .hero-stat__icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }

  .project .display-title {
    font-size: clamp(42px, 13vw, 68px) !important;
  }

  .image-lightbox__dialog {
    width: 92vw;
    height: 78vh;
    border-radius: 24px;
  }
}

/* =========================================================
   X APARTMENTS — STYLE FINAL V12.1
   SENTINEL: XA_STYLE_FINAL_V12_1_PROJECT_LOCK_20260731
   Último cierre:
   - Proyecto con lectura real day/night.
   - Blur y velo sí abrazan el texto.
   - Sin card rectangular visible.
   - Íconos hero centrados y visibles.
   ========================================================= */

/* Hero stat icons: fuerza centrado real */
.hero-stat__icon,
.hero-card .hero-stat__icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  min-height: 68px !important;
  padding: 0 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(164, 219, 255, .80) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: var(--x-magenta-hot) !important;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", Arial, sans-serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  overflow: hidden !important;
}

html[data-theme="day"] .hero-stat__icon,
html[data-theme="day"] .hero-card .hero-stat__icon {
  background: rgba(255, 255, 255, .42) !important;
  border-color: rgba(164, 219, 255, .88) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 10px 28px rgba(40, 70, 109, .08) !important;
}

.hero-stat:first-of-type .hero-stat__icon {
  font-size: 32px !important;
}

.hero-stat:nth-of-type(2) .hero-stat__icon {
  font-size: 28px !important;
}

.hero-stat:nth-of-type(3) .hero-stat__icon {
  font-size: 27px !important;
}

/* Proyecto final: texto protegido sin card visible */
section.project,
.project {
  background-image:
    linear-gradient(90deg,
      rgba(7, 11, 18, .00) 0%,
      rgba(7, 11, 18, .00) 26%,
      rgba(7, 11, 18, .12) 42%,
      rgba(7, 11, 18, .42) 58%,
      rgba(7, 11, 18, .72) 78%,
      rgba(7, 11, 18, .92) 100%),
    url("assets/img/renders/exteriores/05.%20Comercio.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

html[data-theme="day"] section.project,
html[data-theme="day"] .project {
  background-image:
    linear-gradient(90deg,
      rgba(242, 236, 230, .00) 0%,
      rgba(242, 236, 230, .00) 24%,
      rgba(242, 236, 230, .20) 40%,
      rgba(242, 236, 230, .58) 58%,
      rgba(255, 248, 244, .86) 78%,
      rgba(255, 250, 246, .98) 100%),
    url("assets/img/renders/exteriores/05.%20Comercio.jpg") !important;
}

/* Blur lateral más notorio, pero progresivo */
section.project::after,
.project::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 69% 50%, rgba(223, 0, 127, .16), transparent 31vw),
    linear-gradient(90deg,
      rgba(7, 11, 18, 0) 0%,
      rgba(7, 11, 18, 0) 30%,
      rgba(7, 11, 18, .14) 42%,
      rgba(7, 11, 18, .44) 62%,
      rgba(7, 11, 18, .68) 100%) !important;
  -webkit-mask-image:
    linear-gradient(90deg,
      transparent 0%,
      transparent 30%,
      rgba(0, 0, 0, .22) 42%,
      rgba(0, 0, 0, .72) 62%,
      #000 100%) !important;
  mask-image:
    linear-gradient(90deg,
      transparent 0%,
      transparent 30%,
      rgba(0, 0, 0, .22) 42%,
      rgba(0, 0, 0, .72) 62%,
      #000 100%) !important;
  backdrop-filter: blur(30px) saturate(1.05) brightness(.92) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.05) brightness(.92) !important;
}

html[data-theme="day"] section.project::after,
html[data-theme="day"] .project::after {
  background:
    radial-gradient(circle at 70% 50%, rgba(223, 0, 127, .11), transparent 31vw),
    linear-gradient(90deg,
      rgba(242, 236, 230, 0) 0%,
      rgba(242, 236, 230, 0) 30%,
      rgba(242, 236, 230, .20) 42%,
      rgba(255, 244, 250, .54) 62%,
      rgba(255, 250, 246, .74) 100%) !important;
  backdrop-filter: blur(32px) saturate(1.02) brightness(1.03) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.02) brightness(1.03) !important;
}

/* Mica orgánica detrás del texto, sin verse como card */
.project .scene__content::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: -42px -54px -48px -44px !important;
  border-radius: 54px !important;
  background:
    radial-gradient(circle at 24% 18%, rgba(164, 219, 255, .08), transparent 34%),
    radial-gradient(circle at 92% 80%, rgba(223, 0, 127, .12), transparent 38%),
    linear-gradient(135deg, rgba(7, 11, 18, .48), rgba(7, 11, 18, .20)) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  opacity: .92 !important;
  -webkit-mask-image:
    linear-gradient(90deg,
      rgba(0, 0, 0, .30) 0%,
      #000 20%,
      #000 100%) !important;
  mask-image:
    linear-gradient(90deg,
      rgba(0, 0, 0, .30) 0%,
      #000 20%,
      #000 100%) !important;
}

html[data-theme="day"] .project .scene__content::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(164, 219, 255, .12), transparent 34%),
    radial-gradient(circle at 92% 80%, rgba(223, 0, 127, .16), transparent 38%),
    linear-gradient(135deg, rgba(255, 250, 246, .76), rgba(255, 244, 250, .48)) !important;
  box-shadow:
    0 28px 90px rgba(40, 70, 109, .12),
    inset 0 1px 0 rgba(255, 255, 255, .74) !important;
  opacity: .96 !important;
}

/* Posición final del texto */
.project__grid {
  grid-template-columns: minmax(0, 54%) minmax(520px, 710px) !important;
}

.project .scene__content {
  position: relative !important;
  transform: translateX(clamp(14px, 2vw, 34px)) !important;
}

/* Tipografía del bloque proyecto: más lectura y lujo */
.project .eyebrow {
  color: var(--x-magenta-hot) !important;
  text-shadow:
    0 0 18px rgba(223, 0, 127, .30),
    0 8px 24px rgba(0, 0, 0, .24) !important;
}

.project .display-title {
  color: #fff !important;
  font-size: clamp(54px, 4.65vw, 88px) !important;
  line-height: .93 !important;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, .10),
    0 22px 58px rgba(0, 0, 0, .50) !important;
}

.project .section-copy {
  color: rgba(255, 255, 255, .84) !important;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .44) !important;
}

.project .feature-item {
  border-top-color: rgba(255, 255, 255, .24) !important;
}

.project .feature-item strong {
  color: rgba(255, 255, 255, .98) !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .42) !important;
}

.project .feature-item p {
  color: rgba(255, 255, 255, .76) !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .36) !important;
}

html[data-theme="day"] .project .display-title {
  color: #102439 !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .72),
    0 20px 54px rgba(255, 255, 255, .92) !important;
}

html[data-theme="day"] .project .section-copy {
  color: rgba(16, 36, 57, .82) !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .74),
    0 14px 34px rgba(255, 255, 255, .86) !important;
}

html[data-theme="day"] .project .feature-item {
  border-top-color: rgba(16, 36, 57, .20) !important;
}

html[data-theme="day"] .project .feature-item strong {
  color: #102439 !important;
  text-shadow: 0 12px 32px rgba(255, 255, 255, .88) !important;
}

html[data-theme="day"] .project .feature-item p {
  color: rgba(16, 36, 57, .74) !important;
  text-shadow: 0 12px 32px rgba(255, 255, 255, .82) !important;
}

/* En móvil se mantiene como tarjeta de lectura para no romper */
@media (max-width: 1024px) {
  .project::before,
  .project::after {
    display: none !important;
  }

  .project__grid {
    grid-template-columns: 1fr !important;
  }

  .project .scene__content {
    transform: none !important;
  }

  .project .scene__content::before {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .hero-stat__icon,
  .hero-card .hero-stat__icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 15px !important;
    font-size: 21px !important;
  }
}

/* =========================================================
   X APARTMENTS — STYLE FINAL V12.2
   SENTINEL: XA_STYLE_FINAL_V12_2_FLOATING_MODELS_20260731
   Modelos:
   - Quita card/blanco visual alrededor de plantas/interiores.
   - Imagen más grande y flotante.
   - Glassmorph/halo detrás sin marco pesado.
   - Lightbox más amplio y limpio.
   ========================================================= */

/* Sección modelos: más aire controlado y foco visual */
.models {
  overflow: hidden !important;
}

.models__grid {
  grid-template-columns: minmax(760px, 1.22fr) minmax(390px, .52fr) !important;
  align-items: center !important;
  gap: clamp(32px, 4vw, 68px) !important;
}

/* El contenedor ya no debe parecer card */
.model-visual-card,
.model-visual-card:hover,
.model-visual-card:focus-within {
  position: relative !important;
  min-height: clamp(620px, 74vh, 840px) !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(10px, 1.6vw, 24px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: zoom-in !important;
  overflow: visible !important;
}

/* Halo glassmorph flotante detrás de la imagen, sin card sólida */
.model-visual-card::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  left: 50% !important;
  top: 50% !important;
  width: min(92%, 980px) !important;
  height: min(72%, 620px) !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 42px !important;
  background:
    radial-gradient(circle at 58% 28%, rgba(164, 219, 255, .18), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(223, 0, 127, .14), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)) !important;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  backdrop-filter: blur(28px) saturate(1.10) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.10) !important;
  pointer-events: none !important;
}

html[data-theme="day"] .model-visual-card::after {
  background:
    radial-gradient(circle at 58% 28%, rgba(164, 219, 255, .18), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(223, 0, 127, .12), transparent 38%),
    linear-gradient(135deg, rgba(255, 250, 245, .34), rgba(255, 244, 250, .14)) !important;
  box-shadow:
    0 36px 110px rgba(40, 70, 109, .12),
    inset 0 1px 0 rgba(255, 255, 255, .76) !important;
}

/* Quitamos sensación de marco/card del wrapper */
.model-image-wrap,
.model-visual-card:hover .model-image-wrap,
.model-visual-card:focus-within .model-image-wrap {
  width: 100% !important;
  min-height: clamp(560px, 70vh, 810px) !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Imagen más grande, flotante, sin fondo blanco visual extra */
.model-image-wrap img,
.model-visual-card:hover .model-image-wrap img,
.model-visual-card:focus-within .model-image-wrap img {
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 1180px) !important;
  max-height: min(78vh, 820px) !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(255, 255, 255, .04) !important;
  filter:
    contrast(1.035)
    saturate(1.025)
    drop-shadow(0 18px 28px rgba(0, 0, 0, .16)) !important;
  transform: none !important;
  image-rendering: auto !important;
}

html[data-theme="day"] .model-image-wrap img,
html[data-theme="day"] .model-visual-card:hover .model-image-wrap img,
html[data-theme="day"] .model-visual-card:focus-within .model-image-wrap img {
  box-shadow:
    0 30px 70px rgba(40, 70, 109, .13),
    0 0 0 1px rgba(40, 70, 109, .04) !important;
}

/* La nota se mantiene discreta, no roba espacio */
.model-note,
.model-visual-card:hover .model-note,
.model-visual-card:focus-within .model-note {
  max-width: 980px !important;
  margin-top: 8px !important;
  color: var(--muted-2) !important;
  font-size: 11px !important;
  text-align: left !important;
}

/* Botones de vistas más cerca del contenido */
.model-views {
  margin-top: 16px !important;
}

.model-brochure {
  margin-top: 14px !important;
}

/* Lightbox más grande, limpio y premium */
.image-lightbox {
  padding: clamp(16px, 2.5vw, 36px) !important;
}

.image-lightbox__dialog {
  width: min(92vw, 1540px) !important;
  height: min(90vh, 980px) !important;
  padding: clamp(18px, 2vw, 30px) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 68% 18%, rgba(164, 219, 255, .11), transparent 34%),
    radial-gradient(circle at 82% 74%, rgba(223, 0, 127, .13), transparent 38%),
    rgba(7, 11, 18, .88) !important;
  box-shadow:
    0 44px 130px rgba(0, 0, 0, .66),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

html[data-theme="day"] .image-lightbox__dialog {
  background:
    radial-gradient(circle at 68% 18%, rgba(164, 219, 255, .12), transparent 34%),
    radial-gradient(circle at 82% 74%, rgba(223, 0, 127, .10), transparent 38%),
    rgba(255, 250, 245, .92) !important;
  box-shadow:
    0 44px 130px rgba(40, 70, 109, .24),
    inset 0 1px 0 rgba(255, 255, 255, .74) !important;
}

.image-lightbox__image {
  max-width: 100% !important;
  max-height: calc(100% - 26px) !important;
  object-fit: contain !important;
  background: transparent !important;
  filter:
    contrast(1.035)
    saturate(1.025)
    drop-shadow(0 24px 42px rgba(0, 0, 0, .22)) !important;
}

/* Hint sutil: comunica que se puede ampliar sin meter texto grande */
.model-visual-card::before {
  content: "Clic para ampliar" !important;
  position: absolute !important;
  z-index: 3 !important;
  left: clamp(8px, 1vw, 18px) !important;
  top: clamp(8px, 1vw, 18px) !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 999px !important;
  background: rgba(7, 11, 18, .38) !important;
  color: rgba(255, 255, 255, .76) !important;
  font-family: var(--font-display) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
  opacity: 0 !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  transition:
    opacity .28s var(--ease-premium),
    transform .28s var(--ease-premium) !important;
}

html[data-theme="day"] .model-visual-card::before {
  background: rgba(255, 250, 245, .68) !important;
  color: rgba(16, 36, 57, .70) !important;
  border-color: rgba(40, 70, 109, .14) !important;
}

.model-visual-card:hover::before,
.model-visual-card:focus-within::before {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Ajustes para pantallas medias */
@media (max-width: 1440px) {
  .models__grid {
    grid-template-columns: minmax(660px, 1.1fr) minmax(360px, .54fr) !important;
  }

  .model-image-wrap img,
  .model-visual-card:hover .model-image-wrap img,
  .model-visual-card:focus-within .model-image-wrap img {
    max-width: min(100%, 1040px) !important;
    max-height: min(75vh, 720px) !important;
  }
}

@media (max-width: 1280px) {
  .models__grid {
    grid-template-columns: 1fr !important;
  }

  .model-visual-card,
  .model-visual-card:hover,
  .model-visual-card:focus-within {
    min-height: auto !important;
  }

  .model-image-wrap,
  .model-visual-card:hover .model-image-wrap,
  .model-visual-card:focus-within .model-image-wrap {
    min-height: auto !important;
  }

  .model-details {
    max-width: 820px !important;
  }
}

@media (max-width: 760px) {
  .model-visual-card::after,
  .model-visual-card::before {
    display: none !important;
  }

  .model-image-wrap img,
  .model-visual-card:hover .model-image-wrap img,
  .model-visual-card:focus-within .model-image-wrap img {
    max-height: 440px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .12) !important;
  }

  .image-lightbox__dialog {
    width: 94vw !important;
    height: 82vh !important;
    border-radius: 24px !important;
  }
}

/* =========================================================
   X APARTMENTS — STYLE FINAL V12.3
   SENTINEL: XA_STYLE_FINAL_V12_3_FLOATING_IMAGE_NO_CARD_20260731
   Modelos y lightbox:
   - Elimina el card redondeado visible.
   - Mantiene profundidad con aura/glass difusa.
   - Imagen más limpia, flotando sobre el fondo.
   ========================================================= */

/* Imagen normal de modelos: sin rectángulo/card atrás */
.model-visual-card::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  left: 50% !important;
  top: 56% !important;
  width: min(76%, 860px) !important;
  height: min(42%, 360px) !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(ellipse at center,
      rgba(164, 219, 255, .16) 0%,
      rgba(223, 0, 127, .11) 34%,
      rgba(255, 255, 255, .05) 52%,
      transparent 72%) !important;
  box-shadow: none !important;
  opacity: .96 !important;
  filter: blur(22px) saturate(1.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

html[data-theme="day"] .model-visual-card::after {
  background:
    radial-gradient(ellipse at center,
      rgba(164, 219, 255, .14) 0%,
      rgba(223, 0, 127, .10) 34%,
      rgba(255, 250, 245, .10) 52%,
      transparent 74%) !important;
  filter: blur(24px) saturate(1.04) !important;
  opacity: .88 !important;
}

/* La imagen flota sin marco/card pesado */
.model-image-wrap img,
.model-visual-card:hover .model-image-wrap img,
.model-visual-card:focus-within .model-image-wrap img {
  box-shadow:
    0 32px 72px rgba(0, 0, 0, .16),
    0 10px 24px rgba(0, 0, 0, .08) !important;
  filter:
    contrast(1.035)
    saturate(1.025)
    drop-shadow(0 18px 24px rgba(0, 0, 0, .12)) !important;
}

html[data-theme="day"] .model-image-wrap img,
html[data-theme="day"] .model-visual-card:hover .model-image-wrap img,
html[data-theme="day"] .model-visual-card:focus-within .model-image-wrap img {
  box-shadow:
    0 32px 72px rgba(40, 70, 109, .10),
    0 10px 24px rgba(40, 70, 109, .05) !important;
}

/* Lightbox: elimina la caja/card redondeada completa */
.image-lightbox__dialog {
  width: min(94vw, 1600px) !important;
  height: min(91vh, 1000px) !important;
  padding: clamp(16px, 2vw, 28px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  isolation: isolate !important;
}

/* Aura del lightbox: difusa, no rectangular */
.image-lightbox__dialog::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  left: 50% !important;
  top: 54% !important;
  width: min(78vw, 1320px) !important;
  height: min(48vh, 520px) !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(ellipse at center,
      rgba(164, 219, 255, .17) 0%,
      rgba(223, 0, 127, .13) 34%,
      rgba(255, 255, 255, .05) 52%,
      transparent 74%) !important;
  filter: blur(28px) saturate(1.08) !important;
  opacity: .94 !important;
  pointer-events: none !important;
}

html[data-theme="day"] .image-lightbox__dialog::before {
  background:
    radial-gradient(ellipse at center,
      rgba(164, 219, 255, .15) 0%,
      rgba(223, 0, 127, .11) 34%,
      rgba(255, 250, 245, .12) 54%,
      transparent 76%) !important;
  filter: blur(30px) saturate(1.04) !important;
  opacity: .86 !important;
}

/* Imagen del lightbox más protagonista, sin parecer montada en tarjeta */
.image-lightbox__image {
  max-width: min(100%, 1520px) !important;
  max-height: calc(100% - 34px) !important;
  background: transparent !important;
  box-shadow:
    0 34px 82px rgba(0, 0, 0, .18),
    0 12px 28px rgba(0, 0, 0, .10) !important;
  filter:
    contrast(1.035)
    saturate(1.025)
    drop-shadow(0 18px 26px rgba(0, 0, 0, .14)) !important;
}

html[data-theme="day"] .image-lightbox__image {
  box-shadow:
    0 34px 82px rgba(40, 70, 109, .11),
    0 12px 28px rgba(40, 70, 109, .06) !important;
}

/* Caption flotante, sin depender de card */
.image-lightbox__caption {
  bottom: -4px !important;
  color: rgba(255, 255, 255, .64) !important;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .34) !important;
}

html[data-theme="day"] .image-lightbox__caption {
  color: rgba(16, 36, 57, .58) !important;
  text-shadow: 0 8px 22px rgba(255, 255, 255, .70) !important;
}

/* Botón cerrar sigue flotando, no pegado a card */
.image-lightbox__close {
  top: clamp(8px, 1.4vw, 18px) !important;
  right: clamp(8px, 1.4vw, 18px) !important;
  box-shadow:
    0 16px 42px rgba(223, 0, 127, .36),
    0 0 0 8px rgba(223, 0, 127, .08) !important;
}

/* Un poquito más grande en vista normal cuando hay espacio */
@media (min-width: 1281px) {
  .model-image-wrap img,
  .model-visual-card:hover .model-image-wrap img,
  .model-visual-card:focus-within .model-image-wrap img {
    max-width: min(100%, 1240px) !important;
    max-height: min(80vh, 850px) !important;
  }
}

@media (max-width: 760px) {
  .model-visual-card::after,
  .image-lightbox__dialog::before {
    display: none !important;
  }

  .image-lightbox__dialog {
    width: 94vw !important;
    height: 82vh !important;
    padding: 10px !important;
  }
}

/* =========================================================
   X APARTMENTS — WEB REVIEW STYLE V1
   SENTINEL: XA_WEB_REVIEW_STYLE_V1_20260806
   Ajustes para el index revisado:
   - Hero limpio sin card lateral.
   - Slogan homologado y mejor jerarquía.
   - Botón flotante de WhatsApp en verde oficial.
   - Contraste de modo día/noche y contacto.
   - Alineaciones y responsive del nuevo contenido.
   ========================================================= */

:root {
  --whatsapp-green: #25d366;
  --whatsapp-green-dark: #128c7e;
  --whatsapp-green-shadow: rgba(37, 211, 102, .38);
}

/* Header / logo */
.brand-link img {
  width: clamp(138px, 13vw, 192px) !important;
  max-height: 56px !important;
  object-fit: contain !important;
}

.nav-shell {
  grid-template-columns: minmax(150px, .52fr) 1fr auto auto !important;
}

html[data-theme="day"] .brand-link img {
  filter:
    saturate(1.45)
    contrast(1.2)
    brightness(.86)
    drop-shadow(0 2px 10px rgba(16, 36, 57, .10)) !important;
}

/* Hero limpio */
.hero {
  min-height: 100svh !important;
  padding-top: calc(var(--header-h) + 56px) !important;
  padding-bottom: clamp(72px, 8vh, 118px) !important;
}

@supports (min-height: 100dvh) {
  .hero {
    min-height: 100dvh !important;
  }
}

.hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(6, 10, 16, .86) 0%,
      rgba(6, 10, 16, .62) 38%,
      rgba(6, 10, 16, .28) 70%,
      rgba(6, 10, 16, .66) 100%
    ),
    radial-gradient(circle at 12% 72%, rgba(223, 0, 127, .38), transparent 34vw),
    radial-gradient(circle at 78% 12%, rgba(164, 219, 255, .14), transparent 32vw) !important;
}

html[data-theme="day"] .hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(242, 236, 230, .84) 0%,
      rgba(242, 236, 230, .56) 40%,
      rgba(242, 236, 230, .22) 72%,
      rgba(242, 236, 230, .64) 100%
    ),
    radial-gradient(circle at 12% 72%, rgba(223, 0, 127, .18), transparent 34vw),
    radial-gradient(circle at 78% 12%, rgba(40, 70, 109, .12), transparent 32vw) !important;
}

.hero__grid.hero__grid--clean,
.hero__grid:not(:has(.hero-card)) {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  width: min(var(--container), 1180px) !important;
  min-height: min(650px, calc(100dvh - var(--header-h) - 140px)) !important;
}

.hero__grid.hero__grid--clean .scene__content,
.hero__grid:not(:has(.hero-card)) .scene__content {
  max-width: 1120px !important;
}

.hero .hero-card {
  display: none !important;
}

.hero .eyebrow,
.hero .eyebrow--cyan {
  color: var(--x-magenta-hot) !important;
  letter-spacing: .24em !important;
  text-shadow: 0 0 24px rgba(223, 0, 127, .26) !important;
}

.hero__title {
  max-width: 1060px !important;
  font-size: clamp(58px, 7.8vw, 142px) !important;
  line-height: .88 !important;
}

.hero__text {
  max-width: 710px !important;
  margin-top: 26px !important;
  color: rgba(255, 255, 255, .88) !important;
  font-size: clamp(18px, 1.22vw, 24px) !important;
  line-height: 1.62 !important;
}

html[data-theme="day"] .hero__text {
  color: rgba(16, 36, 57, .80) !important;
}

.hero__actions {
  margin-top: 34px !important;
}

.hero__meta {
  margin-top: 42px !important;
}

.hero-controls {
  right: auto !important;
  left: max(32px, calc((100vw - var(--container)) / 2)) !important;
  bottom: clamp(28px, 5vh, 54px) !important;
}

/* Proyecto / secciones: mejor lectura para textos actualizados */
.section-copy {
  max-width: 720px !important;
  color: var(--muted) !important;
}

.project .display-title,
.development-copy .display-title,
.amenities-copy .display-title,
.location .display-title {
  text-wrap: balance !important;
}

.project-features .feature-item p,
.development-card__content p,
.amenity-card__content p {
  color: rgba(255, 255, 255, .78) !important;
}

html[data-theme="day"] .project-features .feature-item p,
html[data-theme="day"] .development-card__content p,
html[data-theme="day"] .amenity-card__content p {
  color: rgba(16, 36, 57, .74) !important;
}

/* Modelos: detalles más claros */
.model-selector {
  background: rgba(255, 255, 255, .055) !important;
}

html[data-theme="day"] .model-selector {
  background: rgba(255, 255, 255, .58) !important;
}

.model-option,
.model-view {
  border: 1px solid transparent !important;
}

.model-option:hover,
.model-view:hover {
  border-color: rgba(223, 0, 127, .34) !important;
}

/* Contacto / registro */
.contact-register__grid {
  align-items: stretch !important;
}

.contact-card,
.register-card {
  color: var(--text) !important;
}

.contact-card .display-title,
.register-card .display-title {
  color: var(--text-strong) !important;
}

.contact-card .section-copy,
.register-card .section-copy,
.form-check,
.form-field label {
  color: rgba(255, 255, 255, .76) !important;
}

html[data-theme="day"] .contact-card .section-copy,
html[data-theme="day"] .register-card .section-copy,
html[data-theme="day"] .form-check,
html[data-theme="day"] .form-field label {
  color: rgba(16, 36, 57, .74) !important;
}

.form-control {
  background: rgba(255, 255, 255, .065) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, .42) !important;
}

select.form-control option {
  background: #101722 !important;
  color: #fff !important;
}

html[data-theme="day"] .form-control {
  background: rgba(255, 255, 255, .70) !important;
}

/* Footer */
.footer-logo {
  width: clamp(136px, 12vw, 172px) !important;
}

/* WhatsApp verde */
.whatsapp-float {
  background: linear-gradient(135deg, var(--whatsapp-green), #16b65b) !important;
  color: #ffffff !important;
  box-shadow:
    0 18px 48px var(--whatsapp-green-shadow),
    0 0 0 1px rgba(255, 255, 255, .22) inset !important;
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, #31df72, var(--whatsapp-green-dark)) !important;
  box-shadow:
    0 24px 62px rgba(37, 211, 102, .46),
    0 0 0 7px rgba(37, 211, 102, .12) !important;
}

.whatsapp-float svg {
  width: 31px !important;
  height: 31px !important;
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: minmax(140px, 1fr) auto auto !important;
  }

  .hero__grid.hero__grid--clean,
  .hero__grid:not(:has(.hero-card)) {
    width: var(--container) !important;
    min-height: auto !important;
  }

  .hero__title {
    font-size: clamp(50px, 9vw, 104px) !important;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: calc(106px + env(safe-area-inset-top)) !important;
    padding-bottom: 86px !important;
  }

  .hero__grid.hero__grid--clean,
  .hero__grid:not(:has(.hero-card)) {
    width: calc(100% - 24px) !important;
  }

  .hero .eyebrow,
  .hero .eyebrow--cyan {
    font-size: 10px !important;
    letter-spacing: .18em !important;
  }

  .hero__title {
    font-size: clamp(43px, 14.2vw, 70px) !important;
    letter-spacing: -.075em !important;
  }

  .hero__text {
    max-width: 100% !important;
    font-size: 16px !important;
  }

  .hero-controls {
    left: 12px !important;
    right: 12px !important;
    bottom: 24px !important;
  }

  .contact-card,
  .register-card {
    padding: 22px !important;
  }

  .whatsapp-float {
    width: 56px !important;
    height: 56px !important;
  }
}

/* ==========================================================
   X Apartments — Fixes correo 6-19
   ========================================================== */

.hero__grid--clean {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.hero__grid--clean .scene__content {
  max-width: min(980px, 72vw);
}

.hero__grid--clean .hero__text {
  display: none;
}

.development-card__number {
  color: var(--x-cyan);
}

html[data-theme="day"] .development-card__number {
  color: var(--x-magenta);
}

.model-details {
  max-width: 560px;
}

.model-title {
  max-width: 100%;
  font-size: clamp(54px, 4.8vw, 92px);
  line-height: .9;
  white-space: nowrap;
  letter-spacing: -.075em;
}

.model-rooms {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-image-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.model-image-navigation .circle-btn {
  width: 52px;
  height: 52px;
}

.model-view-label {
  min-width: 150px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.model-views {
  display: none !important;
}

.amenities-copy .display-title {
  max-width: 700px;
}

.amenity-card__count {
  display: none !important;
}

.amenity-card h3 {
  overflow-wrap: normal;
  word-break: normal;
}

.map-card__overlay strong {
  color: var(--text-strong);
}

.contact-register__grid--aligned {
  align-items: stretch;
}

.contact-register__grid--aligned .contact-card,
.contact-register__grid--aligned .register-card {
  max-width: none;
  min-height: 100%;
}

.contact-register__grid--aligned .register-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
}

.register-card .display-title {
  max-width: 100%;
}

.form-control option,
.form-control optgroup {
  background: #111722;
  color: #ffffff;
}

html[data-theme="day"] .form-control option,
html[data-theme="day"] .form-control optgroup {
  background: #ffffff;
  color: #102439;
}

.whatsapp-float {
  background: #25D366;
  color: #ffffff;
  box-shadow:
    0 18px 48px rgba(37, 211, 102, .34),
    0 0 0 1px rgba(255, 255, 255, .12);
}

.whatsapp-float:hover {
  background: #1EBE5D;
  box-shadow:
    0 22px 58px rgba(37, 211, 102, .42),
    0 0 0 1px rgba(255, 255, 255, .18);
}

@media (max-width: 1280px) {
  .model-title {
    font-size: clamp(46px, 7vw, 78px);
  }

  .contact-register__grid--aligned {
    align-items: start;
  }
}

@media (max-width: 1024px) {
  .hero__grid--clean .scene__content {
    max-width: 100%;
  }

  .model-title {
    white-space: normal;
  }

  .contact-register__grid--aligned .register-card {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .model-image-navigation {
    gap: 10px;
    margin-top: 14px;
  }

  .model-view-label {
    min-width: 120px;
    font-size: 10px;
  }

  .model-rooms {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   X Apartments — CIERRE FINAL LIMPIO v11
   Bloque único de overrides para evitar conflictos de fixes
   anteriores pegados al final del archivo.
   ========================================================== */

/* INICIO: 3 líneas controladas sin desbordes */
.hero__grid--clean .scene__content {
  max-width: min(1040px, 74vw) !important;
}

.hero__title {
  max-width: 1120px !important;
  font-size: clamp(58px, 5.25vw, 96px) !important;
  line-height: .86 !important;
  letter-spacing: -.06em !important;
}

#heroTitle .split-line,
.hero__title .split-line {
  display: block !important;
  white-space: nowrap !important;
}

/* PROYECTO: título y copy más compactos */
.project .display-title,
#projectTitle {
  max-width: 760px !important;
  font-size: clamp(42px, 4.1vw, 78px) !important;
  line-height: .9 !important;
  letter-spacing: -.062em !important;
}

.project .section-copy {
  max-width: 760px !important;
}

/* DESARROLLO: 4 líneas, más chico y sin invadir carrusel */
.development__grid {
  grid-template-columns: minmax(460px, .48fr) minmax(0, .88fr) !important;
  align-items: center !important;
  gap: clamp(56px, 7vw, 132px) !important;
}

.development-copy {
  max-width: 560px !important;
  min-width: 0 !important;
  position: relative !important;
  z-index: 4 !important;
}

.development-copy .display-title,
#developmentTitle {
  max-width: 560px !important;
  font-size: clamp(39px, 3.55vw, 66px) !important;
  line-height: .88 !important;
  letter-spacing: -.052em !important;
  text-wrap: balance !important;
}

#developmentTitle .split-line,
.development-copy .display-title .split-line {
  display: block !important;
  white-space: nowrap !important;
}

.development [data-carousel],
.development-track {
  min-width: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* AMENIDADES: título más pequeño y sin montarse con tarjetas */
.amenities__grid {
  grid-template-columns: minmax(360px, .40fr) minmax(0, .9fr) !important;
  align-items: center !important;
  gap: clamp(46px, 6vw, 112px) !important;
}

.amenities-copy {
  max-width: 520px !important;
  min-width: 0 !important;
  position: relative !important;
  z-index: 4 !important;
}

.amenities-copy .display-title {
  max-width: 520px !important;
  font-size: clamp(40px, 3.75vw, 70px) !important;
  line-height: .9 !important;
  letter-spacing: -.055em !important;
}

.amenities-track {
  min-width: 0 !important;
}

/* Textos sobre tarjetas: siempre legibles en modo noche/día */
.development-card::after,
.amenity-card::after,
html[data-theme="day"] .development-card::after,
html[data-theme="day"] .amenity-card::after {
  background:
    linear-gradient(
      to top,
      rgba(3, 6, 12, .94) 0%,
      rgba(3, 6, 12, .78) 42%,
      rgba(3, 6, 12, .22) 74%,
      rgba(3, 6, 12, .08) 100%
    ) !important;
}

.development-card__content,
.amenity-card__content {
  text-shadow: 0 3px 18px rgba(0, 0, 0, .92) !important;
}

.development-card h3,
.development-card p,
.amenity-card h3,
.amenity-card p,
html[data-theme="day"] .development-card h3,
html[data-theme="day"] .development-card p,
html[data-theme="day"] .amenity-card h3,
html[data-theme="day"] .amenity-card p {
  color: #fff !important;
}

.development-card__number,
.amenity-card__count,
html[data-theme="day"] .development-card__number,
html[data-theme="day"] .amenity-card__count {
  color: var(--x-cyan) !important;
}

/* MODELOS: lista compacta y selector primero en móvil */
.model-brochure {
  display: none !important;
}

.model-rooms {
  gap: 7px 20px !important;
  margin-block: 20px !important;
}

.model-rooms li {
  line-height: 1.35 !important;
}

.model-title {
  white-space: nowrap !important;
}

.model-area {
  white-space: nowrap !important;
}

/* UBICACIÓN: título más proporcionado y marcador sin rombo */
.location .display-title {
  max-width: 680px !important;
  font-size: clamp(40px, 4vw, 74px) !important;
  line-height: .9 !important;
  letter-spacing: -.058em !important;
}

.map-card__x-marker::after {
  display: none !important;
  content: none !important;
}

.map-card__x-marker {
  filter: drop-shadow(0 14px 28px rgba(223, 0, 127, .42)) !important;
}

/* CONTACTO / REGISTRO: alinear Registro para lanzamiento con Contacto */
.contact-register__grid,
.contact-register__grid--aligned {
  align-items: start !important;
}

.contact-register__grid--aligned .register-card,
.register-card {
  align-self: start !important;
  justify-self: stretch !important;
  justify-content: flex-start !important;
  margin-top: 0 !important;
}

.register-card .display-title {
  max-width: 640px !important;
  font-size: clamp(38px, 3.75vw, 68px) !important;
  line-height: .9 !important;
  letter-spacing: -.06em !important;
}

/* Partners: soporta estructura agrupada y estructura vieja */
.launch-partners,
.launch-partners--grouped {
  width: 100% !important;
  max-width: 520px !important;
  display: grid !important;
  justify-items: center !important;
  gap: 26px !important;
  margin: 32px auto 28px !important;
  padding: 26px 24px !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .035) !important;
  overflow: hidden !important;
  text-align: center !important;
}

.launch-partner,
.launch-partner-group {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  gap: 12px !important;
  text-align: center !important;
}

.launch-partner span,
.launch-partner-group > span {
  display: block !important;
  width: 100% !important;
  color: var(--x-magenta-hot) !important;
  font-family: var(--font-display) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .18em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

.launch-partner-logos,
.launch-partner-logos--develops,
.launch-partner-logos--commercial {
  display: grid !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
}

.launch-partners img,
.launch-partner img,
.launch-partner-group img,
.launch-partner-logos img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Logos por nombre de archivo, sin depender de extensión */
.launch-partners img[src*="adc-logo-blanco"],
.launch-partner img[src*="adc-logo-blanco"],
.launch-partner-group img[src*="adc-logo-blanco"],
.launch-partner-logos img[src*="adc-logo-blanco"] {
  max-width: 190px !important;
  max-height: 74px !important;
}

.launch-partners img[src*="elementos-metropoli-logo-blanco"],
.launch-partner img[src*="elementos-metropoli-logo-blanco"],
.launch-partner-group img[src*="elementos-metropoli-logo-blanco"],
.launch-partner-logos img[src*="elementos-metropoli-logo-blanco"] {
  max-width: 260px !important;
  max-height: 78px !important;
}

.launch-partners img[src*="black-sheep-logo-blanco"],
.launch-partner img[src*="black-sheep-logo-blanco"],
.launch-partner-group img[src*="black-sheep-logo-blanco"],
.launch-partner-logos img[src*="black-sheep-logo-blanco"] {
  max-width: 118px !important;
  max-height: 96px !important;
}

/* Responsive general */
@media (max-width: 1280px) {
  .development__grid {
    grid-template-columns: minmax(420px, .5fr) minmax(0, .86fr) !important;
  }

  .development-copy .display-title,
  #developmentTitle {
    font-size: clamp(36px, 3.4vw, 58px) !important;
  }

  .amenities-copy .display-title {
    font-size: clamp(38px, 3.55vw, 62px) !important;
  }
}

@media (max-width: 1024px) {
  .scene__inner,
  .development .scene__inner,
  .amenities .scene__inner,
  .models .scene__inner {
    width: min(100% - 32px, 760px) !important;
  }

  .project__grid,
  .development__grid,
  .amenities__grid,
  .location__grid,
  .contact-register__grid,
  .contact-register__grid--aligned {
    grid-template-columns: 1fr !important;
  }

  .project .scene__content {
    padding-right: 0 !important;
  }

  .hero__grid--clean .scene__content {
    max-width: 100% !important;
  }

  .hero__title,
  #heroTitle,
  .project .display-title,
  #projectTitle,
  .development-copy .display-title,
  #developmentTitle,
  .amenities-copy .display-title,
  .location .display-title,
  .register-card .display-title {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  #heroTitle .split-line,
  .hero__title .split-line,
  #developmentTitle .split-line,
  .development-copy .display-title .split-line {
    white-space: normal !important;
  }
}

/* Mobile */
@media (max-width: 760px) {
  :root {
    --container: calc(100vw - 40px) !important;
    --wide-container: calc(100vw - 40px) !important;
    --scene-pad-y: clamp(72px, 12vh, 108px) !important;
    --scene-min: auto !important;
  }

  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .scene {
    min-height: auto !important;
    overflow: hidden !important;
  }

  .site-header {
    width: calc(100vw - 24px) !important;
  }

  .nav-shell {
    max-width: 100% !important;
  }

  .hero__title,
  #heroTitle {
    font-size: clamp(32px, 10.2vw, 44px) !important;
    line-height: .9 !important;
    letter-spacing: -.052em !important;
  }

  .project .display-title,
  #projectTitle {
    font-size: clamp(34px, 9.4vw, 44px) !important;
    line-height: .92 !important;
  }

  .development-copy .display-title,
  #developmentTitle {
    font-size: clamp(30px, 8.4vw, 40px) !important;
    line-height: .92 !important;
    letter-spacing: -.045em !important;
  }

  .amenities-copy .display-title {
    font-size: clamp(32px, 9vw, 42px) !important;
    line-height: .93 !important;
  }

  .location .display-title {
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: .92 !important;
  }

  .contact-card .display-title,
  .register-card .display-title {
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: .92 !important;
  }

  .register-card {
    padding: 28px 22px !important;
  }

  /* Modelos móvil: selector primero, luego datos/características, imagen al final */
  .models__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 26px !important;
  }

  .model-details {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .model-selector {
    order: -10 !important;
    width: 100% !important;
    margin: 0 0 22px !important;
  }

  .model-details__eyebrow {
    order: -5 !important;
  }

  .model-title {
    order: -4 !important;
    white-space: nowrap !important;
    font-size: clamp(52px, 15vw, 76px) !important;
    line-height: .86 !important;
    letter-spacing: -.07em !important;
  }

  .model-area {
    order: -3 !important;
    font-size: clamp(26px, 8vw, 38px) !important;
    margin-top: 18px !important;
  }

  .model-rooms {
    order: -2 !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin: 20px 0 24px !important;
  }

  .model-visual-card {
    order: 2 !important;
    width: 100% !important;
    min-height: auto !important;
  }

  .model-image-wrap {
    min-height: auto !important;
  }

  /* Partners móvil: logos contenidos, no gigantes */
  .launch-partners,
  .launch-partners--grouped {
    max-width: 100% !important;
    gap: 22px !important;
    margin: 26px auto 24px !important;
    padding: 22px 16px !important;
    border-radius: 22px !important;
  }

  .launch-partner-logos,
  .launch-partner-logos--develops,
  .launch-partner-logos--commercial {
    gap: 14px !important;
  }

  .launch-partners img[src*="adc-logo-blanco"],
  .launch-partner img[src*="adc-logo-blanco"],
  .launch-partner-group img[src*="adc-logo-blanco"],
  .launch-partner-logos img[src*="adc-logo-blanco"] {
    max-width: min(62vw, 172px) !important;
    max-height: 62px !important;
  }

  .launch-partners img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner-group img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner-logos img[src*="elementos-metropoli-logo-blanco"] {
    max-width: min(68vw, 206px) !important;
    max-height: 58px !important;
  }

  .launch-partners img[src*="black-sheep-logo-blanco"],
  .launch-partner img[src*="black-sheep-logo-blanco"],
  .launch-partner-group img[src*="black-sheep-logo-blanco"],
  .launch-partner-logos img[src*="black-sheep-logo-blanco"] {
    max-width: min(34vw, 92px) !important;
    max-height: 74px !important;
  }

  .whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    right: 18px !important;
    bottom: 18px !important;
  }
}

@media (max-width: 420px) {
  .hero__title,
  #heroTitle {
    font-size: clamp(30px, 9.4vw, 38px) !important;
  }

  .development-copy .display-title,
  #developmentTitle {
    font-size: clamp(27px, 7.8vw, 34px) !important;
  }

  .register-card .display-title {
    font-size: clamp(31px, 9vw, 40px) !important;
  }

  .model-title {
    font-size: clamp(46px, 13vw, 64px) !important;
  }

  .launch-partners img[src*="adc-logo-blanco"],
  .launch-partner img[src*="adc-logo-blanco"],
  .launch-partner-group img[src*="adc-logo-blanco"],
  .launch-partner-logos img[src*="adc-logo-blanco"] {
    max-width: min(58vw, 152px) !important;
  }

  .launch-partners img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner-group img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner-logos img[src*="elementos-metropoli-logo-blanco"] {
    max-width: min(64vw, 184px) !important;
  }

  .launch-partners img[src*="black-sheep-logo-blanco"],
  .launch-partner img[src*="black-sheep-logo-blanco"],
  .launch-partner-group img[src*="black-sheep-logo-blanco"],
  .launch-partner-logos img[src*="black-sheep-logo-blanco"] {
    max-width: min(30vw, 78px) !important;
  }
}

html[data-theme="night"] body,
html:not([data-theme]) body {
  background:
    radial-gradient(circle at 88% -12%, rgba(223, 0, 127, .22), transparent 34vw),
    radial-gradient(circle at 5% 20%, rgba(164, 219, 255, .09), transparent 28vw),
    linear-gradient(135deg, #070b12 0%, #0b111b 54%, #111722 100%) !important;
  color: #ffffff !important;
}

html[data-theme="night"] body::after,
html:not([data-theme]) body::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .40), transparent 38%, rgba(185, 0, 129, .10)),
    radial-gradient(circle at 90% 40%, rgba(185, 0, 129, .16), transparent 32vw) !important;
}

html[data-theme="day"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(251, 220, 239, .28), transparent 32vw),
    radial-gradient(circle at 92% 26%, rgba(164, 219, 255, .16), transparent 30vw),
    linear-gradient(135deg, #f2ece6 0%, #fbf7f2 58%, #f2ece6 100%) !important;
}

html[data-theme="day"] body::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .36), transparent 52%, rgba(251, 220, 239, .18)),
    radial-gradient(circle at 90% 36%, rgba(185, 0, 129, .08), transparent 32vw) !important;
}

html[data-theme="night"] .contact-card,
html[data-theme="night"] .register-card,
html:not([data-theme]) .contact-card,
html:not([data-theme]) .register-card {
  background: rgba(17, 23, 34, .82) !important;
}

html[data-theme="day"] .contact-card,
html[data-theme="day"] .register-card {
  background: rgba(255, 250, 245, .82) !important;
}

/* 1) Desktop: que los carruseles NO entren debajo del texto */
@media (min-width: 1025px) {
  .development__grid {
    grid-template-columns: minmax(400px, .42fr) minmax(0, 1fr) !important;
    gap: clamp(82px, 9vw, 164px) !important;
    overflow: visible !important;
  }

  .development-copy {
    max-width: 520px !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 5 !important;
  }

  #developmentTitle,
  .development-copy .display-title {
    max-width: 520px !important;
    font-size: clamp(36px, 3.05vw, 58px) !important;
    line-height: .92 !important;
    letter-spacing: -.048em !important;
    text-wrap: balance !important;
  }

  #developmentTitle .split-line,
  .development-copy .display-title .split-line {
    display: block !important;
    white-space: nowrap !important;
  }

  .development [data-carousel],
  .development .reveal[data-carousel] {
    min-width: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .development-track {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: clamp(26px, 3vw, 54px) !important;
    grid-auto-columns: clamp(300px, 29vw, 455px) !important;
    scroll-padding-inline: 0 !important;
  }

  .development .carousel-footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .amenities__grid {
    grid-template-columns: minmax(330px, .34fr) minmax(0, 1fr) !important;
    gap: clamp(82px, 9vw, 164px) !important;
    overflow: visible !important;
  }

  .amenities-copy {
    max-width: 450px !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .amenities-copy .display-title {
    max-width: 450px !important;
    font-size: clamp(34px, 3vw, 56px) !important;
    line-height: .93 !important;
    letter-spacing: -.046em !important;
    text-wrap: balance !important;
  }

  .amenities [data-carousel],
  .amenities .reveal[data-carousel] {
    min-width: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .amenities-track {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: clamp(26px, 3vw, 54px) !important;
    grid-auto-columns: clamp(280px, 25vw, 400px) !important;
    scroll-padding-inline: 0 !important;
  }

  .amenities .carousel-footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* 2) Mobile: evitar desbordes horizontales de títulos */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .contact-register,
  .register-card,
  .contact-card {
    background-color: var(--bg-glass-strong) !important;
  }

  html[data-theme="day"] .contact-register,
  html[data-theme="day"] .register-card,
  html[data-theme="day"] .contact-card {
    background-color: rgba(255, 250, 245, .82) !important;
  }

  #developmentTitle,
  .development-copy .display-title,
  .amenities-copy .display-title,
  .register-card .display-title {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  #developmentTitle,
  .development-copy .display-title {
    font-size: clamp(30px, 8.4vw, 40px) !important;
    line-height: .94 !important;
  }

  .amenities-copy .display-title {
    font-size: clamp(31px, 8.4vw, 40px) !important;
    line-height: .94 !important;
  }

  .register-card .display-title {
    font-size: clamp(31px, 8.6vw, 41px) !important;
    line-height: .94 !important;
  }

  /* Mantener logos de socios ya controlados */
  .launch-partners img[src*="adc-logo-blanco"],
  .launch-partner img[src*="adc-logo-blanco"],
  .launch-partner-group img[src*="adc-logo-blanco"],
  .launch-partner-logos img[src*="adc-logo-blanco"] {
    max-width: min(60vw, 172px) !important;
    max-height: 62px !important;
  }

  .launch-partners img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner-group img[src*="elementos-metropoli-logo-blanco"],
  .launch-partner-logos img[src*="elementos-metropoli-logo-blanco"] {
    max-width: min(66vw, 206px) !important;
    max-height: 58px !important;
  }

  .launch-partners img[src*="black-sheep-logo-blanco"],
  .launch-partner img[src*="black-sheep-logo-blanco"],
  .launch-partner-group img[src*="black-sheep-logo-blanco"],
  .launch-partner-logos img[src*="black-sheep-logo-blanco"] {
    max-width: min(32vw, 92px) !important;
    max-height: 74px !important;
  }
}

.development-copy .display-title {
  max-width: 600px !important;
  font-size: clamp(42px, 4.1vw, 74px) !important;
  line-height: .88 !important;
  letter-spacing: -.065em !important;
}

.development-copy .display-title .split-line {
  white-space: nowrap !important;
}

.development__grid {
  grid-template-columns: minmax(420px, .52fr) minmax(0, 1fr) !important;
  gap: clamp(76px, 8vw, 132px) !important;
}

html[data-theme="day"] .launch-partners--grouped img {
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin-inline: auto !important;
}

/* ADC negro */
html[data-theme="day"] .launch-partners--grouped img[src*="adc-logo-negro"] {
  max-width: 180px !important;
  max-height: 95px !important;
}

/* Elementos negro */
html[data-theme="day"] .launch-partners--grouped img[src*="elementos-metropoli-logo-negro"] {
  max-width: 240px !important;
  max-height: 90px !important;
}

/* Black Sheep negro */
html[data-theme="day"] .launch-partners--grouped img[src*="black-sheep-logo-negro"] {
  max-width:110px !important;
  max-height: 130px !important;
}

/* Mobile: mantenerlos más contenidos */
@media (max-width: 760px) {
  html[data-theme="day"] .launch-partners--grouped {
    padding: 22px 18px !important;
  }

  html[data-theme="day"] .launch-partners--grouped img[src*="adc-logo-negro"] {
    max-width: min(76vw, 240px) !important;
    max-height: 82px !important;
  }

  html[data-theme="day"] .launch-partners--grouped img[src*="elementos-metropoli-logo-negro"] {
    max-width: min(78vw, 270px) !important;
    max-height: 78px !important;
  }

  html[data-theme="day"] .launch-partners--grouped img[src*="black-sheep-logo-negro"] {
    max-width: min(58vw, 170px) !important;
    max-height: 130px !important;
  }
}

/* =========================================================
   X Apartments — Style patch textos/layout v1
   Pegar hasta abajo de public_html/style.css

   Incluye:
   - Modelos: márgenes, tamaños, leyenda centrada.
   - Amenidades: disclaimer más pequeño.
   - Mapa: evita que el iframe se mueva.
   - Mobile: orden Modelos y Ubicación.
   - Mobile: márgenes/centrado general y Proyecto centrado.
   ========================================================= */

/* ------------------------------
   MODELOS · Desktop / general
------------------------------ */

.models__grid {
  align-items: center !important;
  gap: clamp(52px, 5.2vw, 96px) !important;
}

.model-details {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 560px !important;
  overflow: visible !important;
  padding-inline: clamp(8px, 1.2vw, 18px) !important;
}

.model-title {
  max-width: 100% !important;
  font-size: clamp(56px, 5.2vw, 98px) !important;
  line-height: .86 !important;
  letter-spacing: -.072em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.model-area {
  display: block !important;
  margin-top: clamp(18px, 1.8vw, 26px) !important;
  font-family: var(--font-display) !important;
  font-size: clamp(30px, 2.7vw, 48px) !important;
  font-weight: 900 !important;
  line-height: .96 !important;
  letter-spacing: -.04em !important;
}

.model-rooms {
  gap: 8px 20px !important;
  margin: 24px 0 26px !important;
}

.model-rooms li {
  line-height: 1.32 !important;
}

.model-option {
  min-width: 0 !important;
}

.model-option span,
.model-option strong {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.model-visual-card {
  overflow: visible !important;
}

.model-visual-card__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.model-image-wrap {
  width: 100% !important;
}

.model-note {
  width: 100% !important;
  max-width: 720px !important;
  margin: 18px auto 0 !important;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

/* ------------------------------
   AMENIDADES · Leyenda
------------------------------ */

.amenities-disclaimer {
  max-width: 780px !important;
  margin: 8px auto 0 !important;
  color: var(--muted-2) !important;
  font-size: clamp(10px, .78vw, 12px) !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

/* ------------------------------
   DESARROLLO · títulos sin choque
------------------------------ */

.development-copy .display-title {
  max-width: 620px !important;
  font-size: clamp(40px, 4vw, 72px) !important;
  line-height: .88 !important;
  letter-spacing: -.064em !important;
}

.development-copy .display-title .split-line {
  white-space: nowrap !important;
}

.amenities-copy .display-title {
  max-width: 580px !important;
  font-size: clamp(42px, 4vw, 76px) !important;
  line-height: .9 !important;
  letter-spacing: -.064em !important;
}

/* ------------------------------
   MAPA · evitar que se arrastre
------------------------------ */

.map-card iframe {
  pointer-events: none !important;
}

.map-card {
  cursor: pointer !important;
}

.map-card__x-marker {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -82%) !important;
}

.map-card__x-marker::after {
  display: none !important;
  content: none !important;
}

/* ------------------------------
   MOBILE/TABLET · márgenes base
------------------------------ */

@media (max-width: 1024px) {
  html,
  body,
  .page-shell {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .scene {
    overflow-x: hidden !important;
  }

  .scene__inner,
  .project .scene__inner,
  .development .scene__inner,
  .models .scene__inner,
  .amenities .scene__inner,
  .location .scene__inner,
  .contact-register .scene__inner {
    width: min(calc(100% - 32px), 760px) !important;
    max-width: min(calc(100% - 32px), 760px) !important;
    margin-inline: auto !important;
  }

  .project__grid,
  .development__grid,
  .models__grid,
  .amenities__grid,
  .location__grid,
  .contact-register__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
  }

  .development-track,
  .amenities-track {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    scroll-padding-inline: 0 !important;
    grid-auto-columns: min(82vw, 360px) !important;
  }

  .development-copy .display-title,
  .amenities-copy .display-title {
    max-width: 100% !important;
  }
}

/* ------------------------------
   MOBILE · orden Modelos
   Orden pedido:
   título → m²/info → renders → más información → más modelos
------------------------------ */

@media (max-width: 760px) {
  .models__grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .model-details {
    display: contents !important;
  }

  .model-details__eyebrow {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
  }

  .model-title {
    order: 2 !important;
    width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
    font-size: clamp(48px, 14vw, 68px) !important;
    line-height: .86 !important;
  }

  .model-area {
    order: 3 !important;
    width: 100% !important;
    margin: 14px auto 0 !important;
    text-align: center !important;
    font-size: clamp(40px, 11.5vw, 58px) !important;
    line-height: .9 !important;
  }

  .model-rooms {
    order: 4 !important;
    width: min(100%, 360px) !important;
    margin: 18px auto 8px !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    text-align: left !important;
  }

  .model-visual-card {
    order: 5 !important;
    width: 100% !important;
    margin: 12px auto 0 !important;
    padding: 14px 0 0 !important;
    border-radius: 24px !important;
  }

  .model-image-wrap {
    width: 100% !important;
    padding: 0 !important;
  }

  .model-image-wrap img {
    width: 100% !important;
    max-height: 390px !important;
    object-fit: contain !important;
  }

  .model-image-navigation {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 14px !important;
  }

  .model-note {
    width: min(100%, 340px) !important;
    margin: 14px auto 0 !important;
    text-align: center !important;
    font-size: 10px !important;
  }

  .model-info-cta,
  [data-model-cta] {
    order: 6 !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 18px auto 0 !important;
  }

  .model-selector {
    order: 7 !important;
    width: 100% !important;
    margin: 24px auto 0 !important;
  }

  .model-option {
    grid-template-columns: 1fr auto !important;
    text-align: left !important;
  }

  .model-option span,
  .model-option strong {
    font-size: 11px !important;
  }
}

/* ------------------------------
   MOBILE · orden Ubicación
   Orden pedido:
   título → mapa → distancias
------------------------------ */

@media (max-width: 760px) {
  .location__grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .location .scene__content {
    display: contents !important;
  }

  .location .eyebrow {
    order: 1 !important;
    text-align: center !important;
  }

  .location .display-title {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: clamp(38px, 11vw, 56px) !important;
    line-height: .9 !important;
  }

  .location .section-copy {
    order: 3 !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  .map-card {
    order: 4 !important;
    width: 100% !important;
    min-height: 380px !important;
    margin: 4px auto 0 !important;
  }

  .location-list {
    order: 5 !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 24px auto 0 !important;
  }

  .location .hero__actions {
    order: 6 !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-inline: auto !important;
  }
}

/* ------------------------------
   MOBILE · Proyecto centrado
------------------------------ */

@media (max-width: 760px) {
  .project .scene__content,
  .project .section-copy,
  .project-features,
  .feature-item {
    text-align: center !important;
  }

  .project .display-title {
    margin-inline: auto !important;
    text-align: center !important;
  }

  .feature-item {
    padding-inline: 8px !important;
  }
}

/* ------------------------------
   TELÉFONOS PEQUEÑOS
------------------------------ */

@media (max-width: 390px) {
  .scene__inner,
  .project .scene__inner,
  .development .scene__inner,
  .models .scene__inner,
  .amenities .scene__inner,
  .location .scene__inner,
  .contact-register .scene__inner {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
  }

  .model-title {
    font-size: clamp(42px, 13vw, 56px) !important;
  }

  .model-area {
    font-size: clamp(34px, 10.5vw, 48px) !important;
  }

  .development-track,
  .amenities-track {
    grid-auto-columns: min(82vw, 320px) !important;
  }

  .map-card {
    min-height: 340px !important;
  }
}

@media (min-width: 1025px) {
  .models__grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px) !important;
    gap: clamp(34px, 4.4vw, 74px) !important;
    align-items: center !important;
  }

  .model-details {
    max-width: 560px !important;
    transform: translateX(-clamp(28px, 3vw, 72px)) !important;
    padding-right: clamp(24px, 2.5vw, 52px) !important;
  }

  .model-title {
    max-width: 100% !important;
    font-size: clamp(56px, 4.35vw, 86px) !important;
    line-height: .86 !important;
    letter-spacing: -.068em !important;
    white-space: nowrap !important;
  }

  .model-area {
    font-size: clamp(36px, 3.15vw, 58px) !important;
  }

  .model-selector,
  .model-info-cta,
  [data-model-cta] {
    max-width: 500px !important;
  }
}


/* 2) AMENIDADES · Evitar que el título invada el carrusel */

@media (min-width: 1025px) {
  .amenities__grid {
    grid-template-columns: minmax(330px, 0.42fr) minmax(0, 1fr) !important;
    gap: clamp(76px, 8vw, 148px) !important;
    align-items: center !important;
  }

  .amenities-copy {
    width: 100% !important;
    max-width: 500px !important;
    z-index: 2 !important;
  }

  .amenities-copy .display-title {
    max-width: 500px !important;
    font-size: clamp(44px, 3.35vw, 68px) !important;
    line-height: .92 !important;
    letter-spacing: -.062em !important;
  }

  .amenities-copy .section-copy {
    max-width: 420px !important;
  }

  .amenities [data-carousel] {
    min-width: 0 !important;
    z-index: 1 !important;
  }

  .amenities-track {
    margin-left: 0 !important;
  }
}


/* 3) MODELOS · Leyenda fija y centrada, sin brincar en hover */

.model-visual-card,
.model-visual-card:hover,
.model-visual-card:focus-within {
  overflow: visible !important;
}

.model-visual-card__inner,
.model-visual-card:hover .model-visual-card__inner,
.model-visual-card:focus-within .model-visual-card__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transform: none !important;
}

.model-note,
.model-visual-card:hover .model-note,
.model-visual-card:focus-within .model-note {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  display: block !important;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  margin: 18px auto 0 !important;
  padding: 0 !important;
  text-align: center !important;
  align-self: center !important;
}


/* 4) LOGO · modo día en negro */

html[data-theme="day"] .brand-link img,
html[data-theme="day"] .footer-logo {
  filter: brightness(0) saturate(100%) !important;
}


/* Ajuste móvil extra para no crear scroll lateral */

@media (max-width: 760px) {
  .model-details {
    transform: none !important;
    padding-inline: 0 !important;
  }

  .model-title {
    white-space: normal !important;
  }

  .amenities-copy,
  .amenities-copy .display-title,
  .amenities-copy .section-copy {
    max-width: 100% !important;
    text-align: center !important;
    margin-inline: auto !important;
  }

  .amenities__grid {
    gap: 30px !important;
  }

  .amenities-track {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    grid-auto-columns: min(82vw, 340px) !important;
  }
}

.model-area {
  font-size: clamp(22px, 1.8vw, 34px) !important;
  line-height: 1 !important;
  letter-spacing: -.025em !important;
  margin-top: 14px !important;
}

/* Mobile */
@media (max-width: 760px) {
  .model-area {
    font-size: clamp(22px, 7vw, 34px) !important;
    line-height: 1 !important;
    margin-top: 10px !important;
  }
}