/* Portal de clientes de Socius. Mismos colores, tipografías y formas que sociusrealestate.com. */
:root {
  --violet: #5348CF; --cyan: #659FFB; --lavender: #EFECFD; --lavender-deep: #E4DEFB;
  --ink: #111021; --ink-soft: #2a283f; --muted: #6c6a85; --line: #e8e6f4; --white: #fff; --offwhite: #F4F3FA;
  --ok: #1f9d6b; --ok-bg: #e3f6ee;
  --grad: linear-gradient(95deg, var(--violet) 0%, var(--cyan) 100%);
  --shadow-sm: 0 2px 8px rgba(17,16,33,.04), 0 1px 2px rgba(17,16,33,.04);
  --shadow-md: 0 12px 40px -12px rgba(83,72,207,.15), 0 4px 12px rgba(17,16,33,.04);
  --shadow-lg: 0 30px 80px -20px rgba(83,72,207,.25), 0 8px 24px rgba(17,16,33,.06);
  --radius-sm: 12px; --radius: 20px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 28px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--offwhite); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -.018em; line-height: 1.04; margin-bottom: .45em; }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); letter-spacing: -.01em; line-height: 1.15; margin-bottom: .6em; }
h3 { font-size: .82rem; font-weight: 600; letter-spacing: .14em; margin-top: 1.4em; color: var(--muted); }
a { color: var(--violet); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
small, .hint { color: var(--muted); font-size: .875rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- franja oscura: logo, pestañas y encabezado ---------- */
.dark { background: var(--ink); color: var(--offwhite); position: relative; overflow: hidden; isolation: isolate; }
.dark::before, .dark::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.dark::before { width: 520px; height: 520px; right: -140px; top: -220px; background: rgba(83,72,207,.55); }
.dark::after { width: 420px; height: 420px; left: -160px; bottom: -280px; background: rgba(101,159,251,.28); }
.dark > * { max-width: 1040px; margin-inline: auto; padding-inline: var(--gutter); }
.top { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; height: 40px; }
.brand img, footer img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.who { display: flex; gap: .8rem; align-items: center; font-size: 14px; margin: 0; min-width: 0; }
.who span { color: rgba(244,243,250,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48vw; }
.divider { height: 1px; padding: 0; max-width: none; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%); }

.tabs { display: flex; gap: clamp(.9rem, 3vw, 30px); overflow-x: auto; padding-top: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .5rem 0 .65rem; font-size: 14px; color: rgba(244,243,250,.7); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current] { color: #fff; font-weight: 500; border-image: var(--grad) 1; }
.tabs .adm { margin-left: auto; color: var(--cyan); }

.hero { padding-block: clamp(2.2rem, 7vw, 4.5rem) clamp(2rem, 6vw, 3.6rem); }
.hero.small { padding-block: clamp(1.8rem, 5vw, 3rem) clamp(1.6rem, 4vw, 2.4rem); }
.hero.small h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: .3em; }
.hero h1:last-child { margin-bottom: 0; }
.dark:has(+ main > .video:first-child) .hero { padding-bottom: clamp(5rem, 14vw, 9rem); }
.eyebrow { font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(244,243,250,.7); line-height: 1.5; max-width: 62ch; margin: 0; text-wrap: pretty; }
.lead a { color: #fff; }
.flash { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: .55rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0 0; font-size: .93rem; }

/* ---------- contenido ---------- */
main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 0 var(--gutter) 5rem; }
main.wide { max-width: 1040px; }
main > section:not(.card) { margin-top: 2.6rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.2rem, 3.5vw, 2rem); margin: 1.4rem 0; }
.card.narrow { max-width: 480px; margin: clamp(2rem, 9vh, 5rem) auto; box-shadow: var(--shadow-md); }
.card.narrow h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.card.empty, .card.locked { background: var(--lavender); border-color: var(--lavender-deep); box-shadow: none; color: var(--ink-soft); }
.card.empty p:last-child { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 500 15px/1.2 var(--body); white-space: nowrap; cursor: pointer; text-decoration: none; box-shadow: 0 10px 28px -10px rgba(83,72,207,.55), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(83,72,207,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--violet); color: var(--violet); transform: none; }
.btn.glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); box-shadow: none; }
.btn.glass:hover { background: rgba(255,255,255,.12); transform: none; box-shadow: none; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
input[type=email], input[type=url], input:not([type]) { display: block; width: 100%; margin-top: .35rem; min-height: 52px; padding: 0 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 400 16px var(--body); color: var(--ink); background: #fff; }
input:focus { border-color: var(--violet); outline: 3px solid rgba(83,72,207,.18); outline-offset: 0; }
.login .row { display: flex; flex-wrap: wrap; gap: .6rem; margin: .35rem 0 .7rem; }
.login .row input { flex: 1 1 220px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; align-items: end; margin-top: 1rem; }
.grid.one { grid-template-columns: 1fr; }
.grid .btn { justify-self: start; }
.chk { display: flex; gap: .5rem; align-items: center; min-height: 52px; }

.video, .embed { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-soft); margin: .4rem 0 1.4rem; }
.video { aspect-ratio: 16 / 9; }
main > .video:first-child { margin-top: calc(-1 * clamp(3.4rem, 10vw, 6.5rem)); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); z-index: 1; }
.card .video { margin-bottom: 0; }
.embed.cal { height: 720px; background: #fff; border: 1px solid var(--line); }
.embed.doc { height: 75vh; min-height: 480px; background: #fff; border: 1px solid var(--line); margin-bottom: 0; }
.video iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.empty { display: grid; place-items: center; text-align: center; padding: 1rem; color: rgba(244,243,250,.7); background: radial-gradient(circle at 70% 20%, rgba(83,72,207,.55), transparent 60%), radial-gradient(circle at 15% 90%, rgba(101,159,251,.3), transparent 55%), var(--ink-soft); }
.video.empty p { margin: 0; }
.capsulas { margin-top: .4rem; }

.progress-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; }
.progress-head span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--lavender-deep); border-radius: 99px; overflow: hidden; margin: .2rem 0 1.1rem; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.next { background: var(--lavender); border-radius: var(--radius-sm); padding: .8rem 1rem; }

.steps, .people, .roadmap { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.steps .check { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--lavender-deep); display: grid; place-items: center; font-size: .85rem; color: #fff; margin-top: .1rem; }
.steps .done .check { background: var(--grad); border-color: transparent; }
.steps .what { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.steps .what b { font-weight: 600; }
.steps .what span { color: var(--muted); font-size: 15px; }
.steps .what a { font-size: 15px; font-weight: 500; justify-self: start; }
.steps .done b { color: var(--muted); font-weight: 500; }
.steps .locked:not(.done) { opacity: .5; }
.steps .act form { margin: 0; }
.tag { font-size: 12px; color: var(--violet); background: var(--lavender); border-radius: 99px; padding: .3rem .75rem; white-space: nowrap; }
@media (max-width: 560px) { .steps li { flex-wrap: wrap; gap: .7rem 1rem; } .steps .what { flex: 1 1 calc(100% - 28px - 1rem); } .steps .act { margin-left: calc(28px + 1rem); } }

.roadmap { counter-reset: n; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 1.2rem; }
.roadmap li { counter-increment: n; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: .25rem; align-content: start; }
.roadmap li::before { content: counter(n, decimal-leading-zero); font: 700 1.5rem/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }
.roadmap b { font-weight: 600; }
.roadmap span { color: var(--muted); font-size: 15px; }

.people li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .7rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.people form { margin: 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: .75rem .6rem; border-top: 1px solid var(--line); vertical-align: top; }
th { border-top: 0; color: var(--muted); font: 600 12px var(--display); text-transform: uppercase; letter-spacing: .14em; }
td a { font-weight: 500; }

footer { background: var(--ink); color: rgba(244,243,250,.7); padding: 2.2rem var(--gutter); display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; font-size: 14px; }
footer img { height: 32px; }
footer p { margin: 0; }

.caplist { list-style: none; margin: .4rem 0 1.2rem; padding: 0; }
.caplist li { display: flex; gap: .9rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--line); }
.caplist b { font: 700 .95rem var(--display); color: var(--violet); width: 1.2rem; }
.caplist span { flex: 1; }

.acts { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.card.invite { border-color: var(--violet); box-shadow: var(--shadow-md); }
.card.invite input { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0 0 .8rem; }

input.code { font: 600 1.5rem var(--display); letter-spacing: .3em; text-align: center; max-width: 220px; }
select { min-height: 40px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 14px var(--body); background: #fff; color: var(--ink); max-width: 100%; }
.acts { align-items: center; }

.who a { color: rgba(244,243,250,.7); text-decoration: none; }
.who a:hover { color: #fff; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem 1rem; margin-top: .6rem; }
.fields.contacto { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.field.full { grid-column: 1 / -1; }
.field .hint { margin: .35rem 0 0; }
label i { color: var(--violet); font-style: normal; }
textarea, input[type=tel], input[type=date], input[type=text] { display: block; width: 100%; margin-top: .35rem; min-height: 52px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 400 16px/1.5 var(--body); color: var(--ink); background: #fff; }
textarea { resize: vertical; }
textarea:focus, select:focus { border-color: var(--violet); outline: 3px solid rgba(83,72,207,.18); outline-offset: 0; }
.ficha select { display: block; width: 100%; min-height: 52px; margin-top: .35rem; font-size: 16px; }
.error { background: #fdecec; color: #a12626; border: 1px solid #f5c2c2; border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 1.4rem 0 0; font-weight: 500; }
.card.invite textarea { font: 15px/1.5 var(--body); margin: .5rem 0 .8rem; }
.ficha-dl { margin: 0; }
.ficha-dl dt { font-size: 13px; font-weight: 500; color: var(--muted); padding-top: .9rem; border-top: 1px solid var(--line); margin-top: .9rem; }
.ficha-dl dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.ficha-dl dd { margin: .2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
main > p { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
