/* UMBRAL HOMES — Production CSS */
/* Base: Alujer Arquitectos design system */
:root {
  --ink: #1a1a1a;
  --ink2: #444;
  --ink3: #666;
  --mute: #999;
  --faint: #bbb;
  --ghost: #ddd;
  --line: #f0f0f0;
  --bg: #fff;
  --bg2: #fafaf8;
  --bg3: #f0efed;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; font-weight: 300; color: var(--ink); background: #f5f0eb; line-height: 1.6; font-size: 14px; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #fff; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; transition: all .5s var(--ease); }
.nav.scrolled { padding: 10px 5%; background: rgba(245,240,235,.97); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,.04); }
.nav-logo img { height: 54px; cursor: pointer; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links li { display: flex; align-items: center; }
.nav-links a { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; opacity: .35; transition: opacity .3s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }

/* BURGER */
.burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; background: none; border: none; }
.burger span { width: 18px; height: 1.5px; background: var(--ink); transition: all .3s var(--ease); }

/* MOBILE MENU */
.mob-menu { position: fixed; inset: 0; background: rgba(245,240,235,.98); z-index: 199; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.mob-menu a { font-size: 14px; letter-spacing: .15em; text-transform: uppercase; opacity: .4; transition: opacity .3s; }
.mob-menu a.active { opacity: 1; }

/* HERO */
.hero { position: relative; width: 100%; height: 100vh; overflow: hidden; background: var(--bg3); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 20s var(--ease) both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,.15) 100%); }

/* SECTIONS */
.section { padding: 90px 5%; }
.section-sm { padding: 50px 5%; }
.section-bg { background: #ece7e0; }
.section-line { border-top: 1px solid var(--line); }
.section-center { text-align: center; }

/* TYPOGRAPHY */
.h1 { font-weight: 200; font-size: clamp(22px, 3.5vw, 36px); letter-spacing: .02em; line-height: 1.4; }
.h2 { font-weight: 200; font-size: clamp(18px, 2.5vw, 28px); line-height: 1.5; }
.label { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.label-lg { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.body-text { font-size: 13px; color: var(--ink3); line-height: 2.2; }
.italic { font-size: 10px; letter-spacing: .15em; color: var(--faint); font-style: italic; }
.link { display: inline-block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--ghost); padding-bottom: 4px; color: var(--ink3); cursor: pointer; transition: color .3s; }
.link:hover { color: var(--ink); }

/* GRID */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }

/* ── PROMOTION GRID ── */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.promo-card { position: relative; overflow: hidden; background: #d8d3cc; cursor: pointer; }
.promo-card .iw { width: 100%; padding-bottom: 66.66%; position: relative; overflow: hidden; }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.22,.61,.36,1); }
.promo-card:hover img { transform: scale(1.05); }
.promo-card .ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 55%); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.promo-card:hover .ov { opacity: 1; }
.promo-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px 16px; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.promo-card:hover .promo-label { opacity: 1; }
.promo-label h3 { font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 4px; }
.promo-label span { font-size: 10px; color: rgba(255,255,255,.65); letter-spacing: .06em; }

/* ── STATUS BADGE ── */
.badge { position: absolute; top: 16px; left: 16px; z-index: 5; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; }
.badge-preventa { background: #1a1a1a; color: #f5f0eb; }
.badge-ejecucion { background: rgba(245,240,235,.92); color: #1a1a1a; }
.badge-entregado { background: rgba(100,100,100,.7); color: #fff; }

/* ── FILTERS ── */
.filters { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); cursor: pointer; border: none; background: none; padding: 0 0 3px; transition: all .3s; font-family: inherit; }
.filter-btn.active { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* ── CURSOR ── */
#cursor { position: fixed; width: 64px; height: 64px; border-radius: 50%; background: rgba(26,26,26,.88); color: #f5f0eb; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 9997; opacity: 0; transform: translate(-50%,-50%) scale(.7); transition: opacity .25s ease, transform .25s ease; font-family: inherit; }

/* ── CAPTACIÓN FORM ── */
.captacion { background: #ece7e0; padding: 80px 5%; }
.captacion h2 { font-weight: 200; font-size: clamp(20px,2.8vw,32px); letter-spacing: .02em; margin-bottom: 12px; }
.captacion .sub { font-size: 12px; color: var(--ink3); margin-bottom: 48px; line-height: 1.9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.form-field { border-bottom: 1px solid #d0cac2; border-right: 1px solid #d0cac2; padding: 20px 24px; }
.form-field:nth-child(even) { border-right: none; }
.form-field label { display: block; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; background: none; border: none; outline: none; font-size: 12px; color: var(--ink); font-family: inherit; font-weight: 300; line-height: 1.6; }
.form-field select { cursor: pointer; appearance: none; -webkit-appearance: none; }
.form-field textarea { resize: none; height: 60px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }
.form-bottom { border-top: 1px solid #d0cac2; padding: 28px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-note { font-size: 10px; color: var(--mute); }
.btn-send { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; background: #1a1a1a; color: #f5f0eb; border: none; padding: 14px 32px; cursor: pointer; font-family: inherit; transition: background .3s; }
.btn-send:hover { background: #333; }
.form-wrap { border: 1px solid #d0cac2; border-bottom: none; }
.form-success { display: none; text-align: center; padding: 48px 24px; }
.form-success p { font-size: 12px; color: var(--ink3); line-height: 2; }

/* ── PROMO DETAIL PAGE ── */
.promo-header { padding: 90px 5% 0; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.promo-header h1 { font-weight: 300; font-size: clamp(18px,2.5vw,28px); letter-spacing: .04em; color: #2a2a2a; margin: 0; }
.promo-header .ubicacion { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #aaa; margin: 0; }
.breadcrumb { padding: 80px 5% 0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #333; }
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); border-top: 1px solid #ddd7cf; border-left: 1px solid #ddd7cf; margin: 40px 5% 0; }
.fi { padding: 16px 20px 18px; border-right: 1px solid #ddd7cf; border-bottom: 1px solid #ddd7cf; }
.fi-label { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #bbb; margin-bottom: 6px; }
.fi-val { font-size: 12px; color: #2a2a2a; line-height: 1.6; font-weight: 300; }
.promo-desc-wrap { padding: 44px 5% 60px; display: grid; grid-template-columns: 180px 1fr; gap: 48px; border-bottom: 1px solid #ddd7cf; }
.promo-desc-label { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #bbb; padding-top: 4px; }
.promo-desc-text { font-size: 13px; font-weight: 300; color: #555; line-height: 2.2; margin: 0; }
.promo-nav { display: flex; justify-content: space-between; padding: 32px 5%; gap: 20px; }
.promo-nav a { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #999; text-decoration: none; transition: color .2s; }
.promo-nav a:hover { color: #1a1a1a; }

/* ── CAROUSEL ── */
.carousel-wrap { padding: 0 5%; margin-top: 24px; }
.carousel { position: relative; width: 100%; background: #e0dbd3; overflow: hidden; aspect-ratio: 16/9; max-height: 75vh; }
.car-track { display: flex; height: 100%; transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.car-slide { min-width: 100%; height: 100%; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); border: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; transition: background .2s; }
.car-btn:hover { background: rgba(255,255,255,.35); }
.car-btn.prev { left: 16px; } .car-btn.next { right: 16px; }
.car-counter { position: absolute; bottom: 16px; right: 20px; font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.8); z-index: 10; }
.car-dots { display: flex; gap: 8px; justify-content: center; padding: 14px 0 0; }
.car-dot { width: 24px; height: 1.5px; background: #ccc; border: none; cursor: pointer; transition: all .3s; }
.car-dot.on { background: #1a1a1a; width: 36px; }

/* HERO SLIDER */
.hero-wrap { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 92vh; overflow: hidden; background: #1a1a1a; }
.hs { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hs.on { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%); pointer-events: none; }
.hero-bottom { position: absolute; bottom: 32px; left: 5%; right: 5%; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-sub { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hdot { width: 20px; height: 1.5px; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s, width .3s; }
.hdot.on { background: rgba(255,255,255,.9); width: 32px; }

/* REVEAL */
.r { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.r.v { opacity: 1; transform: none; }
.rc { opacity: 0; transform: scale(1.02); clip-path: inset(5% 2% 5% 2%); transition: all 1.1s var(--ease); transition-delay: var(--d, 0s); }
.rc.v { opacity: 1; transform: scale(1); clip-path: inset(0); }

/* FOOTER */
.footer { border-top: 1px solid #ddd7cf; padding: 72px 5% 56px; text-align: center; background: #f5f0eb; }
.footer-logo { height: 110px; width: auto; display: inline-block; margin-bottom: 20px; opacity: 0.6; }
.footer-brand { margin-bottom: 16px; }
.footer-brand p { font-size: 11px; color: #999; line-height: 2; letter-spacing: .03em; margin-top: 4px; }
.footer-contact { font-size: 11px; color: #999; line-height: 2.2; letter-spacing: .04em; margin-bottom: 8px; }
.footer-info { font-size: 11px; color: #999; line-height: 2.2; letter-spacing: .04em; }
.footer-legal { font-size: 10px; color: #bbb; letter-spacing: .06em; margin-top: 20px; }
.footer-legal a { color: inherit; text-decoration: none; }

/* NOSOTROS */
.full-img { overflow: hidden; }
.full-img img { width: 100%; height: 100%; object-fit: cover; }

/* CONTACTO */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #d0cac2; }
.contact-col { padding: 48px; border-right: 1px solid #d0cac2; }
.contact-col:last-child { border-right: none; }
.contact-item { margin-bottom: 36px; }
.contact-label { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.contact-val { font-size: 13px; color: var(--ink2); line-height: 2; }


/* PAGE LOADER */
#page-loader { position:fixed;inset:0;z-index:9999;background:#f5f0eb;display:flex;align-items:center;justify-content:center;transition:opacity 2s ease;pointer-events:none; }
#page-loader img { width: 200px; max-width: 55vw; height: auto; animation: loaderFadeIn 1.4s var(--ease) both; }

/* KEYFRAMES */
@keyframes heroZoom { 0% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes loaderFadeIn { 0%{opacity:0;transform:translateY(14px)} 100%{opacity:1;transform:translateY(0)} }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .section { padding: 60px 5%; }
  .promo-grid { grid-template-columns: 1fr; gap: 2px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field:nth-child(even) { border-right: 1px solid #d0cac2; }
  .form-field { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-col { border-right: none; border-bottom: 1px solid #d0cac2; }
  .promo-desc-wrap { grid-template-columns: 1fr; gap: 12px; }
  .ficha { grid-template-columns: repeat(2,1fr); }
  .carousel { aspect-ratio: 4/3; max-height: 60vw; }
  .hero-wrap { aspect-ratio: unset; height: 100svh; max-height: none; }
  .car-btn { width: 36px; height: 36px; font-size: 16px; }
}
@media (min-width: 769px) { .burger { display: none; } }