/* ============================================================
   JCREATORS·INMOBIL — Agencia · Dark + neón estilo Awwwards
   ============================================================ */
:root {
  --ink: #0A0A0F;
  --surface: #12121A;
  --line: rgba(244, 244, 240, .09);
  --text: #F4F4F0;
  --muted: rgba(244, 244, 240, .55);
  --lime: #C8FF00;
  --cyan: #00E5FF;
  --orange: #FF5C1A;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .price, .foot-giant, .count {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
}

::selection { background: var(--lime); color: var(--ink); }

.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 14px;
}
.dot { color: var(--lime); font-style: normal; }
.accent { color: var(--lime); }

/* Máscara para los reveals de línea (GSAP mueve el span interior) */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; will-change: transform; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 999px;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
  will-change: transform;
}
.btn span { pointer-events: none; }
.btn-neon {
  background: var(--lime); color: var(--ink);
  box-shadow: 0 0 0 rgba(200, 255, 0, 0);
}
.btn-neon:hover { box-shadow: 0 0 34px rgba(200, 255, 0, .45); }
.btn-big { font-size: 18px; padding: 20px 40px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(10, 10, 15, .78);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  font-size: 20px; letter-spacing: .02em;
  color: var(--text); text-decoration: none;
}
.logo-dot { color: var(--lime); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color .25s;
}
.nav-links a:hover { color: var(--lime); }

/* ---------- Media: imágenes de stock con overlay cromático ---------- */
.media {
  position: relative; overflow: hidden; margin: 0;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(0, 229, 255, .25), transparent 55%),
    radial-gradient(120% 120% at 85% 90%, rgba(200, 255, 0, .2), transparent 55%),
    var(--surface);
}
.media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.85) contrast(1.06);
  will-change: transform;
}
.media.no-img img { display: none; }   /* sin conexión: queda el degradado */
.media-tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(200deg, rgba(0, 229, 255, .16), transparent 45%),
    linear-gradient(20deg, rgba(200, 255, 0, .14), transparent 45%),
    linear-gradient(180deg, transparent 40%, rgba(10, 10, 15, .82) 100%);
  mix-blend-mode: normal;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px clamp(20px, 5vw, 64px) 90px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { height: 115%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 70% 20%, rgba(0, 229, 255, .14), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 15, .55) 0%, rgba(10, 10, 15, .82) 70%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1100px; }
.hero-kicker { font-size: 13.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.hero-title {
  font-size: clamp(52px, 9.5vw, 128px);
  text-transform: uppercase; letter-spacing: -.03em;
  margin-bottom: 26px;
}
.hero-sub { font-size: clamp(15px, 1.7vw, 19px); color: var(--muted); max-width: 460px; margin-bottom: 40px; }

/* Buscador */
.search {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
  background: rgba(18, 18, 26, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 18px 20px 22px;
  max-width: 860px;
}
.s-field { display: grid; gap: 6px; flex: 1 1 160px; }
.s-field label {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.s-field input, .s-field select {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: transparent; border: none;
  border-bottom: 1.5px solid var(--line);
  padding: 8px 2px; outline: none;
  transition: border-color .3s;
}
.s-field select option { background: var(--surface); }
.s-field input:focus, .s-field select:focus { border-color: var(--lime); }
.s-field input::placeholder { color: rgba(244, 244, 240, .3); }
.s-result {
  flex-basis: 100%; font-size: 13.5px; color: var(--lime);
  min-height: 0; margin-top: 2px;
}

/* Marquee inferior */
.marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  overflow: hidden; border-top: 1px solid var(--line);
  background: rgba(10, 10, 15, .6); backdrop-filter: blur(8px);
  padding: 14px 0;
}
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee 24s linear infinite;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: .24em; color: var(--muted);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Propiedades: grid asimétrico + tilt 3D ---------- */
.props { padding: 130px clamp(20px, 5vw, 64px) 40px; max-width: 1400px; margin: 0 auto; }
.section-head { margin-bottom: 54px; }
.section-head h2 { font-size: clamp(40px, 6vw, 84px); text-transform: uppercase; }

.props-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  perspective: 1200px;
}
.card--xl  { grid-column: span 2; grid-row: span 2; }
.card--wide{ grid-column: span 2; }

.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: border-color .35s, box-shadow .35s;
  will-change: transform;
  cursor: pointer;
}
.card .media { position: absolute; inset: 0; }
.card:hover { border-color: rgba(200, 255, 0, .5); box-shadow: 0 24px 70px -20px rgba(0, 229, 255, .25); }
.card:hover .media img { transform: scale(1.06); }
.card .media img { transition: transform .8s var(--ease); }

.card-info {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  transform: translateZ(46px);           /* flota en el espacio 3D del tilt */
}
.card-info .price { font-size: clamp(20px, 2vw, 28px); color: var(--lime); margin-bottom: 4px; }
.card-info h3 { font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; margin-bottom: 3px; }
.card-info .meta { font-size: 13px; color: var(--muted); }

.tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  transform: translateZ(46px);
}
.tag-orange { background: var(--orange); color: var(--ink); }
.tag-cyan   { background: var(--cyan);   color: var(--ink); }
.tag-lime   { background: var(--lime);   color: var(--ink); }

.props-note { margin-top: 34px; color: var(--muted); font-size: 15px; }
.props-note a { color: var(--lime); text-decoration: none; }
.props-note a:hover { text-decoration: underline; }

/* ---------- Experiencia: texto revelado por scroll ---------- */
.exp { padding: 130px clamp(20px, 5vw, 64px); max-width: 1400px; margin: 0 auto; }
.exp-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 6vw, 90px); align-items: center;
}
.exp-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 600; line-height: 1.25; letter-spacing: -.01em;
}
.exp-text .ch { color: rgba(244, 244, 240, .16); }   /* GSAP las enciende al scrollear */
.exp-media { border-radius: var(--radius); aspect-ratio: 4 / 5; }
.exp-media img { height: 118%; }

.counters { display: flex; gap: clamp(24px, 4vw, 60px); margin-top: 46px; flex-wrap: wrap; }
.counter { display: grid; gap: 2px; }
.count { font-size: clamp(36px, 4vw, 56px); color: var(--cyan); font-variant-numeric: tabular-nums; }
.counter span { font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  padding: 150px clamp(20px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(200, 255, 0, .1), transparent 70%),
    var(--ink);
}
.cta-title { font-size: clamp(44px, 7.5vw, 104px); text-transform: uppercase; margin-bottom: 18px; }
.cta-sub { color: var(--muted); margin-bottom: 40px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px clamp(20px, 5vw, 64px) 26px;
  overflow: hidden;
}
.foot-top {
  display: flex; flex-wrap: wrap; gap: clamp(40px, 8vw, 120px);
  margin-bottom: 60px;
}
.foot-col, .foot-social { display: grid; gap: 10px; align-content: start; }
.foot-top h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.foot-col a { color: var(--text); text-decoration: none; font-size: 16px; transition: color .25s, transform .25s; }
.foot-col a:hover { color: var(--lime); }

.social-row { display: flex; gap: 12px; }
.social {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: border-color .3s, background .3s, color .3s;
  will-change: transform;
}
.social span { pointer-events: none; }
.social:hover { border-color: var(--lime); background: var(--lime); color: var(--ink); }

.foot-giant {
  font-size: clamp(72px, 17.5vw, 250px);
  line-height: .82; text-transform: uppercase; text-align: center;
  letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
  transform: translateY(14%);
}
.foot-legal {
  border-top: 1px solid var(--line);
  padding-top: 20px; margin-top: -8px;
  font-size: 12.5px; color: var(--muted); text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .props-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .card--xl { grid-column: span 2; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-media { aspect-ratio: 16 / 10; max-height: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .props-grid { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: span 1; }
  .search { padding: 16px; }
  .search .btn { width: 100%; }
  .hero { padding-bottom: 110px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .exp-text .ch { color: var(--text); }
}
