/* Ferrari Propiedades — concepto "Marca y huella": el hierro de marcar FP que se imprime en la tosca */
@font-face { font-family: "Zilla Slab"; src: url("fonts/zilla-slab-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --hierro: #18191b;          /* fondos oscuros y texto */
  --hierro-2: #24262a;
  --tosca: #ede6d6;           /* fondo: la tosca de las calles de La Huella */
  --tosca-sombra: #e2d8c3;
  --tierra: #d9c9a8;
  --brasa: #b8401c;           /* acento: el hierro al rojo (6,5:1 sobre tosca) */
  --brasa-clara: #f08a5d;     /* sobre hierro (7,1:1) */
  --pavonado: #6c7a86;        /* metálico, solo decorativo */
  --vinedo: #5f6f3a;          /* decorativo */
  --texto-suave: #4a443b;
  --marca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23000' stroke-width='11' stroke-linecap='square'%3E%3Cpath d='M30 84V18h28a15 15 0 0 1 0 30H30M30 64h22'/%3E%3Cpath d='M14 93q36-12 72 0' stroke-linecap='round'/%3E%3C/svg%3E");
  --ease-golpe: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);
  --display: "Zilla Slab", Georgia, serif;
  --texto: "Public Sans", system-ui, sans-serif;
  --franja: 2.5rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--franja) + 4.5rem); }
body { margin: 0; padding-top: var(--franja); background: var(--tosca); color: var(--hierro); font: 400 1.0625rem/1.6 var(--texto); overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.75rem); max-width: 18ch; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brasa); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.franja { position: fixed; inset: 0 0 auto; z-index: 50; margin: 0; min-height: var(--franja); display: grid; place-items: center; padding: .4rem 1rem; background: var(--brasa); color: #fff; font-size: .8125rem; font-weight: 600; text-align: center; line-height: 1.3; }

.cabecera { position: sticky; top: var(--franja); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem clamp(1rem, 4vw, 3rem); background: color-mix(in srgb, var(--hierro) 92%, transparent); backdrop-filter: blur(10px); color: var(--tosca); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.25rem; min-height: 44px; }
.logo em { font-style: normal; color: var(--brasa-clara); }
.logo-marca { width: 2rem; height: 2rem; fill: none; stroke: var(--brasa-clara); stroke-width: 11; stroke-linecap: square; }
.nav-lista { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-lista a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav-lista a:hover { color: var(--brasa-clara); }
.nav-lista li:not(:last-child) { display: none; }
.nav-cta { border: 1.5px solid var(--brasa-clara); border-radius: 999px; }
@media (min-width: 760px) { .nav-lista li:not(:last-child) { display: block; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; font: 600 1rem/1.2 var(--texto); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn-brasa { background: var(--brasa); color: #fff; }
.btn-brasa:hover { background: #9a3314; }
.btn-brasa-claro { background: var(--brasa-clara); color: var(--hierro); }
.btn-brasa-claro:hover { background: #f6a985; }
.btn-linea { border-color: currentColor; color: inherit; background: transparent; }
.btn-linea:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-chico { min-height: 44px; padding: .55rem 1.1rem; font-size: .9375rem; }

/* Hero */
.hero { position: relative; background: radial-gradient(120% 70% at 50% 30%, var(--hierro-2), var(--hierro) 70%); color: var(--tosca); padding: 0 clamp(1rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem); overflow: hidden; }
.escena { height: clamp(300px, 58vw, 560px); display: grid; place-items: center; perspective: 1100px; perspective-origin: 50% 20%; }
.escena-scroll, .escena-puntero { transform-style: preserve-3d; }
.escena-puntero { transform: rotateX(var(--px, 0deg)) rotateY(var(--py, 0deg)); }
.lote { position: relative; width: clamp(220px, 46vw, 480px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-32deg); }
.lote-tierra, .lote-canto { position: absolute; inset: 0; border-radius: 6px; }
.lote-tierra {
  background:
    linear-gradient(var(--tierra) 0 0) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--tierra) 0 0) 0 50% / 100% 2px no-repeat,
    radial-gradient(circle at 20% 30%, #0000 0 1px, #00000008 2px 3px, #0000 4px) 0 0 / 14px 14px,
    radial-gradient(circle at 70% 60%, #fff5 0 1px, #0000 2px) 0 0 / 9px 9px,
    linear-gradient(135deg, #efe5cf, #dccdae);
  box-shadow: inset 0 0 0 2px #cbb994, inset 0 0 60px #b8a47c66;
}
.lote-canto { background: #a8956f; }
.c1 { transform: translateZ(-6px); } .c2 { transform: translateZ(-12px); background: #8e7c58; } .c3 { transform: translateZ(-18px); background: #75654a; box-shadow: 0 40px 80px #000a; }
.huella, .huella-sombra, .hierro-sombra, .hierro .capa, .cursor-marca { -webkit-mask: var(--marca) center / contain no-repeat; mask: var(--marca) center / contain no-repeat; }
.huella, .huella-sombra, .hierro-sombra, .hierro { position: absolute; inset: 27%; }
.huella-sombra { background: #7f6d4c; transform: translate(-2px, -2px); }
.huella { background: #c6b48f; transform: translate(1px, 1px) translateZ(.5px); }
.hierro-sombra { background: #000; filter: blur(10px); opacity: .35; transform: translate(14px, 14px); }
.hierro { transform-style: preserve-3d; transform: translateZ(90px); }
.hierro .capa { position: absolute; inset: 0; background: #2c2e32; }
.hierro .capa:nth-child(2) { transform: translateZ(3px); background: #34373b; }
.hierro .capa:nth-child(3) { transform: translateZ(6px); background: #3d4045; }
.hierro .capa:nth-child(4) { transform: translateZ(9px); background: #474b51; }
.hierro .capa:nth-child(5) { transform: translateZ(12px); background: #545a61; }
.hierro .capa:nth-child(6) { transform: translateZ(15px); background: linear-gradient(135deg, var(--pavonado), #3a3f45); }
.hierro.al-rojo .capa:nth-child(-n+3) { background: var(--brasa); }
.hierro .capa { transition: background-color 1.6s var(--ease-decel); }
.polvo { position: absolute; inset: 50%; transform-style: preserve-3d; }
.polvo span { position: absolute; width: 7px; height: 7px; margin: -3px; border-radius: 50%; background: #cdbb93; opacity: 0; }

.hero-texto { position: relative; z-index: 2; margin-top: clamp(-5rem, -6vw, -2rem); text-align: center; }
.hero-lema { margin: 0 0 .75rem; font-weight: 600; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brasa-clara); }
.hero-titulo { font-size: clamp(3.4rem, 1rem + 11vw, 9.5rem); line-height: .9; margin: 0 0 1.25rem; letter-spacing: -.02em; }
.hero-titulo .linea { display: block; }
.hero-titulo .linea-2 { color: var(--brasa-clara); font-size: .52em; letter-spacing: .02em; }
.hero-titulo .char { display: inline-block; transform-origin: 50% 100%; }
.hero-bajada { max-width: 46ch; margin: 0 auto 1.75rem; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: #d9d2c3; }
.hero-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero-acciones .btn { flex: 1 1 15rem; max-width: 20rem; }

/* Secciones */
.seccion { padding: clamp(4.5rem, 10vw, 9rem) clamp(1rem, 5vw, 4rem); }
.contenedor { max-width: 1240px; margin: 0 auto; }
.seccion-cabeza { margin-bottom: 2.5rem; }
.antetitulo { font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brasa); margin-bottom: .75rem; }
.antetitulo--claro { color: var(--brasa-clara); }

/* Buscador: pegado abajo en celular, al alcance del pulgar */
.buscador { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 1rem; background: var(--hierro); color: var(--tosca); border-radius: 18px; margin-bottom: 1rem; position: sticky; top: calc(var(--franja) + 4.25rem); z-index: 5; box-shadow: 0 18px 40px #18191b33; }
.campo { display: grid; gap: .3rem; }
.campo label { font-size: .8125rem; font-weight: 600; }
select, input, textarea { width: 100%; min-height: 48px; padding: .6rem .8rem; font: 400 1rem/1.3 var(--texto); color: var(--hierro); background: var(--tosca); border: 2px solid #9c8d72; border-radius: 10px; }
textarea { resize: vertical; }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--brasa-clara); outline-offset: 1px; }
.buscador-resultado { grid-column: 1 / -1; margin: .25rem 0 0; font-size: .9375rem; }
.resultado-num { font-family: var(--display); font-size: 1.5rem; color: var(--brasa-clara); }
@media (max-width: 759px) { .buscador { top: auto; bottom: .5rem; } }
@media (min-width: 760px) { .buscador { grid-template-columns: repeat(4, 1fr) auto; align-items: end; padding: 1.25rem 1.5rem; } .buscador-resultado { grid-column: auto; margin: 0 0 .6rem; } }
.nota-demo { max-width: 70ch; font-size: .9375rem; color: var(--texto-suave); border-left: 3px solid var(--brasa); padding-left: .9rem; margin: 1.5rem 0 2.5rem; }

.fichas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.ficha { position: relative; display: flex; flex-direction: column; padding: 1.5rem; background: #f7f2e7; border: 1.5px solid #d4c6a8; border-radius: 18px; transform-style: preserve-3d; transition: transform .25s var(--ease-decel), box-shadow .25s; }
.ficha[hidden] { display: none; }
.ficha:hover { box-shadow: 0 24px 50px #18191b22; }
.ficha-ilus { height: 120px; display: grid; place-items: center; margin: -.25rem -.25rem 1rem; border-radius: 12px; background: var(--tosca-sombra); }
.ficha-ilus svg { width: 150px; height: 110px; fill: none; stroke: var(--hierro); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tilt-capa { transform: translateZ(36px); }
.ficha-op { align-self: flex-start; margin: 0 0 .6rem; padding: .2rem .7rem; border-radius: 999px; background: var(--hierro); color: var(--tosca); font-size: .8125rem; font-weight: 600; }
.ficha-op--alquiler { background: var(--brasa); color: #fff; }
.ficha-datos { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 .75rem; font-size: .9375rem; }
.ficha-datos dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-suave); }
.ficha-datos dd { margin: 0; }
.ficha-precio { font-weight: 600; color: var(--brasa); margin-top: auto; }
.ficha-acciones { display: flex; gap: .5rem; flex-wrap: wrap; }
.ficha-acciones .btn { flex: 1 1 8rem; }
.sin-resultados { padding: 1.5rem; background: var(--tosca-sombra); border-radius: 14px; }

/* La Huella */
.huella-seccion { background: var(--hierro); color: var(--tosca); }
.huella-grilla { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .huella-grilla { grid-template-columns: 1.1fr 1fr; } }
.huella-cita { margin: 0 0 1.5rem; font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); line-height: 1.2; color: var(--brasa-clara); }
.huella-cita p { margin: 0; }
.huella-datos { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; color: #d9d2c3; }
.huella-datos li { padding-left: 1.6rem; position: relative; }
.huella-datos li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; background: var(--brasa-clara); -webkit-mask: var(--marca) center / contain no-repeat; mask: var(--marca) center / contain no-repeat; }
.huella-datos strong { color: var(--tosca); }
.huella-esquema { margin: 0; }
.esquema { width: 100%; height: auto; fill: none; stroke: var(--tierra); stroke-width: 2; stroke-linecap: round; }
.esquema .ruta { stroke: #3a3d42; stroke-width: 18; }
.esquema .ruta-eje { stroke: var(--brasa-clara); stroke-dasharray: 10 10; }
.esquema .calle { stroke: #a39577; stroke-width: 4; }
.esquema .vina { stroke: #9bb070; stroke-width: 3; }
.huella-esquema figcaption { margin-top: .75rem; font-size: .875rem; color: #c9c1b0; }

/* Nosotros */
.nosotros-grilla { display: grid; gap: 3rem; }
@media (min-width: 900px) { .nosotros-grilla { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.nosotros-txt { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); max-width: 52ch; }
.cifras { margin: 0; display: grid; gap: 1.25rem; }
.cifras > div { display: flex; flex-direction: column-reverse; border-top: 2px solid var(--hierro); padding-top: .75rem; }
.cifras dt { font-size: .9375rem; color: var(--texto-suave); }
.cifras dd { margin: 0; font-family: var(--display); font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--brasa); }

/* Servicios */
.servicios { background: var(--tosca-sombra); }
.servicios-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.servicio { padding: 1.75rem; background: var(--tosca); border-radius: 18px; border: 1.5px solid #cdbf9f; transform-style: preserve-3d; transition: transform .25s var(--ease-decel); }
.servicio:nth-child(even) { margin-top: 2rem; }
.servicio-num { display: block; font-family: var(--display); font-size: 3rem; color: var(--brasa); line-height: 1; margin-bottom: 1rem; }
.servicio p { margin: 0; color: var(--texto-suave); }

/* Diferenciales */
.dif-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .dif-lista { grid-template-columns: repeat(3, 1fr); } .dif-lista li:nth-child(2) { translate: 0 3rem; } }
.dif-ico { width: 64px; height: 64px; fill: none; stroke: var(--brasa); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }

/* Trazos que se dibujan: los oculta solo el JS */
.js-anim .dibujo path, .js-anim .dibujo use { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-decel); }
.js-anim .ficha-ilus svg, .js-anim .esquema { --dash: 1; }
.js-anim .ficha-ilus use, .js-anim .esquema path { stroke-dasharray: 400; stroke-dashoffset: 400; }
.js-anim .esquema .ruta-eje { stroke-dasharray: 10 10; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s .8s; }
.js-anim .visto .dibujo path, .js-anim .visto.dibujo path, .js-anim .visto .dibujo use, .js-anim .visto.dibujo use { stroke-dashoffset: 0; }
.js-anim .visto .esquema .ruta-eje { opacity: 1; }

/* Tasación */
.tasacion { background: var(--hierro-2); color: var(--tosca); }
.tasacion-grilla { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .tasacion-grilla { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.tasacion-txt { color: #d9d2c3; max-width: 42ch; }
.form-tasacion { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: 1.5rem; background: var(--hierro); border-radius: 18px; border: 1.5px solid #3a3d42; }
@media (min-width: 600px) { .form-tasacion { grid-template-columns: 1fr 1fr; } .campo-ancho, .form-aviso { grid-column: 1 / -1; } }
.form-aviso { margin: 0; justify-self: start; padding: .2rem .7rem; border-radius: 999px; background: var(--brasa-clara); color: var(--hierro); font-size: .8125rem; font-weight: 600; }
.form-estado { margin: 0; min-height: 1.5em; color: var(--brasa-clara); font-weight: 600; }

/* Contacto */
.contacto-grilla { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contacto-grilla { grid-template-columns: 1fr 1fr; align-items: end; } }
.contacto-lista { list-style: none; margin: 0; padding: 0; }
.contacto-lista li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .9rem 0; border-bottom: 1.5px solid #cdbf9f; }
.contacto-lista span { font-weight: 600; color: var(--texto-suave); }
.contacto-lista a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: var(--brasa); text-underline-offset: 4px; word-break: break-word; }

.pie { background: var(--hierro); color: #cfc8b8; padding: 3rem clamp(1rem, 5vw, 4rem) 6rem; font-size: .9375rem; }
.pie-marca { font-family: var(--display); font-size: 1.75rem; color: var(--tosca); }
@media (min-width: 760px) { .pie { padding-bottom: 3rem; } }

/* Cursor: la marca FP en miniatura, que se pone al rojo sobre lo clickeable */
.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-marca, .cursor-punto { position: fixed; top: 0; left: 0; will-change: transform; }
.cursor-marca { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: var(--pavonado); opacity: .75; scale: var(--escala, 1); rotate: var(--giro, 0deg); transition: scale .3s var(--ease-decel), background-color .3s, opacity .3s; }
.cursor-punto { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brasa); }
.cursor.hover .cursor-marca { --escala: 1.45; background: var(--brasa); opacity: .9; }

/* Scroll reveal y escena que se aplana con el scroll */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .revela { animation: subir linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
    .escena-scroll { animation: aplanar linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  }
}
@keyframes subir { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: 0 0; } }
@keyframes aplanar { to { transform: rotateX(-34deg) scale(.82) translateY(8%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .lote { transform: none; }
  .hierro, .hierro-sombra, .lote-canto { display: none; }
}
