/* Casa Kokob · Residencial · Tierra de Riqueza */

:root {
  --terracota: #6e2f22;
  --terracota-osc: #4a2018;
  --tinta: #2b1812;
  --arena: #e9dcc4;
  --crema: #f8f2e7;
  --crema-2: #efe5d3;
  --oro: #c9a46a;
  --oro-osc: #a9824a;
  --olivo: #3f4a24;
  --olivo-claro: #6b7a3c;
  --wa: #1fae5b;
  --wa-osc: #178a48;
  --texto: #3b2a22;
  --texto-suave: #6d5a4e;
  --linea: rgba(74, 32, 24, .14);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-acento: "Hanken Grotesk", system-ui, sans-serif;
  --f-texto: "Hanken Grotesk", system-ui, sans-serif;

  --radio: 18px;
  --sombra: 0 20px 50px -20px rgba(43, 24, 18, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--crema);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.04; color: var(--terracota-osc); letter-spacing: -.03em; }
p { margin: 0 0 1em; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--tinta); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-family: var(--f-acento); font-size: 1.15rem;
  color: var(--oro-osc);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 400; margin-bottom: 22px; }

/* Botones */
.btn {
  --bg: var(--terracota); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1.1 var(--f-texto); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn-lg { padding: 17px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-oro { --bg: var(--oro); --fg: var(--tinta); }
.btn-oro:hover { --bg: #d6b37b; }
.btn-wa { --bg: var(--wa); --fg: #fff; }
.btn-wa:hover { --bg: var(--wa-osc); }
.btn-wa .ico { stroke: none; }
.btn-linea { --bg: transparent; --fg: var(--terracota-osc); box-shadow: inset 0 0 0 1.5px var(--terracota); }
.btn-linea:hover { --bg: var(--terracota); --fg: #fff; }

/* Encabezado */
.site-header {
  --hdr-fg: #fff; --brand-color: var(--arena);
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .5s var(--ease);
}
.site-header.oculto { transform: translateY(-120%); }
.topbar { height: 40px; overflow: hidden; background: rgba(30, 14, 10, .42); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(233,220,196,.9); font-size: .9rem; transition: height .45s var(--ease); }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-promo { display: flex; align-items: center; gap: 10px; margin: 0; letter-spacing: .02em; }
.topbar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(31,174,91,.6); animation: punto 2s infinite; }
@keyframes punto { 70% { box-shadow: 0 0 0 8px rgba(31,174,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,174,91,0); } }
.topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: color .2s; }
.topbar-links a:hover { color: var(--oro); }
.topbar-links .ico { width: 15px; height: 15px; color: var(--oro); }
.site-header.compacto .topbar { height: 0; border: 0; }

.header-bar {
  position: relative; display: flex; align-items: center; gap: 20px;
  height: 74px; margin-top: 14px; padding: 0 10px 0 24px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  transition: height .45s var(--ease), margin .45s var(--ease), background-color .45s, border-color .45s, box-shadow .45s;
}
.site-header.compacto { --hdr-fg: var(--texto); --brand-color: var(--terracota-osc); }
.site-header.compacto .header-bar { height: 64px; margin-top: 10px; background: rgba(248,242,231,.9); border-color: rgba(74,32,24,.1); box-shadow: 0 18px 40px -22px rgba(43,24,18,.45); }

.brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-arbol, .brand-texto { display: block; background-color: var(--brand-color); transition: background-color .45s; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.brand-arbol { --m: url("../img/arbol-claro.png"); width: 38px; height: 32px; }
.brand-texto { --m: url("../img/wordmark-claro.png"); width: 112px; height: 38px; }
.brand-sep { width: 1px; height: 30px; background: var(--brand-color); opacity: .35; transition: background-color .45s; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; display: block; padding: 10px 16px; border-radius: 999px; color: var(--hdr-fg); text-decoration: none; font-weight: 500; font-size: 1.02rem; opacity: .88; transition: background-color .25s, opacity .25s, color .45s; }
.main-nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.site-header.compacto .main-nav a:hover { background: rgba(74,32,24,.07); }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--oro); transform: scale(0); transition: transform .35s var(--ease); }
.main-nav a.activo { opacity: 1; }
.main-nav a.activo::after { transform: scale(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-wa { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--wa); color: #fff; transition: transform .35s var(--ease), background-color .25s; }
.header-wa:hover { transform: scale(1.06); background: var(--wa-osc); }
.header-wa .ico { width: 24px; height: 24px; stroke: none; }
.header-cta { height: 50px; padding: 0 22px; }
.header-cta .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.header-cta:hover .ico { transform: translateX(4px); }
.menu-toggle { display: none; position: relative; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); cursor: pointer; transition: background-color .45s; }
.site-header.compacto .menu-toggle { background: var(--crema-2); }
.menu-toggle span { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: var(--hdr-fg); transition: transform .4s var(--ease), background-color .45s; }
.menu-toggle span:first-child { top: 20px; }
.menu-toggle span:last-child { top: 28px; }
.menu-abierto .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-abierto .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menú en pantalla completa (tableta y teléfono) */
.menu-movil { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between; padding: 150px 24px calc(28px + env(safe-area-inset-bottom)); background: var(--terracota-osc) url("../img/textura-terracota.webp") center / cover; color: var(--arena); clip-path: circle(0% at calc(100% - 50px) 70px); transition: clip-path .7s var(--ease), visibility 0s .7s; overflow-y: auto; }
.menu-movil[hidden] { display: flex; visibility: hidden; }
.menu-abierto .menu-movil { clip-path: circle(150% at calc(100% - 50px) 70px); visibility: visible; transition: clip-path .7s var(--ease); }
.menu-movil ol { margin: 0; padding: 0; list-style: none; }
.menu-movil li { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.menu-abierto .menu-movil li { opacity: 1; transform: none; }
.menu-abierto .menu-movil li:nth-child(1) { transition-delay: .15s; }
.menu-abierto .menu-movil li:nth-child(2) { transition-delay: .2s; }
.menu-abierto .menu-movil li:nth-child(3) { transition-delay: .25s; }
.menu-abierto .menu-movil li:nth-child(4) { transition-delay: .3s; }
.menu-abierto .menu-movil li:nth-child(5) { transition-delay: .35s; }
.menu-abierto .menu-movil li:nth-child(6) { transition-delay: .4s; }
.menu-movil ol a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(233,220,196,.14); font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 7vw, 2.6rem); color: #fff; text-decoration: none; }
.menu-movil ol a span { font-family: var(--f-acento); font-weight: 400; font-size: 1rem; color: var(--oro); }
.menu-movil-pie { margin-top: 32px; }
.menu-movil-pie p { margin: 16px 0 0; text-align: center; font-size: .95rem; }
.menu-movil-pie p a { color: var(--arena); }
html.menu-abierto, .menu-abierto body { overflow: hidden; }
.menu-abierto .site-header { --hdr-fg: #fff; --brand-color: var(--arena); }
.menu-abierto .site-header .header-bar { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); box-shadow: none; }
.menu-abierto .site-header .menu-toggle { background: rgba(255,255,255,.14); }
.menu-abierto .barra-movil, .menu-abierto .wa-float { opacity: 0; pointer-events: none; }

/* Portada: la galería del desarrollo es la protagonista */
.hero {
  --noche: #15110d; --piedra: #d9cbb4; --hueso: #f3ede3;
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 100px) 0 clamp(36px, 6vh, 64px);
  color: var(--hueso); background: var(--noche); overflow: hidden; isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.activo { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.activo img { animation: lento 9s linear forwards; }
@keyframes lento { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-velo {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(21,17,13,.88) 0%, rgba(21,17,13,.55) 38%, rgba(21,17,13,0) 68%),
    linear-gradient(0deg, rgba(21,17,13,.9) 0%, rgba(21,17,13,0) 45%),
    linear-gradient(180deg, rgba(21,17,13,.55) 0%, rgba(21,17,13,0) 22%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
.hero-copy { max-width: 820px; }
.hero-lugar { display: block; margin: 0 0 22px; font-family: var(--f-texto); font-weight: 400; font-size: 1rem; line-height: 1.5; letter-spacing: .01em; color: var(--piedra); }
.hero-title {
  margin-bottom: 26px; color: var(--hueso);
  font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: .94; letter-spacing: -.045em; font-variation-settings: "opsz" 96;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
@media (min-width: 761px) { .hero-title .line > span { white-space: nowrap; } }
.hero-lead { max-width: 30em; margin-bottom: 34px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: rgba(243,237,227,.78); }
.hero-cifras { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 36px; }
.hero-cifras div { padding: 0 28px; border-left: 1px solid rgba(217,203,180,.28); }
.hero-cifras div:first-child { padding-left: 0; border-left: 0; }
.hero-cifras dt { font-size: .88rem; color: rgba(243,237,227,.6); }
.hero-cifras dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; color: var(--hueso); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-galeria { width: 470px; }
.hero-caption { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-size: .95rem; color: var(--hueso); min-height: 1.5em; }
.hero-contador { flex: none; color: rgba(243,237,227,.55); font-variant-numeric: tabular-nums; }
.hero-contador b { font-weight: 600; color: var(--hueso); }
.hero-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hero-thumb { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 16 / 10; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.6); transition: opacity .4s, filter .4s, transform .6s var(--ease); }
.hero-thumb:hover img { opacity: .8; transform: scale(1.05); }
.hero-thumb.activo img { opacity: 1; filter: none; }
.hero-thumb-barra { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(243,237,227,.3); overflow: hidden; opacity: 0; transition: opacity .3s; }
.hero-thumb.activo .hero-thumb-barra { opacity: 1; }
.hero-thumb-barra i { position: absolute; inset: 0; background: var(--hueso); transform: scaleX(0); transform-origin: left; }
.hero-thumb.activo .hero-thumb-barra i { animation: avance var(--dur, 6s) linear forwards; }
.hero.pausado .hero-thumb.activo .hero-thumb-barra i { animation-play-state: paused; }
@keyframes avance { to { transform: scaleX(1); } }
.hero-flechas { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.hero-flechas button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243,237,227,.3); background: transparent; color: var(--hueso); cursor: pointer; transition: background-color .25s, border-color .25s; }
.hero-flechas button:hover { background: rgba(243,237,227,.12); border-color: rgba(243,237,227,.6); }
.hero-prev .ico { transform: rotate(180deg); }

.btn-piedra { --bg: #d9cbb4; --fg: #15110d; }
.btn-piedra:hover { --bg: #e8dcc8; }

/* Franja */
.ticker { overflow: hidden; background: var(--olivo); color: var(--arena); padding: 16px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.ticker i { width: 8px; height: 8px; background: var(--oro); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Manifiesto */
.manifiesto { padding: clamp(80px, 14vw, 170px) 0; text-align: center; }
.manifiesto-arbol { width: 72px; margin: 0 auto 30px; opacity: .85; }
.manifiesto-text { max-width: 980px; margin: 0 auto; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.22; color: var(--terracota-osc); }
.manifiesto-text .w { opacity: .16; transition: opacity .2s; }
.no-anim .manifiesto-text .w { opacity: 1; }

/* Ubicación */
.ubicacion { padding: 0 0 clamp(80px, 12vw, 150px); }
.ubicacion-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.ubicacion-copy > p { color: var(--texto-suave); }
.distancias { display: grid; gap: 14px; margin: 30px 0; }
.distancia { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: #fff; border-radius: var(--radio); box-shadow: 0 1px 0 var(--linea), 0 12px 30px -24px rgba(43,24,18,.5); }
.distancia > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--crema-2); color: var(--terracota); }
.distancia strong { display: block; font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; color: var(--terracota-osc); }
.distancia span { color: var(--texto-suave); }
.link-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terracota); text-decoration: none; border-bottom: 1.5px solid var(--oro); padding-bottom: 3px; }
.link-cta .ico { transition: transform .35s var(--ease); }
.link-cta:hover .ico { transform: translateX(5px); }
.ubicacion-mapa { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--sombra); }
.ubicacion-mapa img { width: 100%; }

/* Proyecto */
.proyecto { position: relative; padding: clamp(120px, 18vw, 220px) 0 clamp(70px, 10vw, 120px); overflow: hidden; isolation: isolate; }
.proyecto-media { position: absolute; inset: 0; z-index: -1; }
.proyecto-media img { width: 100%; height: 120%; object-fit: cover; }
.proyecto-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,20,14,.15), rgba(43,20,14,.5)); }
.proyecto-card { max-width: 600px; margin-left: auto; padding: clamp(28px, 4vw, 52px); border-radius: 26px; background: var(--crema); box-shadow: var(--sombra); }
.features { display: grid; gap: 4px; margin: 6px 0 26px; padding: 0; list-style: none; }
.features li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.features .ico { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--olivo); color: var(--arena); }
.lotes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lotes span { font-family: var(--f-acento); color: var(--texto-suave); margin-right: 4px; }
.lotes b { padding: 6px 14px; border-radius: 999px; background: var(--crema-2); font-weight: 700; font-size: .98rem; color: var(--terracota-osc); }

/* Amenidades */
.amenidades { background: var(--terracota-osc) url("../img/textura-terracota.webp") center / cover; color: var(--arena); padding: clamp(80px, 10vw, 120px) 0; overflow: hidden; }
.amenidades .h2 { color: #fff; }
.amenidades .eyebrow { color: var(--oro); }
.amenidades-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.amenidades-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; font-family: var(--f-acento); color: var(--oro); white-space: nowrap; }
.amenidades-track { display: flex; gap: 22px; padding-inline: max(16px, calc((100% - 1200px) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.amenidades-track::-webkit-scrollbar { display: none; }
.amenidad { position: relative; flex: none; width: min(78vw, 470px); scroll-snap-align: center; border-radius: 22px; overflow: hidden; background: var(--tinta); }
.amenidad img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.amenidad:hover img { transform: scale(1.06); }
.amenidad-body { position: absolute; inset: auto 0 0; padding: 70px 26px 26px; background: linear-gradient(0deg, rgba(30,14,10,.95), rgba(30,14,10,0)); }
.amenidad-num { font-family: var(--f-acento); color: var(--oro); }
.amenidad h3 { margin: 4px 0 8px; font-size: 1.7rem; color: #fff; }
.amenidad p { margin: 0; font-size: 1rem; color: rgba(255,255,255,.8); }
.amenidad-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 40px; background: var(--olivo); aspect-ratio: 4 / 5; }
.amenidad-cta img { width: 80px; aspect-ratio: auto; }
.amenidad-cta h3 { color: #fff; font-size: 2rem; }

/* Inversión */
.inversion { padding: clamp(80px, 12vw, 150px) 0; }
.inversion-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.inversion-copy > p { color: var(--texto-suave); }
.inversion-tren { position: relative; margin: 32px 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; }
.inversion-tren img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.inversion-tren figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(248,242,231,.92); font-weight: 700; font-size: .95rem; color: var(--terracota-osc); }
.video-col { position: sticky; top: calc(var(--header-h) + 24px); }
.video-frame { position: relative; max-width: 420px; margin-inline: auto; border-radius: 30px; overflow: hidden; background: var(--tinta); box-shadow: var(--sombra), 0 0 0 10px #fff; }
.video-frame video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.video-play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border: 0; border-radius: 50%; background: rgba(248,242,231,.92); color: var(--terracota); cursor: pointer; transition: transform .4s var(--ease), opacity .3s; }
.video-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(248,242,231,.7); animation: pulso 2.2s var(--ease) infinite; }
.video-play .ico { width: 34px; height: 34px; margin: auto; transform: translateX(3px); }
.video-play:hover { transform: scale(1.08); }
.video-frame.reproduciendo .video-play { opacity: 0; pointer-events: none; }
.video-caption { margin-top: 26px; text-align: center; font-family: var(--f-acento); color: var(--texto-suave); }
@keyframes pulso { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* Cotizador */
.cotizador { padding: clamp(80px, 12vw, 140px) 0; background: var(--crema-2); }
.cotizador-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.cotizador-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.cotizador-head > p:last-child { color: var(--texto-suave); }
.cotizador-box { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--sombra); }
.cotizador-opciones { padding: clamp(24px, 4vw, 48px); }
fieldset { margin: 0 0 30px; padding: 0; border: 0; }
fieldset:last-child { margin-bottom: 0; }
legend { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; color: var(--terracota-osc); }
legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--terracota); color: #fff; font-size: 1rem; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chip, .plan { position: relative; cursor: pointer; }
.chip input, .plan input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: block; padding: 14px 8px; border-radius: 14px; text-align: center; font-weight: 700; line-height: 1.2; border: 1.5px solid var(--linea); transition: all .25s; }
.chip small { display: block; font-weight: 500; font-size: .85rem; color: var(--texto-suave); }
.chip input:checked + span { border-color: var(--terracota); background: var(--terracota); color: #fff; }
.chip input:checked + span small { color: var(--arena); }
.chip input:focus-visible + span, .plan input:focus-visible + span { outline: 3px solid var(--oro); outline-offset: 2px; }
.planes { display: grid; gap: 10px; }
.plan > span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--linea); transition: all .25s; }
.plan b { font-size: 1.08rem; }
.plan em { grid-row: span 2; font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--terracota-osc); text-align: right; }
.plan em small { display: block; font-family: var(--f-texto); font-weight: 500; font-size: .8rem; color: var(--texto-suave); }
.plan i { font-style: normal; font-size: .9rem; color: var(--texto-suave); }
.plan input:checked + span { border-color: var(--olivo); background: rgba(63,74,36,.07); box-shadow: inset 0 0 0 1px var(--olivo); }
.plan:hover span { border-color: var(--olivo-claro); }
.etiqueta { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--oro); color: var(--tinta); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }

.cotizador-resultado { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 48px); background: var(--olivo); color: var(--arena); }
.res-label { margin: 0; font-family: var(--f-acento); font-size: 1.2rem; color: var(--oro); }
.res-monto { margin: 2px 0 22px; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: #fff; }
.res-monto small { display: block; margin-top: 8px; font-family: var(--f-texto); font-weight: 500; font-size: 1rem; color: var(--arena); }
.res-detalle { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0 0 22px; padding: 20px 0; border-block: 1px solid rgba(233,220,196,.2); }
.res-detalle dt { font-size: .9rem; color: rgba(233,220,196,.7); }
.res-detalle dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: #fff; }
.res-apartado { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: .98rem; line-height: 1.45; }
.res-apartado strong { display: block; color: var(--oro); font-size: 1.1rem; }
.res-ahorro { margin: 14px 0 0; font-size: .98rem; color: var(--arena); }
.res-ahorro:empty { display: none; }
.res-ahorro b { color: #fff; }
.res-ctas { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
.res-ctas .btn-linea { --fg: var(--arena); box-shadow: inset 0 0 0 1.5px rgba(233,220,196,.5); }
.res-ctas .btn-linea:hover { --bg: var(--arena); --fg: var(--olivo); }

.lista-completa { margin-top: 28px; }
.lista-completa summary { width: max-content; max-width: 100%; margin: 0 auto; padding: 12px 22px; border-radius: 999px; cursor: pointer; list-style: none; font-weight: 700; color: var(--terracota); box-shadow: inset 0 0 0 1.5px var(--linea); }
.lista-completa summary::-webkit-details-marker { display: none; }
.lista-completa summary::after { content: " +"; }
.lista-completa[open] summary::after { content: " −"; }
.tablas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.tabla { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--linea); }
.tabla h3 { padding: 14px 18px; background: var(--olivo); color: #fff; font-size: 1.2rem; text-align: center; }
.tabla-scroll { overflow-x: auto; }
.tabla table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .95rem; }
.tabla th, .tabla td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabla th { font-weight: 500; color: var(--texto-suave); background: var(--crema); }
.tabla td { font-weight: 700; color: var(--tinta); }
.tabla td:first-child { font-weight: 500; }
.tabla tr:last-child td { border-bottom: 0; }
.nota { margin-top: 18px; text-align: center; font-size: .95rem; color: var(--texto-suave); }

/* Proceso */
.proceso { padding: clamp(80px, 12vw, 150px) 0; }
.proceso-head { text-align: center; margin-bottom: 56px; }
.pasos { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.pasos::before { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; height: 2px; background: var(--linea); }
.pasos::after { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; height: 2px; background: var(--oro); transform: scaleX(var(--progreso, 1)); transform-origin: left; }
.paso { position: relative; z-index: 1; text-align: center; }
.paso-num { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--terracota); color: #fff; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; box-shadow: 0 0 0 8px var(--crema); }
.paso h3 { font-size: 1.35rem; margin-bottom: 8px; }
.paso p { font-size: 1rem; color: var(--texto-suave); }
.proceso-cta { margin-top: 40px; text-align: center; }

/* Preguntas frecuentes */
.faq { padding: clamp(80px, 12vw, 140px) 0; background: var(--crema-2); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-head p { color: var(--texto-suave); margin-bottom: 26px; }
.pregunta { border-bottom: 1px solid var(--linea); }
.pregunta:first-child { border-top: 1px solid var(--linea); }
.pregunta summary { position: relative; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; color: var(--terracota-osc); }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::before, .pregunta summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--terracota); transition: transform .35s var(--ease); }
.pregunta summary::after { transform: rotate(90deg); }
.pregunta[open] summary::after { transform: rotate(0deg); }
.pregunta p { margin: 0; padding: 0 48px 24px 0; color: var(--texto-suave); max-width: 60ch; }

/* Contacto */
.contacto { padding: clamp(80px, 12vw, 140px) 0; background: var(--terracota-osc) url("../img/textura-terracota.webp") center / cover; color: var(--arena); }
.contacto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.contacto-logo { width: 190px; margin-bottom: 34px; }
.contacto .h2 { color: #fff; }
.contacto-copy p { color: rgba(233,220,196,.85); margin-bottom: 28px; }
.form { padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: var(--crema); color: var(--texto); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form-row { margin-bottom: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 700; font-size: .95rem; color: var(--terracota-osc); }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 15px;
  font: 400 1.05rem var(--f-texto); color: var(--tinta);
  background: #fff; border: 1.5px solid var(--linea); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e2f22' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--terracota); box-shadow: 0 0 0 4px rgba(110,47,34,.12); }
.form .invalido { border-color: #b3261e; }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--olivo); }
.form-status.error { color: #b3261e; }
.form-status a { color: inherit; }
.form-legal { margin: 10px 0 0; font-size: .85rem; color: var(--texto-suave); text-align: center; }
.form button[disabled] { opacity: .6; pointer-events: none; }

/* Pie */
.footer { padding: 48px 0 120px; background: var(--tinta); color: rgba(233,220,196,.75); font-size: .98rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; }
.footer-inner > img { width: 130px; }
.footer-info p { margin: 0; }
.footer a { color: var(--arena); }
.footer-redes { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.footer-redes p { margin: 0; }
.redes { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.redes a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(233,220,196,.28); color: var(--arena); transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.redes a:hover { background: var(--arena); border-color: var(--arena); color: var(--tinta); transform: translateY(-2px); }
.redes .ico { width: 19px; height: 19px; }
.redes-centro { justify-content: center; margin-top: 18px; }
.contacto-redes { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(233,220,196,.18); }
.contacto-redes p { margin: 0 0 12px; font-size: .98rem; }
.redes-topbar { gap: 4px; margin-left: 4px; padding-left: 18px; border-left: 1px solid rgba(233,220,196,.2); }
.redes-topbar a { width: 28px; height: 28px; border: 0; }
.redes-topbar a:hover { background: rgba(233,220,196,.15); color: var(--oro); transform: none; }
.redes-topbar .ico { width: 15px; height: 15px; }
.footer-legal { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 20px; border-top: 1px solid rgba(233,220,196,.12); font-size: .88rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 12px; text-decoration: none; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.wa-float.visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float > .ico { width: 62px; height: 62px; padding: 15px; border-radius: 50%; background: var(--wa); color: #fff; stroke: none; box-shadow: 0 12px 30px -8px rgba(31,174,91,.7); animation: latido 2.8s ease-in-out infinite; }
.wa-float-tip { padding: 9px 14px; border-radius: 12px; background: #fff; color: var(--tinta); font-weight: 700; font-size: .95rem; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); opacity: 0; transform: translateX(10px); transition: all .4s var(--ease); pointer-events: none; }
.wa-float:hover .wa-float-tip, .wa-float.saludo .wa-float-tip { opacity: 1; transform: none; }
@keyframes latido { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.1); } 86% { transform: scale(1); } 92% { transform: scale(1.06); } }
.barra-movil { display: none; }
.subir {
  position: fixed; right: 31px; bottom: 100px; z-index: 60;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(248,242,231,.92); color: var(--terracota-osc); border: 1px solid var(--linea);
  box-shadow: 0 10px 24px -12px rgba(43,24,18,.5); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease), background-color .25s;
}
.subir.visible { opacity: 1; transform: none; pointer-events: auto; }
.subir:hover { background: #fff; }
.subir .ico { width: 20px; height: 20px; transform: rotate(-90deg); }
.menu-abierto .subir { opacity: 0; pointer-events: none; }

/* Animaciones de entrada (solo con JS activo) */
.js .reveal { opacity: 0; transform: translateY(34px); }
.js .clip-reveal { clip-path: inset(12% 12% 12% 12% round 24px); }
.js.no-anim .reveal { opacity: 1; transform: none; }
.js.no-anim .clip-reveal { clip-path: none; }

/* Tableta */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-galeria { width: 100%; max-width: 520px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .cotizador-box { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .pasos::before, .pasos::after { left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; }
  .pasos::after { transform: scaleY(var(--progreso, 1)); transform-origin: top; }
  .paso { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; text-align: left; padding-bottom: 28px; }
  .paso-num { grid-row: span 2; margin: 0; }
  .paso h3 { align-self: end; margin-top: 8px; }
}

/* Teléfono */
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  body { font-size: 1.06rem; }
  .topbar { height: 34px; font-size: .85rem; }
  .topbar .hide-sm { display: none; }
  .topbar-promo, .topbar-links a { white-space: nowrap; }
  .header-bar { height: 62px; margin-top: 10px; padding: 0 6px 0 16px; gap: 10px; }
  .site-header.compacto .header-bar { height: 58px; margin-top: 8px; }
  .brand { gap: 10px; }
  .brand-arbol { width: 30px; height: 26px; }
  .brand-texto { width: 86px; height: 30px; }
  .brand-sep { height: 24px; }
  .header-cta { display: none; }
  .header-wa, .menu-toggle { width: 46px; height: 46px; }
  .menu-toggle span { left: 14px; right: 14px; }
  .menu-toggle span:first-child { top: 18px; }
  .menu-toggle span:last-child { top: 26px; }
  .menu-movil { padding-top: 120px; }
  .hide-sm { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero { padding-top: calc(var(--header-h) + 70px); }
  .hero-cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .hero-cifras div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .hero-cifras dd { font-size: 1.35rem; }
  .hero-flechas { display: none; }
  .hero-caption { font-size: .9rem; margin-bottom: 4px; }
  .hero-thumb { aspect-ratio: auto; height: 16px; border-radius: 0; }
  .hero-thumb img { display: none; }
  .hero-thumb-barra { left: 0; right: 0; bottom: 7px; opacity: 1; }
  .ubicacion-grid, .inversion-grid, .contacto-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .pregunta summary { font-size: 1.15rem; }
  .ubicacion-mapa { max-width: 480px; }
  .proyecto { padding-top: 46vw; }
  .proyecto-card { margin-inline: -4px; }
  .amenidades-head { display: block; }
  .video-col { position: static; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .res-detalle { grid-template-columns: 1fr 1fr; }
  .tablas { grid-template-columns: 1fr; }
  .form-2 { grid-template-columns: 1fr; gap: 0; }
  .form-2 label + label { margin-top: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .subir { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .barra-movil {
    position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(248,242,231,.96); backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px -18px rgba(0,0,0,.4);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .barra-movil.visible { transform: none; }
  .barra-movil a { white-space: nowrap; font-size: .98rem; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--crema-2); color: var(--terracota-osc); }
  .barra-movil .barra-wa { background: var(--wa); color: #fff; }
  .barra-movil .barra-wa .ico { stroke: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
}

/* En teléfono el texto queda sobre el letrero del acceso: oscurece más la imagen */
@media (max-width: 760px) {
  .hero-velo { background: linear-gradient(0deg, rgba(21,17,13,.95) 0%, rgba(21,17,13,.75) 50%, rgba(21,17,13,.25) 100%); }
}
