/* Mezzina Propiedades — concepto "Piedra en equilibrio" (granito de Tandil) */
@font-face { font-family: "Marcellus"; src: url("fonts/marcellus-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --granito: #1e2124;        /* fondos oscuros y texto */
  --granito-2: #2a2e32;
  --cantera: #f1efea;        /* fondo: polvo de cantera */
  --cantera-sombra: #e6e2d9; /* secciones alternas */
  --pastizal: #2e5e4e;       /* acento sobre claro (6,5:1) y botones con texto blanco (7,5:1) */
  --pastizal-hondo: #234a3d;
  --liquen: #a9cdb5;         /* acento sobre granito (9,3:1) */
  --feldespato: #c9a99a;     /* decorativo: el rosado del granito */
  --mica: #9aa09c;           /* metálico decorativo */
  --texto-suave: #4a4f53;
  --texto-claro: #c9ccca;

  --f-display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --f-texto: "Archivo", system-ui, sans-serif;

  --ease-asiento: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);
  --radio: 14px;
  --cabecera-h: 112px;
  --moteado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='7' cy='9' r='1.4' fill='%23c9a99a' fill-opacity='.35'/%3E%3Ccircle cx='38' cy='6' r='1' fill='%239aa09c' fill-opacity='.4'/%3E%3Ccircle cx='24' cy='31' r='1.5' fill='%23000' fill-opacity='.35'/%3E%3Ccircle cx='50' cy='40' r='1.2' fill='%23c9a99a' fill-opacity='.3'/%3E%3Ccircle cx='12' cy='50' r='.9' fill='%239aa09c' fill-opacity='.4'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cantera); color: var(--granito);
  font-family: var(--f-texto); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.9rem); text-wrap: balance; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pastizal); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .servicios :focus-visible, .tasacion-texto :focus-visible, .pie :focus-visible, .barra-pulgar :focus-visible { outline-color: var(--liquen); }

.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--granito); color: var(--cantera); padding: .7rem 1rem; border-radius: 8px; }
.saltar:focus { top: 1rem; }

.contenedor { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
section[id] { scroll-margin-top: var(--cabecera-h); }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 100; }
.franja {
  margin: 0; padding: .45rem 1rem; text-align: center; font-size: .8125rem; line-height: 1.35;
  background: var(--feldespato); color: var(--granito); font-weight: 600;
}
.nav {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: .6rem max(1.25rem, (100% - 1240px) / 2);
  background: rgb(30 33 36 / .92); color: var(--cantera);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--f-display); font-size: 1.5rem; min-height: 44px; }
.marca-piedra { width: 34px; fill: none; stroke: var(--liquen); stroke-width: 2; stroke-linecap: round; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: .25rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; text-decoration: none; color: var(--texto-claro); border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--cantera); background: rgb(255 255 255 / .07); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--f-texto); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .25s var(--ease-decel), color .25s, border-color .25s, box-shadow .25s;
}
.btn-primario { background: var(--pastizal); color: #fff; }
.btn-primario:hover { background: var(--pastizal-hondo); box-shadow: 0 10px 24px -12px rgb(46 94 78 / .8); }
.hero .btn-primario, .barra-pulgar .btn-primario { background: var(--liquen); color: var(--granito); }
.hero .btn-primario:hover, .barra-pulgar .btn-primario:hover { background: #c3dfcc; }
.btn-linea-claro { border-color: rgb(241 239 234 / .45); color: var(--cantera); }
.btn-linea-claro:hover { border-color: var(--cantera); background: rgb(255 255 255 / .06); }
.btn-linea { border-color: var(--pastizal); color: var(--pastizal); background: transparent; }
.btn-linea:hover { background: var(--pastizal); color: #fff; }
.btn-chico { background: var(--pastizal); color: #fff; padding-inline: 1.1rem; }
.btn-chico:hover { background: var(--pastizal-hondo); }
.btn-nav { min-height: 44px; padding: .5rem 1.1rem; background: var(--liquen); color: var(--granito); }
.btn-nav:hover { background: #c3dfcc; }

.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--liquen); margin-bottom: 1rem; }
.eyebrow-oscuro { color: var(--pastizal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--cabecera-h)); display: grid; grid-template-rows: auto 1fr;
  background: radial-gradient(120% 70% at 70% 100%, #343a3f 0%, var(--granito) 62%) var(--granito);
  color: var(--cantera); overflow: hidden; isolation: isolate;
}
.hero-texto { position: relative; z-index: 2; padding: clamp(2.5rem, 7vh, 5.5rem) 1.25rem 0; width: min(1240px, 100%); margin-inline: auto; }
.hero-nombre { display: block; perspective: 600px; font-size: clamp(4.1rem, 1.6rem + 12vw, 10.5rem); line-height: .9; letter-spacing: -0.02em; }
.hero-nombre .char { display: inline-block; transform-origin: 50% 100%; }
.hero-sub { display: block; margin-top: .6rem; font-family: var(--f-texto); font-weight: 600; font-size: clamp(.95rem, .8rem + .6vw, 1.25rem); letter-spacing: .42em; text-transform: uppercase; color: var(--liquen); }
.hero-bajada { max-width: 34rem; margin-top: 1.5rem; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--texto-claro); }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.hero-escena { position: relative; min-height: 300px; perspective: 900px; perspective-origin: 50% 30%; margin-top: -2rem; pointer-events: none; }
.escena, .escena-giro { position: absolute; inset: 0; transform-style: preserve-3d; }
.capa { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(var(--z)) scale(var(--s)); transform-origin: 50% 100%; }
.capa-lejos { --z: -220px; --s: 1.26; fill: #30363b; }
.capa-lejos .capa-lejos-2 { fill: #394046; }
.capa-cerro { --z: 0px; --s: 1; }
.capa-frente { --z: 120px; --s: .88; fill: #17191c; }
.cerro { fill: #4a5157; }
.cerro-mote { opacity: .8; }
.cerro-filo { fill: none; stroke: var(--liquen); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.piedra { transform-box: view-box; transform-origin: 905px 320px; }
.piedra-cuerpo { fill: #7d8380; }
.piedra-luz { fill: none; stroke: var(--cantera); stroke-width: 3; stroke-linecap: round; opacity: .35; }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(4.5rem, 3rem + 7vw, 9.5rem); }
.seccion-cabeza { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 46rem; }

/* Buscador: pensado para el pulgar */
.buscador {
  display: grid; grid-template-columns: 1fr 1fr; gap: .85rem;
  padding: 1.1rem; border-radius: calc(var(--radio) + 6px);
  background: #fff; box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 24px 48px -32px rgb(30 33 36 / .45);
}
.campo { display: grid; gap: .35rem; min-width: 0; }
.campo label { font-size: .875rem; font-weight: 600; color: var(--texto-suave); }
select, input, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 10px;
  border: 1.5px solid #b9b5ab; background: #fff; color: var(--granito);
  font: 400 1rem/1.3 var(--f-texto);
}
select {
  appearance: none; padding-right: 2.4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232e5e4e' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
select:hover, input:hover, textarea:hover { border-color: var(--pastizal); }
.buscador-btn { grid-column: 1 / -1; }
.resultado { margin: 1.5rem 0 1.25rem; color: var(--texto-suave); }
.resultado-n { font-family: var(--f-display); font-size: 1.6rem; color: var(--pastizal); }
.vacio { padding: 1.5rem; border: 1.5px dashed var(--mica); border-radius: var(--radio); max-width: 40rem; }

.fichas { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.ficha {
  display: flex; flex-direction: column; background: #fff; border-radius: calc(var(--radio) + 4px);
  transform-style: preserve-3d; transition: transform .5s var(--ease-asiento), box-shadow .4s;
  box-shadow: 0 1px 0 rgb(0 0 0 / .05), 0 18px 40px -30px rgb(30 33 36 / .55);
}
.ficha[hidden] { display: none; }
.ficha:hover { box-shadow: 0 30px 60px -30px rgb(30 33 36 / .6); }
.ficha-ilustra {
  position: relative; aspect-ratio: 5 / 3; border-radius: calc(var(--radio) + 4px) calc(var(--radio) + 4px) 0 0;
  background: var(--moteado), linear-gradient(160deg, #3b4247, var(--granito)); background-color: var(--granito);
  display: grid; place-items: center; transform-style: preserve-3d;
}
.ficha-ilustra svg { width: 78%; transform: translateZ(40px); }
.trazo { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ficha-ilustra .trazo { stroke: var(--liquen); stroke-width: 2.4; }
.ficha-sello {
  position: absolute; top: .85rem; left: .85rem; padding: .25rem .7rem; border-radius: 999px;
  background: var(--feldespato); color: var(--granito); font-size: .8125rem; font-weight: 600;
  transform: translateZ(55px);
}
.ficha-cuerpo { padding: 1.35rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.ficha-tipo { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pastizal); margin-bottom: .45rem; }
.ficha-zona { color: var(--texto-suave); margin: .35rem 0 1rem; }
.ficha-datos { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: .85rem 0; margin: 0 0 1rem; border-block: 1px solid var(--cantera-sombra); font-size: .95rem; }
.ficha-datos strong { font-weight: 600; }
.dato-falta { color: var(--texto-suave); font-style: italic; }
.ficha-precio { font-family: var(--f-display); font-size: 1.75rem; margin-top: auto; }
.ficha-acciones { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }

/* Ubicación */
.ubicacion { background: var(--cantera-sombra); }
.ubicacion-grid { display: grid; gap: 2.5rem; align-items: center; }
.ubicacion-texto p:not(.eyebrow) { margin-top: 1.25rem; max-width: 34rem; color: var(--texto-suave); }
.plano { margin: 0; padding: clamp(1rem, 3vw, 2rem); background: var(--cantera); border-radius: calc(var(--radio) + 6px); border: 1px solid #d6d1c5; }
.plano-svg { stroke: var(--granito); stroke-width: 2; }
.plano-calle { stroke: var(--mica); stroke-width: 1.5; }
.plano-plaza { fill: rgb(46 94 78 / .1); }
.plano-casa { fill: var(--feldespato); stroke: var(--pastizal); stroke-width: 2.5; }
.plano-rot { fill: var(--granito); stroke: none; font: 600 15px var(--f-texto); }
.plano-rot-calle { fill: var(--texto-suave); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.plano-rot-casa { fill: var(--pastizal); }
.plano figcaption { margin-top: .75rem; font-size: .875rem; color: var(--texto-suave); }

/* Servicios: estratos de granito */
.servicios { background: var(--moteado), var(--granito); color: var(--cantera); }
.servicios-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.servicio {
  position: relative; padding: 1.75rem 1.5rem 1.6rem; border-radius: var(--radio);
  background: linear-gradient(170deg, #2f3439, var(--granito-2)); border: 1px solid rgb(255 255 255 / .08);
  transform-style: preserve-3d; transition: transform .5s var(--ease-asiento);
}
.servicio:nth-child(even) { margin-top: clamp(0px, 3vw, 2.5rem); }
.servicio-n { position: absolute; top: 1.1rem; right: 1.3rem; font-family: var(--f-display); font-size: 2.6rem; color: rgb(201 169 154 / .45); transform: translateZ(30px); }
.servicio-ico { width: 52px; stroke: var(--liquen); stroke-width: 2.2; margin-bottom: 1.4rem; transform: translateZ(45px); }
.servicio h3 { margin-bottom: .6rem; transform: translateZ(20px); }
.servicio p { color: var(--texto-claro); margin: 0; }

/* Nosotros */
.nosotros-grid { display: grid; gap: 3rem; }
.nosotros-texto p:not(.eyebrow) { margin-top: 1.25rem; max-width: 36rem; color: var(--texto-suave); font-size: 1.125rem; }
.firma { font-family: var(--f-display); font-size: 1.35rem !important; color: var(--granito) !important; }
.firma span { font-family: var(--f-texto); font-size: .9rem; color: var(--texto-suave); }
.diferenciales { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.diferencial { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid #d2cdc1; }
.diferencial:last-child { border-bottom: 1px solid #d2cdc1; }
.dif-ico { width: 64px; stroke: var(--pastizal); stroke-width: 2.2; }
.diferencial h3 { margin-bottom: .35rem; }
.diferencial p { margin: 0; color: var(--texto-suave); }

/* Tasación */
.tasacion { background: radial-gradient(90% 80% at 0% 0%, #343a3f, var(--granito) 70%); color: var(--cantera); }
.tasacion-grid { display: grid; gap: 2.5rem; align-items: start; }
.tasacion-texto p:not(.eyebrow) { margin-top: 1.25rem; color: var(--texto-claro); max-width: 30rem; }
.form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: calc(var(--radio) + 6px); background: var(--cantera); color: var(--granito); }
.form-fila { display: grid; gap: 1rem; }
.form-aviso { margin: 0; padding: .5rem .8rem; border-radius: 8px; background: var(--cantera-sombra); font-size: .875rem; font-weight: 600; color: var(--texto-suave); }
.form-estado { margin: 0; min-height: 1.4em; color: var(--pastizal); font-weight: 600; }
textarea { resize: vertical; }

/* Contacto */
.contacto-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.contacto-item { display: grid; gap: .35rem; padding: 1.4rem 1.5rem; border-radius: var(--radio); background: #fff; text-decoration: none; min-height: 44px; transition: transform .3s var(--ease-asiento), box-shadow .3s; }
a.contacto-item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgb(30 33 36 / .5); }
.contacto-rot { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pastizal); }
.contacto-dato { font-family: var(--f-display); font-size: 1.35rem; overflow-wrap: anywhere; }
.contacto-mail { font-size: 1.1rem; }

/* Pie */
.pie { background: var(--granito); color: var(--texto-claro); padding: 3.5rem 0 calc(3.5rem + 76px); font-size: .95rem; }
.pie-grid { display: grid; gap: 1.5rem; }
.pie p { margin: 0 0 .3rem; }
.pie-marca { font-family: var(--f-display); font-size: 1.5rem; color: var(--cantera); }
.pie-credito { color: var(--liquen); }

/* Barra para el pulgar (solo celular) */
.barra-pulgar {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom)); background: rgb(30 33 36 / .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Cursor: un canto rodado que se asienta en círculo */
.cursor { display: none; }
html.cursor-activo, html.cursor-activo a, html.cursor-activo button, html.cursor-activo select { cursor: none; }
html.cursor-activo input, html.cursor-activo textarea { cursor: auto; }
html.cursor-activo .cursor { display: block; position: fixed; inset: 0 auto auto 0; pointer-events: none; z-index: 9999; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; will-change: transform; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--feldespato); scale: var(--escala-dot, 1); transition: scale .15s var(--ease-decel); }
.cursor-ring {
  --giro-base: -16deg; width: 42px; height: 28px; margin: -14px 0 0 -21px; border-radius: 50%;
  border: 1.5px solid var(--mica); mix-blend-mode: difference;
  rotate: calc(var(--giro-base) + var(--tilt, 0deg)); scale: var(--escala, 1 1);
  transition: scale .35s var(--ease-asiento), rotate .35s var(--ease-asiento), border-color .3s;
}
.cursor.hover .cursor-ring { --giro-base: 0deg; --escala: 1.25 1.875; border-color: var(--feldespato); }
.cursor.hover .cursor-dot { --escala-dot: 0; }

/* ---------- Scroll reveal y profundidad con scroll (CSS scroll-driven) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .revelar { animation: asentar linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
    .escena { animation: recostar linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .capa { animation: separar linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes asentar { from { opacity: 0; translate: 0 48px; rotate: -1.2deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes recostar { to { transform: rotateX(16deg) translateY(6%); } }
@keyframes separar {
  from { transform: translateZ(var(--z)) scale(var(--s)); }
  to   { transform: translateZ(calc(var(--z) * 2.1)) scale(var(--s)); }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .form-fila { grid-template-columns: 1fr 1fr; }
  .pie-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 880px) {
  :root { --cabecera-h: 96px; }
  .nav-links { display: flex; }
  .buscador { grid-template-columns: repeat(4, 1fr) auto; align-items: end; padding: 1.25rem; }
  .buscador-btn { grid-column: auto; padding-inline: 2rem; }
  .hero-texto { padding-inline: 2rem; }
  .hero-escena { min-height: 360px; }
  .ubicacion-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .nosotros-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; }
  .tasacion-grid { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
  .barra-pulgar { display: none; }
  .pie { padding-bottom: 3.5rem; }
}
@media (min-width: 1280px) {
  .hero-escena { min-height: 420px; margin-top: -6rem; }
}

/* ---------- Movimiento reducido: todo plano y quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .capa, .ficha-ilustra svg, .ficha-sello, .servicio-n, .servicio-ico, .servicio h3 { transform: none !important; }
  .escena { animation: none !important; transform: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
