/* Australium AI — landing
   Sistema visual alineado al CRM (inmobiliarias.australiumai.com): negro neutro, bordes finos, un solo azul. */

:root {
  --bg: #0b0c0f;
  --surface: #101216;
  --card: #14171c;
  --line: #22262e;
  --line-2: #2f343e;
  --text: #f2f4f8;
  --muted: #a1a9b8;
  --dim: #8089a0;
  --blue: #2f6bff;
  --blue-2: #6c96ff;
  --blue-soft: rgba(47, 107, 255, 0.12);
  --green: #3ddc97;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1160px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 28px rgba(47, 107, 255, .32); }
.btn-primary:hover { background: #4a80ff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-2); background: var(--blue-soft); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 15, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(47, 107, 255, .16), transparent 62%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 151, .16); }

.hero h1 { font-size: clamp(40px, 5.2vw, 68px); margin: 28px 0 24px; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue-2); }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; list-style: none; color: var(--muted); font-size: 14px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--green); width: 18px; height: 18px; }

/* Mockup del panel */
.mock { position: relative; }
.mock-window {
  background: linear-gradient(180deg, #171a20, #12141a); border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--dim); }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat small { display: block; font-size: 11px; color: var(--dim); }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-top: 2px; }
.stat span { font-size: 11px; color: var(--green); }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); border: 1px solid rgba(47, 107, 255, .4); display: grid; place-items: center; color: var(--blue-2); }
.avatar .icon { width: 14px; height: 14px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.bubble.in { background: #1d2128; border-top-left-radius: 4px; }
.bubble.out { background: var(--blue); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.mock-note { margin-top: 14px; font-size: 12px; color: var(--dim); text-align: center; }
.floating {
  position: absolute; left: -28px; bottom: 56px; background: #171a20; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 13px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}
.floating .avatar { background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .4); color: var(--green); }
.floating b { display: block; font-weight: 600; }
.floating span { color: var(--dim); font-size: 12px; }

/* ---------- Secciones ---------- */
section { padding: 112px 0; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 16px; display: block; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Integraciones */
.strip { padding: 36px 0; border-block: 1px solid var(--line); }
.strip p { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.chips li { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; background: var(--card); }

/* Tarjetas */
.cards { display: grid; gap: 18px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s, background .25s; display: flex; flex-direction: column; gap: 14px; position: relative;
}
a.card:hover, .card.hover:hover { border-color: rgba(47, 107, 255, .55); transform: translateY(-3px); background: #171a21; }
.ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); border: 1px solid rgba(47, 107, 255, .3);
  display: grid; place-items: center; color: var(--blue-2);
}
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue-2); }
.card .more .icon { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .more .icon { transform: translateX(4px); }
.tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-2); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; counter-increment: step; }
.steps li::before {
  content: '0' counter(step); display: block; font-family: var(--font-display); font-size: 40px; font-weight: 600;
  color: var(--blue-2); margin-bottom: 18px; line-height: 1;
}
.steps h3 { font-size: 19px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.field { margin-bottom: 28px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; color: var(--muted); margin-bottom: 14px; font-size: 15px; }
.field output { font-family: var(--font-display); font-size: 22px; color: var(--text); font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--line-2); outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); border: 4px solid #0b0c0f; box-shadow: 0 0 0 1px var(--blue); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 4px solid #0b0c0f; cursor: pointer; }
.result { background: linear-gradient(160deg, rgba(47, 107, 255, .18), rgba(47, 107, 255, .04)); border-color: rgba(47, 107, 255, .35); display: flex; flex-direction: column; justify-content: center; }
.result small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); font-weight: 600; }
.big { font-family: var(--font-display); font-size: clamp(48px, 6vw, 68px); font-weight: 700; line-height: 1.05; margin: 10px 0 24px; }
.result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.result-row div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.result-row span { display: block; font-size: 12px; color: var(--dim); }
.result-row b { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.fineprint { font-size: 12.5px; color: var(--dim); margin-top: 16px; }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
details[open] { border-color: var(--line-2); }
summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary .icon { transition: transform .25s; color: var(--blue-2); }
details[open] summary .icon { transform: rotate(45deg); }
details p { padding: 0 26px 24px; color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 20px; }
.contact .lead { margin-bottom: 32px; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.checks .icon { color: var(--green); }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  background: #0e1014; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input::placeholder, .form textarea::placeholder { color: #5d6575; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.form textarea { resize: vertical; min-height: 110px; }
.form .hint { font-size: 12.5px; color: var(--dim); text-align: center; }
.err { color: #ff7a7a; font-size: 13px; min-height: 1em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer img { height: 32px; margin-bottom: 18px; }
.footer p { color: var(--dim); max-width: 340px; font-size: 14.5px; }
.footer h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* WhatsApp flotante */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .2s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* Aparición suave (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .calc, .contact { grid-template-columns: 1fr; }
  .hero-grid { gap: 56px; }
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .cards.c3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .floating { left: 12px; }
}

@media (max-width: 760px) {
  section { padding: 80px 0; }
  .hero { padding: 56px 0 72px; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; inset: 72px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
  }
  .nav.open .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .cards.c4, .cards.c3, .steps { grid-template-columns: 1fr; }
  .panel { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating { display: none; }
  .mock-stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat b { font-size: 22px; }
}

/* ---------- Páginas legales ---------- */
.legal-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 8px 0 12px; }
.legal-date { color: var(--dim); font-size: 14px; }
.legal-page { max-width: 780px; padding: 56px 0 96px; }
.legal-page h2 { font-size: 26px; margin: 48px 0 16px; padding-top: 8px; }
.legal-page h3 { font-size: 19px; margin: 28px 0 10px; font-family: var(--font-display); font-weight: 500; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 14px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 14px; }
.legal-page a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page .policy-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px; }
.legal-page .policy-toc h3 { margin-top: 0; }
.legal-page .policy-toc li { margin-bottom: 6px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14.5px; display: block; overflow-x: auto; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; color: var(--muted); }
.legal-page th { background: var(--card); color: var(--text); }
.legal-page .policy-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; margin: 16px 0; }
.legal-page .policy-card p:last-child { margin-bottom: 0; }
.footer .entity { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; max-width: none; }
.footer .entity + .legal { margin-top: 16px !important; padding-top: 0 !important; border: 0 !important; }
.footer .entity a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer .entity strong { color: var(--muted); font-weight: 600; }
