/* ===========================================================
   LARIS — Desarrollo Residencial
   Concept: cuaderno de obra / plano técnico.
   Fondo casi negro con trama de plano, líneas de cota,
   acento cobre tomado del logotipo real de la marca.
   =========================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk');
}

:root {
  --bg-void: #0a0e13;
  --bg-panel: #10161f;
  --bg-panel-raised: #141c27;
  --line-blue: #4c7eff;
  --line-blue-dim: rgba(76, 126, 255, 0.16);
  --line-blue-dimmer: rgba(76, 126, 255, 0.08);
  --copper: #c97b4a;
  --copper-dim: rgba(201, 123, 74, 0.35);
  --text-primary: #eceff4;
  --text-muted: #8b93a3;
  --text-faint: #5a6373;
  --hairline: rgba(140, 160, 200, 0.18);

  --font-display: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --measure: 640px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .stamp::after, .stamp-dot, .scan-line, .cursor-blink, .stamp-icon {
    animation: none !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Blueprint grid backdrop, fixed across the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-blue-dimmer) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-blue-dimmer) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, rgba(0,0,0,0.4) 70%, transparent);
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* corner-bracket frame, used instead of rounded shadow cards —
   reads as a technical detail callout, tied to the drafting theme */
.bracket {
  position: relative;
  border: 1px solid var(--hairline);
  padding: 28px 26px;
}
.bracket::before, .bracket::after,
.bracket > .tick-tl, .bracket > .tick-br {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--copper);
}
.bracket::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bracket::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 19, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img { height: 58px; width: auto; max-width: none; display: block; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--copper-dim);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: transparent;
  position: relative;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.btn:hover {
  border-color: var(--copper);
  background: rgba(201, 123, 74, 0.08);
}
.btn-icon { transition: transform 0.25s ease; }
.btn:hover .btn-icon { transform: translate(3px, -3px); }

.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: var(--line-blue);
}
.contour-map {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.contour-map g { stroke-width: 0.9; }
.contour-ring {
  opacity: 0.18;
  animation: ring-pulse 9s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.16; }
  10% { opacity: 0.7; }
  24% { opacity: 0.16; }
}
@media (prefers-reduced-motion: reduce) {
  .contour-ring { animation: none !important; opacity: 0.4; }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,19,0.80) 0%, rgba(10,14,19,0.42) 48%, rgba(10,14,19,0.55) 82%, var(--bg-void) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.14;
  max-width: 15ch;
  color: var(--text-primary);
}
.hero-sub {
  margin-top: 26px;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 17px;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
}

/* Blueprint elevation drawing — the one signature motion on the page */
.blueprint-draw {
  display: block;
  width: min(560px, 90vw);
  height: auto;
  margin-top: 56px;
}
.blueprint-draw path {
  fill: none;
  stroke: var(--line-blue);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blueprint-draw .ground-path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 1.4s ease-out 0.2s forwards;
}
.blueprint-draw .dim-path {
  stroke: var(--copper);
  opacity: 0.8;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.2s ease-out 1.3s forwards;
}
.blueprint-draw .building-path {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: build-cycle 16s ease-in-out 2.2s infinite;
}
.blueprint-draw text {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-faint);
  opacity: 0;
  animation: fadeIn 1s ease 2.2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes build-cycle {
  0%   { stroke-dashoffset: 1300; }
  32%  { stroke-dashoffset: 0; }
  72%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1300; }
}
.blueprint-draw .node-pulse {
  fill: var(--copper);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 16s ease-in-out 2.2s infinite;
}
@keyframes node-pulse {
  0%, 30% { opacity: 0; transform: scale(0.5); }
  38% { opacity: 1; transform: scale(1.4); }
  46% { opacity: 0.85; transform: scale(1); }
  68% { opacity: 0.85; transform: scale(1); }
  76%, 100% { opacity: 0; transform: scale(0.5); }
}
@media (prefers-reduced-motion: reduce) {
  .blueprint-draw .building-path { animation: none !important; stroke-dashoffset: 0; }
  .blueprint-draw .node-pulse { animation: none !important; opacity: 0; }
}

/* ---------------- Phase strip ---------------- */
.phase-strip {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-panel);
}
.phase-track {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.phase-track i {
  font-style: normal;
  color: var(--copper-dim);
}
.phase {
  animation: phase-cycle 10s linear infinite;
  animation-delay: calc(var(--i) * 2s);
}
@keyframes phase-cycle {
  0% { color: var(--text-faint); }
  3% { color: var(--copper); }
  17% { color: var(--copper); }
  22% { color: var(--text-faint); }
  100% { color: var(--text-faint); }
}
@media (prefers-reduced-motion: reduce) {
  .phase { animation: none !important; }
}

/* ---------------- Land band ---------------- */
.land-band {
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.land-band img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55) sepia(0.35) hue-rotate(178deg) saturate(2.6) contrast(1.05);
}
.land-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-blue-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-blue-dim) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--line-blue);
  box-shadow: 0 0 10px 1px var(--line-blue);
  opacity: 0;
  animation: scan 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: 0%; opacity: 0; }
  8% { opacity: 0.75; }
  92% { opacity: 0.75; }
  100% { top: 100%; opacity: 0; }
}
.land-band-caption {
  position: absolute;
  right: 32px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(236, 239, 244, 0.75);
  background: rgba(10, 14, 19, 0.55);
  padding: 4px 10px;
}

/* ---------------- Sections ---------------- */
section { padding: 108px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  position: relative;
  padding-left: 20px;
}
.section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  height: 32px;
  width: 2px;
  background: var(--copper);
}
.section-head p {
  max-width: var(--measure);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.7;
}

/* pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.pillar {
  background: var(--bg-panel);
  padding: 36px 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.pillar:hover {
  background: var(--bg-panel-raised);
  transform: translateY(-4px);
}
.pillar:hover .pillar-icon path,
.pillar:hover .pillar-icon rect,
.pillar:hover .pillar-icon circle {
  stroke: var(--line-blue);
  transition: stroke 0.3s ease;
}
.pillar-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-icon path, .pillar-icon rect, .pillar-icon circle {
  stroke: var(--copper);
  fill: none;
  stroke-width: 1.4;
}
.pillar h3 {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.pillar p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* promociones */
.promo-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}
.promo-row p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: var(--measure);
}
.stamp {
  justify-self: end;
  width: 168px;
  height: 168px;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  position: relative;
  margin: 14px;
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid var(--copper-dim);
  border-radius: 50%;
}
.stamp::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1.5px dashed var(--copper-dim);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stamp-dot {
  position: absolute;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,123,74,0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(201,123,74,0); }
}
.stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.stamp-icon {
  width: 52px;
  height: 26px;
  transform-origin: bottom center;
  animation: rise-pulse 3.2s ease-in-out infinite;
}
.stamp-icon path {
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes rise-pulse {
  0%, 100% { transform: scaleY(0.92); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}
.stamp-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--copper);
  text-align: center;
  line-height: 1.5;
}

/* contacto — styled like a drawing title block */
.title-block {
  border: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.title-block > div {
  padding: 26px 28px;
  border-right: 1px solid var(--hairline);
}
.title-block > div:last-child { border-right: none; }
.tb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.tb-value {
  font-size: 16px;
  color: var(--text-primary);
}
.tb-value a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--copper-dim);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.tb-value a:hover {
  border-color: var(--copper);
  color: var(--copper);
}
.contact-cta { margin-top: 36px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form {
  display: grid;
  gap: 26px;
}
.contact-form label {
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.25s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--copper);
}
.btn-form {
  justify-self: start;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ---------------- Footer ---------------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-ref, .footer-copy, .footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ---------------- Motion: scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor-blink {
  display: inline-block;
  width: 7px;
  height: 11px;
  background: var(--copper);
  margin-left: 6px;
  animation: blink 1.1s steps(1) infinite;
  vertical-align: -1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .title-block { grid-template-columns: 1fr; }
  .title-block > div { border-right: none; border-bottom: 1px solid var(--hairline); }
  .title-block > div:last-child { border-bottom: none; }
  .promo-row { grid-template-columns: 1fr; }
  .stamp { justify-self: start; margin-top: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .nav-logo img { height: 42px; }
  .stamp { width: 140px; height: 140px; }
  .stamp-icon { width: 44px; height: 22px; }
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--hairline);
    color: var(--text-primary);
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 86px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links.open a {
    width: 100%;
    padding: 16px 32px;
    border-bottom: 1px solid var(--hairline);
  }
  section { padding: 72px 0; }
  .land-band img { height: 160px; }
}
