/* =========================================================
   Landings Naveko — compramostunave.es / alquilamostunave.es
   v2 · diseño claro con fotografía
   Sin dependencias externas: 0 cookies, 0 peticiones a terceros.
   ========================================================= */

:root {
  --ink: #15191e;
  --ink-2: #2b323b;
  --muted: #5b6470;
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --bg-tint: #fff7e3;          /* tinte suave del color de marca */
  --line: #e6e2da;
  --accent: #f5a300;
  --accent-strong: #d98f00;
  --accent-ink: #15191e;
  --ok: #1f9d55;
  --err: #c62828;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px -6px rgba(21, 25, 30, .18);
  --shadow: 0 24px 60px -28px rgba(21, 25, 30, .35);
  --max: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.t-venta {
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-ink: #ffffff;
  --bg-tint: #e8f0fe;
}

body.t-alquiler {
  --accent: #12b5a5;
  --accent-strong: #0e978a;
  --accent-ink: #ffffff;
  --bg-tint: #e6f7f5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
svg { display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 850; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -.01em; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .36em; background: var(--accent); opacity: .45; z-index: -1; border-radius: 4px; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--bg-tint); color: var(--accent-strong); font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 750; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb956; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-dark { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 850; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: .97rem; font-weight: 550; color: var(--ink-2); }
.nav a:hover { color: var(--accent-strong); }
.nav .btn { padding: 11px 20px; font-size: .95rem; color: var(--accent-ink); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 750 !important; }
.header-phone svg { width: 18px; height: 18px; color: var(--accent-strong); }
@media (max-width: 980px) { .nav a.nav-link { display: none; } }
@media (max-width: 560px) { .nav .btn { display: none; } .brand small { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 85%); padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -180px; border-radius: 50%; background: var(--accent); opacity: .12; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; max-width: 520px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.t-compra .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315191e' stroke-width='3.5'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }

.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 750; line-height: 1.2; font-size: .98rem; }
.float-card small { display: block; font-weight: 550; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-tint); color: var(--accent-strong); display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.fc-1 { left: -26px; bottom: 34px; }
.fc-2 { right: -18px; top: 26px; }
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { max-width: 620px; }
  .fc-1 { left: 12px; bottom: -20px; } .fc-2 { right: 12px; top: 12px; }
}
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } .fc-2 { display: none; } }

/* ---------- Franja de garantías ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust div { display: flex; align-items: center; gap: 14px; padding: 24px 18px; }
.trust div + div { border-left: 1px solid var(--line); }
.trust svg { width: 34px; height: 34px; color: var(--accent-strong); flex: none; }
.trust strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.trust span { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .trust .container { grid-template-columns: 1fr 1fr; } .trust div:nth-child(3) { border-left: 0; } .trust div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .trust .container { grid-template-columns: 1fr; } .trust div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(70px, 8vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 740px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; }

/* Ventajas: foto + lista */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.split-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 26px; background: var(--accent); opacity: .22; z-index: -1; }
.benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 22px; }
.benefits li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; }
.benefits .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--bg-tint); color: var(--accent-strong); display: grid; place-items: center; }
.benefits .ic svg { width: 26px; height: 26px; }
.benefits h3 { margin-bottom: 4px; }
.benefits p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-media { max-width: 600px; } }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px); opacity: .55; }
.steps li { position: relative; text-align: center; background: #fff; border-radius: var(--radius); padding: 0 22px 28px; box-shadow: var(--shadow-sm); margin-top: 31px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 62px; height: 62px; margin: -31px auto 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.5rem; font-weight: 850; box-shadow: 0 0 0 7px var(--bg-soft); }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 46px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Tarjetas con foto */
.photo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard div { padding: 20px 22px 24px; }
.pcard h3 { margin-bottom: 6px; }
.pcard p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) { .photo-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .photo-cards { grid-template-columns: 1fr; } }

.note { display: flex; gap: 16px; align-items: flex-start; margin-top: 34px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-tint); color: var(--ink-2); }
.note svg { width: 26px; height: 26px; flex: none; color: var(--accent-strong); margin-top: 2px; }
.note p { margin: 0; }
.note a { font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 11px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 650; font-size: .97rem; box-shadow: var(--shadow-sm); }

/* Zonas sobre foto */
.zones-wrap { position: relative; color: #fff; background: linear-gradient(90deg, rgba(21,25,30,.88) 0%, rgba(21,25,30,.62) 100%), url("../img/zonas.webp") center / cover no-repeat; }
.zones-wrap .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.zones-wrap .lead { color: #dfe3e8; }
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.zones div { padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zones h3 { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.zones h3 svg { width: 20px; height: 20px; color: var(--accent); }
.zones p { margin: 0; color: #dfe3e8; font-size: .94rem; }
@media (max-width: 960px) { .zones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .zones { grid-template-columns: 1fr; } }

/* ---------- Contacto / formulario ---------- */
.contact { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact-aside .lead { margin-bottom: 24px; }
.contact-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.contact-line:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-line .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--accent-strong); flex: none; }
.contact-line .ic.wa { background: #e3f9ec; color: #128c4a; }
.contact-line svg { width: 22px; height: 22px; }
.contact-line strong { display: block; font-size: 1.08rem; line-height: 1.2; }
.contact-line span { color: var(--muted); font-size: .88rem; }

.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border-top: 6px solid var(--accent); }
.form-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.req { color: var(--err); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 13px 14px; border: 1.5px solid #d9dce1; border-radius: var(--radius-sm); background: #fafafa; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; outline: none; box-shadow: 0 0 0 4px var(--bg-tint); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field .err { display: none; color: var(--err); font-size: .85rem; margin: 5px 0 0; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent-strong); }
.check.invalid { color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 8px; }
.form-actions .btn { width: 100%; padding: 18px; font-size: 1.08rem; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 650; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e7f6ed; color: var(--ok); }
.form-msg.error { background: #fdecec; color: var(--err); }
.legal-mini { font-size: .78rem; color: var(--muted); margin: 18px 0 0; line-height: 1.5; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 750; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--bg-tint); color: var(--accent-strong); display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-band { padding: 0 0 clamp(70px, 8vw, 100px); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(30px, 5vw, 54px); border-radius: 28px; background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -80px; top: -160px; background: rgba(255,255,255,.18); }
.cta-box h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 20ch; }
.cta-box p { margin: 8px 0 0; font-weight: 550; opacity: .85; }
.cta-box .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #aab1ba; padding: 54px 0 34px; font-size: .93rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #aab1ba; }
.site-footer a { color: #e5e8eb; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 46px; }
.footer-cols h4 { color: #fff; margin: 0 0 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .84rem; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Barra móvil ---------- */
.float-bar { display: none; }
@media (max-width: 760px) {
  .float-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,.08); }
  .float-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 999px; font-weight: 750; text-decoration: none; }
  .float-bar a svg { width: 20px; height: 20px; }
  .float-bar .fb-call { background: var(--accent); color: var(--accent-ink); }
  .float-bar .fb-wa { background: var(--wa); color: #fff; }
  body { padding-bottom: 76px; }
}

/* ---------- Páginas legales / gracias ---------- */
.page { padding: 70px 0 90px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page p, .page li { color: #333a42; }
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; background: linear-gradient(180deg, var(--bg-tint), #fff); }
.thanks .tick { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 0 0 12px var(--bg-tint); }
.thanks .tick svg { width: 44px; height: 44px; }
.thanks .lead { margin-inline: auto; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Ajustes móviles ---------- */
main { overflow-x: clip; }
.header-phone { white-space: nowrap; }
@media (max-width: 430px) {
  .header-phone span { display: none; }
  .header-phone svg { width: 26px; height: 26px; }
  .brand { font-size: 1.02rem; }
}
