/* Inmoale · Landing de mantenimiento · diseño B (puerta de la muralla)
   Versión a pantalla completa (sin marco). Medidas, colores y textos según
   docs/referencia-diseno-B/ (desktop.html y movil.html). */

/* Nunito Sans (variable, subconjunto latino) alojada en local. Licencia: assets/OFL-NunitoSans.txt */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/nunito-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sky: #CDEEFA;
  --white: #FFFFFF;
  --ink: #0B3D4A;
  --ink-hover: #0B6E69;
  --muted: #4A6670;
  --teal: #17BEBB;
  --teal-ink: #062B2B;
  --teal-text: #0B7A75;
  --lilac: #C3AEF5;
  --line: #E1EEF2;
  --footer-text: #33525A;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--ink-hover); }
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

svg { flex: none; }

/* ---------- Página ---------- */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Barra superior ---------- */

.site-header { border-bottom: 1px solid var(--line); }

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }

/* Símbolo del logo InmoAle (triángulo), vectorizado desde landing_mantenimiento/assets/logo.png */
.brand-mark {
  width: 30px;
  height: 26px;
  color: var(--ink);
  margin-bottom: 3px;
}

.brand-name {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tagline { font-size: 15px; color: var(--muted); }

.call-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid currentColor;
  border-radius: var(--radius);
}
.call-top svg { width: 16px; height: 16px; }

/* ---------- Contenido ---------- */

.hero {
  flex-grow: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
}

.copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.title-big {
  font-size: clamp(56px, 6.5vw, 88px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.title-sub {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.accent { color: var(--teal-text); }

.lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 450px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn-whatsapp { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-whatsapp:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--white); }

.btn-call { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.btn-call:hover { background: #12A9A6; border-color: #12A9A6; color: var(--teal-ink); }

.btn-mail { background: var(--white); border-color: var(--lilac); color: var(--ink); }
.btn-mail:hover { border-color: var(--ink-hover); color: var(--ink-hover); }

.art {
  flex: 1.5 1 440px;
  min-width: 0;
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Pie ---------- */

.footer { background: var(--sky); }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--footer-text);
}
.footer a { font-weight: 700; }
.footer-mobile { display: none; }

/* ---------- Móvil (referencia a 390 px) ---------- */

@media (max-width: 720px) {
  .topbar { padding: 12px 20px; gap: 12px; flex-wrap: nowrap; }
  .brand { gap: 8px; }
  .brand-mark { width: 27px; height: 23px; }
  .brand-name { font-size: 22px; }

  .tagline,
  .call-top-number { display: none; }

  .call-top {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  .call-top svg { width: 18px; height: 18px; }

  /* La ilustración sube encima del título y ocupa todo el ancho, como en la maqueta móvil */
  .hero {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    padding: 0 0 32px;
  }
  .copy { flex: none; padding: 0 20px; }
  .art { order: -1; flex: none; }

  .title { gap: 4px; }
  .title-big { font-size: 52px; }
  .title-sub { font-size: 30px; line-height: 1.12; }

  .lead {
    font-size: 17px;
    line-height: 1.55;
    max-width: none;
  }

  .actions {
    flex-direction: column;
    margin-top: 0;
  }

  .btn {
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    font-size: 15px;
  }
  .btn svg { width: 20px; height: 20px; }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    text-align: center;
    align-items: center;
  }
  .footer-desktop { display: none; }
  .footer-mobile { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
}
