/* SHALOM Administración de Condominios · C&E
   Blanco como base, negro para resaltar; azul marino y dorado del logo en los detalles */
:root {
  --black: #0B0B0B;
  --ink: #0B0B0B;
  --g-800: #1A1A1A;
  --g-700: #3A3A3A;
  --g-600: #5F5F5F;
  --g-400: #9A9A9A;
  --g-300: #B5B5B5;
  --g-200: #E6E6E3;
  --g-100: #F5F5F3;
  --white: #fff;
  --text: #141414;
  --muted: #5F5F5F;
  --line: #E6E6E3;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 0 var(--line), 0 20px 40px -28px rgba(0, 0, 0, .35);
  --hatch: repeating-linear-gradient(135deg, #0B0B0B 0 2px, #fff 2px 6px);
  --navy: #0E1A38;
  --navy-bg: #EEF1F7;
  --gold: #D4AF5A;
  --gold-light: #E6CB8A;
  --gold-ink: #8A6A1E;
  --gold-bg: #F7F0DE;
  --cream: #F5F5F3;
  --wide: "Michroma", "Montserrat", sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; font-size: 16px; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.12; margin: 0 0 .55em; color: var(--ink); font-weight: 300; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-weight: 600; }
h1 b, h2 b { font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); }
.eyebrow { font-family: var(--wide); text-transform: uppercase; letter-spacing: .28em; font-size: .64rem; color: var(--g-600); margin-bottom: 1.2em; display: flex; align-items: center; gap: .9em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .section-dark .eyebrow, .hero .eyebrow { color: var(--g-300); }

/* ---------- Marca ---------- */
.seal { width: 44px; height: 44px; flex: none; color: currentColor; }
.wordmark { font-family: var(--wide); letter-spacing: .26em; font-size: 1.05rem; line-height: 1; white-space: nowrap; }
.lambda { color: var(--gold); display: inline-block; width: .82em; height: .74em; background: currentColor; clip-path: polygon(0 100%, 50% 0, 100% 100%, 89% 100%, 50% 16%, 11% 100%); margin: 0 .02em; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand-divider { width: 1px; align-self: stretch; background: currentColor; opacity: .7; margin: 2px 0; }
.brand-text { display: flex; flex-direction: column; gap: .4rem; }
.brand-text small { font-family: var(--wide); font-size: .46rem; letter-spacing: .26em; text-transform: uppercase; opacity: .85; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .95em 1.7em; border-radius: var(--radius); border: 1.5px solid var(--black); background: var(--black); color: var(--white); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-small { padding: .7em 1.2em; font-size: .72rem; }
.btn:disabled { opacity: .45; pointer-events: none; }
.link { background: none; border: 0; color: var(--muted); padding: 0; margin-top: 1rem; text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--black); }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); background: rgba(0, 0, 0, .95); color: var(--white); backdrop-filter: blur(10px); }
.nav .brand { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--g-300); transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a.current { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--white); margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem); position: relative; z-index: 1; }
.hero h1 { color: var(--white); min-height: 3.4em; }
.hero-bg-seal { position: absolute; right: -8vw; top: 50%; width: min(70vw, 760px); transform: translateY(-50%); color: rgba(255, 255, 255, .045); pointer-events: none; }
.rotator { display: inline; font-weight: 600; border-bottom: 2px solid var(--white); transition: opacity .35s; }
.rotator::after { content: "?"; }
.rotator.out { opacity: 0; }
.lead { font-size: 1.08rem; color: var(--g-300); max-width: 560px; font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0; }
.hero-promises { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .85rem; color: var(--g-400); }
.hero-promises li::before { content: "—  "; color: var(--white); }
.hero-promises b { color: var(--white); font-weight: 600; }

.hero-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: 0 40px 80px -30px rgba(255, 255, 255, .12); transform: translateY(24px); opacity: 0; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s; }
.hero-card.in { transform: none; opacity: 1; }
.hc-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.hc-head span { font-weight: 600; }
.hc-head em { font-family: var(--wide); font-style: normal; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hc-row { display: flex; align-items: baseline; gap: .2rem; font-size: .88rem; }
.hc-row span { flex: 1; color: var(--muted); }
.hc-row b { font-size: 1.7rem; font-weight: 300; }
.hc-row i { font-style: normal; color: var(--muted); }
.hc-bar { height: 4px; background: var(--g-200); margin: .4rem 0 1.2rem; overflow: hidden; }
.hc-bar span { display: block; height: 100%; width: 0; background: var(--black); transition: width 1.3s .3s cubic-bezier(.2, .8, .2, 1); }
.hero-card.in .hc-bar span { width: var(--w); }
.hc-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.hc-foot { margin: 1.3rem 0 0; font-size: .72rem; color: var(--g-400); }

.tag { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--g-300); color: var(--ink); background: var(--white); }
.tag.solid { background: var(--black); color: var(--white); border-color: var(--black); }
.tag.soft { background: var(--g-100); border-color: var(--g-100); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) max(clamp(1rem, 6vw, 5rem), calc((100% - 1180px) / 2)); opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s; }
.section.in { opacity: 1; transform: none; }
.section-alt { background: var(--g-100); }
.section-dark { background: var(--black); color: var(--g-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-head p:not(.eyebrow) { color: var(--g-400); }
.section-head { max-width: 740px; margin-bottom: 3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }

/* ---------- Problemas ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.problem { text-align: left; background: var(--white); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.7rem; display: flex; flex-direction: column; gap: .5rem; transition: background .25s, color .25s; position: relative; }
.problem:hover { background: var(--g-100); }
.problem.active { background: var(--black); color: var(--white); }
.problem .pi { width: 34px; height: 34px; }
.problem b { font-size: 1.05rem; font-weight: 600; }
.problem small { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.problem.active small { color: var(--g-300); }
.problem .num { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--wide); font-size: .6rem; letter-spacing: .2em; color: var(--g-400); }

.problem-detail { margin-top: 2rem; border: 1px solid var(--black); border-radius: var(--radius-lg); overflow: hidden; }
.problem-detail.swap { animation: pop .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.pd-cols { display: grid; grid-template-columns: 1fr 1.25fr; }
.pd-problem { padding: clamp(1.4rem, 3vw, 2.4rem); }
.pd-problem dt { font-family: var(--wide); font-size: .58rem; text-transform: uppercase; letter-spacing: .22em; color: var(--g-600); margin-top: 1.4rem; }
.pd-problem dd { margin: .4rem 0 0; }
.pd-solution { background: var(--black); color: var(--g-200); padding: clamp(1.4rem, 3vw, 2.4rem); }
.pd-solution h3 { color: var(--white); }
.pd-solution ol { padding: 0; margin: 0 0 1.4rem; list-style: none; counter-reset: s; }
.pd-solution li { counter-increment: s; padding: .7rem 0 .7rem 2.6rem; position: relative; border-bottom: 1px solid var(--g-700); }
.pd-solution li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .78rem; font-family: var(--wide); font-size: .65rem; color: var(--g-400); }
.kpi { font-size: .85rem; color: var(--g-400); }
.kpi b { color: var(--white); font-weight: 600; }

/* ---------- Diagnóstico ---------- */
.quiz { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.quiz-progress { height: 3px; background: var(--g-200); }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--black); transition: width .4s; }
.quiz-body { padding: clamp(1.6rem, 4vw, 3.2rem); min-height: 300px; }
.q-count { font-family: var(--wide); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.q-text { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 300; max-width: 760px; animation: pop .4s; }
.q-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.result { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; align-items: center; animation: pop .5s; }
.gauge { position: relative; width: 200px; height: 200px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--g-200); stroke-width: 6; }
.g-val { fill: none; stroke: var(--black); stroke-width: 6; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.g-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-num b { font-size: 3.6rem; font-weight: 200; line-height: 1; }
.g-num span { color: var(--muted); font-size: .85rem; }
.level { display: inline-block; padding: .35em .9em; font-family: var(--wide); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; border: 1px solid var(--black); }
.level.lv-0 { background: var(--black); color: var(--white); }
.level.lv-1 { background: var(--hatch); }
.level.lv-1 span { background: var(--white); padding: 0 .3em; }
.findings { padding: 0; list-style: none; }
.findings li { padding: .55rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; }
.sim-controls { display: flex; flex-direction: column; gap: 1.5rem; }
.sim-controls label, .quote label:not(.check) { display: flex; flex-wrap: wrap; justify-content: space-between; font-weight: 500; font-size: .9rem; gap: .5rem; }
output { font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--g-300); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--black); border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--black); margin-top: -8px; }
input[type=range]::-moz-range-track { height: 2px; background: var(--g-300); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--black); border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--black); }
.sim-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; align-content: start; }
.stat { background: var(--white); padding: 1.3rem; }
.stat span { display: block; font-size: .76rem; color: var(--muted); }
.stat strong { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; }
.stat-good { background: var(--black); color: var(--white); }
.stat-good span { color: var(--g-300); }
.units-viz { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; padding: 1.3rem; background: var(--white); align-items: center; }
.u { width: 14px; height: 18px; border-radius: 2px 2px 0 0; transition: background .3s; }
.u.paid, .dot.paid { background: var(--black); }
.u.late, .dot.late { background: var(--hatch); outline: 1px solid var(--black); outline-offset: -1px; }
.u.goal, .dot.goal { background: var(--g-300); }
.legend, .sim-results .fine { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--muted); background: var(--white); padding: 0 1.3rem 1.2rem; }
.dot { display: inline-block; width: 10px; height: 10px; margin: 0 .35rem -1px 1rem; }
.legend .dot:first-child { margin-left: 0; }

/* ---------- Antes / después ---------- */
.compare { position: relative; height: 400px; border-radius: var(--radius-lg); overflow: hidden; cursor: ew-resize; touch-action: none; user-select: none; border: 1px solid var(--g-700); }
.compare-pane { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; }
.before { background: #2A2A2A; }
.after { background: var(--white); }
.paper { width: min(520px, 100%); padding: 1.6rem 1.8rem; color: #222222; }
.paper h4 { color: inherit; font-weight: 600; }
.messy { background: #F1EFEA; transform: rotate(-2deg); font-family: "Segoe Print", "Comic Sans MS", cursive; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.messy p { margin: .35em 0; border-bottom: 1px solid #D9D6CE; }
.messy .scribble { text-decoration: line-through; color: #5F5F5F; transform: rotate(-1deg); }
.clean { border: 1px solid var(--black); background: var(--white); }
.clean h4 { font-family: var(--wide); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; padding-bottom: .8rem; border-bottom: 2px solid var(--black); }
.clean table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.clean td { padding: .5em 0; border-bottom: 1px solid var(--line); }
.clean td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.clean .check { font-weight: 600; margin: 1em 0 0; font-size: .85rem; }
.compare-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--white); transform: translateX(-50%); mix-blend-mode: difference; }
.compare-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; font-size: 1rem; }

/* ---------- Método ---------- */
.tabs { display: inline-flex; border: 1px solid var(--black); border-radius: var(--radius); margin-bottom: 2rem; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: .8em 1.4em; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: .25s; }
.tab.active { background: var(--black); color: var(--white); }
.routine { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; counter-reset: r; border-left: 1px solid var(--line); }
.routine li { counter-increment: r; padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: .35rem; animation: pop .45s both; animation-delay: calc(var(--i) * 70ms); }
.routine li::before { content: counter(r, decimal-leading-zero); font-family: var(--wide); font-size: .7rem; color: var(--g-400); margin-bottom: .6rem; }
.routine b { font-weight: 600; }
.routine span { color: var(--muted); font-size: .88rem; }
.services { margin-top: 4rem; }
.accordion details, .faq details { border-bottom: 1px solid var(--line); }
.accordion details:first-child, .faq details:first-child { border-top: 1px solid var(--line); }
.accordion summary, .faq summary { padding: 1.2rem 0; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.accordion summary::after, .faq summary::after { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .3s; }
details[open] > summary::after { transform: rotate(45deg); }
.accordion ul { margin: 0; padding: 0 0 1.3rem 1.2rem; color: var(--muted); columns: 2; column-gap: 2rem; }
.faq p { padding: 0 0 1.3rem; margin: 0; color: var(--muted); max-width: 820px; }

/* ---------- Reservas (vista previa en el sitio) ---------- */
.booking-teaser { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.booking-teaser ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.booking-teaser li { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--g-700); }
.booking-teaser li b { color: var(--white); display: block; font-weight: 600; }
.booking-teaser li span { color: var(--g-400); font-size: .9rem; }
.booking-teaser .ico { width: 28px; height: 28px; flex: none; color: var(--white); margin-top: 2px; }

/* ---------- Plataforma ---------- */
.platform { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.roles { display: flex; flex-direction: column; border: 1px solid var(--black); border-radius: var(--radius); overflow: hidden; }
.role { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--white); padding: 1rem 1.1rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: .2s; }
.role:last-child { border-bottom: 0; }
.role:hover { background: var(--g-100); }
.role.active { background: var(--black); color: var(--white); }
.device { background: var(--white); border: 1px solid var(--black); border-radius: var(--radius-lg); overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: .4rem; padding: .75rem 1rem; background: var(--black); font-size: .72rem; color: var(--g-400); letter-spacing: .05em; }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--g-600); }
.device-bar span { margin-left: .8rem; }
.device-screen { padding: 1.7rem; min-height: 330px; }
.device-screen.swap { animation: pop .4s; }
.ds-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1.2rem; }
.ds-kpis div { background: var(--white); padding: 1rem; }
.ds-kpis span { display: block; font-size: .72rem; color: var(--muted); }
.ds-kpis b { font-size: 1.4rem; font-weight: 300; }
.ds-list { list-style: none; padding: 0; margin: 0; }
.ds-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ds-list em { font-style: normal; font-weight: 600; white-space: nowrap; font-size: .8rem; }
.ds-note { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; font-size: .85rem; }
.form label.check { flex-direction: row; align-items: flex-start; gap: .7rem; font-weight: 400; }
.form input:not([type=checkbox]):not([type=range]), .form select, .form textarea, .track input { font: inherit; font-size: .95rem; padding: .8em .9em; border: 1px solid var(--g-300); border-radius: var(--radius); background: var(--white); color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus, .track input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
input[type=checkbox] { accent-color: var(--black); width: 17px; height: 17px; margin-top: 2px; flex: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
legend { font-weight: 500; font-size: .85rem; margin-bottom: .5rem; }
.form-msg { margin: 0; font-weight: 500; min-height: 1.4em; font-size: .9rem; }
.form-msg.err { padding-left: .8rem; border-left: 3px solid var(--black); }
.form-msg.ok::before { content: "✓ "; }

/* ---------- Solicitudes ---------- */
.ticket-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.track { display: flex; gap: .6rem; padding-top: 1.1rem; border-top: 1px dashed var(--g-300); }
.ticket { min-height: 300px; }
.t-head { display: flex; flex-direction: column; margin-bottom: 1rem; }
.t-code { font-family: var(--wide); font-size: 1.5rem; letter-spacing: .12em; }
.t-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.prio-critica { background: var(--black); color: var(--white); border-color: var(--black); }
.prio-alta { border-color: var(--black); border-width: 1.5px; }
.stages { list-style: none; display: flex; padding: 0; margin: 1.6rem 0 0; }
.stages li { flex: 1; text-align: center; font-size: .7rem; color: var(--muted); position: relative; padding-top: 24px; }
.stages li::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--g-300); z-index: 1; }
.stages li::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 1.5px; background: var(--g-200); }
.stages li:first-child::after { display: none; }
.stages li.done { color: var(--ink); font-weight: 600; }
.stages li.done::before { background: var(--black); border-color: var(--black); }
.stages li.done::after { background: var(--black); }

/* ---------- 90 días ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--g-700); }
.tl-step { background: transparent; border: 0; border-right: 1px solid var(--g-700); padding: 1.4rem; color: var(--g-300); text-align: left; display: flex; flex-direction: column; gap: .35rem; transition: .25s; }
.tl-step:nth-child(4) { border-right: 0; }
.tl-step:hover { background: var(--g-800); }
.tl-step.active { background: var(--white); color: var(--black); }
.tl-dot { font-family: var(--wide); font-size: .7rem; }
.tl-step small { opacity: .75; font-size: .78rem; }
.tl-step b { font-weight: 600; font-size: 1.02rem; }
.tl-detail { grid-column: 1 / -1; border-top: 1px solid var(--g-700); padding: 1.6rem; animation: pop .4s; }
.tl-detail b { color: var(--white); font-weight: 600; }
.tl-detail p { margin: .5rem 0 0; color: var(--g-400); max-width: 760px; }

/* ---------- Cotizador ---------- */
.quote { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--g-300); background: var(--white); border-radius: var(--radius); padding: .6em 1.1em; font-size: .85rem; font-weight: 500; transition: .2s; }
.chip:hover { border-color: var(--black); }
.chip.active { background: var(--black); color: var(--white); border-color: var(--black); }
.quote label.check { justify-content: flex-start; }
.quote-result { background: var(--black); color: var(--g-200); border-color: var(--black); display: flex; flex-direction: column; gap: .55rem; position: sticky; top: 100px; }
.quote-result .muted, .quote-result .fine { color: var(--g-400); }
.quote-result strong { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; color: var(--white); line-height: 1.2; }
.quote-result .btn { margin-top: .8rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.promises { list-style: none; padding: 0; counter-reset: p; }
.promises li { counter-increment: p; padding: .8rem 0 .8rem 2.6rem; position: relative; border-bottom: 1px solid var(--line); }
.promises li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: .95rem; font-family: var(--wide); font-size: .65rem; color: var(--g-400); }

/* ---------- Pie ---------- */
.footer { background: var(--black); color: var(--g-300); padding: 3.5rem clamp(1rem, 6vw, 5rem) 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--g-700); }
.footer .brand { color: var(--white); }
.footer .seal { width: 60px; height: 60px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer nav a { text-decoration: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer nav a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: .8rem; color: var(--g-400); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140px); background: var(--black); color: var(--white); padding: .95rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--g-700); transition: transform .35s; z-index: 200; font-weight: 500; font-size: .9rem; max-width: calc(100vw - 32px); }
.toast:not(.show) { visibility: hidden; transition: transform .35s, visibility 0s .35s; }
.toast.show { transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.section-dark :focus-visible, .hero :focus-visible, .nav :focus-visible { outline-color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .sim, .ticket-wrap, .quote, .contact, .platform, .booking-teaser { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-cols { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .tl-step:nth-child(2n) { border-right: 0; }
  .tl-step:nth-child(-n+2) { border-bottom: 1px solid var(--g-700); }
  .roles { flex-direction: row; flex-wrap: wrap; }
  .role { flex: 1 1 auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .quote-result { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); padding: 0 1rem; max-height: 0; overflow: hidden; transition: max-height .35s, padding .35s; }
  .nav.open .nav-links { max-height: 520px; padding: .5rem 1rem 1.2rem; }
  .nav-links a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--g-700); }
  .nav-links .btn { margin-top: .9rem; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .brand-text small { display: none; }
  .brand .seal { width: 38px; height: 38px; }
  .wordmark { font-size: .92rem; }
  .problem-grid, .sim-results, .row { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .findings { text-align: left; }
  .result .q-actions { justify-content: center; }
  .ds-kpis b { font-size: 1.1rem; }
  .compare { height: 470px; }
  .timeline { grid-template-columns: 1fr; }
  .tl-step { border-right: 0 !important; border-bottom: 1px solid var(--g-700); }
  .stages li { font-size: .58rem; }
  .track { flex-direction: column; }
  .accordion ul { columns: 1; }
  .routine { border-left: 0; }
  .routine li { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .section, .hero-card { opacity: 1; transform: none; }
}

/* ==========================================================
   Calendario (compartido por el sitio y el portal)
   ========================================================== */
.cal-preview { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 1.5rem; }
.cp-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cp-areas { display: flex; flex-wrap: wrap; gap: .35rem; }
.cp-areas button { border: 1px solid var(--g-300); background: var(--white); padding: .45em .8em; border-radius: var(--radius); font-size: .74rem; font-weight: 500; }
.cp-areas button.active { background: var(--black); color: var(--white); border-color: var(--black); }
.cp-month { font-family: var(--wide); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.cp-week, .cp-grid, .cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cp-week span, .cal-week span { text-align: center; font-family: var(--wide); font-size: .55rem; letter-spacing: .1em; color: var(--muted); padding: .3rem 0; }
.day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--g-200); border-radius: var(--radius); font-size: .85rem; font-weight: 500; background: var(--white); position: relative; transition: transform .15s, box-shadow .15s; padding: 0; }
.day.empty { border: 0; background: none; }
a.day { text-decoration: none; color: inherit; }
.day.disponible { border-color: var(--g-400); }
.day.parcial { background: repeating-linear-gradient(135deg, var(--white) 0 5px, var(--g-200) 5px 7px); border-color: var(--g-400); }
.day.completo { background: var(--black); color: var(--white); border-color: var(--black); }
.day.bloqueado { background: var(--hatch); color: var(--black); border-color: var(--black); }
.day.bloqueado .dn { background: var(--white); padding: 0 .25em; }
.day.pasado, .day.cerrado { color: var(--g-300); border-color: var(--g-100); background: var(--white); }
.day.hoy .dn { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.day.mio::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--black); box-shadow: 0 0 0 2px var(--white); }
.day.completo.mio::after { background: var(--white); box-shadow: 0 0 0 2px var(--black); }
.day .slots { display: flex; gap: 2px; }
.day .slots i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid currentColor; }
.day .slots i.on { background: currentColor; }
button.day:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
button.day.sel { outline: 2px solid var(--black); outline-offset: 2px; }
button.day:disabled { cursor: default; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1rem; font-size: .74rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--g-400); background: var(--white); }
.lg.parcial { background: repeating-linear-gradient(135deg, var(--white) 0 3px, var(--g-300) 3px 5px); }
.lg.completo { background: var(--black); border-color: var(--black); }
.lg.bloqueado { background: var(--hatch); border-color: var(--black); }
.lg.mio { border-radius: 50%; background: var(--black); width: 9px; height: 9px; }

/* ---------- v5 · Acento dorado ---------- */
:root { --gold: #D4AF5A; --gold-light: #E6CB8A; --gold-ink: #8A6A1E; --gold-bg: #F7F0DE; }
.eyebrow { color: var(--gold-ink); }
.eyebrow::before { background: var(--gold); }
.on-dark .eyebrow, .section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.rotator { border-bottom-color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0B0B0B; }
.btn-gold:hover { background: #0B0B0B; border-color: #0B0B0B; color: var(--gold-light); }
.nav-links .btn-gold:hover { background: transparent; border-color: var(--gold); color: var(--gold-light); }
.hero-card .hc-bar span { background: var(--gold); }
.problem.active small { color: var(--g-300); }
.problem.active .pi { color: var(--gold); }
.stat-good strong { color: var(--gold-light); }
.tab.active, .chip.active, .role.active { color: var(--gold-light); }
.tl-step.active { background: var(--gold); color: #0B0B0B; }
.quote-result strong { color: var(--gold-light); }
.lg.mio, .day.mio::after { background: var(--gold); }
.day.completo.mio::after { background: var(--gold); }

/* Comunidad (sitio) */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.feature-list li { display: flex; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.feature-list .ico { width: 26px; height: 26px; color: var(--gold-ink); flex: none; margin-top: 2px; }
.feature-list b { display: block; font-weight: 600; }
.feature-list span { color: var(--muted); font-size: .92rem; }
.feed-demo { background: #0B0B0B; border-radius: 28px; padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; max-width: 440px; justify-self: center; width: 100%; }
.fd-notif { display: flex; gap: .8rem; align-items: center; background: rgba(255,255,255,.1); color: #fff; border-radius: 18px; padding: .8rem 1rem; backdrop-filter: blur(6px); }
.fd-notif .fd-ico { width: 38px; height: 38px; border-radius: 10px; background: #0B0B0B; display: grid; place-items: center; flex: none; }
.fd-notif .seal-xs { width: 30px; height: 30px; color: var(--gold); }
.fd-notif span { display: flex; flex-direction: column; min-width: 0; }
.fd-notif b { font-size: .84rem; font-weight: 600; }
.fd-notif small { font-size: .78rem; color: var(--g-300); }
.fd-notif em { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--g-400); align-self: flex-start; }
.fd-post { background: #fff; border-radius: 18px; overflow: hidden; }
.fd-post header { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; }
.fd-post header small { margin-left: auto; color: var(--muted); font-size: .76rem; }
.fd-av { width: 30px; height: 30px; border-radius: 9px; background: #0B0B0B; color: var(--gold-light); font-family: var(--wide); font-size: .55rem; display: grid; place-items: center; }
.fd-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.fd-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.fd-body p { margin: 0; }
.fd-official { background: var(--gold-bg); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: .6rem .8rem; font-size: .84rem; display: flex; flex-direction: column; }
.fd-official b { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.fd-actions { display: flex; gap: .5rem; }
.fd-actions .pill { border: 1px solid var(--g-300); border-radius: 999px; padding: .4em .9em; font-size: .78rem; font-weight: 500; }
.fd-actions .pill.on { background: #0B0B0B; color: var(--gold-light); border-color: #0B0B0B; }
.transp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.transp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.transp-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.transp-card .ico { width: 28px; height: 28px; color: var(--gold-ink); margin-bottom: .4rem; }
.transp-card b { font-weight: 600; font-size: 1.02rem; }
.transp-card span { color: var(--muted); font-size: .9rem; }
.transp-card.dark { background: #0B0B0B; color: #fff; border-color: #0B0B0B; }
.transp-card.dark .ico { color: var(--gold); }
.transp-card.dark span { color: var(--g-300); }
.rot-up { transform: rotate(-90deg); }
@media (max-width: 980px) {
  .community { grid-template-columns: 1fr; }
  .transp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .transp-grid { grid-template-columns: 1fr; } }
.transp-card.transp-wide { grid-column: 1 / -1; background: var(--gold-bg); border-color: var(--gold); }
.transp-card.transp-wide .ico { color: var(--gold-ink); }

/* ---------- v8 · Blanco, negro para resaltar, azul marino y dorado en detalles ---------- */
.eyebrow { color: var(--navy); }
.eyebrow::before { background: var(--gold); height: 2px; }
.on-dark .eyebrow, .section-dark .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.section-alt, .section.alt { background: var(--white); }
a:not(.btn):not(.brand):not(.kpi):not(.transp-card):hover { color: var(--navy); }
h1 b, h2 b { color: inherit; }
.rotator { border-bottom-color: var(--gold); }

/* ---------- v9 · Calendario con semáforo: verde disponible, amarillo pendiente, rojo bloqueado ---------- */
:root { --ok: #16A34A; --ok-bg: #DCFCE7; --ok-ink: #14532D; --warn: #EAB308; --warn-bg: #FEF3C7; --warn-ink: #713F12; --bad: #DC2626; --bad-bg: #FEE2E2; --bad-ink: #7F1D1D; }
.day.disponible { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); }
.day.parcial { background: var(--warn-bg); border-color: var(--warn); color: var(--warn-ink); }
.day.completo, .day.bloqueado { background: var(--bad); border-color: var(--bad); color: #fff; }
.day.bloqueado { background: repeating-linear-gradient(135deg, var(--bad) 0 6px, #B91C1C 6px 10px); }
.day.bloqueado .dn { background: none; padding: 0; }
.day.disponible .slots i { border-color: var(--ok); }
.day.parcial .slots i { border-color: var(--warn-ink); }
.day.parcial .slots i.on { background: var(--warn-ink); }
.day.completo .slots i, .day.bloqueado .slots i { border-color: #fff; }
.day.completo .slots i.on { background: #fff; }
.day.pasado, .day.cerrado { background: var(--white); color: var(--g-300); border-color: var(--g-100); }
button.day.sel { outline: 3px solid var(--black); outline-offset: 2px; }
.day.mio::after, .day.completo.mio::after { background: var(--gold); box-shadow: 0 0 0 2px #fff; }
.lg { border-width: 2px; }
.lg.disponible { background: var(--ok-bg); border-color: var(--ok); }
.lg.parcial { background: var(--warn-bg); border-color: var(--warn); }
.lg.completo, .lg.venc { background: var(--bad); border-color: var(--bad); }
.lg.bloqueado { background: var(--bad); border-color: var(--bad); }
.lg.ok { background: var(--ok-bg); border-color: var(--ok); }
.lg.pend { background: var(--warn-bg); border-color: var(--warn); }

/* ---------- v9 · Nosotros: misión, visión, objetivos y ejes ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.mv-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; background: var(--white); position: relative; }
.mv-card::before { content: ""; position: absolute; left: 2rem; top: 0; width: 48px; height: 3px; background: var(--gold); }
.mv-card.dark { background: var(--black); color: var(--g-200); border-color: var(--black); }
.mv-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); margin-bottom: 1rem; }
.mv-card.dark .mv-ico { color: var(--gold); }
.mv-ico svg { width: 22px; height: 22px; }
.mv-label { font-family: var(--wide); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--navy); margin: 0 0 .6rem; }
.mv-card.dark .mv-label { color: var(--gold-light); }
.mv-text { font-size: 1.02rem; line-height: 1.7; margin: 0; }
.mv-card.dark .mv-text { color: var(--white); }
.obj-wrap { margin-top: 3.5rem; display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
.obj-head h3 { font-size: 1.5rem; font-weight: 400; margin-top: .4rem; }
.obj-list { list-style: none; counter-reset: o; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.obj-list li { counter-increment: o; padding: 1.1rem 1rem 1.1rem 3.2rem; border-bottom: 1px solid var(--line); position: relative; display: flex; flex-direction: column; gap: .25rem; }
.obj-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.obj-list li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 1rem; top: 1.15rem; font-family: var(--wide); font-size: .7rem; color: var(--gold-ink); }
.obj-list b { color: var(--navy); font-weight: 600; }
.obj-list span { color: var(--muted); font-size: .9rem; }
.values { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.values .eyebrow { margin: 0; }
.values-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.values-list li { border: 1px solid var(--black); padding: .45em 1em; border-radius: 999px; font-size: .82rem; font-weight: 500; }
.values-list li:nth-child(4n+1) { background: var(--black); color: var(--white); }
.ejes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2A2A2A; border: 1px solid #2A2A2A; border-radius: var(--radius-lg); overflow: hidden; }
.eje { background: var(--black); padding: 2.2rem 1.8rem; position: relative; display: flex; flex-direction: column; gap: .8rem; }
.eje-num { position: absolute; top: 1.6rem; right: 1.6rem; font-family: var(--wide); font-size: .7rem; color: var(--gold); letter-spacing: .2em; }
.eje-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-light); border: 1px solid var(--gold); }
.eje-ico svg { width: 26px; height: 26px; }
.eje h3 { font-size: 1.2rem; font-weight: 500; margin: .4rem 0 0; color: var(--white); }
.eje p { color: var(--g-300); margin: 0; font-size: .92rem; }
.eje ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .55rem; }
.eje li { padding-left: 1.2rem; position: relative; font-size: .88rem; color: var(--g-200); }
.eje li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 900px) {
  .mv-grid, .obj-wrap, .obj-list, .ejes { grid-template-columns: 1fr; }
  .obj-list li:nth-child(odd) { border-right: 0; }
  .mv-card { padding: 1.5rem; }
  .mv-card::before { left: 1.5rem; }
}
