/* ============================================================
   ArriendoYa Inmobiliaria — institucional, sobrio, confiable
   Marino + rojo (solo CTA) · Poppins + Inter · seriedad
   ============================================================ */

:root {
  --marino:   #1B3A5B;
  --marino-2: #14304a;
  --marino-3: #23507a;
  --ink:      #1A1D21;
  --red:      #E30613;
  --red-2:    #c20510;
  --bg:       #FFFFFF;
  --gray:     #F4F5F7;
  --gray-2:   #ECEFF3;
  --line:     #E2E5E9;
  --muted:    #5B6470;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --display: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; color: var(--marino); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; color: var(--ink); }
::selection { background: var(--marino); color: #fff; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--marino); color: #fff; padding: 12px 18px; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: 0.98rem; padding: 0.82em 1.6em; border-radius: 10px; cursor: pointer; border: 2px solid transparent; white-space: nowrap; transition: transform 0.16s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.btn:active { transform: scale(0.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(227,6,19,0.22); }
.btn-red:hover { background: var(--red-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-ghost:hover { background: #fff; color: var(--marino); border-color: #fff; }
.btn-line { background: transparent; color: var(--marino); border-color: var(--line); }
.btn-line:hover { border-color: var(--marino); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; gap: 20px; padding: 12px var(--pad); background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); transition: box-shadow 0.3s ease, padding 0.3s ease; }
.nav.scrolled { box-shadow: 0 2px 18px rgba(26,29,33,0.08); padding-top: 9px; padding-bottom: 9px; }
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 0.92rem; color: var(--ink); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--red); }
.nav-cta { padding: 0.55em 1.2em; font-size: 0.9rem; }
@media (max-width: 820px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } .brand img { height: 36px; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--marino) 0%, var(--marino-2) 100%); color: #fff; padding: clamp(120px, 17vh, 190px) var(--pad) 0; overflow: hidden; }
.hero-in { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; padding-bottom: clamp(150px, 22vh, 240px); }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.85rem; color: #dbe6f0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 0.45em 1em; border-radius: 999px; margin-bottom: 1.4em; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 0 4px rgba(56,211,159,0.2); }
.hero-h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.8rem); max-width: 17ch; }
.hero-h1 span { color: #fff; border-bottom: 4px solid var(--red); padding-bottom: 2px; }
.hero-sub { color: #cdd9e6; font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 52ch; margin: 1em 0 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 2.2em 0 0; padding: 0; }
.hero-trust li { position: relative; padding-left: 24px; font-size: 0.92rem; color: #dbe6f0; font-weight: 500; }
.hero-trust li::before { content: ""; position: absolute; left: 0; top: 50%; width: 15px; height: 8px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-65%) rotate(-45deg); }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(120px, 20vh, 210px); z-index: 1; display: block; }

/* ---------- Secciones base ---------- */
.servicios, .proceso, .propiedades, .cobertura, .faq, .contacto { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--pad); }
.eyebrow { font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--red); margin-bottom: 0.7em; }
.eyebrow-light { color: #8fb0cf; }
.sec-head { max-width: 720px; margin-bottom: clamp(34px, 5vh, 56px); }
.sec-head h2, .cobertura h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.sec-note { color: var(--muted); margin-top: 0.8em; font-size: 1rem; }

/* ---------- Servicios ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.serv-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 32px); transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.serv-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(26,29,33,0.09); border-color: #cfd6df; }
.serv-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--gray); margin-bottom: 1em; }
.serv-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--marino); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.serv-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.serv-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Proceso ---------- */
.proceso { background: var(--gray); max-width: none; }
.proceso > .sec-head, .proceso > .proceso-steps { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.proceso-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 26px); counter-reset: step; }
.proceso-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 30px); }
.step-n { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--red); display: block; margin-bottom: 0.5em; }
.proceso-steps h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.proceso-steps p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Propiedades ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.prop-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 34px); transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.prop-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(26,29,33,0.1); border-color: var(--marino); }
.prop-card h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.prop-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.2em; flex: 1; }
.prop-link { font-weight: 700; color: var(--red); font-size: 0.95rem; }
.prop-card-feat { background: var(--marino); border-color: var(--marino); }
.prop-card-feat h3, .prop-card-feat p { color: #fff; }
.prop-card-feat p { color: #cdd9e6; }
.prop-card-feat .prop-link { color: #fff; }

/* ---------- Confianza ---------- */
.confianza { background: var(--marino); color: #fff; }
.confianza-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--pad); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.confianza-head h2 { color: #fff; }
.confianza-head p { color: #cdd9e6; margin-top: 0.8em; }
.confianza-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.confianza-list li { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r); padding: 22px; }
.confianza-list b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 0.3em; }
.confianza-list span { color: #b9c8d8; font-size: 0.92rem; }

/* ---------- Cobertura ---------- */
.cobertura { text-align: center; }
.cobertura .eyebrow { display: block; }
.cobertura-list { list-style: none; margin: 1.6em 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cobertura-list li { background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 1.2em; font-weight: 600; color: var(--marino); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--marino); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 700; color: var(--red); font-size: 1.5rem; line-height: 1; transition: transform 0.25s ease; flex: 0 0 auto; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.contacto-info h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.contacto-lead { color: var(--muted); margin: 0.8em 0 1.4em; }
.contacto-list { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 14px; }
.contacto-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contacto-list li span:first-child { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.contacto-list a, .contacto-list .c-val { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--marino); }
.contacto-list a:hover { color: var(--red); }
.contacto-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 340px; line-height: 0; }
.contacto-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(0.3); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vh, 70px) var(--pad); text-align: center; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: #fff; letter-spacing: -0.01em; }
.footer-brand span { color: var(--red); }
.footer-tag { color: #9aa3ad; font-size: 0.92rem; margin: 0.6em 0 1.3em; }
.footer-social { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2em; }
.footer-social a { font-weight: 700; font-size: 0.85rem; color: #cdd3da; transition: color 0.2s ease; }
.footer-social a:hover { color: #fff; }
.footer-legal { color: #71787f; font-size: 0.8rem; }

/* ---------- FAB ---------- */
.fab { position: fixed; right: clamp(16px, 4vw, 28px); bottom: clamp(16px, 4vw, 28px); z-index: 150; display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #06340f; font-weight: 700; font-size: 0.92rem; padding: 0.7em 1.2em 0.7em 0.85em; border: none; border-radius: 999px; cursor: pointer; box-shadow: 0 12px 28px rgba(37,211,102,0.4); opacity: 0; transform: translateY(22px); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1), background-color 0.2s ease; }
.fab svg { width: 24px; height: 24px; fill: #06340f; }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #2ee776; transform: translateY(-3px); }

/* ---------- Modal WhatsApp ---------- */
.wamodal[hidden] { display: none !important; }
.wamodal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20,30,40,0.72); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.25s ease; }
.wamodal.open { opacity: 1; }
.wamodal-card { position: relative; background: #fff; color: var(--ink); border-radius: 16px; max-width: 400px; width: 100%; padding: clamp(28px, 5vw, 42px); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.4); transform: translateY(14px) scale(0.97); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.wamodal.open .wamodal-card { transform: none; }
.wamodal-close { position: absolute; top: 8px; right: 16px; background: none; border: none; font-size: 2.2rem; line-height: 1; color: var(--muted); cursor: pointer; }
.wamodal-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; color: var(--red); margin-bottom: 0.4em; }
#wamodal-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4.5vw, 2rem); color: var(--marino); }
.wamodal-lead { font-size: 0.95rem; color: var(--muted); margin: 0.5em 0 1.2em; }
.wamodal-qr img { width: 210px; height: 210px; margin: 0 auto 1.2em; border: 8px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.wamodal-card .btn-red { width: 100%; }
.wamodal-note { color: var(--muted); font-size: 0.8rem; margin-top: 0.9em; }

/* ============================================================
   MOTION — reveal sobrio (gated por .js)
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); will-change: opacity, transform; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .fab { transition: opacity 0.3s ease; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .serv-grid { grid-template-columns: 1fr 1fr; }
  .proceso-steps { grid-template-columns: 1fr 1fr; }
  .prop-grid { grid-template-columns: 1fr; }
  .confianza-in { grid-template-columns: 1fr; }
  .contacto { grid-template-columns: 1fr; }
  .contacto-map { min-height: 280px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .serv-grid { grid-template-columns: 1fr; }
  .proceso-steps { grid-template-columns: 1fr; }
  .confianza-list { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .hero-cta .btn { width: 100%; } }
