/* =========================================================================
   InmoIA v4 — Modern neutral premium (foto protagonista + blanco + acento oro sutil)
   Mismas clases que styles.css; cambia la PIEL para evaluar el estilo.
   ========================================================================= */

:root {
  --bg:        #F7F6F3;
  --bg-2:      #EDEBE6;
  --paper:     #FFFFFF;
  --dark:      #181818;
  --ink:       #1A1A1A;
  --ink-soft:  #353535;
  --ink-mute:  #6E6B66;
  --accent:    #B0894F;
  --accent-deep:#8A6A37;
  --accent-soft:#EFE7D7;
  --gold-line: rgba(176,137,79,0.5);
  --wa:        #25D366;
  --wa-deep:   #1EAE57;
  --line:      rgba(26,26,26,0.12);
  --line-2:    rgba(26,26,26,0.20);

  --btn-radius: 4px;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 24px 60px rgba(26,26,26,0.14);
  --shadow-sm:  0 8px 26px rgba(26,26,26,0.08);
  --maxw:       1180px;
  --header-h:   78px;
  --ease:       cubic-bezier(.22,.61,.36,1);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; overflow-x: clip; -webkit-font-smoothing: antialiased; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
em { font-style: normal; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.6rem); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1.1rem; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Eyebrow / titles ---------- */
.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 1rem; }
.eyebrow--light { color: #E7C998; }
.section-title { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 600; max-width: 20ch; text-wrap: balance; }
.section-lead { color: var(--ink-mute); font-size: 1.1rem; max-width: 56ch; margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--font-body); font-weight: 600; font-size: .94rem; letter-spacing: .02em; padding: .95rem 1.7rem; border-radius: var(--btn-radius); border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); text-align: center; line-height: 1.15; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: var(--dark); transform: translateY(-2px); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1rem; }
.wa-ico { flex: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); background: rgba(247,246,243,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background .3s var(--ease), border-color .3s var(--ease); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }
.brand-logo--light { display: none; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { font-family: var(--font-body); font-weight: 500; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); position: relative; padding: .3rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0; background: var(--accent); transition: width .28s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { padding: .62rem 1.2rem; font-size: .82rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }

.site-header.at-hero { background: transparent; border-color: transparent; }
.site-header.at-hero .brand-logo--dark { display: none; }
.site-header.at-hero .brand-logo--light { display: block; }
.site-header.at-hero .nav a { color: rgba(255,255,255,.9); }
.site-header.at-hero .nav a:hover { color: #fff; }
.site-header.at-hero .nav-toggle span { background: #fff; }
.site-header.at-hero .header-cta { background: #fff; color: var(--ink); }
.site-header.at-hero .header-cta:hover { background: var(--accent); color: var(--dark); }

/* ---------- Hero (foto protagonista, velo ligero) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 2.4rem); padding-bottom: 3rem; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg, rgba(15,15,15,.78) 0%, rgba(15,15,15,.5) 38%, rgba(15,15,15,.16) 66%, rgba(15,15,15,.04) 100%),
    linear-gradient(180deg, rgba(15,15,15,0) 55%, rgba(15,15,15,.4) 100%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(1.6rem, 4vw, 3.6rem); align-items: center; width: 100%; }
.hero-copy { max-width: 38rem; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-title em { font-style: normal; color: #fff; box-shadow: inset 0 -0.12em 0 var(--accent); }
.hero-sub { font-family: var(--font-body); margin-top: 1.3rem; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.92); max-width: 34rem; line-height: 1.65; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 1.7rem; }
.hero-points li { font-family: var(--font-body); font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--dark); font-size: .74rem; font-weight: 700; flex: none; }

/* ---------- Form card ---------- */
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2.1rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-title { font-size: 1.55rem; font-weight: 600; line-height: 1.12; }
.form-sub { font-family: var(--font-body); color: var(--ink-mute); font-size: .95rem; margin-top: .35rem; margin-bottom: 1.2rem; }
.lead-form { display: flex; flex-direction: column; gap: .85rem; }
.lead-form label { display: flex; flex-direction: column; gap: .35rem; font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"] {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); text-transform: none; letter-spacing: 0;
  padding: .82rem .95rem; border: 1px solid var(--line-2); border-radius: 6px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.lead-form input::placeholder { color: #aaa39a; }
.lead-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lead-form .check { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; font-size: .78rem; letter-spacing: 0; text-transform: none; color: var(--ink-mute); }
.lead-form .check input { margin-top: .2rem; accent-color: var(--accent-deep); width: 16px; height: 16px; flex: none; }
.lead-form .check a { color: var(--accent-deep); text-decoration: underline; }
.lead-form .opt { color: var(--ink-mute); font-weight: 400; }
.lead-form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-foot { font-family: var(--font-body); font-size: .78rem; color: var(--ink-mute); text-align: center; margin-top: .2rem; }
.form-success { background: var(--accent-soft); color: var(--ink); border-radius: 6px; padding: .8rem 1rem; font-size: .92rem; text-align: center; }

/* ---------- Stats band ---------- */
.stats { background: var(--dark); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2.4rem; }
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,.14); padding-inline: .6rem; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.5vw, 1.9rem); color: #fff; }
.stat span { display: block; font-family: var(--font-body); font-size: .82rem; letter-spacing: .02em; color: rgba(255,255,255,.72); margin-top: .3rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.6rem, 8vw, 6rem); }
.section--alt { background: var(--bg-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.step:hover { border-color: var(--gold-line); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; background: var(--accent); width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: .5rem; }
.step p { font-family: var(--font-body); color: var(--ink-mute); font-size: .98rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4.5vw, 4rem); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-copy p { font-family: var(--font-body); color: var(--ink-mute); margin-top: 1rem; }
.feature-list { list-style: none; margin: 1.5rem 0 1.9rem; display: flex; flex-direction: column; gap: .75rem; }
.feature-list li { display: flex; align-items: center; gap: .7rem; font-family: var(--font-body); font-weight: 500; font-size: .98rem; color: var(--ink-soft); }
.feature-list .tick { background: var(--accent); }

/* Zonas */
.zonas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.zona-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.zona-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.zona-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.zona-card:hover img { transform: scale(1.05); }
.zona-body { padding: 1.3rem 1.4rem 1.6rem; }
.zona-body h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: .3rem; }
.zona-body p { font-family: var(--font-body); color: var(--ink-mute); font-size: .94rem; }
.zonas-extra { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.zonas-extra-label { font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { font-family: var(--font-body); background: transparent; color: var(--accent-deep); border: 1px solid var(--gold-line); border-radius: 999px; padding: .42rem 1rem; font-size: .85rem; font-weight: 500; }

/* Testimonios */
.placeholder-note { font-family: var(--font-body); font-size: .82rem; color: var(--ink-mute); font-style: italic; margin-top: .6rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.2rem; }
.testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.stars { color: var(--accent); letter-spacing: .14em; margin-bottom: .9rem; }
.testi blockquote { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.55; color: var(--ink-soft); }
.testi figcaption { font-family: var(--font-body); margin-top: 1.1rem; font-weight: 600; font-size: .82rem; letter-spacing: .02em; color: var(--ink); }

/* FAQ */
.faq-wrap { max-width: 840px; }
.faq { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem .2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-family: var(--font-body); padding: 0 .2rem 1.4rem; color: var(--ink-mute); max-width: 70ch; }

/* CTA final */
.cta-final { background: var(--dark); color: #fff; padding-block: clamp(3.6rem, 8vw, 5.4rem); }
.cta-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; text-wrap: balance; }
.cta-final h2 em { font-style: normal; box-shadow: inset 0 -0.1em 0 var(--accent); }
.cta-final p { font-family: var(--font-body); color: rgba(255,255,255,.8); margin-top: 1rem; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer { background: #141414; color: rgba(255,255,255,.72); padding-block: 3.2rem 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-tag { font-family: var(--font-body); font-size: .94rem; max-width: 34ch; color: rgba(255,255,255,.65); }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.footer-col p { font-family: var(--font-body); font-size: .94rem; margin-bottom: .5rem; }
.footer-col a:hover, .footer-legal a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.4rem; font-family: var(--font-body); font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-legal a { color: rgba(255,255,255,.66); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.4); transition: transform .25s var(--ease), background .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); background: var(--wa-deep); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .zonas-grid .reveal:nth-child(2), .testi-grid .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .zonas-grid .reveal:nth-child(3), .testi-grid .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: 40rem; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}
@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open { background: var(--paper); border-color: var(--line); }
  .site-header.nav-open .brand-logo--dark { display: block; }
  .site-header.nav-open .brand-logo--light { display: none; }
  .site-header.nav-open .nav-toggle span { background: var(--ink); }
  .site-header.nav-open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem clamp(1.1rem, 4vw, 2.6rem) 1.1rem; box-shadow: var(--shadow); }
  .site-header.nav-open .nav a { color: var(--ink-soft); width: 100%; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .steps, .zonas-grid, .testi-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .stat:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-h) + 1.4rem); }
  .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
}
