:root {
  --ink: #182230;
  --muted: #667085;
  --line: #e8ecf2;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --primary: #2769e8;
  --primary-dark: #1854c7;
  --green: #149766;
  --green-soft: #eaf8f2;
  --red: #df4c56;
  --red-soft: #fff0f1;
  --blue-soft: #edf4ff;
  --orange: #b96a16;
  --orange-soft: #fff5e8;
  --purple: #805ad5;
  --shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 10px 28px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
html { font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { color: inherit; }

.app-shell[hidden], .auth-screen[hidden], .marketing-site[hidden] { display: none; }

html { scroll-behavior: smooth; }
.marketing-site { min-height: 100vh; overflow: hidden; background: #fff; color: #182230; }
.marketing-header { position: sticky; top: 0; z-index: 40; width: 100%; height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; padding: 0 max(28px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(224,229,237,.82); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.marketing-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }.marketing-brand-mark { width: 37px; height: 37px; display: block; border-radius: 34%; box-shadow: 0 7px 16px rgba(39,105,232,.2); }.marketing-brand-mark svg { display: block; width: 100%; height: 100%; }.marketing-brand small { display: block; }.marketing-brand .logo-nombre { height: 19px; }.marketing-brand small { margin-top: 4px; color: #8490a1; font-size: 14px; }
.marketing-nav { justify-self: center; display: flex; align-items: center; gap: 31px; }.marketing-nav a { color: #59677a; text-decoration: none; font-size: 16.5px; font-weight: 600; }.marketing-nav a:hover { color: var(--primary); }
.marketing-header-actions { display: flex; align-items: center; gap: 9px; }.marketing-login, .marketing-primary { height: 40px; border-radius: 8px; padding: 0 16px; font-size: 16px; font-weight: 800; cursor: pointer; }.marketing-login { border: 1px solid #dce2eb; background: #fff; color: #344054; }.marketing-primary { border: 0; background: var(--primary); color: #fff; box-shadow: 0 5px 13px rgba(39,105,232,.2); }.marketing-login:hover { background: #f8fafc; }.marketing-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }.marketing-primary.large { height: 49px; padding: 0 22px; font-size: 18px; }
.marketing-hero { position: relative; width: min(1180px, calc(100% - 56px)); min-height: 675px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(45px, 6vw, 90px); margin: 0 auto; padding: 80px 0 94px; }.marketing-hero::before { content: ""; position: absolute; z-index: 0; width: 520px; height: 520px; right: -220px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(77,137,243,.13), rgba(77,137,243,0) 70%); pointer-events: none; }.marketing-hero-copy, .product-preview { position: relative; z-index: 1; }
.marketing-eyebrow, .marketing-section-heading > span, .solution-feature > span, .solution-feature > div > span { color: var(--primary); font-size: 15.5px; font-weight: 800; letter-spacing: 1.2px; }.marketing-hero h1 { margin: 17px 0 21px; font: 800 clamp(42px, 5vw, 65px)/1.04 Manrope, sans-serif; letter-spacing: -2.6px; }.marketing-hero-copy > p { max-width: 580px; margin: 0; color: #5f6e81; font-size: 20px; line-height: 1.68; }.marketing-hero-actions { display: flex; align-items: center; gap: 21px; margin-top: 31px; }.marketing-demo-link { color: #344054; text-decoration: none; border-bottom: 1px solid #acb7c6; padding: 7px 1px; font-size: 18px; font-weight: 800; }.marketing-demo-link:hover { color: var(--primary); border-color: var(--primary); }
.product-preview { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); border: 1px solid #dfe6ef; border-radius: 17px; background: #fff; box-shadow: 0 36px 80px rgba(32,66,118,.18), 0 4px 12px rgba(16,24,40,.05); overflow: hidden; }.preview-window-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-bottom: 1px solid #e5eaf1; background: #fafbfd; }.preview-window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #d9e0e9; }.preview-window-bar > span:first-child { background: #f18c8c; }.preview-window-bar > span:nth-child(2) { background: #f5c765; }.preview-window-bar > span:nth-child(3) { background: #68c994; }.preview-window-bar p { margin: 0 auto; padding-right: 37px; color: #8d98a8; font-size: 8px; }.preview-shell { min-height: 386px; display: grid; grid-template-columns: 52px 1fr; background: #f5f7fb; }.preview-shell aside { display: grid; grid-auto-rows: 28px; justify-items: center; align-content: start; gap: 14px; padding-top: 18px; border-right: 1px solid #e4e8ef; background: #fff; }.preview-mini-brand { width: 27px; height: 27px; display: block; margin-bottom: 7px; }.preview-shell aside i { width: 20px; height: 20px; border-radius: 6px; background: #eef1f5; }.preview-shell aside i.active { background: #dbe8ff; border: 1px solid #bdd2fa; }.preview-content { padding: 25px 24px; }.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.preview-heading small, .preview-heading strong { display: block; }.preview-heading small { color: #98a2b3; font-size: 6px; letter-spacing: .7px; }.preview-heading strong { margin-top: 4px; font: 800 14px Manrope, sans-serif; }.preview-heading button { height: 29px; border: 0; border-radius: 6px; padding: 0 10px; background: var(--primary); color: #fff; font-size: 7px; font-weight: 700; }.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 15px; }.preview-metrics article { padding: 12px; border: 1px solid #e2e7ee; border-radius: 8px; background: #fff; }.preview-metrics span, .preview-metrics strong, .preview-metrics small { display: block; }.preview-metrics span { color: #798699; font-size: 6.5px; }.preview-metrics strong { margin: 4px 0; font: 800 12px Manrope, sans-serif; }.preview-metrics small { color: #9aa4b2; font-size: 6px; }.preview-metrics small.green { color: var(--green); }.preview-table { overflow: hidden; border: 1px solid #e2e7ee; border-radius: 8px; background: #fff; }.preview-table > div { min-height: 50px; display: grid; grid-template-columns: .8fr 1fr 1.45fr .75fr; align-items: center; gap: 7px; padding: 0 12px; border-top: 1px solid #edf0f4; font-size: 7px; }.preview-table > div > b { text-align: right; }.preview-table .preview-table-head { min-height: 27px; border: 0; background: #f9fafc; color: #929dab; font-size: 5.5px; font-weight: 800; letter-spacing: .4px; }.preview-table em { width: max-content; padding: 4px 6px; border-radius: 99px; font-style: normal; font-weight: 800; }.preview-table em.paid { color: var(--green); background: var(--green-soft); }.preview-table em.pending { color: var(--primary); background: var(--blue-soft); }.preview-table em.late { color: var(--red); background: var(--red-soft); }
.marketing-trust { padding: 26px max(28px, calc((100vw - 1180px) / 2)); border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; background: #fafcff; text-align: center; }.marketing-trust p { margin: 0 0 18px; color: #7d8999; font-size: 16px; }.marketing-trust div { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px); color: #9aa4b2; font-size: 15px; font-weight: 800; letter-spacing: 1.3px; }
.marketing-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px clamp(28px, 7vw, 96px); padding: 34px max(16px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid #edf0f5; background: #fff; text-align: center; }.marketing-stats[hidden], .marketing-stats [hidden] { display: none; }.marketing-stats > div { display: grid; gap: 4px; min-width: 170px; }.marketing-stats strong { color: var(--primary); font: 800 clamp(30px, 4vw, 40px) Manrope, sans-serif; }.marketing-stats span { color: #697689; font-size: 15px; }
.marketing-section { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 76px 0; }.marketing-section-heading { max-width: 700px; margin: 0 auto 47px; text-align: center; }.marketing-section-heading.align-left { max-width: none; margin-left: 0; text-align: left; }.marketing-section-heading h2, .solution-intro h2, .demo-section h2 { margin: 13px 0 14px; font: 800 clamp(31px, 4vw, 46px)/1.13 Manrope, sans-serif; letter-spacing: -1.35px; }.marketing-section-heading p, .solution-intro p, .demo-section > div > p { margin: 0; color: #667085; font-size: 19.5px; line-height: 1.62; }
.problem-section { width: 100%; padding-left: max(28px, calc((100vw - 1180px) / 2)); padding-right: max(28px, calc((100vw - 1180px) / 2)); background: #f7f9fc; }.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }.problem-grid article { min-height: 205px; padding: 25px; border: 1px solid #e4e9f0; border-radius: 13px; background: #fff; }.problem-grid article > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: #edf4ff; color: var(--primary); font-size: 15px; font-weight: 800; }.problem-grid h3 { margin: 29px 0 9px; font: 800 20px Manrope, sans-serif; }.problem-grid p { margin: 0; color: #697689; font-size: 17px; line-height: 1.55; }
.solution-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }.solution-intro { position: sticky; top: 115px; }.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }.solution-feature { min-height: 0; padding: 22px; border: 1px solid #e2e7ee; border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(25,50,86,.045); }.solution-feature.featured { grid-column: 1 / -1; min-height: 330px; display: grid; grid-template-columns: auto 1fr 1fr; align-items: start; gap: 18px; background: linear-gradient(145deg, #f7faff, #fff); }.feature-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 10px; background: #edf4ff; color: var(--primary); font-size: 21px; font-weight: 800; }.solution-feature.featured .feature-icon { margin: 0; }.solution-feature h3 { margin: 10px 0 10px; font: 800 22.5px/1.25 Manrope, sans-serif; letter-spacing: -.35px; }.solution-feature p { margin: 0; color: #697689; font-size: 17px; line-height: 1.6; }.account-example { align-self: stretch; padding: 18px; border: 1px solid #dce6f6; border-radius: 11px; background: #fff; box-shadow: 0 10px 26px rgba(29,69,129,.07); }.account-example > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f4; color: #647185; font-size: 15.5px; }.account-example > div:last-child { border: 0; }.account-example strong { color: #344054; }.account-example strong.green { color: var(--green); }.account-example .total { margin-top: 6px; padding-top: 17px; color: #344054; font-weight: 800; }.account-example .total strong { color: var(--primary); font-size: 19px; }
.steps-section { width: 100%; padding-left: max(28px, calc((100vw - 1180px) / 2)); padding-right: max(28px, calc((100vw - 1180px) / 2)); background: #f7f9fc; color: var(--ink); }.steps-list { max-width: 920px; margin: 0 auto; border-top: 1px solid #e2e7ee; }.steps-list article { display: grid; grid-template-columns: 105px 1fr; gap: 25px; padding: 29px 0; border-bottom: 1px solid #e2e7ee; }.steps-list article > strong { color: var(--primary); font: 800 31px Manrope, sans-serif; }.steps-list h3 { margin: 0 0 7px; font: 800 21px Manrope, sans-serif; }.steps-list p { max-width: 700px; margin: 0; color: #667085; font-size: 18px; line-height: 1.6; }
.experiences-section { padding-top: 64px; padding-bottom: 64px; }.experiences-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; max-width: 1000px; margin: 0 auto; }.pilot-card, .experiences-promise { border: 1px solid #dfe6ef; border-radius: 18px; background: #fff; }.pilot-card { display: flex; min-height: 330px; flex-direction: column; justify-content: space-between; padding: 38px; box-shadow: 0 18px 60px rgba(31,54,88,.08); }.pilot-status { display: flex; align-items: center; gap: 9px; color: #68778b; font-size: 15px; font-weight: 800; letter-spacing: 1px; }.pilot-status span { width: 9px; height: 9px; border-radius: 50%; background: #f5ad2f; box-shadow: 0 0 0 5px #fff4dc; }.pilot-placeholder { max-width: 600px; margin: 45px 0; color: #23344c; font: 700 clamp(22px, 3vw, 31px)/1.35 Manrope, sans-serif; letter-spacing: -.55px; }.pilot-card footer { display: flex; align-items: center; gap: 13px; }.pilot-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #102348; color: #fff; font: 800 18px Manrope, sans-serif; }.pilot-card footer p { display: grid; gap: 2px; margin: 0; }.pilot-card footer strong { color: #24354c; font-size: 18px; }.pilot-card footer small { color: #8995a5; font-size: 15.5px; }.experiences-promise { padding: 36px; background: #f4f8ff; border-color: #dbe7fa; }.experiences-promise > span { color: var(--primary); font-size: 15px; font-weight: 800; letter-spacing: 1px; }.experiences-promise h3 { margin: 15px 0 10px; color: #1c2e49; font: 800 23.5px/1.3 Manrope, sans-serif; }.experiences-promise > p { margin: 0; color: #64738a; font-size: 17px; line-height: 1.65; }.experiences-promise ul { display: grid; gap: 12px; margin: 25px 0 30px; padding: 0; list-style: none; }.experiences-promise li { position: relative; padding-left: 25px; color: #43536a; font-size: 16px; font-weight: 600; }.experiences-promise li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }.experiences-promise .marketing-primary { width: 100%; }
.pricing-section { padding-bottom: 70px; }.marketing-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }.marketing-plans article { position: relative; display: flex; flex-direction: column; padding: 27px 20px 23px; border: 1px solid #dfe5ed; border-radius: 15px; background: #fff; }.marketing-plans article.free-plan { border-color: #bcd9c9; background: linear-gradient(180deg,#f6fcf8,#fff 44%); }.marketing-plans article.recommended { border: 2px solid var(--primary); box-shadow: 0 20px 50px rgba(39,105,232,.12); }.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 11px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .6px; white-space: nowrap; }.marketing-plans article > span { color: var(--primary); font-size: 15px; font-weight: 800; letter-spacing: 1.1px; }.marketing-plans h3 { margin: 14px 0 6px; font: 800 27.5px Manrope, sans-serif; }.marketing-plans h3 small { color: #7d8999; font: 500 16px DM Sans, sans-serif; }.marketing-plans p { min-height: 74px; margin: 0; color: #697689; font-size: 17px; line-height: 1.45; }
.marketing-plans li.plan-includes { margin: 16px 0 8px; padding: 10px 0 0; border-top: 1px dashed #dfe5ed; color: #344054; font-weight: 800; font-size: 14px; letter-spacing: .2px; }.marketing-plans li.plan-includes::before { content: none; }.plan-grid li.plan-includes { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-weight: 800; }.marketing-plans ul { flex: 1; min-height: 225px; margin: 23px 0; padding: 20px 0 0; border-top: 1px solid #e8edf4; list-style: none; }.marketing-plans li { position: relative; margin: 11px 0; padding-left: 21px; color: #4f5d70; font-size: 16px; line-height: 1.35; }.marketing-plans li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }.marketing-plans li strong { color: #26364b; }.marketing-plans li.plan-inherits { color: var(--primary); font-weight: 700; }.marketing-plans li.plan-inherits::before { content: "+"; }.marketing-plans li.plan-limit { color: #8b95a5; }.marketing-plans li.plan-limit::before { content: "—"; color: #a5adba; }.marketing-plans button { width: 100%; height: 44px; border: 1px solid #ccd9ed; border-radius: 8px; background: #f5f9ff; color: var(--primary); font-size: 17px; font-weight: 800; cursor: pointer; }.marketing-plans .recommended button { border-color: var(--primary); background: var(--primary); color: #fff; }.marketing-plans .free-plan button { border-color: #a9d6bd; background: #eaf8f0; color: #16734a; }
.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }.faq-list { border-top: 1px solid #dfe5ed; }.faq-list details { border-bottom: 1px solid #dfe5ed; }.faq-list summary { position: relative; padding: 22px 42px 22px 0; list-style: none; color: #344054; font-size: 19px; font-weight: 800; cursor: pointer; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary::after { content: "+"; position: absolute; right: 5px; top: 17px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f1f4f8; color: #667085; font-size: 21px; }.faq-list details[open] summary::after { content: "−"; color: var(--primary); background: #edf4ff; }.faq-list details p { margin: -6px 45px 22px 0; color: #697689; font-size: 17px; line-height: 1.65; }
.demo-section { width: min(1180px, calc(100% - 56px)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; padding: 65px; border: 1px solid #dfe5ed; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(25,50,86,.06); }.demo-section > div > p { color: #667085; }.demo-alternative { margin-top: 28px; color: #667085; font-size: 17px; }.whatsapp-contact { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; color: #128c4b; font-size: 17px; font-weight: 800; text-decoration: none; }.whatsapp-contact[hidden] { display: none; }.whatsapp-contact svg { width: 22px; height: 22px; flex: none; fill: #25d366; }.whatsapp-contact:hover span { text-decoration: underline; }.whatsapp-contact.footer { margin: 0; gap: 6px; font-size: 16px; }.whatsapp-contact.footer svg { width: 18px; height: 18px; }
.demo-alternative button { border: 0; border-bottom: 1px solid var(--primary); padding: 0 0 3px; background: transparent; color: var(--primary); font-size: inherit; font-weight: 800; cursor: pointer; }.demo-section form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 23px; border: 1px solid #e2e7ee; border-radius: 14px; background: #f7f9fc; }.demo-section label { color: #344054; font-size: 15.5px; font-weight: 700; }.demo-section input, .demo-section select { width: 100%; height: 43px; display: block; margin-top: 6px; border: 1px solid #dfe4eb; border-radius: 8px; padding: 0 11px; outline: 0; background: #fff; color: #26364d; font-size: 16px; }.demo-section form > button { grid-column: 1 / -1; height: 46px; margin-top: 4px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }.demo-section form > p { grid-column: 1 / -1; margin: 0; padding: 10px; border-radius: 7px; background: #eef4ff; color: #1d4f91; font-size: 15.5px; line-height: 1.4; }.demo-section form > p[hidden] { display: none; }
.marketing-footer { width: min(1180px, calc(100% - 56px)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; margin: 86px auto 0; padding: 35px 0; border-top: 1px solid #e4e9f0; }.marketing-footer > p { margin: 0; color: #8591a2; font-size: 16px; }.marketing-footer > div:last-child { display: flex; align-items: center; gap: 22px; }.marketing-footer a, .marketing-footer button { border: 0; padding: 0; background: transparent; color: #667085; text-decoration: none; font-size: 16px; font-weight: 700; cursor: pointer; }.marketing-footer a:hover, .marketing-footer button:hover { color: var(--primary); }
.auth-back { border: 0; margin: 0 0 24px; padding: 0; background: transparent; color: #667085; font-size: 17px; font-weight: 700; cursor: pointer; }.auth-back:hover { color: var(--primary); }

@media (max-width: 1050px) {
  .experiences-layout { grid-template-columns: 1fr; }
  .marketing-nav { display: none; }.marketing-header { grid-template-columns: 1fr auto; }
  .marketing-hero { grid-template-columns: 1fr; padding-top: 65px; }.marketing-hero-copy { max-width: 760px; }.product-preview { width: min(760px, 100%); margin: 0 auto; transform: none; }
  .problem-grid { grid-template-columns: 1fr 1fr; }.solution-section, .faq-section { grid-template-columns: 1fr; gap: 35px; }.solution-intro { position: static; max-width: 760px; }.marketing-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }.marketing-plans p, .marketing-plans ul { min-height: 0; }.demo-section { gap: 40px; padding: 45px; }
}
@media (max-width: 760px) {
  .marketing-header { height: 66px; padding: 0 18px; }.marketing-brand small { display: none; }.marketing-header-actions .marketing-login { display: none; }.marketing-header-actions .marketing-primary { height: 38px; padding: 0 12px; font-size: 15.5px; }
  .marketing-hero, .marketing-section, .marketing-footer { width: min(100% - 36px, 1180px); }.marketing-hero { min-height: 0; padding: 60px 0 70px; gap: 45px; }.marketing-hero h1 { font-size: clamp(38px, 12vw, 52px); letter-spacing: -1.7px; }.marketing-hero-copy > p { font-size: 19px; }
  .product-preview { border-radius: 12px; }.preview-shell { min-height: 300px; grid-template-columns: 37px 1fr; }.preview-shell aside { gap: 9px; }.preview-content { padding: 16px 12px; }.preview-metrics article { padding: 8px; }.preview-table > div { padding: 0 7px; grid-template-columns: .8fr 1fr 1.2fr .8fr; }
  .marketing-section { padding-top: 78px; padding-bottom: 78px; }.marketing-section-heading h2, .solution-intro h2, .demo-section h2 { font-size: 32px; }.marketing-section-heading p, .solution-intro p, .demo-section > div > p { font-size: 18px; }.problem-section, .steps-section { padding-left: 18px; padding-right: 18px; }.problem-grid { grid-template-columns: 1fr; }.problem-grid article { min-height: 0; }
  .solution-grid { grid-template-columns: 1fr; }.solution-feature.featured { grid-column: auto; grid-template-columns: 1fr; }.solution-feature.featured .feature-icon { margin-bottom: 8px; }.solution-feature { min-height: 0; }.steps-list article { grid-template-columns: 60px 1fr; gap: 15px; }.experiences-section { padding-top: 66px; padding-bottom: 66px; }.pilot-card, .experiences-promise { padding: 24px; }.pilot-card { min-height: 285px; }.pilot-placeholder { margin: 35px 0; }
  .marketing-plans { grid-template-columns: 1fr; gap: 23px; }.marketing-plans ul { min-height: 0; }.faq-section { gap: 10px; }.demo-section { width: min(100% - 24px, 1180px); grid-template-columns: 1fr; padding: 35px 22px; border-radius: 16px; }.demo-section form { grid-template-columns: 1fr; }.demo-section form > button, .demo-section form > p { grid-column: auto; }
  .marketing-footer { grid-template-columns: 1fr; gap: 18px; margin-top: 60px; }.marketing-footer > div:last-child { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 480px) {
  .marketing-hero-actions { align-items: flex-start; flex-direction: column; gap: 11px; }.marketing-primary.large { width: 100%; }.preview-metrics article:last-child { display: none; }.preview-metrics { grid-template-columns: 1fr 1fr; }.preview-table > div { grid-template-columns: .9fr 1fr 1fr; }.preview-table > div > :nth-child(3) { display: none; }
}

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .92fr) minmax(510px, 1.08fr); background: #fff; }
.auth-showcase { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: clamp(32px, 5vw, 70px); color: #fff; background: radial-gradient(circle at 80% 18%, rgba(104,156,255,.38), transparent 28%), linear-gradient(145deg, #0e3f9f 0%, #1f63dc 55%, #3581f2 100%); }
.auth-showcase::before { content: ""; position: absolute; width: 480px; height: 480px; right: -260px; bottom: -220px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 74px rgba(255,255,255,.035), 0 0 0 148px rgba(255,255,255,.025); pointer-events: none; }
.auth-showcase-brand { position: relative; display: flex; align-items: center; gap: 12px; }
/* Sobre el fondo azul el ícono va invertido (cuadrado blanco, letra azul) y el nombre en blanco. */
.auth-brand-mark { --logo-tile: #fff; --logo-glyph: #2769e8; width: 43px; height: 43px; display: block; border-radius: 34%; box-shadow: 0 8px 20px rgba(9,30,80,.22); }
.auth-brand-mark svg { display: block; width: 100%; height: 100%; }
.auth-showcase-brand small { display: block; }.auth-showcase-brand .logo-nombre { --logo-accent: #fff; height: 20px; color: #fff; }.auth-showcase-brand small { margin-top: 5px; color: rgba(255,255,255,.68); font-size: 15.5px; }
.auth-showcase-copy { position: relative; width: min(590px, 100%); margin: auto 0; padding: 64px 0; }
.auth-kicker { color: #cfe0ff; font-size: 16px; font-weight: 800; letter-spacing: 1.35px; }
.auth-showcase-copy h1 { max-width: 560px; margin: 17px 0 17px; font: 800 clamp(34px, 4vw, 53px)/1.08 Manrope, sans-serif; letter-spacing: -1.8px; }
.auth-showcase-copy > p { max-width: 530px; margin: 0; color: rgba(255,255,255,.78); font-size: 20px; line-height: 1.65; }
.auth-feature-list { display: grid; gap: 18px; margin-top: 41px; }
.auth-feature-list > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.auth-feature-list > div > span { width: 25px; height: 25px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 16px; font-weight: 800; }
.auth-feature-list p { margin: 0; }.auth-feature-list strong, .auth-feature-list small { display: block; }.auth-feature-list strong { font-size: 19px; }.auth-feature-list small { margin-top: 4px; color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.4; }
.auth-showcase-foot { position: relative; margin: 0; color: rgba(255,255,255,.6); font-size: 16px; }
.auth-access { display: grid; place-items: center; padding: 48px clamp(28px, 7vw, 105px); background: linear-gradient(180deg, #fff, #fbfcff); }
.auth-card { width: min(440px, 100%); }
.prototype-badge { width: max-content; display: flex; align-items: center; gap: 7px; margin-bottom: 28px; padding: 7px 10px; border: 1px solid #dbe6f8; border-radius: 999px; background: #f6f9ff; color: #59708f; font-size: 16px; font-weight: 700; }
.prototype-badge span { width: 7px; height: 7px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 3px #fff2d8; }
.auth-card-heading h2 { margin: 0; color: #182230; font: 800 30px/1.2 Manrope, sans-serif; letter-spacing: -.7px; }.auth-card-heading p { margin: 9px 0 0; color: var(--muted); font-size: 19px; line-height: 1.5; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 29px 0 24px; padding: 4px; border-radius: 11px; background: #f0f3f8; }.auth-mode-switch[hidden] { display: none; }
.auth-mode-switch button { height: 42px; border: 0; border-radius: 8px; background: transparent; color: #667085; font-size: 18px; font-weight: 700; cursor: pointer; }.auth-mode-switch button.active { color: var(--primary); background: #fff; box-shadow: 0 2px 8px rgba(16,24,40,.08); }
.auth-form { display: grid; gap: 17px; }.auth-form[hidden] { display: none; }.auth-form label { display: grid; gap: 7px; color: #344054; font-size: 18px; font-weight: 700; }
.auth-form input { width: 100%; height: 48px; border: 1px solid #d9e0ea; border-radius: 9px; padding: 0 13px; outline: 0; background: #fff; color: #182230; font-size: 19px; }.auth-form input:focus { border-color: #8fb5f7; box-shadow: 0 0 0 4px #edf4ff; }
.auth-form label[hidden] { display: none; }
.auth-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.auth-check-email { display: grid; justify-items: center; gap: 14px; text-align: center; }.auth-check-email[hidden] { display: none; }
.auth-check-email p { margin: 0; color: #344054; font-size: 18px; line-height: 1.5; }.auth-check-email strong { color: #182230; overflow-wrap: anywhere; }
.auth-check-email small { color: #667085; font-size: 16px; line-height: 1.5; }
.auth-check-email-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #edf4ff; color: var(--primary); }.auth-check-email-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-register-fields { display: grid; gap: 17px; }.auth-register-fields[hidden] { display: none; }
.auth-password-field { position: relative; display: block; }.auth-password-field input { padding-right: 58px; }.auth-password-field button { position: absolute; right: 8px; top: 7px; height: 34px; border: 0; border-radius: 7px; padding: 0 9px; background: #f4f6f9; color: #667085; font-size: 16px; font-weight: 700; cursor: pointer; }
.auth-forgot { justify-self: end; margin-top: -7px; border: 0; padding: 0; background: transparent; color: var(--primary); font-size: 17px; font-weight: 700; cursor: pointer; }
.auth-form-notice { margin: -3px 0 0; padding: 10px 12px; border-radius: 8px; background: #edf4ff; color: #315c9f; font-size: 17px; line-height: 1.45; }.auth-form-notice[hidden] { display: none; }
.auth-submit { height: 50px; border: 0; border-radius: 9px; background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(39,105,232,.22); font-size: 19px; font-weight: 800; cursor: pointer; transition: .18s ease; }.auth-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.google-auth-section { display: grid; gap: 10px; margin-top: 18px; }.google-auth-section[hidden] { display: none; }
.google-auth-divider { display: flex; align-items: center; gap: 12px; color: #98a2b3; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }.google-auth-divider::before,.google-auth-divider::after { content: ""; flex: 1; height: 1px; background: #e4e7ec; }.google-auth-divider span { white-space: nowrap; }
.google-auth-button { min-height: 44px; display: flex; justify-content: center; }.google-auth-button { width: 100%; justify-content: flex-start; overflow: visible; }
.google-auth-button > div { width: auto !important; }
@media (max-width: 400px) { .google-auth-button { justify-content: center; } }
.google-auth-placeholder { width: 100%; height: 44px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; color: #344054; display: flex; align-items: center; justify-content: center; gap: 11px; font-size: 18px; font-weight: 700; }.google-auth-placeholder:disabled { cursor: not-allowed; color: #667085; background: #f8fafc; }.google-auth-placeholder svg { width: 19px; height: 19px; }
.google-auth-section small { min-height: 18px; color: #667085; font-size: 16px; line-height: 1.45; text-align: center; }
.auth-secondary-action { justify-self: center; border: 0; padding: 4px; background: transparent; color: var(--primary); font-size: 17px; font-weight: 750; cursor: pointer; }
.auth-dev-reset-link { display: inline-block; margin-top: 7px; color: var(--primary); font-weight: 800; }
.auth-prototype-note { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #7b8798; font-size: 16px; line-height: 1.55; text-align: center; }

.platform-nav-item { margin-top: 9px; border-top: 1px solid var(--line) !important; border-radius: 0 0 9px 9px !important; padding-top: 17px !important; }.platform-nav-item[hidden] { display: none; }.platform-only-badge { margin-left: auto; padding: 3px 6px; border-radius: 5px; background: #e9efff; color: #315c9f; font-size: 13px; font-weight: 900; letter-spacing: .6px; }
.platform-view { padding-bottom: 55px; }.platform-heading { align-items: end; }.platform-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }.platform-kpi-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-soft); }.platform-kpi-grid span,.platform-kpi-grid small { display: block; color: var(--muted); }.platform-kpi-grid span { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .35px; }.platform-kpi-grid strong { display: block; margin: 9px 0 4px; color: #172235; font: 800 29.5px/1 Manrope,sans-serif; }.platform-kpi-grid small { font-size: 16px; }.platform-kpi-grid .warning strong { color: #dc6803; }
.platform-list-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); overflow: hidden; }.platform-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }.platform-toolbar label { display: grid; gap: 6px; width: min(420px,100%); color: #475467; font-size: 16px; font-weight: 800; }.platform-toolbar input { height: 42px; border: 1px solid #d9e0ea; border-radius: 8px; padding: 0 12px; font-size: 18px; }.platform-toolbar p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }.platform-table-wrap { overflow-x: auto; }.platform-table { width: 100%; border-collapse: collapse; min-width: 1050px; }.platform-table th { padding: 12px 14px; background: #f8fafc; color: #667085; font-size: 15.5px; text-align: left; text-transform: uppercase; letter-spacing: .3px; }.platform-table td { padding: 14px; border-top: 1px solid #eef1f5; color: #344054; font-size: 17px; vertical-align: middle; }.platform-table td strong,.platform-table td small { display: block; }.platform-table td small { margin-top: 3px; color: var(--muted); }.platform-table select { height: 35px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; padding: 0 7px; color: #344054; font-weight: 700; }.platform-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; background: #eaf8ef; color: #18864b; font-size: 15.5px; font-weight: 800; }.platform-status.suspended { background: #fff0f0; color: #d92d20; }.platform-status.expired { background: #fff6e7; color: #b54708; }.platform-actions { display: flex; gap: 6px; white-space: nowrap; }.platform-actions button { height: 32px; border: 1px solid #d9e0ea; border-radius: 7px; padding: 0 9px; background: #fff; color: #344054; font-size: 15.5px; font-weight: 800; cursor: pointer; }.platform-actions button.danger { border-color: #f3c5c2; color: #d92d20; }.platform-actions button.success { border-color: #a9dfbe; color: #18864b; }
@media (max-width: 1050px) { .platform-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .platform-kpi-grid { grid-template-columns: 1fr; }.platform-toolbar { align-items: stretch; flex-direction: column; }.platform-toolbar p { margin: 0; } }

@media (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; background: #fff; }
  .auth-showcase { min-height: auto; padding: 27px 28px 31px; }
  .auth-showcase-copy { margin: 38px 0 0; padding: 0; }.auth-showcase-copy h1 { max-width: 620px; font-size: clamp(29px, 7vw, 42px); }.auth-showcase-copy > p { font-size: 19px; }
  .auth-feature-list, .auth-showcase-foot { display: none; }
  .auth-access { padding: 38px 24px 50px; place-items: start center; }
}
@media (max-width: 520px) {
  .auth-showcase { padding: 22px 20px 25px; }.auth-showcase-copy { margin-top: 30px; }.auth-showcase-copy h1 { margin: 12px 0; font-size: 28.5px; letter-spacing: -.9px; }.auth-showcase-copy > p { font-size: 18px; line-height: 1.5; }
  .auth-access { padding: 30px 20px 42px; }.auth-card-heading h2 { font-size: 26px; }.prototype-badge { margin-bottom: 21px; }
}

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 25px 18px 18px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 27px; }
.brand-mark { width: 38px; height: 38px; display: block; border-radius: 34%; box-shadow: 0 7px 16px rgba(39, 105, 232, .22); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand .logo-nombre { height: 19px; }
.brand span { display: block; color: #98a2b3; font-size: 14px; white-space: nowrap; margin-top: 5px; }
.nav { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; width: 100%; height: 45px; border-radius: 9px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; text-align: left; padding: 0 12px; color: #5e6b7d; font-weight: 600; font-size: 17px; cursor: pointer; transition: .18s ease; }
.nav-item:hover { background: #f6f8fc; color: var(--ink); }
.nav-item.active { background: #edf4ff; color: var(--primary); }
.nav-icon { width: 21px; height: 21px; display: grid; place-items: center; color: currentColor; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Contador del menú: un círculo (o píldora si tiene dos cifras). */
.nav-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #dfeaff; color: var(--primary); font-size: 13px; font-weight: 700; line-height: 1; }
.sidebar-footer { margin-top: auto; }
.support-options { display: grid; grid-template-columns: minmax(0, 560px); gap: 14px; }
.support-options article { display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 12px; min-height: 170px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }
.support-options strong { display: block; margin: 2px 0 5px; font: 800 15.5px Manrope, sans-serif; }
.support-options p { min-height: 50px; margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.support-option-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--primary); font-size: 19.5px; font-weight: 800; }
.support-option-icon.whatsapp { background: #e9f9ef; color: #168b4b; }
.support-option-icon svg { width: 20px; height: 20px; fill: currentColor; }
.support-options button { width: auto; }
.support-contact-button { background: #168b4b; }
.support-contact-button:hover { background: #11783f; }
@media (max-width: 760px) { .support-options { grid-template-columns: 1fr; } }
.profile { border: 0; border-top: 1px solid var(--line); background: none; width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; text-align: left; padding: 15px 8px 1px; cursor: pointer; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #e9f0fe; color: var(--primary); font-weight: 700; font-size: 15.5px; }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 15.5px; }.profile small { font-size: 14.5px; color: #98a2b3; margin-top: 2px; }.chevron { color: #98a2b3; }
.profile-control { position: relative; }.profile-menu { position: absolute; left: -3px; right: -3px; bottom: 51px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(16,24,40,.16); z-index: 20; }.profile-menu[hidden] { display: none; }.avatar.small { width: 29px; height: 29px; font-size: 14px; }.profile-menu p { margin: 0; }.profile-menu p strong, .profile-menu p small { display: block; }.profile-menu p strong { font-size: 14px; }.profile-menu p small { margin-top: 2px; color: var(--muted); font-size: 12px; }.profile-menu > button { width: 100%; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 6px; border: 0; border-bottom: 1px solid #f0f2f5; background: #fff; padding: 10px 12px; text-align: left; cursor: pointer; }.profile-menu > button:hover { background: #f7faff; }.profile-menu > button > span { color: #667085; font-size: 17px; }.profile-menu > button.logout { border: 0; }.profile-menu > button.logout strong, .profile-menu > button.logout > span { color: var(--red); }

.main { min-width: 0; padding: 31px clamp(24px, 3vw, 48px) 50px; max-width: 1600px; width: 100%; margin: 0 auto; }
.support-mode-banner { position: sticky; top: 10px; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -17px 0 20px; padding: 11px 14px; border: 1px solid #f5c677; border-radius: 11px; background: #fff8e8; box-shadow: 0 8px 24px rgba(181,113,0,.12); color: #7a4b00; }.support-mode-banner[hidden] { display: none; }.support-mode-banner div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }.support-mode-banner span { font-size: 14px; font-weight: 900; letter-spacing: .7px; }.support-mode-banner strong { font-size: 17px; }.support-mode-banner small { color: #986a20; font-size: 15.5px; }.support-mode-banner button { height: 33px; border: 1px solid #e7ad4f; border-radius: 7px; padding: 0 11px; background: #fff; color: #7a4b00; font-size: 15.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 31px; }
.greeting h1 { font: 800 23.5px/1.2 Manrope, sans-serif; letter-spacing: -.55px; margin: 0 0 5px; }.greeting h1 span { font-size: 21px; }.greeting p { margin: 0; color: var(--muted); font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 11px; }.icon-button { position: relative; width: 39px; height: 39px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; }.notification-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #f04438; right: 8px; top: 7px; border: 1.5px solid #fff; }
.primary-button, .secondary-button { border-radius: 8px; height: 39px; border: 0; padding: 0 15px; font-size: 15.5px; font-weight: 700; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.primary-button { background: var(--primary); color: #fff; box-shadow: 0 3px 8px rgba(39, 105, 232, .16); }.primary-button:hover { background: var(--primary-dark); transform: translateY(-1px); }.primary-button span { font-size: 20px; vertical-align: -1px; margin-right: 3px; }.secondary-button { background: #fff; border: 1px solid var(--line); color: #475467; }.secondary-button:hover { background: #f8fafc; }.primary-button.soft { background: #edf4ff; color: var(--primary); box-shadow: none; }.primary-button.soft:hover { background: #dfeaff; }
.mobile-menu { display: none; }

.month-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(360px, 430px); align-items: center; gap: 24px; margin-bottom: 22px; }
.eyebrow { color: #98a2b3; font-size: 13.5px; font-weight: 700; letter-spacing: .9px; }
/* Selector de mes: flechas grandes y el nombre del mes abre una lista para saltar a cualquier mes. */
/* Las dos flechas van juntas a la izquierda: nunca se mueven; el nombre del mes crece hacia la derecha. */
.month-selector { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 4px; }.month-selector .month-prev { order: 0; }.month-selector .month-next { order: 1; }.month-selector .period-button { order: 2; margin-left: 4px; }.month-selector .period-menu { order: 3; }.month-selector h2 { margin: 0; font: 800 21px Manrope, sans-serif; letter-spacing: -.4px; }
.month-selector .month-prev, .month-selector .month-next { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #475467; cursor: pointer; }.month-selector .month-prev:hover, .month-selector .month-next:hover { border-color: var(--primary); color: var(--primary); }.month-selector .month-prev .icon-svg, .month-selector .month-next .icon-svg { width: 18px; height: 18px; }
.period-button { display: inline-flex; align-items: center; gap: 6px; height: 36px; border: 1px solid transparent; border-radius: 10px; padding: 0 8px; background: none; color: inherit; cursor: pointer; }.period-button:hover, .period-button[aria-expanded="true"] { border-color: var(--line); background: #fff; }.period-button .icon-svg { width: 16px; height: 16px; color: #98a2b3; }
.period-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 88px; width: 230px; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(16,24,40,.16); }.period-menu[hidden] { display: none; }
.period-menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; border-radius: 8px; padding: 8px 10px; background: none; color: #344054; font: 600 14px DM Sans, sans-serif; text-align: left; cursor: pointer; }.period-menu button:hover { background: #f2f6fd; }.period-menu button.selected { background: #eef4ff; color: var(--primary); }.period-menu button small { color: #98a2b3; font-size: 11px; font-weight: 700; letter-spacing: .4px; }.period-menu button.selected small { color: var(--primary); }
input[data-mask][aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(223,76,86,.12); }
.period-menu .period-menu-year { padding: 8px 10px 3px; color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: .6px; }
.month-financial-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(135px, .85fr); align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(16,24,40,.04); }
.collection-summary { min-width: 0; text-align: left; }.collection-summary > span, .collection-summary small { display: block; color: var(--muted); font-size: 14.5px; }.collection-summary strong { display: block; font: 800 21.5px Manrope, sans-serif; letter-spacing: -.45px; margin: 2px 0; }.collection-summary small { color: #98a2b3; font-size: 14px; }.collection-summary small span { display: inline; }
.home-collection-track { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e8edf4; }.home-collection-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width .25s ease; }
.progress-ring { --size: 48px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--progress) * 1%), #e7ecf3 0); position: relative; }.progress-ring::before { content: ""; position: absolute; width: 37px; height: 37px; background: var(--canvas); border-radius: 50%; }.progress-ring span { position: relative; font-size: 14px; font-weight: 700; color: var(--primary); }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 17px; }
.status-card { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 15px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; text-align: left; box-shadow: 0 1px 2px rgba(16,24,40,.02); cursor: pointer; transition: .2s ease; }.status-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8e0eb; }.status-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-right: 12px; }.status-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.neutral .status-icon { color: var(--orange); background: var(--orange-soft); }.info .status-icon { color: var(--primary); background: var(--blue-soft); }.success .status-icon { color: var(--green); background: var(--green-soft); }.danger .status-icon { color: var(--red); background: var(--red-soft); }.status-copy { min-width: 0; }.status-copy small { display: block; color: var(--muted); font-size: 14.5px; }.status-copy strong { font: 800 23.5px Manrope, sans-serif; letter-spacing: -.5px; margin-right: 6px; }.status-copy em { font-style: normal; color: #98a2b3; font-size: 13.5px; }.status-arrow { color: #b0b8c4; }

.workspace-card, .attention-card, .activity-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.workspace-header { padding: 19px 20px 15px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }.workspace-header h3, .section-title h3 { font: 800 18px Manrope, sans-serif; letter-spacing: -.25px; margin: 0 0 4px; }.workspace-header p { color: var(--muted); font-size: 14.5px; margin: 0; }.workspace-actions { display: flex; align-items: center; gap: 7px; }.search-box { height: 36px; width: min(235px, 19vw); border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: #98a2b3; }.search-box input { width: 100%; border: 0; outline: 0; font-size: 15px; color: var(--ink); }.search-box input::placeholder { color: #98a2b3; }.workspace-actions .secondary-button, .workspace-actions .primary-button { height: 36px; font-size: 14.5px; padding: 0 11px; }
#activeFilterBadge:not(:empty) { display: inline-grid; place-items: center; margin-left: 4px; border-radius: 50%; width: 15px; height: 15px; background: var(--primary); color: #fff; font-size: 13px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }table { width: 100%; border-collapse: collapse; min-width: 900px; }th { background: #fbfcfe; color: #8b96a7; font-size: 12.5px; letter-spacing: .45px; font-weight: 700; text-align: left; height: 34px; padding: 0 13px; white-space: nowrap; }th:first-child, td:first-child { padding-left: 20px; }td { height: 58px; border-top: 1px solid #f0f2f5; padding: 0 13px; font-size: 14.5px; color: #475467; white-space: nowrap; }tbody tr { transition: background .15s ease; }tbody tr:hover { background: #fafcff; }.status-pill { border-radius: 99px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; font-size: 13px; font-weight: 700; }.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-pill.a-notificar { color: var(--orange); background: var(--orange-soft); }.status-pill.notificado { color: var(--primary); background: var(--blue-soft); }.status-pill.pagado { color: var(--green); background: var(--green-soft); }.status-pill.vencido { color: var(--red); background: var(--red-soft); }.tenant-cell { display: flex; align-items: center; gap: 8px; }.tenant-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: 13px; color: #506079; background: #eef1f6; }.tenant-cell strong, .property-cell strong { display: block; font-size: 14.5px; color: #344054; }.tenant-cell small, .property-cell small { display: block; color: #98a2b3; font-size: 13px; margin-top: 2px; }.amount { color: #344054; font-weight: 700; }.overdue-date { color: var(--red); font-weight: 600; }.activity-note { color: #7b8798; font-size: 13.5px; }.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }.contract-row-actions { min-width: 174px; }.contract-quick-channel { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: #fff; color: #7b8798; font-size: 15.5px; font-weight: 800; cursor: pointer; transition: .15s ease; }.contract-quick-channel.whatsapp { color: #168c55; background: #f3fbf7; border-color: #d9f1e4; }.contract-quick-channel.email { color: var(--primary); background: #f6f9ff; border-color: #d9e7ff; }.contract-quick-channel.copy, .contract-quick-channel.receipt { border-color: #e3e8ef; }.contract-quick-channel.menu { border-color: transparent; background: #f5f7fa; font-size: 19px; }.contract-quick-channel:hover { filter: brightness(.96); transform: translateY(-1px); }.contract-quick-menu { position: fixed; z-index: 80; width: 145px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(16,24,40,.16); }.contract-quick-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #344054; font: 700 13.5px Manrope, sans-serif; text-align: left; cursor: pointer; }.contract-quick-menu button:hover { background: #f5f7fa; }.contract-quick-menu span { width: 16px; color: var(--primary); text-align: center; }.row-button { min-width: 66px; border: 1px solid var(--line); background: #fff; color: #475467; height: 27px; padding: 0 8px; border-radius: 6px; font-size: 13.5px; font-weight: 700; cursor: pointer; }.row-button.primary { color: var(--primary); background: var(--blue-soft); border-color: #d9e7ff; }.row-button.danger { color: var(--red); background: var(--red-soft); border-color: #f9d9dc; }.row-button:hover { filter: brightness(.97); }.more-button { width: 26px; border: 0; background: none; color: #98a2b3; cursor: pointer; }.empty-state { padding: 45px; text-align: center; }.empty-state span { display: block; font-size: 25px; color: #98a2b3; }.empty-state strong { display: block; font-size: 17px; margin: 8px 0 3px; }.empty-state p { margin: 0; color: var(--muted); font-size: 15px; }
.table-footer { padding: 11px 20px; display: flex; justify-content: space-between; align-items: center; color: #98a2b3; font-size: 13.5px; }.pagination { display: flex; gap: 3px; }.pagination button { min-width: 24px; height: 24px; padding: 0 5px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #667085; font-size: 13.5px; cursor: pointer; }.pagination button.active { border-color: #c9d9f7; background: #edf4ff; color: var(--primary); font-weight: 700; }.pagination button:disabled { opacity: .35; }

.bottom-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 15px; margin-top: 17px; }.attention-card, .activity-card { padding: 17px 19px 4px; }.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }.section-title > div { display: flex; align-items: center; gap: 8px; }.section-title h3 { margin: 0; }.section-title > button { border: 0; background: none; color: var(--primary); font-size: 13.5px; font-weight: 700; cursor: pointer; }.mini-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 16px; }.mini-icon.purple { background: #f1edff; color: var(--purple); }.mini-icon.blue { background: var(--blue-soft); color: var(--primary); }.adjustment-item { display: grid; grid-template-columns: auto minmax(140px, 1fr) auto auto; align-items: center; gap: 11px; border-top: 1px solid #f0f2f5; padding: 11px 0; }.date-box { width: 36px; height: 39px; border-radius: 8px; background: #f5f2ff; color: var(--purple); display: grid; place-content: center; text-align: center; }.date-box strong { font: 800 17px/1 Manrope, sans-serif; }.date-box span { font-size: 12px; font-weight: 700; margin-top: 2px; }.adjustment-copy strong, .adjustment-copy span { display: block; }.adjustment-copy strong { font-size: 14px; }.adjustment-copy span { color: #98a2b3; font-size: 13px; margin-top: 3px; }.amount-change { text-align: right; }.amount-change span { color: #98a2b3; text-decoration: line-through; font-size: 12.5px; }.amount-change strong { display: block; font-size: 14px; margin: 1px 0; }.amount-change em { font-style: normal; color: var(--green); font-size: 12.5px; font-weight: 700; }.amount-change em.waiting { color: var(--orange); }.review-button { border: 1px solid var(--line); background: #fff; border-radius: 6px; height: 27px; padding: 0 9px; color: #5c697a; font-size: 13px; font-weight: 700; cursor: pointer; }.activity-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border-top: 1px solid #f0f2f5; padding: 10px 0; }.activity-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 700; }.activity-icon.success { background: var(--green-soft); color: var(--green); }.activity-icon.info { background: var(--blue-soft); color: var(--primary); }.activity-icon.purple { background: #f1edff; color: var(--purple); }.activity-item strong { font-size: 14px; }.activity-item p { color: #98a2b3; font-size: 13px; margin: 2px 0 0; }.activity-item time { color: #98a2b3; font-size: 12.5px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 22, 37, .46); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 50; }.modal-backdrop[hidden] { display: none; }#bankAccountModal { z-index: 60; }.modal { width: min(440px, 100%); position: relative; background: #fff; border-radius: 17px; padding: 27px; box-shadow: 0 24px 70px rgba(18, 34, 57, .24); }.modal-close { position: absolute; right: 15px; top: 14px; border: 0; background: transparent; color: #98a2b3; font-size: 23.5px; cursor: pointer; }.modal-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--blue-soft); color: var(--primary); font-size: 21px; }.modal h2 { font: 800 21.5px Manrope, sans-serif; margin: 16px 0 5px; }.modal > p { color: var(--muted); font-size: 15.5px; line-height: 1.5; margin: 0; }.upload-zone:hover { border-color: var(--primary); background: #f5f9ff; }.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.modal-actions.full { justify-content: flex-end; }.modal-actions.full .archive-person-button { margin-right: auto; }.modal-actions > button { min-width: 0; white-space: nowrap; }.toast { position: fixed; right: 25px; bottom: 25px; max-width: calc(100vw - 24px); display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; min-width: 280px; padding: 13px 16px; background: #152536; color: #fff; border-radius: 11px; box-shadow: 0 16px 40px rgba(0,0,0,.2); transform: translateY(130%); opacity: 0; transition: .3s ease; z-index: 80; }.toast.show { transform: translateY(0); opacity: 1; }.toast > span { width: 27px; height: 27px; display: grid; place-items: center; background: var(--green); border-radius: 50%; font-size: 15.5px; }.toast strong { font-size: 15px; }.toast p { color: #b8c2cf; font-size: 13.5px; margin: 2px 0 0; }

@media (max-width: 1120px) { .status-grid { grid-template-columns: repeat(2, 1fr); }.bottom-grid { grid-template-columns: 1fr; }.workspace-header { align-items: flex-start; flex-direction: column; }.workspace-actions { width: 100%; }.search-box { width: 100%; flex: 1; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { position: fixed; transform: translateX(-102%); transition: .25s ease; width: 248px; box-shadow: 15px 0 40px rgba(16,24,40,.14); }.sidebar.open { transform: translateX(0); }.main { padding: 22px 16px 40px; }.mobile-menu { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 9px; }.greeting { margin-right: auto; }.greeting h1 { font-size: 20px; }.greeting p { display: none; }.top-actions .icon-button { display: none; }.top-actions .primary-button { font-size: 0; width: 39px; padding: 0; }.top-actions .primary-button span { font-size: 22.5px; margin: 0; }.month-row { grid-template-columns: 1fr; }.month-financial-card { display: none; }.status-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.status-card { padding: 12px 10px; }.status-icon { width: 32px; height: 32px; margin-right: 8px; }.status-copy strong { font-size: 21px; }.status-copy em, .status-arrow { display: none; }.workspace-actions { display: grid; grid-template-columns: 1fr auto; }.search-box { grid-column: 1 / -1; width: 100%; }.primary-button.soft { grid-column: 1 / -1; }.table-footer { flex-direction: column; gap: 10px; }.adjustment-item { grid-template-columns: auto 1fr auto; }.amount-change { display: none; } }
@media (max-width: 760px) { .support-mode-banner { align-items: stretch; flex-direction: column; margin-top: -8px; }.support-mode-banner button { width: 100%; } }
@media (max-width: 430px) { .status-grid { grid-template-columns: 1fr; }.adjustment-item { grid-template-columns: auto 1fr; }.review-button { display: none; } }

/* Navegación móvil y métricas económicas */
.sidebar-close { display: none; margin-left: auto; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: #667085; font-size: 19.5px; cursor: pointer; }
.sidebar-overlay { display: none; position: fixed; inset: 0; border: 0; background: rgba(16, 24, 40, .34); backdrop-filter: blur(2px); z-index: 9; }
.new-contract-control { position: relative; }
.new-contract-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 235px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 16px 38px rgba(25, 39, 61, .16); z-index: 30; animation: menuIn .16s ease; }
.new-contract-menu[hidden] { display: none; }
.new-contract-menu button { width: 100%; border: 0; border-radius: 8px; background: #fff; padding: 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; text-align: left; cursor: pointer; }
.new-contract-menu button:hover { background: #f4f7fc; }
.new-contract-menu button > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--primary); }
.new-contract-menu strong, .new-contract-menu small { display: block; }.new-contract-menu strong { font-size: 14.5px; }.new-contract-menu small { margin-top: 2px; color: #98a2b3; font-size: 13px; }.new-contract-menu em { color: #98a2b3; font-style: normal; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.new-contract-control > .primary-button::after { content: attr(data-tooltip); position: absolute; right: 0; top: calc(100% + 7px); width: max-content; padding: 6px 8px; border-radius: 6px; background: #182230; color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; opacity: 0; transform: translateY(-3px); transition: .15s ease; z-index: 29; }
.new-contract-control > .primary-button:hover::after { opacity: 1; transform: none; }
.new-contract-control:has(.new-contract-menu:not([hidden])) > .primary-button::after { display: none; }
.month-row { grid-template-columns: minmax(220px, 1fr) minmax(360px, 430px); }
.fee-summary { min-width: 0; border-left: 1px solid var(--line); padding-left: 16px; }
.fee-summary span, .fee-summary small { display: block; color: var(--muted); font-size: 14.5px; }
.fee-summary strong { display: block; font: 800 20px Manrope, sans-serif; letter-spacing: -.35px; margin: 3px 0; color: var(--green); }
.fee-summary small { color: #98a2b3; font-size: 14px; }
.progress-wrap { display: grid; justify-items: center; gap: 4px; }
.progress-wrap small { font-size: 12.5px; color: #98a2b3; white-space: nowrap; }

/* Asistente de carga de contratos */
.contract-modal { width: min(760px, calc(100vw - 32px)); max-height: min(850px, calc(100dvh - 34px)); overflow-y: auto; padding: 26px 29px 22px; }
.wizard-heading { display: flex; gap: 13px; align-items: flex-start; padding-right: 32px; }
.wizard-heading .modal-icon { flex: 0 0 auto; }
.wizard-heading h2 { margin: 3px 0 3px; }
.wizard-heading p { margin: 0; color: var(--muted); font-size: 15px; }
/* --wizard-steps es la cantidad de marcadores visibles (lo fija app.js): la línea arranca en el centro
   del primero y termina en el centro del último. */
.wizard-progress { position: relative; display: grid; grid-template-columns: repeat(var(--wizard-steps, 4), 1fr); margin: 24px 4px 26px; }
.wizard-progress[hidden] { display: none; }
.wizard-progress-line { position: absolute; height: 2px; top: 13px; left: calc(50% / var(--wizard-steps, 4)); right: calc(50% / var(--wizard-steps, 4)); background: #e6eaf0; }
.wizard-progress-line span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .25s ease; }
.wizard-marker { position: relative; display: grid; justify-items: center; gap: 5px; border: 0; padding: 0; background: none; color: #98a2b3; font-size: 13px; z-index: 1; cursor: default; }
.wizard-marker > span { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid #dfe4eb; font-size: 14px; font-weight: 700; transition: .2s ease; }
.wizard-marker.active, .wizard-marker.complete { color: var(--primary); font-weight: 700; }
.wizard-marker.active > span { border-color: var(--primary); color: #fff; background: var(--primary); box-shadow: 0 0 0 4px #edf4ff; }
.wizard-marker.complete > span { border-color: var(--primary); color: var(--primary); background: #edf4ff; }
.wizard-marker.complete { cursor: pointer; }.wizard-marker.complete:hover > span { background: #dbe8ff; }.wizard-marker:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wizard-step { display: none; min-height: 310px; }
.wizard-step.active { display: block; animation: stepIn .22s ease; }
.inline-create-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #cfe0fb; border-radius: 10px; background: #f4f8ff; color: #48617f; }
.inline-create-note > span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 7px; background: #dceaff; color: #1874d1; font-weight: 800; }
.inline-create-note p { margin: 0; font-size: 14px; line-height: 1.45; }
.inline-create-note strong { display: block; color: #183b63; font-size: 14.5px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-label-row button { border: 0; padding: 0; background: transparent; color: #1677d2; font: inherit; font-weight: 750; cursor: pointer; }
.quick-property-fields { padding: 12px; border: 1px solid #cfe0fb; border-radius: 11px; background: #f8fbff; }
.quick-property-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.quick-property-heading strong, .quick-property-heading small { display: block; }
.quick-property-heading strong { color: #183b63; font-size: 15px; }
.quick-property-heading small { margin-top: 2px; color: #718198; font-size: 13px; }
.quick-property-heading button { border: 0; background: transparent; color: #667085; font-size: 13px; font-weight: 750; cursor: pointer; }
.completion-badge { display: inline-flex; margin-top: 4px; padding: 3px 6px; border-radius: 99px; background: #fff4e7; color: #b45f06; font-size: 12px; font-weight: 750; }
@keyframes stepIn { from { opacity: 0; transform: translateX(7px); } to { opacity: 1; transform: none; } }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method-card { position: relative; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; padding: 17px; cursor: pointer; transition: .18s ease; }
.method-card:hover { border-color: #b8cdf6; transform: translateY(-1px); }
.method-card.selected { border-color: var(--primary); background: #f7faff; box-shadow: 0 0 0 3px #edf4ff; }
.method-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 19px; margin-bottom: 11px; }
.method-icon.ai { color: var(--purple); background: #f2edff; }.method-icon.manual { color: var(--primary); background: var(--blue-soft); }
.method-card strong { display: block; font-size: 15.5px; }.method-card p { margin: 5px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }.method-card em { color: var(--primary); background: var(--blue-soft); border-radius: 99px; padding: 4px 7px; font-style: normal; font-size: 12.5px; font-weight: 700; }

.contract-modal .upload-zone[hidden], .contract-modal .ai-note[hidden] { display: none; }
.ai-note, .calculation-note { display: flex; align-items: flex-start; gap: 9px; border-radius: 9px; background: #f6f2ff; color: #5d4a87; padding: 10px 12px; }
.ai-note > span, .calculation-note > span { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; background: #fff; display: grid; place-items: center; color: var(--purple); font-size: 14px; }
.ai-note p, .calculation-note p { margin: 0; font-size: 13.5px; line-height: 1.45; }
/* Lectura de contratos con IA: tarjeta sin cupo, archivos elegidos y qué revisar después de leer. */
.method-card.unavailable { cursor: default; background: #fafbfc; }
.method-card.unavailable:hover { border-color: var(--line); transform: none; }
.method-card.unavailable em { color: #667085; background: #f2f4f7; }

.upload-file-list { list-style: none; margin: 0 0 11px; padding: 0; display: grid; gap: 6px; }
.upload-file-list[hidden], .ai-usage[hidden], .ai-result-note[hidden] { display: none; }
.upload-ready { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 15px 0 8px; }
.upload-ready[hidden] { display: none; }
.upload-ready strong { color: var(--green); font-size: 15px; }
.upload-ready span { color: var(--muted); font-size: 13px; }
.upload-file-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1.5px solid #b9d9c6; border-radius: 11px; background: #f3fbf6; font-size: 14px; }
.upload-file-icon { min-width: 42px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid #d7e7dd; color: var(--purple); font-size: 11.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.upload-file-list li > div { min-width: 0; }
.upload-file-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.upload-file-list small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; }
.upload-file-list em { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; font-size: 13px; font-weight: 800; }

.upload-zone.compact strong { margin: 0; color: var(--primary); font-size: 14.5px; }
.upload-mobile { display: grid; gap: 8px; margin: 15px 0 11px; }
.upload-mobile[hidden] { display: none; }
.upload-mobile-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer; }
.upload-mobile-button.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.upload-mobile-button span { font-size: 19px; }
.upload-mobile-button strong { font-size: 15.5px; }
.upload-mobile-button:focus-within { box-shadow: 0 0 0 3px #cfe0fb; }
/* Íconos de línea (sin emojis): toman el color y el tamaño del texto que los rodea. */
.icon-svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.upload-mobile-button span { display: inline-flex; }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.ai-usage { margin: -4px 0 11px; color: var(--muted); font-size: 13px; }
.ai-usage:empty { display: none; }
.ai-result-note { margin: 0 0 16px; padding: 11px 13px; border: 1px solid #ddd2fb; border-radius: 10px; background: #f6f2ff; color: #4b3a75; font-size: 13.5px; line-height: 1.45; }
.ai-result-note strong { display: block; font-size: 14px; }
.ai-result-note p { margin: 3px 0 0; }
.ai-result-note ul { margin: 6px 0 0; padding-left: 18px; }
.ai-result-note ul:empty { display: none; }
.ai-result-block { margin-top: 9px; padding-top: 8px; border-top: 1px solid #e4dafb; }
.ai-result-block[hidden] { display: none; }
.ai-result-block > span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #6b54a3; }
.ai-result-block p { margin: 3px 0 0; }
.ai-account-check { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-weight: 600; cursor: pointer; }
.ai-account-check input { width: 16px; height: 16px; margin: 0; }
.step-intro { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }.step-intro h3 { margin: 0 0 3px; font: 800 18px Manrope, sans-serif; }.step-intro p { margin: 0; color: var(--muted); font-size: 14px; }.ai-complete { padding: 5px 8px; border-radius: 99px; background: #f2edff; color: var(--purple); font-size: 12.5px; font-weight: 700; }
.form-section { border: 1px solid var(--line); border-radius: 11px; padding: 15px; margin-bottom: 11px; }
.existing-contract-toggle { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; padding: 12px 14px; border: 1px solid #d7e4f8; border-radius: 10px; background: #f7faff; cursor: pointer; }.existing-contract-toggle input { margin-top: 2px; accent-color: var(--primary); }.existing-contract-toggle span, .existing-contract-toggle strong, .existing-contract-toggle small { display: block; }.existing-contract-toggle strong { color: #344054; font-size: 14px; }.existing-contract-toggle small { margin-top: 3px; color: #667085; font-size: 12.5px; line-height: 1.4; }.existing-contract-fields { margin-top: 15px; padding-top: 14px; border-top: 1px dashed #d8e1ed; }.existing-contract-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }.existing-contract-heading strong { color: #344054; font-size: 14px; }.existing-contract-heading span { color: #7b8798; font-size: 12.5px; }
.form-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }.form-section-title strong { font-size: 15px; }.form-section-title button { margin-left: auto; border: 0; background: none; color: var(--red); font-size: 13px; cursor: pointer; }.person-number { width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center; background: var(--blue-soft); color: var(--primary); font-size: 13px; font-weight: 700; }
.person-number.owner { background: #f2edff; color: var(--purple); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }.form-grid label, .fee-fields label { color: #475467; font-size: 13px; font-weight: 700; }.form-grid label.wide { grid-column: span 2; }.form-grid label.full { grid-column: 1 / -1; }
.form-grid > .full { grid-column: 1 / -1; }.contract-property-field label { color: #475467; font-size: 13px; font-weight: 700; }.contract-property-field > input { width: 100%; height: 35px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; outline: 0; padding: 0 10px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 500; }.contract-property-field > input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #edf4ff; }
.form-grid input, .form-grid select, .fee-fields input, .fee-fields select { width: 100%; height: 35px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; outline: 0; padding: 0 10px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 500; transition: border-color .15s ease, box-shadow .15s ease; }
.form-grid input:focus, .form-grid select:focus, .fee-fields input:focus, .fee-fields select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #edf4ff; }
.add-person-button { border: 0; background: none; color: var(--primary); font-size: 13.5px; font-weight: 700; padding: 1px 0 13px; cursor: pointer; }.optional-person[hidden] { display: none; }

.subsection-heading { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; }.subsection-heading h4 { margin: 0 0 2px; font-size: 15px; }.subsection-heading p { margin: 0; font-size: 13px; color: var(--muted); }.subsection-heading button { height: 27px; border: 1px solid #cfe0fd; border-radius: 6px; background: var(--blue-soft); color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.contract-subheading { margin-top: 17px; }.penalty-section { background: #fffdf9; border-color: #f1e7d6; }.penalty-note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.person-number.guarantor { background: #eef1f5; color: #475467; }
.guarantee-section .form-grid label > span { display: block; }.guarantee-note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.input-prefix, .input-suffix { position: relative; }.input-prefix > span { position: absolute; left: 10px; top: 15px; color: #98a2b3; font-size: 14px; z-index: 1; }.input-prefix input { padding-left: 22px; }.calculation-note { background: #eef6ff; color: #40628e; margin-top: 12px; }.calculation-note > span { color: var(--primary); border-radius: 50%; }
.fee-toggle-card { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; }.fee-toggle-card > div { display: flex; align-items: center; gap: 10px; }.fee-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); font-weight: 800; }.fee-toggle-card strong { font-size: 15px; }.fee-toggle-card p { font-size: 13px; color: var(--muted); margin: 3px 0 0; }.switch { position: relative; flex-shrink: 0; }.switch input { position: absolute; opacity: 0; }.switch span { position: relative; width: 37px; height: 21px; display: block; border-radius: 99px; background: #cfd5df; cursor: pointer; transition: .2s; }.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.16); transition: .2s; }.switch input:checked + span { background: var(--primary); }.switch input:checked + span::after { transform: translateX(16px); }
.fee-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 13px 0; }.input-suffix span { position: absolute; right: 11px; top: 15px; font-size: 14px; color: #667085; }.input-suffix input { padding-right: 25px; }.fee-fields.disabled { opacity: .45; pointer-events: none; }
.fee-preview { display: grid; grid-template-columns: 1fr auto 1fr auto 1.35fr; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid #d7e4fb; border-radius: 11px; background: #f7faff; }.fee-preview div span, .fee-preview div small { display: block; color: var(--muted); font-size: 12.5px; }.fee-preview div strong { display: block; font: 800 16px Manrope, sans-serif; margin-top: 3px; }.preview-operator { color: #98a2b3; }.fee-preview .preview-result { border-left: 1px solid #dbe6f7; padding-left: 13px; }.fee-preview .preview-result strong { color: var(--green); font-size: 15px; }.contract-summary { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }.contract-summary h4 { margin: 0 0 9px; font-size: 14px; }.contract-summary > div { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 10px; }.contract-summary span { color: var(--muted); font-size: 12.5px; }.contract-summary strong { display: block; color: #344054; font-size: 13.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-payment-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 11px; padding: 10px 12px; border: 1px solid #dce8f9; border-radius: 9px; background: #fbfdff; }.split-payment-note > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--primary); background: var(--blue-soft); }.split-payment-note strong { font-size: 13.5px; }.split-payment-note p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }.split-payment-note button { border: 0; background: none; color: var(--primary); font-size: 12.5px; font-weight: 700; cursor: pointer; }.split-accounts[hidden] { display: none; }.split-accounts > div > .text-button { margin-left: auto; flex-shrink: 0; }.contract-summary > div { grid-template-columns: 1fr 1fr 1.4fr 1fr; }
.wizard-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); justify-content: space-between; }.wizard-actions > div { display: flex; gap: 7px; }.wizard-actions button[hidden] { display: none; }.wizard-actions .primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

@media (max-width: 1120px) { .month-row { grid-template-columns: minmax(180px, 1fr) minmax(340px, 390px); } }
@media (max-width: 760px) {
  .sidebar-close { display: grid; place-items: center; }.sidebar-overlay:not([hidden]) { display: block; }.brand { padding-right: 0; }.brand > div { min-width: 0; }.brand span { white-space: normal; }
  .month-row { grid-template-columns: 1fr; }.progress-wrap small { display: block; }.contract-modal { padding: 23px 18px 17px; max-height: calc(100dvh - 18px); width: 100%; }.wizard-progress { margin-left: -7px; margin-right: -7px; }.wizard-marker small { font-size: 12px; }.method-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr 1fr; }.form-grid label.wide { grid-column: span 1; }.fee-preview { grid-template-columns: 1fr auto 1fr; }.fee-preview .preview-result { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #dbe6f7; padding: 9px 0 0; }.fee-preview > .preview-operator:nth-of-type(2) { display: none; }.contract-summary > div { grid-template-columns: 1fr; }.wizard-step { min-height: 0; }
}
@media (max-width: 430px) { .form-grid, .fee-fields { grid-template-columns: 1fr; }.form-grid label.wide { grid-column: auto; }.wizard-heading .modal-icon { display: none; }.wizard-heading { padding-right: 20px; }.wizard-marker small { max-width: 74px; text-align: center; } }

/* Vistas de contratos y estadísticas */
.view-page[hidden] { display: none; }
.page-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 6px 0 22px; }
.page-heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }.page-heading-actions .secondary-button { display: inline-flex; align-items: center; gap: 6px; }.page-heading-actions .secondary-button .icon-svg { width: 16px; height: 16px; }
.wizard-doc-note { margin: 8px 0 0; padding: 7px 10px; border: 1px solid #bfd7f5; border-radius: 8px; background: #eef5ff; color: #1d4f91; font-size: 13px; line-height: 1.4; }.wizard-doc-note[hidden] { display: none; }
.page-heading-row h2 { margin: 4px 0 4px; font: 800 25px Manrope, sans-serif; letter-spacing: -.6px; }.page-heading-row p { margin: 0; color: var(--muted); font-size: 15px; }
.contracts-workspace .workspace-header { padding: 20px; }.contracts-search { width: 250px; }.contracts-table { min-width: 950px; }.contracts-table td:first-child { padding-left: 20px; }.contract-main strong, .contract-main small { display: block; }.contract-main strong { font-size: 14.5px; color: #344054; }.contract-main small { color: #98a2b3; font-size: 13px; margin-top: 2px; }.contract-adjustment { display: inline-flex; padding: 4px 7px; border-radius: 99px; color: var(--purple); background: #f2edff; font-size: 13px; font-weight: 700; }.contract-fee { color: var(--green); font-weight: 700; }
.contracts-table tbody tr[data-contract-row] { cursor: pointer; }.contracts-table tbody tr[data-contract-row]:hover { background: #f4f8ff; }.contracts-table tbody tr[data-contract-row]:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; background: #f4f8ff; }
.month-selector.compact { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 7px 9px; margin: 0; }.month-selector.compact h2 { font-size: 16px; min-width: 92px; text-align: center; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }.metric-grid article { position: relative; overflow: hidden; min-height: 100px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.metric-grid article::after { content: none; }.metric-grid article.positive::after { background: var(--green-soft); }.metric-grid article.warning::after { background: var(--orange-soft); }.metric-grid article.purple::after { background: #f2edff; }.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 13.5px; }.metric-grid strong { display: block; margin: 8px 0 4px; font: 800 21px Manrope, sans-serif; letter-spacing: -.35px; }.metric-grid small { color: #98a2b3; font-size: 13px; }.metric-grid .positive strong { color: var(--green); }.metric-grid .warning strong { color: var(--orange); }.metric-grid .purple strong { color: var(--purple); }
.money-explanation { display: flex; align-items: center; gap: 8px; margin: -3px 0 14px; padding: 9px 12px; border: 1px solid #dfe8f7; border-radius: 9px; background: #f8fbff; color: #53627a; }.money-explanation > span { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--primary); font-size: 13px; font-weight: 700; }.money-explanation p { margin: 0; font-size: 13px; line-height: 1.4; }
.statistics-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; margin-bottom: 14px; }.statistics-grid.lower { grid-template-columns: 1.25fr .75fr; }.chart-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.chart-heading h3 { margin: 0 0 3px; font: 800 16px Manrope, sans-serif; }.chart-heading p { margin: 0; color: var(--muted); font-size: 13px; }.chart-heading > button { border: 0; background: none; color: #98a2b3; cursor: pointer; }.trend-badge { padding: 5px 7px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; }
.donut-layout { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 25px; min-height: 220px; }.donut-chart { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) 0 45%, var(--primary) 45% 74%, #eaaa45 74% 93%, var(--red) 93% 100%); position: relative; }.donut-chart::before { content: ""; position: absolute; width: 92px; height: 92px; border-radius: 50%; background: #fff; }.donut-chart div { position: relative; text-align: center; }.donut-chart strong, .donut-chart span { display: block; }.donut-chart strong { font: 800 25px Manrope, sans-serif; }.donut-chart span { color: var(--muted); font-size: 13px; }.chart-legend { display: grid; }.chart-legend > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f0f2f5; }.chart-legend > div:last-child { border: 0; }.legend-dot { width: 8px; height: 8px; border-radius: 50%; }.legend-dot.paid { background: var(--green); }.legend-dot.notified { background: var(--primary); }.legend-dot.pending { background: #eaaa45; }.legend-dot.overdue { background: var(--red); }.chart-legend p { margin: 0; font-size: 13.5px; font-weight: 700; }.chart-legend p small { display: block; color: #98a2b3; font-size: 12px; font-weight: 400; margin-top: 2px; }.chart-legend > div > strong { font-size: 14px; }
.bar-chart { height: 188px; display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; padding: 25px 12px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, #fff 0, #fff 45px, #f2f4f7 46px); }.bar-chart > div { height: 100%; flex: 1; display: grid; grid-template-rows: 16px 1fr 20px; align-items: end; text-align: center; }.bar-chart span { opacity: 0; color: var(--primary); font-size: 12px; font-weight: 700; transition: .18s; }.bar-chart i { display: block; width: min(30px, 70%); height: calc(var(--bar) * .01 * 135px); margin: 0 auto; border-radius: 5px 5px 0 0; background: #dce8fb; transition: .18s; }.bar-chart div:hover i, .bar-chart div.current i { background: var(--primary); }.bar-chart div:hover span, .bar-chart div.current span { opacity: 1; }.bar-chart small { align-self: center; color: #98a2b3; font-size: 12px; }.chart-footnote { display: flex; justify-content: space-between; padding-top: 11px; color: var(--muted); font-size: 12.5px; }.chart-footnote strong { color: #475467; }.chart-total { font: 800 18px Manrope, sans-serif; color: var(--primary); }
.sparkline { padding-top: 20px; }.sparkline svg { width: 100%; height: 105px; overflow: visible; }.sparkline path.area { fill: url(#area); }.sparkline path.line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }.sparkline > div { display: flex; justify-content: space-between; color: #98a2b3; font-size: 12px; padding: 0 3px; }.overdue-big { display: flex; align-items: baseline; gap: 8px; padding: 19px 0 13px; }.overdue-big strong { font: 800 29.5px Manrope, sans-serif; color: var(--red); }.overdue-big span { color: var(--muted); font-size: 13px; }.overdue-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }.overdue-stats span { padding: 9px; border-radius: 8px; background: #fafbfc; color: var(--muted); font-size: 12px; }.overdue-stats strong { display: block; color: #344054; font-size: 14px; margin-bottom: 3px; }.overdue-summary > button { width: 100%; }
.comparison-legend { display: flex; gap: 10px; color: var(--muted); font-size: 12px; }.comparison-legend span { display: flex; align-items: center; gap: 4px; }.comparison-legend i { width: 8px; height: 8px; border-radius: 2px; }.comparison-legend i.expected { background: #e5eaf1; }.comparison-legend i.collected { background: var(--primary); }.horizontal-scale { display: grid; grid-template-columns: repeat(4, 1fr); margin: 19px 88px 5px 36px; color: #98a2b3; font-size: 12px; }.horizontal-scale span:last-child { text-align: right; }.horizontal-bars { display: grid; gap: 10px; padding: 4px 0; background: linear-gradient(to right, transparent 0, transparent 24.8%, #eef1f5 25%, transparent 25.2%, transparent 49.8%, #eef1f5 50%, transparent 50.2%, transparent 74.8%, #eef1f5 75%, transparent 75.2%); }.horizontal-row { display: grid; grid-template-columns: 27px minmax(130px, 1fr) 78px; align-items: center; gap: 9px; min-height: 20px; }.horizontal-row > strong { font-size: 12.5px; color: #667085; }.horizontal-row > span { text-align: right; font-size: 12.5px; font-weight: 700; color: #344054; }.horizontal-row > span small { color: #98a2b3; font-size: 12px; font-weight: 400; }.horizontal-track { position: relative; height: 14px; }.horizontal-track i { position: absolute; display: block; left: 0; border-radius: 3px; }.horizontal-track i.expected { top: 2px; height: 10px; background: #e4e9f0; }.horizontal-track i.collected { top: 4px; height: 6px; background: var(--primary); }.horizontal-row.current > strong { color: var(--primary); }.horizontal-row.current .horizontal-track i.collected { background: #4d87ed; box-shadow: 0 0 0 2px #e8f0ff; }
.point-chart { display: grid; grid-template-columns: 40px 1fr; gap: 7px; margin-top: 18px; }.point-y-axis { height: 160px; display: flex; flex-direction: column; justify-content: space-between; text-align: right; padding-bottom: 2px; color: #98a2b3; font-size: 12px; }.point-plot { position: relative; height: 195px; }.grid-line { position: absolute; left: 0; right: 0; height: 1px; background: #e9edf3; }.grid-line.g1 { top: 0; }.grid-line.g2 { top: 53px; }.grid-line.g3 { top: 106px; }.grid-line.g4 { top: 159px; }.point-plot svg { position: relative; width: 100%; height: 160px; overflow: visible; z-index: 1; }.point-plot polyline { fill: none; stroke: var(--primary); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }.point-plot circle { fill: #fff; stroke: var(--primary); stroke-width: 3; vector-effect: non-scaling-stroke; }.point-plot circle.current-point { fill: var(--primary); stroke: #dbe8ff; stroke-width: 6; }.point-values, .point-months { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; }.point-values { top: 4px; color: #53627a; font-size: 12px; font-weight: 700; }.point-values span:nth-child(1) { transform: translateY(121px); }.point-values span:nth-child(2) { transform: translateY(87px); }.point-values span:nth-child(3) { transform: translateY(103px); }.point-values span:nth-child(4) { transform: translateY(61px); }.point-values span:nth-child(5) { transform: translateY(40px); }.point-values span:nth-child(6) { transform: translateY(13px); color: var(--primary); }.point-months { top: 174px; color: #98a2b3; font-size: 12px; }
@media (max-width: 1050px) { .statistics-grid, .statistics-grid.lower { grid-template-columns: 1fr; }.metric-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .page-heading-row { align-items: flex-start; }.statistics-heading { flex-direction: column; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.metric-grid article { min-height: 90px; padding: 13px; }.metric-grid strong { font-size: 18px; }.donut-layout { grid-template-columns: 1fr; justify-items: center; gap: 8px; }.chart-legend { width: 100%; }.contracts-search { width: 100%; }.page-heading-row > .primary-button { font-size: 14px; width: auto; }.contract-summary > div { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .metric-grid { grid-template-columns: 1fr; }.bar-chart { gap: 4px; padding-left: 2px; padding-right: 2px; }.donut-chart { width: 125px; height: 125px; }.donut-chart::before { width: 82px; height: 82px; } }

/* Ficha del contrato y circuito de cobro */
.contract-detail-view { padding-bottom: 35px; }
.contract-detail-heading { margin: 2px 0 16px; }.detail-back { border: 0; background: none; padding: 0; color: var(--primary); font-size: 14px; font-weight: 700; cursor: pointer; }.detail-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 12px; }.detail-title-row h2 { margin: 4px 0 8px; font: 800 24.5px Manrope, sans-serif; letter-spacing: -.5px; }.detail-title-row p { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 14px; }.detail-title-row .status-pill { padding: 4px 7px; }.detail-heading-actions { display: flex; gap: 8px; }.detail-heading-actions button { height: 36px; }
.contract-time-progress { margin: -3px 0 13px; padding: 11px 14px 10px; border: 1px solid #dbe6f5; border-radius: 10px; background: #f9fbff; }.contract-time-heading, .contract-time-dates { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.contract-time-heading > div { display: flex; align-items: center; gap: 10px; }.contract-time-heading span { color: #7c899c; font-size: 12px; font-weight: 800; letter-spacing: .5px; }.contract-time-heading strong { color: #344054; font-size: 14px; }.contract-time-heading > strong { color: var(--primary); font: 800 15.5px Manrope, sans-serif; }.contract-time-track { height: 6px; margin: 9px 0 7px; overflow: hidden; border-radius: 99px; background: #e5ebf3; }.contract-time-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2769e8, #5b8ff0); transition: width .25s ease; }.contract-time-dates span { color: #8b96a7; font-size: 12px; }
.contract-tabs { display: flex; gap: 3px; overflow-x: auto; margin: 0 -28px 16px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; }.contract-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: none; padding: 12px 15px 11px; color: #667085; font-size: 14px; font-weight: 700; cursor: pointer; }.contract-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }.contract-tab-panel { display: none; }.contract-tab-panel.active { display: block; }
.detail-summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.detail-summary-strip > div { padding: 14px 16px; border-right: 1px solid var(--line); }.detail-summary-strip > div:last-child { border: 0; }.detail-summary-strip span, .detail-summary-strip small { display: block; color: var(--muted); font-size: 12.5px; }.detail-summary-strip strong { display: block; margin: 5px 0 2px; color: #344054; font-size: 15px; }.detail-summary-strip small b { color: #667085; }
.detail-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 13px; }.money-flow-card, .balance-card, .detail-list-card, .receipt-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.money-flow-card { padding: 18px; }.detail-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.detail-card-heading > div { display: flex; align-items: center; gap: 9px; }.detail-card-heading h3 { margin: 0 0 3px; font: 800 16px Manrope, sans-serif; }.detail-card-heading p { margin: 0; color: var(--muted); font-size: 13px; }.collection-state { padding: 5px 8px; border-radius: 99px; font-size: 13px; font-weight: 700; }.collection-state.pending { color: var(--orange); background: var(--orange-soft); }.collection-state.paid { color: var(--green); background: var(--green-soft); }.collection-state.settled { color: var(--primary); background: var(--blue-soft); }
.account-heading-actions { display: flex; align-items: center; gap: 7px; }.add-concept-button { height: 27px; border: 1px solid #d8e5f9; border-radius: 7px; background: #f7faff; color: var(--primary); padding: 0 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; }.add-concept-button:hover { background: #edf4ff; }.add-concept-button:disabled { color: #98a2b3; background: #f7f8fa; border-color: var(--line); cursor: not-allowed; }
.money-flow { display: grid; grid-template-columns: .75fr 25px 1.25fr; align-items: center; gap: 11px; margin: 18px 0 13px; }.money-flow-party { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 10px; background: #f7faff; }.money-flow-party > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; }.money-flow-party small, .money-flow-split span, .money-flow-split small { display: block; color: #98a2b3; font-size: 12px; font-weight: 700; }.money-flow-party strong { display: block; margin: 4px 0 2px; font: 800 19px Manrope, sans-serif; }.money-flow-party p { margin: 0; color: var(--muted); font-size: 12.5px; }.money-flow-arrow { color: #98a2b3; text-align: center; }.money-flow-split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e5e9ef; border-radius: 10px; overflow: hidden; }.money-flow-split > div { padding: 13px; }.money-flow-split > div:first-child { background: #f5fbf8; border-right: 1px solid #e1eee7; }.money-flow-split > div:last-child { background: #fbfcfe; }.money-flow-split strong { display: block; margin: 5px 0 2px; font: 800 17px Manrope, sans-serif; }.money-flow-split > div:first-child strong { color: var(--green); }
.clarity-note { display: flex; gap: 8px; padding: 9px 11px; border: 1px solid #dce8f9; border-radius: 8px; background: #f8fbff; }.clarity-note > span { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--primary); font-size: 12px; font-weight: 700; }.clarity-note p { margin: 0; color: #53627a; font-size: 12.5px; line-height: 1.45; }.detail-breakdown { margin-top: 14px; border-top: 1px solid var(--line); }.detail-breakdown > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 1px; color: #667085; font-size: 13.5px; }.detail-breakdown .deduction strong { color: var(--green); }.detail-breakdown .total { border-top: 1px solid var(--line); padding-top: 12px; color: #344054; font-weight: 800; }.detail-breakdown .total strong { font: 800 18px Manrope, sans-serif; }
.monthly-concepts { margin-top: 12px; overflow: hidden; border: 1px solid #f0dfc3; border-radius: 9px; background: #fffcf6; }.monthly-concepts[hidden] { display: none; }.monthly-concepts-title { display: flex; justify-content: space-between; padding: 9px 11px; border-bottom: 1px solid #f0dfc3; }.monthly-concepts-title strong { font-size: 13px; }.monthly-concepts-title span { color: var(--muted); font-size: 12px; }.monthly-concept-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 9px 11px; }.monthly-concept-row + .monthly-concept-row { border-top: 1px solid #f4ead9; }.concept-symbol { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--orange-soft); color: var(--orange); font-weight: 800; }.monthly-concept-row div strong, .monthly-concept-row div small { display: block; }.monthly-concept-row div strong { font-size: 13px; }.monthly-concept-row div small { margin-top: 2px; color: var(--muted); font-size: 12px; }.monthly-concept-row > strong { color: var(--red); font-size: 13.5px; }.monthly-concept-row button { border: 0; background: none; color: #98a2b3; cursor: pointer; }.detail-breakdown #monthlyConceptBreakdown { display: block; padding: 0; }.concept-breakdown { display: flex; justify-content: space-between; gap: 12px; padding: 8px 1px; color: #667085; font-size: 13.5px; }.concept-breakdown strong { color: var(--red); }.concept-breakdown small { color: #98a2b3; }.detail-breakdown .tenant-payable { margin: 2px -7px; padding: 9px 8px; border-radius: 7px; background: #f7faff; color: #344054; font-weight: 700; }.detail-breakdown .tenant-payable strong { color: var(--primary); }
.detail-side-stack { display: grid; gap: 13px; }.balance-card { padding: 15px; }.balance-card-title { display: flex; justify-content: space-between; align-items: center; }.balance-card-title > span:first-child { color: #98a2b3; font-size: 12px; font-weight: 800; letter-spacing: .5px; }.balance-card > strong { display: block; margin: 13px 0 2px; font: 800 22.5px Manrope, sans-serif; }.balance-card > p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }.balance-card > button { width: 100%; height: 32px; }.balance-card .text-button { margin-top: 4px; }.balance-card button:disabled { opacity: .45; cursor: not-allowed; }.text-button { border: 0; background: none; color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.detail-list-card { padding: 19px; min-height: 330px; }.movement-table { margin-top: 16px; border-top: 1px solid var(--line); }.movement-row { display: grid; grid-template-columns: 95px 1fr 120px 100px; align-items: center; gap: 10px; min-height: 55px; border-bottom: 1px solid var(--line); font-size: 13px; }.movement-row > span { color: var(--muted); }.movement-row div strong, .movement-row div small { display: block; }.movement-row div small { color: var(--muted); margin-top: 3px; }.movement-row > strong { text-align: right; font-size: 14px; }.movement-row .positive { color: var(--green); }.movement-row .negative { color: var(--red); }.movement-empty { padding: 50px 0; text-align: center; color: var(--muted); font-size: 14px; }
.update-period { display: grid; grid-template-columns: 1fr 130px 120px; align-items: center; gap: 12px; padding: 14px 5px; border-bottom: 1px solid var(--line); }.update-period:first-of-type { margin-top: 15px; border-top: 1px solid var(--line); }.update-period div span, .update-period div strong { display: block; }.update-period div span { color: var(--muted); font-size: 13px; }.update-period div strong { margin-top: 3px; font-size: 14px; }.update-period > strong { text-align: right; font-size: 15px; }.communication-list { margin-top: 15px; border-top: 1px solid var(--line); }.communication-list > div { display: grid; grid-template-columns: 110px 1fr minmax(170px, 300px); gap: 10px; align-items: center; padding: 14px 3px; border-bottom: 1px solid var(--line); font-size: 13.5px; }.communication-list > div > * { min-width: 0; overflow-wrap: anywhere; }.communication-list span, .communication-list small { color: var(--muted); }.communication-list small { text-align: right; }.contract-data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px; margin-top: 16px; border-top: 1px solid var(--line); }.contract-data-grid > div { padding: 15px 2px; border-bottom: 1px solid var(--line); }.contract-data-grid span, .contract-data-grid strong { display: block; }.contract-data-grid span { color: var(--muted); font-size: 12.5px; }.contract-data-grid strong { margin-top: 5px; color: #344054; font-size: 14px; }.stored-file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }.stored-file > span { padding: 6px; border-radius: 5px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 800; }.stored-file strong, .stored-file small { display: block; font-size: 13px; }.stored-file small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.contract-update-timeline { display: grid; gap: 9px; margin-top: 15px; }.update-period-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.update-period-card.current { border-color: #d7e4f8; }.update-period-summary { width: 100%; display: grid; grid-template-columns: minmax(160px, 1fr) 110px 120px 18px; align-items: center; gap: 12px; padding: 13px 14px; border: 0; background: transparent; text-align: left; cursor: pointer; }.update-period-summary > span:first-child small, .update-period-summary > span:first-child strong { display: block; }.update-period-summary > span:first-child small { color: var(--muted); font-size: 12px; }.update-period-summary > span:first-child strong { margin-top: 3px; color: #344054; font-size: 14px; }.update-period-summary > strong { text-align: right; color: #344054; font: 800 15.5px Manrope, sans-serif; }.update-period-summary > em { color: #98a2b3; font-style: normal; transition: transform .18s; }.update-period-card.open .update-period-summary > em { transform: rotate(180deg); }.update-period-detail { padding: 0 14px 12px; border-top: 1px solid #edf0f4; background: #fbfcfe; }.update-period-detail[hidden] { display: none; }.update-month-row { display: grid; grid-template-columns: 1fr 110px 80px; align-items: center; gap: 10px; min-height: 38px; border-bottom: 1px solid #edf0f4; font-size: 13px; }.update-month-row:last-child { border-bottom: 0; }.update-month-row > span { text-transform: capitalize; color: #475467; }.update-month-row > strong { text-align: right; }.update-month-row > em { justify-self: end; padding: 4px 7px; border-radius: 99px; font-style: normal; font-weight: 700; }.update-month-row > em.paid { color: var(--green); background: var(--green-soft); }.update-month-row > em.pending { color: var(--orange); background: var(--orange-soft); }.update-month-row > em.future { color: #7b8798; background: #eef1f5; }.adjustment-editor { padding-top: 13px; }.suggested-adjustment { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; padding: 10px 11px; border-radius: 8px; background: #eef5ff; }.suggested-adjustment span { color: #53627a; font-size: 13px; }.suggested-adjustment strong { color: var(--primary); font-size: 15px; }.adjustment-editor label { color: #475467; font-size: 13px; font-weight: 700; }.adjustment-editor input { width: 100%; height: 35px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px 0 22px; background: #fff; }.adjustment-editor p { margin: 9px 0 12px; color: #7b8798; font-size: 12.5px; line-height: 1.45; }.adjustment-editor .primary-button { height: 32px; }.person-detail-actions { display: flex; gap: 8px; }.archive-person-button { color: #667085; }.delete-property-button { color: var(--red); border-color: #f4c7c3; }.delete-property-button[data-confirming="1"] { background: var(--red-soft); }.property-delete-notice { grid-column: 1 / -1; margin: 4px 0 0; padding: 10px 12px; border: 1px solid #f4c7c3; border-radius: 8px; color: #912018; background: var(--red-soft); font-size: 13px; line-height: 1.45; }.property-delete-notice[hidden] { display: none; }.archive-person-button.restore { color: var(--green); border-color: #cfe9da; background: #f7fcf9; }
.payment-modal { width: min(540px, calc(100vw - 28px)); padding: 22px; }.payment-modal-heading { display: flex; gap: 11px; align-items: center; margin-bottom: 18px; }.payment-modal-heading h2 { margin: 3px 0 3px; font: 800 21px Manrope, sans-serif; }.payment-modal-heading p { margin: 0; color: var(--muted); font-size: 13px; }.payment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.payment-form-grid label { color: #475467; font-size: 13px; font-weight: 700; }.payment-form-grid label.full { grid-column: 1 / -1; }.payment-form-grid input, .payment-form-grid select { width: 100%; height: 36px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px; color: var(--ink); font-size: 14px; outline: 0; }.payment-form-grid .input-prefix > span { top: 16px; }.payment-form-grid .input-prefix input { padding-left: 22px; }.payment-preview { display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: center; gap: 8px; margin: 15px 0 12px; padding: 13px; border-radius: 9px; background: #f7faff; }.payment-preview div span, .payment-preview div strong { display: block; }.payment-preview div span { color: var(--muted); font-size: 12px; }.payment-preview div strong { margin-top: 4px; font: 800 15.5px Manrope, sans-serif; }.payment-preview > span { color: #98a2b3; }.payment-preview .net { border-left: 1px solid #dce6f5; padding-left: 11px; }.payment-preview .net strong { color: var(--primary); }.receipt-check { display: flex; align-items: center; gap: 8px; color: #475467; font-size: 13px; }.receipt-check input { accent-color: var(--primary); }.payment-modal .modal-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.concept-modal { width: min(520px, calc(100vw - 28px)); padding: 22px; }.modal-icon.concept { background: var(--orange-soft); color: var(--orange); }.concept-kind-card { display: flex; gap: 10px; margin-bottom: 14px; padding: 11px; border: 1px solid #f0dfc3; border-radius: 9px; background: #fffcf6; }.concept-kind-card > span { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: var(--orange-soft); color: var(--orange); }.concept-kind-card strong { font-size: 13.5px; }.concept-kind-card p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }.concept-effect { display: flex; gap: 8px; margin-top: 13px; padding: 9px 10px; border-radius: 8px; background: #f7faff; color: #53627a; }.concept-effect > span { font-weight: 800; color: var(--primary); }.concept-effect p { margin: 0; font-size: 12.5px; line-height: 1.4; }.concept-modal .modal-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.concept-fee-check[hidden], .late-fee-editor[hidden] { display: none; }.concept-fee-check { margin-top: 12px; }.late-fee-editor { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 12px; margin: 13px 0; padding: 11px; border: 1px solid #f1d99e; border-radius: 9px; background: #fffaf0; }.late-fee-editor > label { display: flex; align-items: flex-start; gap: 8px; }.late-fee-editor label span, .late-fee-editor label strong, .late-fee-editor label small { display: block; }.late-fee-editor label strong { color: #704c00; font-size: 13.5px; }.late-fee-editor label small { margin-top: 3px; color: #8a6a24; font-size: 12px; }.late-fee-editor .input-prefix { min-width: 0; }.late-fee-editor .input-prefix > span { top: 9px; }.late-fee-editor .input-prefix input { width: 100%; height: 36px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px 0 22px; background: #fff; color: var(--ink); font-size: 14px; outline: 0; }.late-fee-editor .input-prefix input:focus { border-color: #9fc0f7; box-shadow: 0 0 0 3px #edf4ff; }

/* Flujo mensual del contrato */
.contract-contact-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }.contract-contact-bar > div:first-child { display: flex; align-items: center; gap: 9px; }.contract-contact-bar p { margin: 0; }.contract-contact-bar p small, .contract-contact-bar p strong, .contract-contact-bar p em { display: block; }.contract-contact-bar p small { color: #98a2b3; font-size: 12px; font-weight: 800; }.contract-contact-bar p strong { margin: 2px 0; font-size: 14px; }.contract-contact-bar p em { color: var(--muted); font-size: 12px; font-style: normal; }.contract-contact-actions { display: flex; gap: 6px; }.contract-contact-actions button { height: 30px; padding: 0 10px; border: 1px solid #d8e5f9; border-radius: 7px; background: #f8fbff; color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; }.contract-contact-actions button:hover { background: #edf4ff; }
.monthly-workflow { display: grid; gap: 0; }.workflow-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.workflow-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }.workflow-heading-actions { display: flex; align-items: center; gap: 8px; }.workflow-heading h3 { margin: 2px 0; font: 800 17px Manrope, sans-serif; }.workflow-heading p { margin: 0; color: var(--muted); font-size: 12.5px; }.workflow-number { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--primary); font-size: 16px; font-weight: 800; }.workflow-number.green { background: var(--green-soft); color: var(--green); }.workflow-person-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 13px; border: 1px solid #e7ebf1; border-radius: 9px; background: #fbfcfe; }.workflow-person-row > div { min-height: 72px; padding: 12px; border-right: 1px solid #e7ebf1; }.workflow-person-row > div:last-child { border: 0; }.workflow-person-row span, .workflow-person-row strong, .workflow-person-row small { display: block; }.workflow-person-row span, .workflow-person-row small { color: var(--muted); font-size: 12px; }.workflow-person-row strong { margin: 5px 0 3px; font-size: 15.5px; }.workflow-person-row .status-pill { display: inline-flex; margin-top: 3px; }.tenant-account-lines, .owner-account-lines { margin-top: 13px; border-top: 1px solid var(--line); }.tenant-account-lines > div, .owner-account-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 38px; padding: 7px 2px; border-bottom: 1px solid var(--line); color: #667085; font-size: 13.5px; }.tenant-account-lines strong, .owner-account-lines strong { color: #344054; font-size: 14px; }.tenant-account-lines .tenant-payable, .owner-account-lines .owner-total { margin: 7px -7px 0; padding: 10px 9px; border: 0; border-radius: 8px; background: #edf4ff; color: #344054; font-weight: 800; }.tenant-account-lines .tenant-payable strong { color: var(--primary); font-size: 16px; }.owner-account-lines .owner-total { background: #ecf8f1; }.owner-account-lines .owner-total strong { color: var(--green); font-size: 16px; }.workflow-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }.tenant-actions { grid-template-columns: 1fr auto auto; }.workflow-transfer { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; }.workflow-transfer > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e9f7ef; color: var(--green); font-size: 19px; font-weight: 800; }.workflow-transfer p { margin: 0; }.workflow-transfer strong, .workflow-transfer small { display: block; }.workflow-transfer strong { font-size: 13px; }.workflow-transfer small { margin-top: 2px; color: var(--muted); font-size: 12px; }.owner-step { border-color: #cfe9da; }.owner-split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }.owner-split-cards > div { position: relative; padding: 11px; border-radius: 9px; background: #f8fafc; }.owner-split-cards small, .owner-split-cards strong, .owner-split-cards span { display: block; }.owner-split-cards small { color: #98a2b3; font-size: 12px; font-weight: 800; }.owner-split-cards strong { margin: 5px 0 2px; font-size: 16px; }.owner-split-cards span { color: var(--muted); font-size: 12px; }.owner-split-cards b { position: absolute; top: 10px; right: 10px; color: var(--primary); font-size: 12px; }.owner-actions { grid-template-columns: 1fr auto; }.owner-actions p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 12.5px; }.owner-actions p span { color: var(--primary); font-weight: 800; }.monthly-concept-row.charge > strong { color: var(--green); }.monthly-concept-row.charge .concept-symbol { background: var(--green-soft); color: var(--green); }.document-deduction.charge strong { color: var(--green); }
@media (max-width: 700px) { .contract-contact-bar { align-items: flex-start; flex-direction: column; }.contract-contact-actions { width: 100%; }.contract-contact-actions button { flex: 1; }.workflow-person-row { grid-template-columns: 1fr; }.workflow-person-row > div { border-right: 0; border-bottom: 1px solid #e7ebf1; }.workflow-actions { grid-template-columns: 1fr 1fr; }.workflow-actions > span { display: none; }.owner-split-cards { grid-template-columns: 1fr; }.late-fee-editor { grid-template-columns: 1fr; } }
.receipt-modal { width: min(720px, calc(100vw - 28px)); padding: 22px; max-height: calc(100dvh - 28px); overflow-y: auto; }.receipt-modal-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 15px; padding-right: 28px; }.receipt-modal-heading h2 { margin: 4px 0 3px; font: 800 21px Manrope, sans-serif; }.receipt-modal-heading p { margin: 0; color: var(--muted); font-size: 13px; }.receipt-modal-actions { display: flex; gap: 7px; }.receipt-modal-actions button { height: 31px; font-size: 13px; }.receipt-switch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 8px; padding: 3px; border-radius: 9px; background: #eef1f5; }.receipt-switch button { height: 33px; border: 0; border-radius: 7px; background: transparent; color: #667085; font-size: 13.5px; font-weight: 700; cursor: pointer; }.receipt-switch button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(16,24,40,.1); }.recipient-preview-label { display: flex; justify-content: center; align-items: center; gap: 5px; margin-bottom: 8px; color: #667085; }.recipient-preview-label span { font-size: 13px; }.recipient-preview-label p { margin: 0; font-size: 12px; }.receipt-document { display: none; padding: 24px; border: 1px solid #dfe4eb; border-radius: 10px; background: #fff; }.receipt-document.active { display: block; }.document-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 2px solid #344054; }.document-top > div:last-child { text-align: right; }.document-top span, .document-top strong, .document-top small { display: block; }.document-identity { display: flex; align-items: center; gap: 9px; }.brand-logo-preview, .branding-logo-preview { flex: 0 0 auto; width: 38px; height: 38px; display: grid !important; place-items: center; border-radius: 9px; background-color: var(--primary); background-position: center; background-size: cover; color: #fff; font: 800 15px Manrope, sans-serif; }.document-brand { color: var(--primary); font: 800 17px Manrope, sans-serif; letter-spacing: .4px; }.document-top strong { font: 800 16px Manrope, sans-serif; }.document-top small { margin-top: 3px; color: var(--muted); font-size: 12px; }.document-parties { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }.document-parties span, .document-parties strong { display: block; }.document-parties span { color: var(--muted); font-size: 12px; }.document-parties strong { margin-top: 4px; color: #344054; font-size: 14px; }.document-lines { padding-top: 8px; }.document-lines > div, .document-lines > div > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; border-bottom: 1px solid #e8ebf0; color: #475467; font-size: 13.5px; }.document-lines > div > div { width: 100%; }.document-lines strong { color: #344054; font-size: 14px; white-space: nowrap; }.document-deduction > span small { display: block; margin-top: 2px; color: #98a2b3; font-size: 12px; }.document-deduction > strong, .admin-fee-line > strong { color: var(--red); }.admin-fee-line small { margin-left: 4px; padding: 2px 5px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 12px; }.document-lines .document-total { min-height: 51px; border-bottom: 0; font-weight: 800; }.document-total strong { font: 800 19.5px Manrope, sans-serif; }.document-total.owner strong { color: var(--primary); }.document-note { display: flex; gap: 9px; margin-top: 14px; padding: 10px; border-radius: 8px; background: #f7faff; }.document-note > span { color: var(--primary); font-weight: 800; }.document-note p { margin: 0; color: #53627a; font-size: 12.5px; line-height: 1.45; }.fee-spotlight { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border: 1px solid #cfe9da; border-radius: 9px; background: #f7fcf9; }.fee-spotlight div { padding-right: 14px; border-right: 1px solid #d9e9df; }.fee-spotlight span, .fee-spotlight strong { display: block; }.fee-spotlight span { color: #667085; font-size: 12px; font-weight: 800; }.fee-spotlight strong { margin-top: 4px; color: var(--green); font: 800 19px Manrope, sans-serif; }.fee-spotlight p { margin: 0; color: #667085; font-size: 12.5px; line-height: 1.4; }.branding-modal { width: min(590px, calc(100vw - 28px)); padding: 22px; max-height: calc(100dvh - 28px); overflow-y: auto; }.settings-section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 8px; }.settings-section-title.business { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }.settings-section-title strong { font-size: 14px; }.settings-section-title span { color: var(--muted); font-size: 12px; }.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.settings-grid label:not(.logo-upload) { display: block; color: #475467; font-size: 13px; font-weight: 700; }.settings-grid label:not(.logo-upload) input { display: block; width: 100%; height: 36px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px; font-size: 14px; }.branding-logo-preview { width: 50px; height: 50px; }.logo-upload div { display: grid; gap: 2px; }.logo-upload strong { font-size: 13.5px; }.logo-upload small { color: var(--muted); font-size: 12px; }.logo-upload em { margin-top: 4px; color: var(--primary); font-size: 12.5px; font-style: normal; font-weight: 700; }.branding-modal .modal-actions, .password-modal .modal-actions { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }.password-modal { width: min(430px, calc(100vw - 28px)); padding: 22px; }.password-fields { display: grid; gap: 10px; }.contract-end-incidents { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid #f5d9a8; border-radius: 9px; background: #fff8eb; }.contract-end-incidents[hidden] { display: none; }.contract-end-incidents p { margin: 0; color: #7a4b00; font-size: 13px; }.contract-end-incidents label { display: flex; align-items: center; gap: 7px; color: #475467; font-size: 13px; font-weight: 700; }.contract-end-incidents input[type="checkbox"] { display: inline-block; width: 16px; height: 16px; margin: 0; flex: none; }.incident-view-data { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 16px 0; }.incident-view-data dt { color: #98a2b3; font-size: 12px; font-weight: 700; }.incident-view-data dd { margin: 2px 0 0; color: #344054; font-size: 14px; font-weight: 700; }.password-fields label { color: #475467; font-size: 13px; font-weight: 700; }.password-fields input { display: block; width: 100%; height: 36px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px; font-size: 14px; }
@media (max-width: 900px) { .detail-main-grid { grid-template-columns: 1fr; }.detail-side-stack { grid-template-columns: 1fr 1fr; }.detail-summary-strip { grid-template-columns: 1fr 1fr; }.detail-summary-strip > div:nth-child(2) { border-right: 0; }.detail-summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 760px) { .detail-title-row { align-items: flex-start; flex-direction: column; }.detail-heading-actions, .person-detail-actions { width: 100%; }.detail-heading-actions button, .person-detail-actions button { flex: 1; }.contract-tabs { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }.money-flow { grid-template-columns: 1fr; }.money-flow-arrow { transform: rotate(90deg); }.detail-side-stack { grid-template-columns: 1fr; }.movement-row { grid-template-columns: 75px 1fr 90px; }.movement-row > strong { grid-column: 2 / -1; }.contract-data-grid { grid-template-columns: 1fr 1fr; }.detail-card-heading { flex-direction: column; }.account-heading-actions { width: 100%; justify-content: space-between; }.update-period-summary { grid-template-columns: 1fr auto 18px; }.update-period-summary > .status-pill { display: none; }.update-period-summary > strong { text-align: right; } }
@media (max-width: 560px) { .contract-time-heading > div { align-items: flex-start; flex-direction: column; gap: 2px; }.contract-time-dates { align-items: flex-start; flex-direction: column; gap: 3px; } }
@media (max-width: 480px) { .detail-summary-strip { grid-template-columns: 1fr; }.detail-summary-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }.money-flow-split { grid-template-columns: 1fr; }.money-flow-split > div:first-child { border-right: 0; border-bottom: 1px solid #e1eee7; }.payment-form-grid, .contract-data-grid { grid-template-columns: 1fr; }.payment-form-grid label.full { grid-column: auto; }.payment-preview { grid-template-columns: 1fr auto 1fr; }.payment-preview .net { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #dce6f5; padding: 9px 0 0; }.update-period { grid-template-columns: 1fr auto; }.update-period > strong { grid-column: 1 / -1; text-align: left; }.communication-list > div { grid-template-columns: 1fr; }.communication-list small { text-align: left; } }
@media (max-width: 560px) { .receipt-modal-heading { align-items: flex-start; flex-direction: column; }.receipt-modal-actions { width: 100%; }.receipt-modal-actions button { flex: 1; }.receipt-document { padding: 16px; }.document-parties { grid-template-columns: 1fr; gap: 11px; }.fee-spotlight { grid-template-columns: 1fr; }.fee-spotlight div { border-right: 0; border-bottom: 1px solid #d9e9df; padding: 0 0 9px; }.settings-grid { grid-template-columns: 1fr; }.settings-section-title { align-items: flex-start; flex-direction: column; gap: 2px; } }

/* Centro de configuración */
.settings-heading { margin-bottom: 16px; }.settings-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 14px; align-items: start; }.settings-nav { position: sticky; top: 20px; display: grid; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.settings-nav button { display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 8px; min-height: 52px; padding: 8px 9px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }.settings-nav button:hover { background: #f7f9fc; }.settings-nav button.active { background: #edf4ff; color: var(--primary); }.settings-nav button > span { font-size: 19px; text-align: center; }.settings-nav strong, .settings-nav small { display: block; }.settings-nav strong { font-size: 13.5px; }.settings-nav small { margin-top: 3px; color: #98a2b3; font-size: 12px; }.settings-content { min-width: 0; }.settings-panel { display: none; min-height: 560px; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.settings-panel.active { display: block; }.settings-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 19px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }.settings-panel-heading h3 { margin: 0 0 4px; font: 800 19px Manrope, sans-serif; }.settings-panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }.settings-save-row { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }.current-plan-badge { padding: 6px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }.plan-grid article { display: flex; flex-direction: column; min-height: 315px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }.plan-grid article.featured { border: 2px solid var(--primary); box-shadow: 0 7px 18px rgba(39,105,232,.1); }.plan-grid article > span { min-height: 18px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .6px; }.plan-grid h4 { margin: 11px 0 5px; font: 800 20px Manrope, sans-serif; }.plan-grid h4 small { color: var(--muted); font: 500 12px DM Sans, sans-serif; }.plan-grid p { min-height: 32px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }.plan-grid ul { display: grid; gap: 8px; margin: 15px 0; padding: 0; list-style: none; }.plan-grid li { color: #475467; font-size: 13px; }.plan-grid li::before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 800; }.plan-grid button { width: 100%; margin-top: auto; font-size: 13px; }
.billing-status { margin: -5px 0 14px; padding: 9px 11px; border: 1px solid #dbe5f5; border-radius: 9px; background: #f7faff; color: #526174; font-size: 13px; }.billing-status.ready { border-color: #bce4cb; background: #f0fbf4; color: #247245; }.billing-status.warning { border-color: #f0d7a5; background: #fff9ec; color: #8a5a00; }.plan-grid article.current-plan { border: 2px solid #24a864; background: #f5fcf8; box-shadow: 0 7px 18px rgba(36,168,100,.1); }.plan-grid article.current-plan > span::after { content: " · TU PLAN ACTUAL"; color: #16884c; }.plan-grid article.current-plan button { border-color: #b9d8c5; background: #dff3e7; color: #237145; cursor: default; }
.variable-helper { display: grid; gap: 8px; padding: 11px; border: 1px solid #dce8f9; border-radius: 9px; background: #f8fbff; }.variable-helper > strong { color: #53627a; font-size: 13px; }.variable-helper > div { display: flex; flex-wrap: wrap; gap: 5px; }.variable-helper button { border: 1px solid #d6e3f7; border-radius: 5px; background: #fff; color: var(--primary); padding: 4px 6px; font-family: monospace; font-size: 12px; cursor: pointer; }.template-list { display: grid; gap: 10px; margin-top: 13px; }.template-list label { display: grid; grid-template-columns: 140px 1fr; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }.template-list label > span strong, .template-list label > span small { display: block; }.template-list label > span strong { font-size: 13.5px; }.template-list label > span small { margin-top: 3px; color: var(--muted); font-size: 12px; }.template-list textarea { min-height: 72px; resize: vertical; border: 1px solid #dfe4eb; border-radius: 7px; padding: 9px; color: #475467; font: 13px/1.5 DM Sans, sans-serif; outline: 0; }.template-list textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #edf4ff; }
.bank-section + .bank-section { margin-top: 20px; }.bank-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }.bank-section-title > div { flex: 1; }.bank-section-title strong, .bank-section-title small { display: block; }.bank-section-title strong { font-size: 14px; }.bank-section-title small { margin-top: 2px; color: var(--muted); font-size: 12px; }.bank-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #f2edff; color: var(--purple); font-size: 13px; font-weight: 800; }.bank-icon.admin { background: var(--green-soft); color: var(--green); }.bank-account-card { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #cfe9da; border-radius: 9px; background: #fbfffc; }.bank-account-card > div { padding: 12px; border-right: 1px solid #e0eee6; }.bank-account-card > div:last-child { border: 0; }.bank-account-card span, .bank-account-card strong { display: block; }.bank-account-card span { color: var(--muted); font-size: 12px; }.bank-account-card strong { margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }.owner-bank-list { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }.owner-bank-list article { display: grid; grid-template-columns: auto 1fr 1.2fr auto; align-items: center; gap: 10px; padding: 11px; border-bottom: 1px solid var(--line); }.owner-bank-list article:last-child { border: 0; }.owner-bank-avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #eef1f6; color: #667085; font-size: 12px; font-weight: 700; }.owner-bank-list strong, .owner-bank-list small, .owner-bank-list div > span { display: block; }.owner-bank-list strong { font-size: 13px; }.owner-bank-list small, .owner-bank-list div > span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.linked-accounts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }.linked-accounts-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.linked-accounts-heading h4 { margin: 0 0 3px; font-size: 15px; }.linked-accounts-heading p { margin: 0; color: var(--muted); font-size: 12.5px; }.linked-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }.linked-account-grid > div { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }.linked-account-grid p { margin: 0; }.linked-account-grid small, .linked-account-grid strong, .linked-account-grid em { display: block; }.linked-account-grid small { color: #98a2b3; font-size: 12px; font-weight: 700; }.linked-account-grid strong { margin-top: 3px; font-size: 13.5px; }.linked-account-grid em { margin-top: 2px; color: var(--muted); font-size: 12px; font-style: normal; overflow-wrap: anywhere; }
.message-preview-modal { width: min(570px, calc(100vw - 28px)); padding: 22px; }.message-resolved-note { display: flex; gap: 8px; padding: 9px 10px; border-radius: 8px; background: #f2edff; color: #66538d; }.message-resolved-note > span { color: var(--purple); }.message-resolved-note p { margin: 0; font-size: 12.5px; line-height: 1.4; }.message-preview-field { display: block; margin-top: 13px; color: #475467; font-size: 13px; font-weight: 700; }.message-preview-field textarea { display: block; width: 100%; min-height: 125px; margin-top: 5px; resize: vertical; border: 1px solid #dfe4eb; border-radius: 8px; padding: 10px; font: 14px/1.55 DM Sans, sans-serif; }.split-transfer-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }.split-transfer-preview > div { padding: 10px; border-radius: 8px; background: #f8fafc; }.split-transfer-preview span, .split-transfer-preview strong, .split-transfer-preview small { display: block; }.split-transfer-preview span { color: #98a2b3; font-size: 12px; font-weight: 800; }.split-transfer-preview strong { margin: 4px 0 2px; font-size: 15.5px; }.split-transfer-preview small { color: var(--primary); font-size: 12px; }.message-preview-modal .modal-actions { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.bank-account-modal { width: min(560px, calc(100vw - 28px)); padding: 22px; }.bank-account-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.bank-account-fields label { color: #475467; font-size: 13px; font-weight: 700; }.bank-account-fields input { display: block; width: 100%; height: 38px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px; font-size: 14px; }.bank-account-modal .modal-actions { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.person-edit-fields label.full { grid-column: 1 / -1; }
@media (max-width: 900px) { .settings-layout { grid-template-columns: 1fr; }.settings-nav { position: static; grid-template-columns: repeat(4, 1fr); overflow-x: auto; }.settings-nav button { min-width: 145px; }.plan-grid { grid-template-columns: 1fr; }.plan-grid article { min-height: 250px; } }
@media (max-width: 620px) { .settings-panel { padding: 15px; }.template-list label { grid-template-columns: 1fr; }.bank-account-card { grid-template-columns: 1fr 1fr; }.bank-account-card > div:nth-child(2) { border-right: 0; }.bank-account-card > div:nth-child(-n+2) { border-bottom: 1px solid #e0eee6; }.owner-bank-list article { grid-template-columns: auto 1fr auto; }.owner-bank-list article > div:nth-of-type(2) { grid-column: 2 / -1; }.linked-account-grid { grid-template-columns: 1fr; }.bank-account-fields { grid-template-columns: 1fr; } }

/* Personas */
.birthday-alert { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #f1d99e; border-radius: 11px; background: linear-gradient(100deg, #fffaf0, #fffdf8); box-shadow: 0 5px 14px rgba(143, 101, 16, .06); }.birthday-alert[hidden] { display: none; }.birthday-alert > div { flex: 1; min-width: 0; }.birthday-alert strong, .birthday-alert p { display: block; }.birthday-alert strong { color: #704c00; font-size: 14px; }.birthday-alert p { margin: 3px 0 0; color: #8a6a24; font-size: 12.5px; }.birthday-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #fff0c9; color: #a8740a; font-size: 19px; }.birthday-alert .secondary-button { flex: 0 0 auto; background: #fff; }
.people-table tbody tr { cursor: pointer; }.person-role-list { display: flex; flex-wrap: wrap; gap: 4px; }.person-role { padding: 4px 7px; border-radius: 99px; font-size: 12px; font-weight: 700; }.person-role.propietario { color: var(--green); background: var(--green-soft); }.person-role.inquilino { color: var(--primary); background: var(--blue-soft); }.person-role.garante { color: #667085; background: #eef1f5; }.bank-status { display: inline-flex; padding: 4px 7px; border-radius: 99px; font-size: 12px; font-weight: 700; }.bank-status.ready { color: var(--green); background: var(--green-soft); }.bank-status.missing { color: var(--orange); background: var(--orange-soft); }
.person-detail-heading .detail-title-row { align-items: center; }.person-tabs { display: flex; overflow-x: auto; gap: 2px; margin: 0 -28px 16px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; }.person-tabs button { flex: 0 0 auto; padding: 12px 11px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #667085; font-size: 13px; font-weight: 700; cursor: pointer; }.person-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }.person-tabs button span { margin-left: 3px; padding: 2px 5px; border-radius: 99px; background: #eef1f5; color: #667085; font-size: 12px; }.person-tab-panel { display: none; }.person-tab-panel.active { display: block; }.person-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 15px; border-top: 1px solid var(--line); }.person-data-grid > div { padding: 15px 2px; border-bottom: 1px solid var(--line); }.person-data-grid span, .person-data-grid strong { display: block; }.person-data-grid span { color: var(--muted); font-size: 12.5px; }.person-data-grid strong { margin-top: 5px; font-size: 14px; }.person-contract-list { margin-top: 15px; border-top: 1px solid var(--line); }.person-contract-list > button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }.person-contract-list > button > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--primary); }.person-contract-list p { margin: 0; }.person-contract-list strong, .person-contract-list small { display: block; }.person-contract-list strong { font-size: 14px; }.person-contract-list small { margin-top: 3px; color: var(--muted); font-size: 12px; }.person-contract-list em { color: var(--primary); font-style: normal; }.person-bank-empty { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 210px; color: #98a2b3; }.person-bank-empty.compact { min-height: 180px; }.person-bank-empty > span { font-size: 23.5px; }.person-bank-empty p { margin: 0; }.person-bank-empty strong, .person-bank-empty small { display: block; }.person-bank-empty strong { color: #667085; font-size: 14px; }.person-bank-empty small { margin-top: 3px; font-size: 12px; }.person-bank-details { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 17px; border: 1px solid #cfe9da; border-radius: 9px; background: #fbfffc; }.person-bank-details > div { padding: 13px; border-right: 1px solid #e0eee6; }.person-bank-details > div:last-child { border: 0; }.person-bank-details span, .person-bank-details strong { display: block; }.person-bank-details span { color: var(--muted); font-size: 12px; }.person-bank-details strong { margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }.non-owner-bank-note { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 14px; }.person-activity-list { margin-top: 15px; border-top: 1px solid var(--line); }.person-activity-list > div:not(.empty-activity) { display: grid; grid-template-columns: 100px 1fr 1fr auto; gap: 10px; align-items: center; min-height: 55px; border-bottom: 1px solid var(--line); font-size: 13px; }.person-activity-list span, .person-activity-list small { color: var(--muted); }.person-activity-list em { color: var(--primary); font-style: normal; font-weight: 700; }.empty-activity { padding: 70px 0; text-align: center; color: var(--muted); font-size: 14px; }.person-note-entry { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 16px; }.person-note-entry textarea { min-height: 82px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 14px/1.45 DM Sans, sans-serif; }.person-note-entry button { align-self: end; }.saved-person-note { margin-top: 10px; padding: 11px; border-radius: 8px; background: #f8fafc; }.saved-person-note span { color: var(--muted); font-size: 12px; }.saved-person-note-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.saved-person-note p { margin: 4px 0 0; font-size: 13.5px; }
.person-bank-list { display: grid; gap: 9px; margin-top: 15px; }.person-bank-account { position: relative; padding: 13px; border: 1px solid #cfe9da; border-radius: 10px; background: #fbfffc; }.person-edit-modal { width: min(620px, calc(100vw - 28px)); padding: 22px; }.person-role-editor { margin-bottom: 13px; padding: 11px; border: 1px solid #dce8f9; border-radius: 9px; background: #f8fbff; }.person-role-editor > strong, .person-role-editor > small { display: block; }.person-role-editor > strong { margin-bottom: 8px; color: #344054; font-size: 13px; }.person-role-editor > small { margin-top: 7px; color: var(--muted); font-size: 12px; }.person-role-editor > div { display: flex; flex-wrap: wrap; gap: 7px; }.person-role-editor label { display: flex; align-items: center; gap: 5px; min-width: 105px; padding: 7px 9px; border: 1px solid #d8e5f9; border-radius: 7px; background: #fff; color: #475467; font-size: 13px; font-weight: 700; }.person-edit-modal .modal-actions { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }

/* Cuentas propias de la inmobiliaria */
.agency-account-note { display: flex; gap: 8px; margin-bottom: 13px; padding: 10px; border-radius: 8px; background: #f7faff; color: #53627a; }.agency-account-note > span { color: var(--primary); font-weight: 800; }.agency-account-note p { margin: 0; font-size: 12.5px; line-height: 1.45; }.agency-bank-list { display: grid; gap: 9px; }.agency-bank-list article { position: relative; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.agency-bank-heading { display: flex; align-items: center; gap: 9px; }.agency-bank-heading > div { flex: 1; min-width: 0; }.agency-bank-heading > .primary-account-badge, .agency-bank-heading > .text-button { flex-shrink: 0; white-space: nowrap; }.agency-bank-heading strong, .agency-bank-heading small { display: block; }.agency-bank-heading strong { font-size: 14px; }.agency-bank-heading small { margin-top: 2px; color: var(--muted); font-size: 12px; }.primary-account-badge { padding: 4px 7px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }.agency-bank-data { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }.agency-bank-data span, .agency-bank-data strong { display: block; }.agency-bank-data span { color: var(--muted); font-size: 12px; }.agency-bank-data strong { margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }.bank-account-fields input, .bank-account-fields select { display: block; width: 100%; height: 38px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px; background: #fff; color: var(--ink); font-size: 14px; }
@media (max-width: 760px) { .people-header { align-items: stretch; flex-direction: column; }.person-tabs { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }.person-bank-details { grid-template-columns: 1fr 1fr; }.person-bank-details > div { border-bottom: 1px solid #e0eee6; }.person-activity-list > div:not(.empty-activity) { grid-template-columns: 75px 1fr; }.person-activity-list em { grid-column: 2; }.agency-bank-data { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .birthday-alert { align-items: flex-start; flex-wrap: wrap; }.birthday-alert > div { width: calc(100% - 48px); }.birthday-alert .secondary-button { width: 100%; }.person-data-grid, .person-bank-details { grid-template-columns: 1fr; }.person-note-entry { grid-template-columns: 1fr; } }

/* Inicio operativo, evidencia fotográfica e incidentes */
.contract-tabs button > span { display: inline-grid; min-width: 16px; height: 16px; margin-left: 4px; place-items: center; border-radius: 99px; background: #eef1f5; color: #667085; font-size: 12px; }
.incident-dashboard-card { margin: 14px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.incident-dashboard-card .section-title { margin-bottom: 13px; }.incident-dashboard-card .section-title > div { align-items: center; }.incident-dashboard-card .section-title h3 { margin-bottom: 2px; }.incident-dashboard-card .section-title p { margin: 0; color: var(--muted); font-size: 12.5px; }
.incident-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.incident-summary-grid > button { padding: 12px 14px; border: 0; border-right: 1px solid var(--line); background: #fbfcfe; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }.incident-summary-grid > button:hover { background: #f1f6ff; }.incident-summary-grid > button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }.incident-summary-grid > button:last-child { border-right: 0; }.incident-summary-grid span, .incident-summary-grid strong, .incident-summary-grid small { display: block; }.incident-summary-grid span { color: #667085; font-size: 12px; font-weight: 700; }.incident-summary-grid strong { margin: 3px 0; font: 800 21px Manrope, sans-serif; }.incident-summary-grid small { color: #98a2b3; font-size: 12px; }.incident-summary-grid .urgent { background: #fff8f7; }.incident-summary-grid .urgent:hover { background: #fff0ee; }.incident-summary-grid .urgent strong { color: var(--red); }
.incident-list { display: grid; gap: 9px; margin-top: 16px; }.incident-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid #e4e9f0; border-left: 4px solid var(--orange); border-radius: 10px; background: #fff; }.incident-card.resolved { border-left-color: var(--green); background: #fbfefc; }.incident-card-top { display: flex; align-items: center; gap: 6px; }.incident-card-top > small { color: #98a2b3; font-size: 12px; }.incident-priority, .incident-status { display: inline-flex; padding: 4px 7px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }.incident-priority.baja { color: #667085; background: #eef1f5; }.incident-priority.media { color: var(--orange); background: var(--orange-soft); }.incident-priority.alta { color: var(--red); background: var(--red-soft); }.incident-status { color: var(--primary); background: var(--blue-soft); }.incident-status.resuelto { color: var(--green); background: var(--green-soft); }.incident-card h4 { margin: 8px 0 3px; font-size: 15px; }.incident-card p { margin: 0 0 5px; color: #667085; font-size: 13px; line-height: 1.45; }.incident-card-main > small { color: #98a2b3; font-size: 12px; }.incident-card-actions { display: flex; gap: 6px; }.incident-card-actions button { white-space: nowrap; }.resolved-mark { color: var(--green); font-size: 13px; font-weight: 800; }.incident-empty { padding: 52px 10px; text-align: center; color: #98a2b3; }.incident-empty > span { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); }.incident-empty strong { display: block; margin-top: 9px; color: #667085; font-size: 14px; }.incident-empty p { margin: 4px 0 0; font-size: 12.5px; }
.incident-card-actions { align-items: flex-end; gap: 8px; }
.incident-status-control { display: grid; gap: 4px; color: #98a2b3; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.incident-status-control select { min-width: 150px; height: 32px; padding: 0 28px 0 9px; border: 1px solid #d8e1ee; border-radius: 7px; background: #fff; color: #344054; font: 700 13px DM Sans, sans-serif; cursor: pointer; }
.incident-status.esperando-inquilino, .incident-status.esperando-propietario, .incident-status.esperando-tercero { color: var(--orange); background: var(--orange-soft); }
.property-photo-section { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px dashed #c9d3e1; border-radius: 10px; background: #fbfcfe; }.property-photo-section strong { color: #344054; font-size: 13.5px; }.property-photo-section p { margin: 2px 0 0; color: #667085; font-size: 12.5px; line-height: 1.4; }.property-photo-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }.property-photo-gallery figure { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.property-photo-gallery img { width: 100%; height: 82px; display: block; object-fit: cover; }.property-photo-gallery figcaption { overflow: hidden; padding: 6px; color: #667085; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.property-photo-gallery figure button { position: absolute; top: 5px; right: 5px; width: 21px; height: 21px; border: 0; border-radius: 50%; background: rgba(16,24,40,.74); color: #fff; cursor: pointer; }.property-photo-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 54px; color: #98a2b3; }.property-photo-empty p { margin: 0; }.property-incident-summary { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }.property-incident-summary > div { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; padding: 10px 11px; border-bottom: 1px solid var(--line); }.property-incident-summary > div:last-child { border-bottom: 0; }.property-incident-summary p { margin: 0; }.property-incident-summary strong, .property-incident-summary small { display: block; }.property-incident-summary strong { font-size: 13px; }.property-incident-summary small { margin-top: 2px; color: var(--muted); font-size: 12px; }.muted-note { margin: 0; padding: 14px; color: #98a2b3; font-size: 12.5px; }
.incident-modal { width: min(570px, calc(100vw - 28px)); padding: 22px; }.modal-icon.incident { color: var(--orange); background: var(--orange-soft); }.incident-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.incident-form label { color: #475467; font-size: 13px; font-weight: 700; }.incident-form label.full, .incident-form .modal-actions { grid-column: 1 / -1; }.incident-form input, .incident-form select, .incident-form textarea { display: block; width: 100%; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px; color: var(--ink); font: 14px DM Sans, sans-serif; }.incident-form input, .incident-form select { height: 38px; }.incident-form textarea { min-height: 95px; padding-top: 9px; resize: vertical; }.incident-form .modal-actions { margin-top: 6px; padding-top: 13px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .incident-summary-grid { grid-template-columns: 1fr 1fr; }.incident-summary-grid > button:nth-child(2) { border-right: 0; }.incident-summary-grid > button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.incident-card { grid-template-columns: 1fr; }.incident-card-actions { flex-wrap: wrap; }.property-photo-gallery { grid-template-columns: 1fr 1fr; } }
.nav-count.alert { color: var(--red); background: var(--red-soft); }
.incidents-table th:nth-child(1) { width: 10%; }.incidents-table th:nth-child(2) { width: 23%; }.incidents-table th:nth-child(3) { width: 27%; }.incidents-table th:nth-child(4) { width: 20%; }.incidents-table th:nth-child(5) { width: 12%; }.incidents-table tbody tr { cursor: pointer; }.incidents-table td > strong, .incidents-table td > small { display: block; }.incidents-table td > small { max-width: 330px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* Comprobantes: documento y acciones */
.receipt-modal { width: min(860px, calc(100vw - 28px)); }
.receipt-modal-actions button { height: 34px; }
.receipt-document { position: relative; width: min(100%, 720px); aspect-ratio: 210 / 297; margin: 0 auto; overflow: hidden; overflow: clip; padding: 36px 42px; border: 1px solid #dce3ed; border-top: 5px solid var(--primary); border-radius: 5px; background: #fff; box-shadow: 0 8px 28px rgba(16, 24, 40, .09); }
.receipt-document.active { display: flex; flex-direction: column; }
.receipt-document::after { content: ""; position: absolute; z-index: 0; width: 190px; height: 190px; right: -105px; top: -105px; border-radius: 50%; background: #edf4ff; }
.receipt-document > * { position: relative; z-index: 1; }
.document-top { padding-bottom: 18px; border-bottom: 1px solid #dce3ed; }
.document-heading { display: grid; justify-items: end; gap: 3px; }
.receipt-status { display: inline-flex !important; width: max-content; margin-bottom: 4px; padding: 4px 7px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .45px; }
.receipt-status.provisional { background: var(--orange-soft); color: var(--orange); }
.receipt-status.owner { background: var(--blue-soft); color: var(--primary); }
.receipt-profile-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 12px; padding: 13px 15px; border: 1px solid #d7e4f8; border-radius: 10px; background: #f7faff; }
.receipt-profile-toggle strong, .receipt-profile-toggle small { display: block; }
.receipt-profile-toggle strong { color: #344054; font-size: 13.5px; }
.receipt-profile-toggle small { max-width: 430px; margin-top: 3px; color: #667085; font-size: 12px; line-height: 1.45; }
.document-parties { margin: 0 -42px; padding: 17px 42px; background: #fafbfd; }
.document-intro { margin: 20px 0 12px; color: #475467; font-size: 14px; line-height: 1.6; }
.document-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; border: 1px solid #e5e9ef; border-radius: 8px; background: #fbfcfe; }.document-meta-grid > div { padding: 10px 11px; border-right: 1px solid #e5e9ef; }.document-meta-grid > div:last-child { border: 0; }.document-meta-grid span, .document-meta-grid strong { display: block; }.document-meta-grid span { color: #98a2b3; font-size: 12px; }.document-meta-grid strong { margin-top: 4px; color: #344054; font-size: 13px; }
.document-lines .document-total { min-height: 60px; margin-top: 10px; padding: 0 13px; border: 0; border-radius: 10px; background: #eff5ff; }
.document-total strong { color: var(--primary); font-size: 21px; }
.document-total.owner { background: #ecf8f1; }
.document-total.owner strong { color: var(--green); }
.document-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 11px; border-top: 1px dashed #d5dce6; color: #98a2b3; font-size: 12px; }
.document-footer strong { color: #667085; }
.message-channel-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 12px; padding: 3px; border-radius: 9px; background: #eef1f5; }
.message-channel-switch button { height: 33px; border: 0; border-radius: 7px; background: transparent; color: #667085; font-size: 13px; font-weight: 700; cursor: pointer; }
.message-channel-switch button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(16, 24, 40, .1); }

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body.receipt-printing { background: #fff; }
  body.receipt-printing .app-shell,
  body.receipt-printing .modal-backdrop:not(#receiptModal),
  body.receipt-printing #receiptModal > .receipt-modal > *:not(.receipt-document) { display: none !important; }
  body.receipt-printing #receiptModal { position: static !important; display: block !important; overflow: visible !important; padding: 0 !important; background: #fff !important; }
  body.receipt-printing #receiptModal .receipt-modal { width: 100% !important; max-width: none !important; max-height: none !important; padding: 0 !important; overflow: visible !important; box-shadow: none !important; }
  body.receipt-printing .receipt-document { display: none !important; }
  body.receipt-printing .receipt-document.active { display: flex !important; width: 186mm !important; min-height: 273mm !important; aspect-ratio: auto !important; padding: 12mm 14mm !important; border: 1px solid #dce3ed; border-top: 2mm solid var(--primary); border-radius: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

@media (max-width: 560px) {
  .receipt-document { padding: 16px; }
  .document-parties { margin: 0 -16px; padding: 15px 16px; }
  .document-meta-grid { grid-template-columns: 1fr; }.document-meta-grid > div { border-right: 0; border-bottom: 1px solid #e5e9ef; }.document-meta-grid > div:last-child { border-bottom: 0; }
  .document-footer { flex-direction: column; }
}

/* La liquidación se habilita recién después de cobrarle al inquilino */
.owner-step { position: relative; overflow: hidden; }
.owner-step.locked { border-color: #e1e5eb; background: #f7f8fa; box-shadow: 0 8px 22px rgba(52, 64, 84, .08); }
.owner-step.locked .workflow-heading { opacity: .58; }
.owner-step.locked .workflow-number.green { color: #7f8998; background: #e9ecf1; }
/* Liquidación bloqueada hasta que se registre el pago: se oculta el contenido y queda un aviso breve, sin desenfoque. */
.owner-step.locked .owner-financial-content { display: none; }
.owner-step-lock { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; margin-top: 14px; padding: 14px 16px; border: 1px dashed #d5dbe3; border-radius: 10px; background: #f7f8fa; text-align: left; }
.owner-step-lock[hidden] { display: none; }
.owner-step-lock > span { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(52, 64, 84, .12); font-size: 18px; }
.owner-step-lock strong { color: #475467; font: 800 15.5px Manrope, sans-serif; }
.owner-step-lock p { margin: 2px 0 0; color: #7b8492; font-size: 13px; line-height: 1.5; }

/* Listado operativo de contratos */

.contracts-table th:nth-child(1) { width: 11%; }
.contracts-table th:nth-child(2) { width: 17%; }
.contracts-table th:nth-child(3) { width: 14%; }
.contracts-table th:nth-child(4) { width: 12%; }
.contracts-table th:nth-child(5) { width: 10%; }
.contracts-table th:nth-child(6) { width: 9%; }
.contracts-table th:nth-child(7) { width: 11%; }
.contracts-table th:nth-child(8) { width: 16%; }
.contracts-table th:nth-child(n+5),
.contracts-table td:nth-child(n+5) { text-align: center; }
.contract-state-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contract-state-cell small { color: #98a2b3; font-size: 12px; line-height: 1.25; }
.contracts-table .activity-note { line-height: 1.3; }

@media (max-width: 1180px) {
  .contracts-table th:nth-child(1) { width: 11%; }
  .contracts-table th:nth-child(2) { width: 16%; }
  .contracts-table th:nth-child(3) { width: 13%; }
  .contracts-table th:nth-child(4) { width: 11%; }
  .contracts-table th:nth-child(5) { width: 10%; }
  .contracts-table th:nth-child(6) { width: 8%; }
  .contracts-table th:nth-child(7) { width: 10%; }
  .contracts-table th:nth-child(8) { width: 21%; }
  .contract-state-cell small { font-size: 12px; }
}

/* Registro visible de gastos y ajustes del contrato */
.adjustment-entry-button { border-color: #d7e4f8; background: #f7faff; color: var(--primary); }
.concept-impact-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.concept-impact-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 9px 11px; border: 1px solid #dce6f5; border-radius: 8px; background: #f8fbff; }
.concept-impact-preview span { color: #667085; font-size: 12.5px; font-weight: 700; }
.concept-impact-preview strong { color: var(--primary); font-size: 14px; white-space: nowrap; }
.owner-account-lines #ownerConceptBreakdown { display: block; min-height: 0; padding: 0; }
.owner-concept-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 38px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.owner-concept-line span { color: #667085; }
.owner-concept-line small { display: block; margin-top: 2px; color: #98a2b3; font-size: 12px; }
.owner-concept-line strong, .owner-credit-summary strong { color: var(--red); }
@media (max-width: 560px) { .concept-impact-preview { grid-template-columns: 1fr; } }

/* Tablas compactas: sin desplazamiento lateral */
.responsive-table-wrap { overflow-x: visible; }
.responsive-table { min-width: 0; table-layout: fixed; }
.responsive-table th,
.responsive-table td { padding-left: 8px; padding-right: 8px; }
.responsive-table th:first-child,
.responsive-table td:first-child { padding-left: 14px; }

.rentals-table th:nth-child(1) { width: 15%; }
.rentals-table th:nth-child(2) { width: 16%; }
.rentals-table th:nth-child(3) { width: 18%; }
.rentals-table th:nth-child(4) { width: 12%; }
.rentals-table th:nth-child(5) { width: 10%; }
.rentals-table th:nth-child(6) { width: 15%; }
.rentals-table th:nth-child(7) { width: 14%; }
.rentals-table th:nth-child(n+4),
.rentals-table td:nth-child(n+4) { text-align: center; }
.rentals-table td { white-space: normal; }
.rentals-table .row-actions { justify-content: center; }
.rentals-table .activity-note { line-height: 1.35; }

.contracts-table { min-width: 0; }
.contracts-table th:nth-child(1) { width: 19%; }
.contracts-table th:nth-child(2) { width: 15%; }
.contracts-table th:nth-child(3) { width: 13%; }
.contracts-table th:nth-child(4) { width: 14%; }
.contracts-table th:nth-child(5) { width: 13%; }
.contracts-table th:nth-child(6) { width: 8%; }
.contracts-table th:nth-child(7) { width: 18%; }
.contracts-table th:nth-child(n+4),
.contracts-table td:nth-child(n+4) { text-align: center; }
.contracts-table td { padding-left: 7px; padding-right: 7px; white-space: normal; overflow-wrap: anywhere; }
.contracts-table .contract-row-actions { min-width: 0; justify-content: center; gap: 4px; flex-wrap: wrap; }
.contracts-table .contract-quick-channel { width: auto; height: 25px; padding: 0 8px 0 6px; }
/* Botones de la fila con su rótulo (WhatsApp, Email, Copiar, Ver/Recibo) y, arriba, qué mensaje sale
   (Aviso de pago, Recordatorio o Recibo). En escritorio el encabezado ya dice "Aviso de pago", así
   que el rótulo de arriba solo se muestra cuando es otro. */
.contract-row-actions-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.contract-actions-kind { color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.contract-actions-kind.pending { display: none; }
.contract-quick-channel span { font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.contract-quick-channel.menu { padding: 0; width: 25px; }
.contracts-table .contract-adjustment { justify-content: center; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.contract-quick-channel { display: inline-flex; align-items: center; gap: 5px; padding: 0; line-height: 0; }
.contract-quick-channel svg { display: block; width: 15px; height: 15px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.contract-quick-channel.email svg { width: 16px; height: 16px; }
.contract-quick-channel.whatsapp svg { width: 17px; height: 17px; stroke-width: 1.9; }
.contract-quick-channel.menu svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.contract-quick-channel.copy { color: #6656c7; background: #f7f4ff; border-color: #e5defe; }
.contract-quick-channel.receipt { color: #b15f0e; background: #fff8ed; border-color: #f4dfbe; }
.channel-icon { display: block; width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-icon .phone { fill: currentColor; stroke: none; }
.message-channel-switch button,
.contract-contact-actions button,
#messagePreviewSend { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.message-channel-switch button .channel-icon { width: 16px; height: 16px; }
.message-channel-switch button.whatsapp.active { color: #168c55; }
.message-channel-switch button.email.active { color: var(--primary); }
.channel-modal-icon { display: grid; place-items: center; padding: 0; }
.channel-modal-icon .channel-icon { width: 18px; height: 18px; }
.channel-modal-icon.whatsapp { color: #168c55; background: #eaf8f0; }
.channel-modal-icon.email { color: var(--primary); background: var(--blue-soft); }
#messagePreviewSend .channel-icon { width: 15px; height: 15px; }

.people-table { min-width: 0; }
.people-table th:nth-child(1) { width: 25%; }
.people-table th:nth-child(2) { width: 18%; }
.people-table th:nth-child(3) { width: 28%; }
.people-table th:nth-child(4) { width: 20%; }
.people-table th:nth-child(5) { width: 9%; }
.people-table td { white-space: normal; overflow-wrap: anywhere; }
.people-table th:last-child,
.people-table td:last-child { text-align: center; }

.property-summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.property-summary-strip > div { padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.property-summary-strip span, .property-summary-strip strong { display: block; }
.property-summary-strip span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.property-summary-strip strong { margin-top: 3px; color: #344054; font: 800 20px Manrope, sans-serif; }
.properties-search { width: 250px; }
/* Teléfono: todas las búsquedas a lo ancho y con el mismo alto (en el encabezado en columna, el flex: 1 las aplastaba). */
@media (max-width: 760px) { .properties-search { width: 100%; } .workspace-header .search-box { flex: none; height: 38px; } }
.properties-table { min-width: 0; table-layout: fixed; }
.properties-table th:nth-child(1) { width: 25%; }.properties-table th:nth-child(2) { width: 18%; }.properties-table th:nth-child(3) { width: 12%; }.properties-table th:nth-child(4) { width: 22%; }.properties-table th:nth-child(5) { width: 13%; }.properties-table th:nth-child(6) { width: 10%; }
.properties-table tbody tr { cursor: pointer; }
.properties-table tbody tr:hover { background: #f4f8ff; }
.properties-table td { white-space: normal; }
.properties-table td > strong, .properties-table td > small { display: block; }
.properties-table td > small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.property-address { display: flex; align-items: center; gap: 8px; }
.property-address > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--blue-soft); color: var(--primary); font-size: 17px; }
.property-address p { margin: 0; min-width: 0; }
.property-address strong, .property-address small { display: block; }
.property-address strong { color: #344054; font-size: 14px; }
.property-address small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.property-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.property-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.property-status.alquilada { color: var(--green); background: var(--green-soft); }.property-status.disponible { color: var(--primary); background: var(--blue-soft); }.property-status.inactiva { color: #667085; background: #eef1f5; }
.property-edit-button { height: 26px; padding: 0 9px; border: 1px solid #d9e7ff; border-radius: 6px; background: var(--blue-soft); color: var(--primary); font-size: 12px; font-weight: 800; cursor: pointer; }
.property-modal { width: min(680px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 22px; overflow-y: auto; }
.property-modal-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.property-modal-heading h2 { margin: 3px 0; font: 800 21px Manrope, sans-serif; }.property-modal-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.property-form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 11px; }
.property-form label { color: #475467; font-size: 13px; font-weight: 700; }
.property-form label.full, .property-form-divider { grid-column: 1 / -1; }
.property-form > .full { grid-column: 1 / -1; }.property-form label.street { grid-column: span 1; }
.property-form input, .property-form select, .property-form textarea { display: block; width: 100%; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px; color: var(--ink); font: 14px DM Sans, sans-serif; outline: 0; }
.property-form input, .property-form select { height: 36px; }.property-form textarea { min-height: 78px; padding-top: 9px; resize: vertical; line-height: 1.45; }
.property-form input:focus, .property-form select:focus, .property-form textarea:focus { border-color: #9fc0f7; box-shadow: 0 0 0 3px #edf4ff; }
.property-form-divider { display: flex; align-items: center; gap: 10px; margin-top: 3px; color: #667085; font-size: 13px; font-weight: 800; }
.property-form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.property-form .modal-actions { margin-top: 3px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .responsive-table th { height: 30px; padding-left: 5px; padding-right: 5px; font-size: 12px; letter-spacing: .2px; }
  .responsive-table td { height: 51px; padding-left: 5px; padding-right: 5px; font-size: 12.5px; line-height: 1.25; }
  .responsive-table th:first-child,
  .responsive-table td:first-child { padding-left: 8px; }
  .responsive-table .tenant-cell { gap: 4px; }
  .responsive-table .tenant-avatar { width: 23px; height: 23px; font-size: 12px; flex: 0 0 auto; }
  .responsive-table .tenant-cell strong,
  .responsive-table .property-cell strong,
  .responsive-table .contract-main strong { font-size: 12.5px; }
  .responsive-table .tenant-cell small,
  .responsive-table .property-cell small,
  .responsive-table .contract-main small { font-size: 12px; }
  .responsive-table .status-pill { padding: 3px 5px; gap: 3px; font-size: 12px; }
  .responsive-table .activity-note { font-size: 12px; }
  .responsive-table .row-button { min-width: 0; height: 23px; padding: 0 5px; font-size: 12px; }
  .contracts-table th:nth-child(1) { width: 18%; }
  .contracts-table th:nth-child(2) { width: 14%; }
  .contracts-table th:nth-child(3) { width: 12%; }
  .contracts-table th:nth-child(4) { width: 13%; }
  .contracts-table th:nth-child(5) { width: 12%; }
  .contracts-table th:nth-child(6) { width: 8%; }
  .contracts-table th:nth-child(7) { width: 23%; }
  .contracts-table .contract-adjustment { padding: 3px 4px; font-size: 12px; white-space: normal; }
  .contracts-table .contract-row-actions { gap: 3px; }
  .contracts-table .contract-quick-channel { height: 23px; border-radius: 6px; }
  .contracts-table .contract-quick-channel.menu { width: 23px; }
  .contracts-table .contract-quick-channel span { font-size: 11px; }
  .contracts-table .contract-quick-channel svg { width: 13px; height: 13px; }
  .contracts-table .contract-quick-channel.email svg { width: 14px; height: 14px; }
  .contracts-table .contract-quick-channel.whatsapp svg { width: 15px; height: 15px; }
}

@media (max-width: 560px) {
  .responsive-table th { font-size: 12px; }
  .responsive-table td { font-size: 12px; }
  .contracts-table .contract-quick-channel { height: 30px; }
  .contracts-table .contract-quick-channel.menu { width: 30px; }
  .contracts-table .contract-row-actions { gap: 5px; }
  .property-summary-strip { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .property-summary-strip > div { padding: 10px; }
  .property-form { grid-template-columns: 1fr 1fr; }
  .property-form label.full, .property-form-divider { grid-column: 1 / -1; }
}

/* Registro fotográfico de la propiedad */
.property-form .property-photo-section { min-width: 0; grid-column: 1 / -1; align-items: start; }

.property-form 
.property-form .property-photo-gallery { width: 100%; min-width: 0; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); align-items: start; }
.property-form .property-photo-gallery figure { width: 100%; min-width: 0; display: grid; grid-template-rows: auto 28px; }
.property-form .property-photo-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.property-form .property-photo-gallery figcaption { min-width: 0; display: block; }
@media (max-width: 560px) {
  .property-form .property-photo-section { grid-template-columns: 1fr; }
  
  .property-form .property-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Estadísticas del negocio */
.stats-control-bar { display: flex; align-items: flex-end; gap: 12px; margin: -6px 0 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.stats-control-bar label, .stats-control-group { display: grid; gap: 6px; }
.stats-control-bar label > span, .stats-control-group > span, .stats-currency-note > span { color: #667085; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.stats-currency-note { display: grid; gap: 6px; }
.stats-currency-note strong { height: 34px; display: flex; align-items: center; padding: 0 11px; border: 1px solid #dfe4eb; border-radius: 7px; background: #f8fafc; color: #344054; font-size: 13.5px; }
.stats-control-bar select { min-width: 105px; height: 34px; padding: 0 28px 0 10px; border: 1px solid #dfe4eb; border-radius: 7px; background: #fff; color: #344054; font: 700 13.5px DM Sans, sans-serif; }
.stats-segmented { display: flex; height: 34px; padding: 3px; border: 1px solid #dfe4eb; border-radius: 8px; background: #f7f8fa; }
.stats-segmented button { min-width: 72px; border: 0; border-radius: 6px; background: transparent; color: #667085; font-size: 13px; font-weight: 700; cursor: pointer; }
.stats-segmented button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.stats-control-group:last-child { margin-left: auto; }
.stats-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.stats-kpi-grid article { position: relative; min-width: 0; min-height: 95px; overflow: hidden; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.stats-kpi-grid article::after { content: none; }
.stats-kpi-grid article.positive::after { background: var(--green-soft); }.stats-kpi-grid article.warning::after { background: var(--orange-soft); }.stats-kpi-grid article.purple::after { background: #f2edff; }
.stats-kpi-grid span, .stats-kpi-grid small { display: block; color: var(--muted); font-size: 12.5px; }.stats-kpi-grid strong { display: block; margin: 8px 0 4px; font: 800 20px Manrope, sans-serif; letter-spacing: -.3px; }.stats-kpi-grid small { color: #98a2b3; }.stats-kpi-grid .positive strong { color: var(--green); }.stats-kpi-grid .warning strong { color: var(--orange); }.stats-kpi-grid .purple strong { color: var(--purple); }
.stats-fee-kpi > div { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
.stats-fee-kpi p { min-width: 0; margin: 0; }
.stats-fee-kpi p + p { padding-left: 9px; border-left: 1px solid #e7e1fb; }
.stats-fee-kpi p strong { margin: 3px 0 0; font-size: 15.5px; white-space: nowrap; }
.stats-dashboard-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 13px; }
.portfolio-bars { height: 235px; display: grid; grid-template-columns: repeat(12, minmax(26px, 1fr)); align-items: end; gap: 9px; margin-top: 17px; padding: 20px 11px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 52px, #eff2f6 53px); }
.portfolio-bar { height: 100%; display: grid; grid-template-rows: 17px 1fr 23px; align-items: end; text-align: center; }.portfolio-bar > span { color: #667085; font-size: 12px; font-weight: 800; opacity: 0; transition: .18s; }.portfolio-bar > i { display: block; width: min(34px, 74%); min-height: 3px; margin: 0 auto; border-radius: 5px 5px 0 0; background: #dce8fb; transition: .18s; }.portfolio-bar > small { align-self: center; color: #98a2b3; font-size: 12px; }.portfolio-bar:hover > span, .portfolio-bar.current > span { opacity: 1; }.portfolio-bar:hover > i, .portfolio-bar.current > i { background: var(--primary); }.portfolio-bar.future > i, .portfolio-bar.future > span { visibility: hidden; }.portfolio-bar.future > small { opacity: .55; }
.stats-ring-layout { min-height: 205px; display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 22px; }.stats-ring { --collection: 65.5; width: 132px; height: 132px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at center, #fff 56%, transparent 57%), conic-gradient(var(--green) calc(var(--collection) * 1%), #e8edf2 0); }.stats-ring strong, .stats-ring span { display: block; }.stats-ring strong { font: 800 21.5px Manrope, sans-serif; color: var(--green); }.stats-ring span { margin-top: 2px; color: #98a2b3; font-size: 12px; }.stats-ring-layout > div:last-child { display: grid; gap: 4px; }.stats-ring-layout > div:last-child small { margin-top: 8px; color: #98a2b3; font-size: 12px; font-weight: 800; }.stats-ring-layout > div:last-child strong { font-size: 15px; color: #344054; }
.stats-fee-bars { display: grid; gap: 11px; margin-top: 21px; }.stats-fee-row { display: grid; grid-template-columns: 26px minmax(110px, 1fr) 75px; align-items: center; gap: 9px; }.stats-fee-row > strong { color: #667085; font-size: 12px; }.stats-fee-row > span { text-align: right; color: #344054; font-size: 12px; font-weight: 700; }.stats-fee-track { position: relative; height: 15px; }.stats-fee-track i { position: absolute; left: 0; display: block; border-radius: 3px; }.stats-fee-track .invoiced { top: 1px; height: 13px; background: #e5eaf1; }.stats-fee-track .collected { top: 4px; height: 7px; background: var(--primary); }.stats-fee-track .collected.single { top: 1px; height: 13px; }
.stats-table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.stats-table-panel[hidden] { display: none; }.stats-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; border-bottom: 1px solid var(--line); }.stats-table-heading h3 { margin: 0 0 3px; font: 800 17px Manrope, sans-serif; }.stats-table-heading p { margin: 0; color: var(--muted); font-size: 13px; }.stats-table-heading > span { padding: 5px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--primary); font-size: 12px; font-weight: 800; }.stats-table-scroll { width: 100%; overflow-x: hidden; }.stats-table-scroll table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }.stats-table-scroll th, .stats-table-scroll td { width: 6.45%; min-width: 0; padding: 10px 3px; border-bottom: 1px solid #eef1f4; text-align: center; font-size: 12px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }.stats-table-scroll th { color: #98a2b3; background: #fbfcfe; font-size: 12px; text-transform: uppercase; }.stats-table-scroll th:first-child, .stats-table-scroll td:first-child { position: static; width: 16%; min-width: 0; padding-left: 11px; padding-right: 6px; text-align: left; background: #fff; color: #344054; font-weight: 800; }.stats-table-scroll th:first-child { background: #fbfcfe; }.stats-table-scroll td.current-month { color: var(--primary); background: #f7faff; font-weight: 800; }.stats-table-scroll .annual-column { width: 7%; color: #1967d2; background: #f1f6ff; font-weight: 800; }.stats-table-note { margin: 0; padding: 11px 19px; color: #98a2b3; font-size: 12px; }
@media (max-width: 900px) { .stats-table-scroll th, .stats-table-scroll td { padding-left: 2px; padding-right: 2px; font-size: 12px; }.stats-table-scroll th { font-size: 12px; }.stats-table-scroll th:first-child, .stats-table-scroll td:first-child { width: 18%; padding-left: 7px; }.stats-table-scroll .annual-column { width: 8%; } }
@media (max-width: 1180px) { .stats-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .stats-kpi-grid { grid-template-columns: 1fr 1fr; }.stats-kpi-grid article:last-child:nth-child(odd) { grid-column: 1 / -1; }.stats-dashboard-grid { grid-template-columns: 1fr; }.portfolio-bars { gap: 4px; padding-left: 2px; padding-right: 2px; } }
@media (max-width: 620px) { .stats-control-bar { display: grid; grid-template-columns: 1fr 1fr; }.stats-control-bar label { grid-column: 1 / -1; }.stats-control-bar select { width: 100%; }.stats-control-group:last-child { margin-left: 0; }.stats-segmented button { min-width: 0; flex: 1; }.stats-kpi-grid { grid-template-columns: 1fr 1fr; }.stats-ring-layout { grid-template-columns: 120px 1fr; gap: 14px; }.stats-ring { width: 112px; height: 112px; }.portfolio-bars { height: 205px; }.portfolio-bar > i { width: 70%; }.stats-table-heading { align-items: flex-start; flex-direction: column; } }

/* Iconografía consistente del centro de configuración */
.settings-nav .settings-nav-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #e3e8ef; border-radius: 8px; background: #f8fafc; color: #667085; }
.settings-nav .settings-nav-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.settings-nav button:hover .settings-nav-icon { border-color: #cbd7e8; background: #fff; color: #475467; }
.settings-nav button.active .settings-nav-icon { border-color: #bdd2fb; background: #fff; color: var(--primary); box-shadow: 0 2px 6px rgba(39,105,232,.12); }
.team-role-explanation { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.team-role-explanation article { padding: 12px; border: 1px solid #e3e8ef; border-radius: 9px; background: #f9fbfd; }
.team-role-explanation strong { font-size: 14px; }
.team-role-explanation p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.team-invite-form { display: flex; align-items: end; gap: 10px; padding: 14px; border: 1px solid #dbe6f7; border-radius: 10px; background: #f7faff; }
.team-invite-form > div { flex: 1; display: grid; grid-template-columns: 1fr 1.2fr .9fr .8fr; gap: 9px; }
.team-invite-form label { color: #475467; font-size: 12.5px; font-weight: 700; }
.team-invite-form input,.team-invite-form select { display: block; width: 100%; height: 35px; margin-top: 5px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; padding: 0 9px; font-size: 13.5px; }
.team-invite-result { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(220px,1.3fr) auto; align-items: center; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid #b9dfc8; border-radius: 9px; background: #f4fbf7; }
.team-invite-result[hidden] { display: none; }
.team-invite-result strong,.team-invite-result small { display: block; }.team-invite-result strong { color: #18794e; font-size: 13.5px; }.team-invite-result small { margin-top: 3px; color: #667085; font-size: 12px; }
.team-invite-result input { min-width: 0; height: 34px; border: 1px solid #cfe0d5; border-radius: 7px; padding: 0 9px; color: #475467; font-size: 13px; background: #fff; }
.team-list-section { margin-top: 20px; }.team-list-section > div:first-child { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }.team-list-section > div:first-child strong { font-size: 14px; }.team-list-section > div:first-child span { color: var(--muted); font-size: 12px; }
.team-member-list { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.team-member-row { display: grid; grid-template-columns: minmax(160px,1.4fr) minmax(160px,1.2fr) 125px auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px; border-bottom: 1px solid #edf0f4; }.team-member-row:last-child { border-bottom: 0; }
.team-member-row strong,.team-member-row small { display: block; }.team-member-row strong { font-size: 13.5px; }.team-member-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.team-member-row select { height: 32px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; padding: 0 7px; font-size: 13px; }.team-member-row .role-fixed { color: #667085; font-size: 13px; font-weight: 700; }.team-member-row button { height: 30px; border: 1px solid #efc8c5; border-radius: 7px; padding: 0 9px; background: #fff; color: #c4322b; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.invite-auth-summary { display: grid; gap: 4px; margin-bottom: 14px; padding: 12px; border: 1px solid #dbe6f7; border-radius: 9px; background: #f7faff; }.invite-auth-summary span { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .6px; }.invite-auth-summary strong { font-size: 17px; }.invite-auth-summary small { color: var(--muted); font-size: 13px; }.invite-auth-summary em { width: fit-content; margin-top: 3px; padding: 4px 7px; border-radius: 99px; background: var(--blue-soft); color: var(--primary); font-size: 12px; font-style: normal; font-weight: 700; }
@media (max-width: 780px) { .team-invite-form { align-items: stretch; flex-direction: column; }.team-invite-form > div { grid-template-columns: 1fr; }.team-invite-result { grid-template-columns: 1fr; }.team-member-row { grid-template-columns: 1fr auto; }.team-member-row > div:nth-child(2) { grid-column: 1 / -1; } }
.onboarding-card{margin:0 0 24px;padding:24px;border:1px solid #cfe0ff;border-radius:18px;background:linear-gradient(135deg,#f7faff,#fff);box-shadow:0 12px 32px rgba(36,99,235,.08)}
.onboarding-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}.onboarding-heading h2{margin:4px 0 5px;font-size: 23.5px}.onboarding-heading p{margin:0;color:#667085}.onboarding-progress{min-width:180px;text-align:right}.onboarding-progress strong{display:block;margin-bottom:8px;color:#2463eb}.onboarding-progress span{display:block;height:8px;border-radius:99px;background:#e7eefb;overflow:hidden}.onboarding-progress i{display:block;height:100%;width:0;background:#2463eb;border-radius:inherit;transition:width .25s ease}
.onboarding-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.onboarding-step{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e4e9f2;border-radius:12px;background:#fff;text-align:left;color:#344054;cursor:pointer}.onboarding-step:hover{border-color:#9dbcf8}.onboarding-step>span{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#eef3ff;color:#2463eb;font-weight:800}.onboarding-step.complete{color:#288447;background:#f5fbf7;border-color:#ccebd6}.onboarding-step.complete>span{background:#dff4e6;color:#288447}.onboarding-step small{display:block;margin-top:3px;color:#98a2b3}
.document-list{display:grid;gap:10px;margin-top:16px}.document-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e5e9f0;border-radius:12px;background:#fff}.document-item-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#edf4ff;color:#2463eb;font-weight:800}.document-item p{margin:0;min-width:0}.document-item strong,.document-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-item small{margin-top:3px;color:#7b8494}.document-item-actions{display:flex;gap:8px}.document-item-actions a,.document-item-actions button{border:1px solid #d8dee8;border-radius:8px;background:#fff;color:#344054;padding:7px 10px;text-decoration:none;cursor:pointer}.document-item-actions button{color:#d84a4a}.document-empty{padding:20px;text-align:center;color:#7b8494;border:1px dashed #d6dce6;border-radius:12px}
.stored-receipts{margin-top:26px;padding-top:22px;border-top:1px solid #e7ebf1}.stored-receipts h4{margin:0 0 4px}.stored-receipts>p{margin:0;color:#7b8494}.activity-history-modal{width:min(720px,calc(100vw - 32px));max-height:min(780px,calc(100vh - 40px));overflow:auto}.full-activity-list{display:grid;gap:10px;margin-top:20px}.full-activity-list article{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;padding:14px;border:1px solid #e5e9f0;border-radius:12px}.full-activity-list span{color:#7b8494}.full-activity-list strong,.full-activity-list small{display:block}.full-activity-list small{margin-top:4px;color:#667085}
@media(max-width:1000px){.onboarding-steps{grid-template-columns:1fr}}@media(max-width:650px){.onboarding-heading{align-items:flex-start;flex-direction:column}.onboarding-progress{width:100%;text-align:left}.onboarding-steps{grid-template-columns:1fr}}
.password-fields select, .password-fields textarea { display: block; width: 100%; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px; font-size: 14px; }.password-fields select { height: 36px; background: #fff; }.password-fields textarea { padding: 8px 10px; resize: vertical; font-family: inherit; }

.billing-payer { display: grid; gap: 4px; margin: -4px 0 14px; font-size: 14px; color: #526174; }.billing-payer input { max-width: 340px; }.billing-payer small { color: #7a8697; }
.billing-history { margin: 0 0 16px; }.billing-history h4 { margin: 0 0 6px; font-size: 15px; }.billing-history table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; }.billing-history th, .billing-history td { padding: 6px 8px; border-bottom: 1px solid #e6ebf2; text-align: left; }.billing-history .billing-failed { color: #b42318; font-weight: 600; }
.platform-plan-release { display: block; margin-top: 4px; padding: 2px 6px; border: 1px solid #f0d7a5; border-radius: 6px; background: #fff9ec; color: #8a5a00; font-size: 13px; cursor: pointer; }

.boot-screen { display: none; }
html.booting .boot-screen { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--canvas); color: #526174; font-size: 15px; }
html.booting #marketingSite { display: none; }
.boot-logo { width: 52px; height: 52px; animation: boot-pulse 1.4s ease-in-out infinite; }
@keyframes boot-pulse { 50% { transform: scale(.9); opacity: .7; } }
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-logo { animation: none; } }
.billing-payer[hidden], .billing-history[hidden] { display: none; }
.toast.error > span { background: #d92d20; color: #fff; }
.plan-grid article button { white-space: normal; line-height: 1.2; min-height: 38px; height: auto; }
@media (min-width: 901px) and (max-width: 1500px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.topbar.compact .greeting { display: none; }
@media (min-width: 761px) { .topbar.compact { display: none; } }
.activity-list > div { display: grid; grid-template-columns: 92px 1fr; column-gap: 12px; row-gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-list > div:last-child { border-bottom: 0; }
.activity-list > div > span { grid-row: span 2; color: var(--muted); font-size: 13px; padding-top: 2px; }
.activity-list > div > strong { font-size: 14.5px; }
.activity-list > div > small { color: var(--muted); font-size: 13px; }

.responsive-table th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
.responsive-table .row-button, .responsive-table td button { white-space: nowrap; }
.empty-value { display: block; color: var(--muted); font-weight: 400; }
.method-card[disabled] { cursor: not-allowed; opacity: .6; background: #f7f8fa; }
.method-card[disabled]:hover { transform: none; border-color: var(--line); }
.wizard-step[data-step="0"] { min-height: 0; }
.wizard-marker[hidden] { display: none; }
.people-table td, .properties-table td { padding-top: 12px; padding-bottom: 14px; vertical-align: middle; }
.people-table .completion-badge, .properties-table .completion-badge { margin-top: 7px; padding: 4px 9px; }
/* Tablas: texto de lectura cómoda en escritorio (el móvil usa sus propios tamaños). */
@media (min-width: 761px) {
  .responsive-table th { font-size: 12.5px; }
  .responsive-table td { font-size: 14.5px; }
  .responsive-table .property-cell strong, .responsive-table .contract-main strong, .responsive-table .tenant-cell strong { font-size: 15px; }
  .responsive-table .property-cell small, .responsive-table .contract-main small, .responsive-table .tenant-cell small { font-size: 13.5px; }
  .responsive-table .status-pill, .responsive-table .row-button, .responsive-table .activity-note { font-size: 13px; }
  .responsive-table .tenant-avatar { font-size: 13px; }
}
.search-box { max-width: 100%; box-sizing: border-box; }
.search-box input { min-width: 0; width: 100%; }
@media (min-width: 761px) { .search-box { min-width: 270px; } }
.table-empty-row td { padding: 34px 16px !important; text-align: center; }
.table-empty-row strong { display: block; font-size: 15px; margin-bottom: 4px; }
.table-empty-row span { color: var(--muted); font-size: 14px; }
.nav-item:focus:not(:focus-visible) { outline: none; box-shadow: none; }
/* Pestañas de contrato y persona: alineadas con las tarjetas en lugar de salirse por los costados. */
.contract-tabs, .person-tabs { margin: 0 0 16px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; }
.completion-badge { font-size: 13px; }
/* Mismo aire en todas las tablas (antes solo Personas y Propiedades). */
@media (min-width: 761px) {
  .responsive-table td { padding-top: 13px; padding-bottom: 13px; height: auto; vertical-align: middle; }
  .responsive-table th { padding-top: 10px; padding-bottom: 10px; }
}
.app-tooltip { position: fixed; z-index: 100; max-width: 260px; padding: 7px 10px; border-radius: 8px; background: #152536; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 6px 18px rgba(12, 22, 37, .22); pointer-events: none; }
.app-tooltip[hidden] { display: none; }
/* <small> sin tamaño propio: el navegador lo reduce al 83% del padre; nunca por debajo de 12 px. */
small { font-size: max(12px, .85em); }
.template-list textarea { font-size: 14px; }

.marketing-secondary { height: 40px; border: 1.5px solid #c9d6ec; border-radius: 8px; padding: 0 16px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 800; cursor: pointer; }
.marketing-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.marketing-secondary.large { height: 49px; padding: 0 22px; font-size: 18px; }
.demo-status { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.demo-status.success { background: #f0fbf4; color: #247245; }
.demo-status.error { background: #fdecea; color: #b42318; }
#demoForm small { color: var(--muted); font-weight: 500; }
.demo-requests-card { margin-top: 16px; }
.demo-requests-card h3 { margin: 0; font-size: 16px; }
.demo-requests-card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.demo-requests-card td small { display: block; color: var(--muted); }
.prototype-badge span { width: auto; height: auto; background: none; box-shadow: none; color: var(--primary); border-radius: 0; font-size: 13px; }
.google-auth-section[hidden] { display: none; }
#demoForm small { color: rgba(255, 255, 255, .75); }
/* Controles de formulario con la tipografía de la app (el navegador usa la del sistema). */
input, select, textarea, button { font-family: inherit; }
/* Panel de plataforma: mismos tamaños que las demás tablas y sin desbordar la tarjeta. */
.platform-table { min-width: 0; table-layout: auto; }
.platform-table th { font-size: 12.5px; padding: 10px 12px; }
.platform-table td { font-size: 14.5px; padding: 12px; }
.platform-table td small { font-size: 13px; }
.platform-table select { height: 34px; font-size: 13.5px; font-weight: 600; max-width: 170px; }
.platform-actions { flex-wrap: wrap; white-space: normal; gap: 5px; }
.platform-actions button { height: 30px; font-size: 13px; padding: 0 8px; }
/* "Plataforma · INTERNO" en el menú: separado arriba sin bordes raros e insignia alineada. */
.platform-nav-item { margin-top: 12px; border-top: 0 !important; border-radius: 9px !important; padding-top: 0 !important; }
.platform-nav-item::before { content: ""; position: absolute; left: 6px; right: 6px; top: -7px; border-top: 1px solid var(--line); }
.platform-nav-item { position: relative; }
.platform-only-badge { justify-self: end; padding: 2px 6px; border-radius: 5px; background: #e6eeff; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .3px; line-height: 1.4; }
.feature-locked { opacity: .55; cursor: not-allowed; }
.feature-note { display: block; margin-top: 6px; color: #8a5a00; font-size: 13px; font-weight: 600; }
.feature-note[hidden] { display: none; }
.logo-upload > .feature-note, .receipt-profile-toggle > .feature-note { flex-basis: 100%; margin-top: 0; }.receipt-profile-toggle > div { flex: 1 1 220px; }
.plans-admin-card { margin-top: 16px; }
.plans-admin-card h3 { margin: 0; font-size: 16px; }
.plans-admin-card .platform-toolbar p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.plan-feature-list { max-width: 280px; line-height: 1.4; }
.plan-inactive td { opacity: .55; }
.plan-editor-modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; }
.plan-editor-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink); }
.plan-editor-form label small { color: var(--muted); font-weight: 500; }
.plan-editor-form input:not([type="checkbox"]), .plan-editor-form select, .plan-editor-form textarea { height: 38px; padding: 0 10px; border: 1px solid #dfe4eb; border-radius: 8px; font-size: 14.5px; }
.plan-editor-form textarea { height: auto; min-height: 90px; padding: 9px 10px; }
.plan-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.plan-editor-grid .wide, .plan-editor-form > label.wide { grid-column: 1 / -1; margin-bottom: 12px; }
.plan-editor-features { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.plan-editor-features legend { padding: 0 4px; font-weight: 700; font-size: 14px; }
.plan-editor-features div, .plan-editor-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-editor-features label, .plan-editor-checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.plan-editor-checks { margin-bottom: 12px; }
.plan-editor-warning { padding: 10px 12px; border-radius: 8px; background: #fff9ec; color: #8a5a00; font-size: 14px; }
.plan-editor-warning[hidden] { display: none; }
@media (max-width: 640px) { .plan-editor-grid, .plan-editor-features div, .plan-editor-checks { grid-template-columns: 1fr; } }
.plans-admin-card td { white-space: normal; }
.plan-feature-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.plan-feature-chips span { padding: 2px 8px; border-radius: 99px; background: #edf4ff; color: var(--primary); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
/* admin.renta.ar fuera del modo soporte: solo el panel de plataforma. */
html.admin-site .nav-item:not(.platform-nav-item):not(.admin-nav-item), html.admin-site #newContractControl, html.admin-site .sidebar-help { display: none !important; }
html.admin-site .platform-nav-item { margin-top: 0; }
html.admin-site .platform-nav-item::before { display: none; }
.platform-tabs { display: flex; gap: 4px; margin: 0 0 16px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow-x: auto; }
.platform-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: none; padding: 12px 14px 11px; color: #667085; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.platform-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.platform-tabs button span { display: inline-grid; min-width: 18px; height: 18px; margin-left: 4px; place-items: center; border-radius: 99px; background: var(--primary); color: #fff; font-size: 12px; }
.platform-tabs button span[hidden] { display: none; }
[data-platform-panel][hidden] { display: none !important; }
.metrics-loading { padding: 30px; color: var(--muted); }
.metric-grid-admin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-tile { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.metric-tile span { display: block; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.metric-tile strong { display: block; margin: 6px 0 2px; font: 800 26px Manrope, sans-serif; color: var(--ink); letter-spacing: -.5px; }
.metric-tile small { color: var(--muted); font-size: 13px; }
.metric-tile.warning strong { color: #b54708; }
.metric-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.metric-card.wide { grid-column: 1 / -1; }
.metric-card h3 { margin: 0; font-size: 15.5px; }
.metric-card > p { margin: 3px 0 14px; color: var(--muted); font-size: 13.5px; }
.column-chart { display: flex; align-items: flex-end; gap: 2px; height: 170px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.column { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; }
.column span { width: 70%; max-width: 38px; background: var(--primary); border-radius: 4px 4px 0 0; }
.column:hover span { filter: brightness(1.12); }
.column em { position: absolute; top: -20px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.column small { position: absolute; bottom: -20px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.metric-card .column-chart { margin-bottom: 24px; }
.bar-list { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.bar-row div { height: 10px; border-radius: 4px; background: #eef2f7; overflow: hidden; }
.bar-row i { display: block; height: 100%; background: var(--primary); border-radius: 0 4px 4px 0; }
.bar-row strong { font-size: 14px; min-width: 32px; text-align: right; }
.usage-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.usage-list dt { color: var(--muted); font-size: 13px; }
.usage-list dd { margin: 2px 0 0; font: 800 20px Manrope, sans-serif; color: var(--ink); }
.metrics-foot { margin: 12px 2px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .metric-grid-admin, .metric-charts { grid-template-columns: 1fr; } .usage-list { grid-template-columns: 1fr 1fr; } }
/* admin.renta.ar: secciones en la barra lateral, sin pestañas ni accesos de cliente. */
.admin-nav-item { display: none; }
html.admin-site .admin-nav-item { display: grid; }
html.admin-site .platform-nav-item, html.admin-site .platform-tabs, html.admin-site #openAccountSettings { display: none !important; }
/* Botones sin el recuadro de foco al hacer clic (se mantiene para el teclado). */
button:focus:not(:focus-visible) { outline: none; box-shadow: none; }
/* Inmobiliarias: acciones apiladas, sin cortarse. */
.platform-table td:last-child { width: 1%; }
.platform-table .platform-actions { flex-direction: column; align-items: stretch; flex-wrap: nowrap; min-width: 112px; }
.platform-table .platform-actions button { white-space: nowrap; }
/* Tarjetas de Inmobiliarias con el mismo estilo que las del resumen. */
.platform-kpi-grid { gap: 12px; margin-bottom: 14px; }
.platform-kpi-grid article { padding: 16px 18px; border-radius: 12px; box-shadow: none; }
.platform-kpi-grid span { font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.platform-kpi-grid strong { display: block; margin: 6px 0 2px; font: 800 26px Manrope, sans-serif; letter-spacing: -.5px; }
.platform-kpi-grid small { font-size: 13px; }

/* Ingreso del panel interno (admin.renta.ar). */
html.admin-login .auth-screen { display: grid; place-items: center; min-height: 100vh; grid-template-columns: 1fr; background: radial-gradient(circle at 20% 10%, #1e3a8a 0, #0f172a 55%) fixed; }
html.admin-login .auth-screen[hidden] { display: none; }
html.admin-login .auth-showcase, html.admin-login #authBackMarketing, html.admin-login .prototype-badge, html.admin-login .auth-mode-switch, html.admin-login .auth-prototype-note, html.admin-login #googleAuthSection { display: none !important; }
html.admin-login .auth-access { width: 100%; max-width: 420px; padding: 24px 16px; background: none; min-height: 0; }
html.admin-login .auth-card { padding: 34px 32px 28px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(2, 6, 23, .45); }
.admin-login-brand { display: none; }
html.admin-login .admin-login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.admin-login-mark { width: 34px; height: 34px; }
.admin-login-brand .logo-nombre { height: 18px; }
html.admin-login .auth-card-heading { margin-bottom: 18px; }

.platform-table td small { overflow-wrap: anywhere; }
.platform-table td:nth-child(2) { max-width: 230px; }
.platform-table td:nth-child(2) small { word-break: break-all; padding-right: 8px; }
/* Selectores del panel: flecha propia, centrada y con margen (la nativa queda pegada al borde). */
.platform-table select, .demo-requests-card select {
  appearance: none; -webkit-appearance: none;
  padding: 0 32px 0 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  cursor: pointer;
}
.platform-table select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.platform-table td a { color: var(--primary); font-weight: 600; text-decoration: none; }
.platform-table td a:hover { text-decoration: underline; }
/* Inmobiliarias: correos que cortan, insignia "Manual" debajo del selector y acciones compactas. */
.platform-table td { white-space: normal; }
.platform-table td:nth-child(3) { white-space: nowrap; }
.platform-plan-release { display: block; width: max-content; margin-top: 6px; }
.platform-table .platform-actions { flex-direction: row; align-items: center; min-width: 0; gap: 6px; }
.platform-more { position: relative; }
.platform-more summary { list-style: none; display: grid; place-items: center; width: 32px; height: 30px; border: 1px solid #d9e0ea; border-radius: 7px; background: #fff; color: #344054; font-weight: 800; cursor: pointer; }
.platform-more summary::-webkit-details-marker { display: none; }
.platform-more[open] summary { border-color: var(--primary); color: var(--primary); }
.platform-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; gap: 4px; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(16, 24, 40, .14); }
.platform-more-menu button { width: 100%; text-align: left; }
.platform-extend-trial { display: grid; gap: 5px; min-width: 200px; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); }.platform-extend-trial label { display: flex; align-items: center; gap: 6px; color: #344054; font-size: 13px; font-weight: 700; }.platform-extend-trial input { width: 58px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }.platform-extend-trial small { color: var(--muted); font-size: 12px; }
/* Barra lateral: sin anillo de foco al hacer clic (sí con teclado, como borde interno sutil). */
.nav-item:focus { outline: none; }
.nav-item:focus-visible { box-shadow: inset 0 0 0 2px #b8cdf6; }
.platform-list-card .platform-table td:nth-child(n+4) { white-space: nowrap; }
.payment-collected-note { margin: -6px 0 12px; padding: 9px 11px; border-radius: 8px; background: #fff8eb; color: #7a4b00; font-size: 13px; }
.payment-collected-note strong { font-weight: 800; }
/* Varias líneas de conceptos (y pagos parciales) van una debajo de otra. */
.document-lines > #tenantReceiptConcepts, .document-lines > #ownerReceiptConcepts { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; border-bottom: 0; }
.document-lines > #tenantReceiptConcepts:empty, .document-lines > #ownerReceiptConcepts:empty { display: none; }
.document-deduction.neutral > strong { color: #344054; }
/* Íconos de línea (mismo trazo que el menú lateral) en lugar de caracteres sueltos. */
.ui-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mini-icon.orange { background: #fff4e5; color: #c4660a; }
.mini-icon .ui-icon { width: 16px; height: 16px; }
.document-note > span { display: grid; place-items: center; }
.document-note .ui-icon { width: 17px; height: 17px; }
.modal-icon .ui-icon { width: 21px; height: 21px; }
.platform-billing-note { display: block; margin-top: 4px; color: #b54708; font-size: 12px; }
/* `hidden` siempre oculta, aunque la clase del elemento defina otro display (botones del menú, navegación, filas de formularios). */
[hidden] { display: none !important; }
/* Interruptor de tema (sol / luna) en el menú de usuario. */
.profile-menu > .theme-switch { padding: 8px; border-bottom: 1px solid #f0f2f5; background: #fff; }
.theme-switch .theme-toggle { display: grid; grid-template-columns: 1fr 1fr; }
.theme-switch .theme-toggle button { width: auto; height: 30px; }
.theme-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #dfe4eb; border-radius: 999px; background: #f2f4f7; }
.theme-toggle button { display: grid; place-items: center; width: 32px; height: 26px; border: 0; border-radius: 999px; background: transparent; color: #667085; cursor: pointer; }
.theme-toggle button:hover { color: #344054; }
.theme-toggle button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle button[data-theme-choice="dark"].active svg { fill: currentColor; }
/* Celular: las tablas principales pasan a tarjetas (una por fila), con el nombre de cada columna
   (data-label, lo completa app.js desde el encabezado). Así no se aplastan 6–8 columnas en 375 px. */
@media (max-width: 760px) {
  .responsive-table-wrap { overflow-x: visible; }
  .responsive-table, .responsive-table tbody { display: block; width: 100%; min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .responsive-table td, .responsive-table th:first-child, .responsive-table td:first-child { display: block; width: auto; height: auto; min-width: 0; padding: 0; border: 0; font-size: 13px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
  .responsive-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
  .responsive-table td[colspan] { grid-column: 1 / -1; text-align: center; }
  /* La celda principal (dirección o persona) ocupa todo el ancho; las acciones van abajo, a la derecha. */
  .contracts-table td:nth-child(2), .rentals-table td:nth-child(1), .people-table td:nth-child(1), .properties-table td:nth-child(1), .incidents-table td:nth-child(3) { grid-column: 1 / -1; }
  .responsive-table td:last-child:not([colspan]) { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
  .responsive-table td:last-child:not([colspan])::before { display: none; }
  .responsive-table .status-pill { width: max-content; }
  .responsive-table .contract-row-actions { justify-content: flex-end; gap: 6px; }
  /* Los cinco botones (WhatsApp, Email, Copiar, Ver y el menú) entran en una fila de 390 px. */
  .contracts-table .contract-row-actions { gap: 4px; }
  .contracts-table .contract-quick-channel { height: 32px; padding: 0 7px 0 6px; }
  .contracts-table .contract-quick-channel.menu { width: 32px; padding: 0; }
  .contract-row-actions-cell { width: 100%; align-items: flex-end; }
  .contract-actions-kind.pending { display: block; }
  .responsive-table .row-button, .responsive-table .property-edit-button { height: 32px; padding: 0 14px; font-size: 13px; }
}
/* Estadísticas: 12 barras entran en 375 px y los títulos de las tarjetas quedan sobre el círculo decorativo. */
.stats-kpi-grid article > * { position: relative; z-index: 1; }
@media (max-width: 480px) { .portfolio-bars { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; padding-left: 0; padding-right: 0; }.portfolio-bar > span, .portfolio-bar > small { font-size: 10px; } }
@media (max-width: 560px) { .modal-backdrop { padding: 10px; } }
/* Celular: las acciones del contrato y de la persona bajan de línea; la principal va primero y a lo ancho. */
@media (max-width: 760px) {
  .detail-heading-actions, .person-detail-actions { flex-wrap: wrap; }
  .detail-heading-actions button, .person-detail-actions button { flex: 1 1 calc(50% - 4px); min-width: 0; white-space: normal; }
  .detail-heading-actions .primary-button, .person-detail-actions .primary-button { flex-basis: 100%; order: -1; }
}
@media (max-width: 760px) {
  .responsive-table td { text-align: left; }
  /* Encabezado de cada paso del mes: el título usa el ancho y las acciones bajan a su propia línea. */
  .workflow-heading { grid-template-columns: auto minmax(0, 1fr); }
  .workflow-heading-actions { grid-column: 1 / -1; flex-wrap: wrap; justify-content: space-between; }
}
@media (max-width: 560px) {
  /* Botones de las ventanas: la acción principal arriba y a lo ancho; Cancelar debajo. */
  .modal .modal-actions { flex-direction: column-reverse; align-items: stretch; }
  .modal .modal-actions button { width: 100%; margin: 0; white-space: normal; }
  /* Vista previa del comprobante en el celular: el encabezado se apila en vez de cortarse. */
  .receipt-document .document-top { flex-direction: column; gap: 12px; }
  .receipt-document .document-top > div:last-child { text-align: left; }
  .receipt-document .document-heading { justify-items: start; }
}
@media (max-width: 560px) {
  .workflow-actions.owner-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .workflow-actions.owner-actions .primary-button { width: 100%; }
}

/* Safari en iPhone: ventanas que se desplazan, campos sin estilo nativo y landing ajustada. */
.modal-backdrop { place-items: start center; overflow-y: auto; overscroll-behavior: contain; }
.modal-backdrop > * { margin-block: auto; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.search-box input { background: transparent; }
input[type="date"], input[type="month"], input[type="time"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; }
input[type="date"]::-webkit-date-and-time-value, input[type="month"]::-webkit-date-and-time-value { text-align: left; }
/* Campo de fecha vacío: Safari dibuja la fecha de hoy en gris como si fuera un valor; se oculta hasta el foco (app.js marca data-empty). */
input[type="date"][data-empty]:not(:focus)::-webkit-datetime-edit { opacity: 0; }
@media (max-width: 760px) {
  .stats-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stats-table-scroll table { width: max-content; min-width: 100%; table-layout: auto; }
  .stats-table-scroll th, .stats-table-scroll td { width: auto; min-width: 46px; padding: 10px 8px; white-space: nowrap; overflow-wrap: normal; }
  .stats-table-scroll th:first-child, .stats-table-scroll td:first-child { position: sticky; left: 0; z-index: 1; width: auto; min-width: 128px; white-space: normal; box-shadow: 1px 0 0 #eef1f4; }
  .steps-section { border-radius: 18px; }
  .pricing-section { padding-bottom: 26px; }
  .faq-section { padding-top: 46px; }
}
@media (max-width: 480px) { .marketing-secondary.large { width: 100%; } }

/* Datos completados desde una ficha ya cargada y aviso de registros existentes. */
input.autofilled, select.autofilled { background: #f3f8ff; border-color: #c9dbf8; }
.autofill-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #c9dbf8; border-radius: 10px; background: #f3f8ff; color: #344054; font-size: 13.5px; line-height: 1.4; }
.autofill-hint[hidden] { display: none; }
.autofill-hint button { border: 0; padding: 0; background: transparent; color: var(--primary); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.quick-property-fields .autofill-hint { margin: 12px 0 0; }

/* Textos largos: nada se sale de su celda ni de su caja, y las etiquetas cortas no se parten. */
.status-pill, .completion-badge, .person-role, .incident-priority, .row-button, .team-member-row button, .subsection-heading button { white-space: nowrap; }
.tenant-avatar, .avatar { flex: 0 0 auto; white-space: nowrap; }
.responsive-table td { white-space: normal; overflow-wrap: break-word; }
.responsive-table td :is(strong, small) { overflow-wrap: anywhere; }
/* En la tabla de escritorio, el dato principal ocupa hasta dos líneas y el secundario una. */
@media (min-width: 1101px) {
  .responsive-table td strong:not(.status-pill) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .responsive-table td small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
/* Hasta 1100 px (ventana angosta o tablet, con el menú lateral) las tablas pasan a tarjetas, como en el celular. */
@media (min-width: 761px) and (max-width: 1100px) {
  .responsive-table-wrap { overflow-x: visible; }
  .responsive-table, .responsive-table tbody { display: block; width: 100%; min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .responsive-table td, .responsive-table th:first-child, .responsive-table td:first-child { display: block; width: auto; height: auto; min-width: 0; padding: 0; border: 0; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
  .responsive-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #98a2b3; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
  .responsive-table td[colspan] { grid-column: 1 / -1; text-align: center; }
  .contracts-table td:nth-child(2), .rentals-table td:nth-child(1), .people-table td:nth-child(1), .properties-table td:nth-child(1), .incidents-table td:nth-child(3) { grid-column: 1 / -1; }
  .responsive-table td:last-child:not([colspan]) { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
  .responsive-table td:last-child:not([colspan])::before { display: none; }
  .responsive-table .status-pill { width: max-content; }
  .responsive-table .contract-row-actions { justify-content: flex-end; gap: 6px; }
  .contract-row-actions-cell { width: 100%; align-items: flex-end; }
  .contract-actions-kind.pending { display: block; }
  .responsive-table td:not([colspan]) { text-align: left; }
  .responsive-table td:not([colspan]) > * { margin-left: 0; margin-right: 0; justify-content: flex-start; }
}
.detail-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
/* Buscador, filtros y acciones en una línea; solo en ventanas angostas (controles a todo el ancho) pueden pasar abajo. */
@media (max-width: 1120px) { .workspace-actions { flex-wrap: wrap; } }
/* Entre 1121 y 1300 px el título va arriba y los controles debajo, en una sola fila a todo el ancho. */
@media (min-width: 1121px) and (max-width: 1300px) { .workspace-header { flex-direction: column; align-items: stretch; } .workspace-actions { width: 100%; } .workspace-actions .search-box { flex: 1; width: auto; } }
@media (min-width: 1301px) { .workspace-header > div:first-child { min-width: 0; flex: 1 1 auto; } .workspace-actions { flex: 0 0 auto; } .workspace-actions .search-box { min-width: 170px; } }
@media (min-width: 781px) and (max-width: 1100px) {
  .team-member-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .team-member-row > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .team-member-row > * { min-width: 0; }
  .team-invite-form > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .team-invite-form > div > :last-child { grid-column: 1 / -1; }
}
.team-member-row select { min-width: 120px; }
/* Actualizaciones: "Monto actual" en una línea y una flecha simple que gira sobre su centro. */
@media (min-width: 761px) { .update-period-summary { grid-template-columns: minmax(0, 1fr) auto auto 18px; } }
.update-period-summary > em { display: grid; place-items: center; width: 18px; height: 18px; color: #98a2b3; transition: transform .2s ease; }
.chevron-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chevron { display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .update-period-summary > em { transition: none; } }
@media (max-width: 420px) { .wizard-marker small { font-size: 11.5px; letter-spacing: 0; } }

/* Íconos: los recuadros de ícono, avatares y logos mantienen su forma cuadrada aunque el texto de al lado sea largo. */
.modal-icon, .mini-icon, .fee-icon, .feature-icon, .pilot-logo, .workflow-transfer > span, .person-number, .avatar, .tenant-avatar, .inline-create-note > span { flex-shrink: 0; }
.person-tabs button span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; }
/* Desplegables: la misma flecha en todos, con margen del borde derecho. */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 14px 14px !important; }

@media (max-width: 760px) { .responsive-table td:not([colspan]) { text-align: left; } .responsive-table td:not([colspan]) > * { margin-left: 0; margin-right: 0; justify-content: flex-start; } .responsive-table td:last-child:not([colspan]) { justify-content: flex-end; } }

/* Elementos que llevan a otra pantalla: sin flechas "→"; al pasar el mouse se marca el fondo. */
.status-card { grid-template-columns: auto 1fr; transition: background-color .15s ease, border-color .15s ease; }
.status-card:hover { transform: none; box-shadow: none; background: #f5f9ff; border-color: #c9dbf8; }
.onboarding-step { transition: background-color .15s ease, border-color .15s ease; }
.onboarding-step:hover { background: #f5f9ff; border-color: #c9dbf8; }
.onboarding-step.complete:hover { background: #ecf8f0; border-color: #b7e2c5; }
/* Primeros pasos en tres pasos: descripción, partes del último paso y el paso siguiente resaltado. */
.onboarding-step-text { display: block; margin-top: 4px; color: #667085; font-size: 13px; line-height: 1.4; }
.onboarding-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.onboarding-part { padding: 2px 8px; border-radius: 99px; background: #f2f4f7; color: #667085; font-size: 12px; font-weight: 600; }
.onboarding-part.complete { background: #dff4e6; color: #288447; }
.onboarding-step.next { border-color: #2463eb; box-shadow: 0 0 0 3px rgba(36,99,235,.12); }
.onboarding-step.next > span { background: #2463eb; color: #fff; }
.onboarding-step.next small { color: #2463eb; font-weight: 700; }
.onboarding-step.highlight { animation: onboardingPulse 1.2s ease 2; }
@keyframes onboardingPulse { 50% { box-shadow: 0 0 0 7px rgba(36,99,235,.22); } }
@media (prefers-reduced-motion: reduce) { .onboarding-step.highlight { animation: none; } }
.section-title > button { padding: 5px 9px; border-radius: 7px; transition: background-color .15s ease; }
.section-title > button:hover { background: #edf4ff; }
.person-contract-list > button { grid-template-columns: auto 1fr; border-radius: 8px; transition: background-color .15s ease; }
.person-contract-list > button:hover { background: #f5f9ff; }
.detail-back, .auth-back, .auth-secondary-action { padding: 5px 9px; border-radius: 7px; transition: background-color .15s ease, color .15s ease; }
.detail-back, .auth-back { margin-left: -9px; }
.detail-back:hover, .auth-back:hover, .auth-secondary-action:hover { background: #edf4ff; color: var(--primary); }

/* Selector de tema también en la landing y en el ingreso (app y admin). */
.marketing-header-actions .theme-toggle { margin-right: 4px; }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
.auth-card-top .auth-back { margin-bottom: 0; }
.auth-card-top > .theme-toggle { margin-left: auto; }
.marketing-nav a, .marketing-login, .marketing-primary { white-space: nowrap; }
.marketing-nav { gap: clamp(16px, 2.1vw, 31px); }
/* En el ingreso del panel interno no hay "Volver al sitio": el selector va arriba a la derecha. */
html.admin-login .auth-card { position: relative; }
html.admin-login .auth-card-top { position: absolute; top: 28px; right: 28px; margin: 0; }
/* Encabezado: nunca se desborda. Las columnas pueden achicarse; el subtítulo de la marca y el menú se ocultan antes de que no entren los botones. */
.marketing-header > * { min-width: 0; }.marketing-header { gap: clamp(16px, 2.5vw, 36px); }
@media (max-width: 1240px) { .marketing-brand small { display: none; } .marketing-nav a { font-size: 16px; } }
@media (max-width: 1040px) { .marketing-nav { display: none; } .marketing-header { grid-template-columns: 1fr auto; } }
@media (max-width: 480px) { .marketing-brand .logo-nombre { height: 16px; } .marketing-header { gap: 10px; } .marketing-header-actions { gap: 6px; } .marketing-header-actions .theme-toggle { margin-right: 0; } .marketing-header-actions .theme-toggle button { width: 28px; } }

@media (max-width: 380px) { .marketing-header-actions .marketing-primary { padding: 0 10px; font-size: 14px; } .marketing-brand .logo-nombre { height: 14px; } }
@media (max-width: 340px) { .marketing-brand > span:last-child { display: none; } }
/* Logos: el cuadrado de la marca no se angosta aunque el texto de al lado ocupe dos líneas. */
/* Logo N6: los <symbol> de index.html toman sus colores de estas variables. */
.logo-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-nombre { display: block; width: auto; max-width: 100%; aspect-ratio: 371 / 71; color: #182230; }
.marketing-brand-mark, .brand-mark, .auth-brand-mark, .boot-logo, .brand-logo-preview, .branding-logo-preview { flex-shrink: 0; }
.marketing-brand small { white-space: nowrap; }

/* Importes con su moneda al lado (alquiler y depósito pueden ir en monedas distintas). */
.money-field { display: flex; margin-top: 5px; }
.form-grid .money-field select, .form-grid .money-field input { margin-top: 0; }
.form-grid .money-field select { flex: 0 0 88px; width: 88px; border-top-right-radius: 0; border-bottom-right-radius: 0; padding-left: 10px; font-weight: 700; }
.form-grid .money-field input { flex: 1; min-width: 0; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
#currentAmountPrefix { min-width: 0; }
.input-prefix:has(#currentAmountPrefix) input { padding-left: 34px; }

/* Celular: el menú lateral se desplaza solo (hasta el perfil, abajo) y ocupa la parte visible de la pantalla. */
@media (max-width: 760px) {
  .sidebar { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .problem-section { border-radius: 18px; }
}
/* Estadísticas: el selector Dashboard / Tabla ocupa su fila y cada opción la mitad. */
.stats-segmented button { padding: 0 14px; white-space: nowrap; }
@media (max-width: 620px) {
  .stats-control-group:last-child { grid-column: 1 / -1; }
  .stats-control-group:last-child .stats-segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 38px; }
}

/* Configuración en el celular: las secciones en dos columnas (ícono y título), sin desplazamiento
   horizontal; los encabezados de cada sección apilan el título y su botón o estado. */
@media (max-width: 760px) {
  .settings-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .settings-nav button { min-width: 0; min-height: 46px; grid-template-columns: 27px minmax(0, 1fr); }
  .settings-nav small { display: none; }
  .settings-nav strong { font-size: 13.5px; line-height: 1.25; }
  .settings-panel-heading { flex-direction: column; align-items: stretch; }
  .settings-panel-heading > :not(:first-child) { align-self: flex-start; }
}
/* Celular: buscador y filtros en una fila. */
@media (max-width: 760px) {
  .workspace-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .workspace-actions .search-box { grid-column: 1; width: 100%; }
}

/* Cuenta bancaria: aviso cuando el CBU no corresponde a un banco conocido. */
.bank-cbu-hint { display: block; margin-top: 6px; color: #b54708; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.bank-cbu-hint[hidden] { display: none; }
.bank-cbu-hint.bank-cbu-invalid { color: #b42318; }
.bank-account-fields input[aria-invalid="true"] { border-color: #f04438; background: #fffbfa; }
.bank-account-modal .autofill-hint { margin: 0 0 12px; }
/* Borradores: aviso para recuperar lo que quedó sin guardar. */
.draft-banner { border-color: #f5d7a8; background: #fffaf0; }
.draft-banner-actions { display: flex; gap: 14px; }
.draft-banner-actions [data-draft-discard] { color: var(--muted); }
.wizard-progress + .draft-banner { margin: 0 0 14px; }
@media (max-width: 560px) { .wizard-actions { flex-wrap: wrap; gap: 8px; }.wizard-actions > div { flex-wrap: wrap; } }

/* Celular: el aviso de confirmación ocupa el ancho de la pantalla, centrado y sin tapar la barra inferior. */
@media (max-width: 760px) {
  .toast { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-width: 0; max-width: none; }
}

/* Pantallas táctiles: con letra de menos de 16px, Safari de iPhone acerca la página al tocar un campo. */
@media (max-width: 760px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { font-size: 16px !important; }
}

/* Liquidación que corrige otra del mismo período (auditoría F12). */
.owner-payout-lines { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.owner-payout-lines[hidden] { display: none; }
.owner-payout-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.owner-payout-lines span { color: var(--muted); }

/* Cancelar la suscripción (auditoría F18). */
.billing-cancel-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 10px 0 4px; }
.billing-cancel-row[hidden] { display: none; }
.billing-cancel-row small { color: var(--muted); font-size: 12.5px; line-height: 1.45; flex: 1 1 260px; }
.text-button.danger-text { color: #d92d20; }

/* Cuenta del inquilino: los gastos y créditos del mes son renglones del detalle (una sola vez cada uno),
   con el importe alineado a la derecha, y debajo el renglón para registrar otro. */
.tenant-account-lines > .account-concept-lines { display: block; min-height: 0; padding: 0; border-bottom: 0; }
.account-concept-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; align-items: center; gap: 10px; min-height: 44px; padding: 7px 2px; border-bottom: 1px solid var(--line); color: #667085; font-size: 13.5px; }
.account-concept-line > div { min-width: 0; }
.account-concept-line span, .account-concept-line small { display: block; }
.account-concept-line span { color: #475467; overflow-wrap: anywhere; }
.account-concept-line small { margin-top: 2px; color: #98a2b3; font-size: 12px; }
.tenant-account-lines .account-concept-line strong { color: var(--red); white-space: nowrap; }
.tenant-account-lines .account-concept-line.charge strong { color: var(--green); }
.concept-remove { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: #98a2b3; font-size: 15px; line-height: 1; cursor: pointer; }
.concept-remove:hover { background: #f2f4f7; color: #d92d20; }
.concept-add-row { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 40px; margin: 10px 0; padding: 7px 12px; border: 1px dashed #b9cdef; border-radius: 9px; background: #f7faff; color: var(--primary); font: 700 13.5px DM Sans, sans-serif; text-align: center; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.concept-add-row:hover { background: #eef4ff; border-color: var(--primary); }
.concept-add-row .icon-svg { width: 16px; height: 16px; }
.payment-form-grid label[hidden], .payment-form-grid div[hidden] { display: none; }
.payment-form-grid label small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.payment-form-grid .input-suffix > span { top: 16px; }
/* Estándar de adjuntos: botón con clip («Adjuntar…»), tarjeta punteada con título y ayuda, y chip del archivo elegido. */
.attach-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid #cfdaeb; border-radius: 8px; background: #fff; color: var(--primary); font: 700 14px DM Sans, sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.attach-button:hover { background: #f3f7ff; border-color: #b9cdef; }
.attach-button .icon-svg { width: 16px; height: 16px; flex: none; }
.attach-button input { display: none; }
.attach-button[hidden] { display: none; }
.attach-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed #c9d3e1; border-radius: 10px; background: #fbfcfe; }
.attach-card[hidden] { display: none; }
.attach-card > div { min-width: 0; }
.attach-card strong { display: block; color: #344054; font-size: 13.5px; }
.attach-card small { display: block; margin-top: 2px; color: #667085; font-size: 12.5px; line-height: 1.4; }
.attach-card small a { color: var(--primary); font-weight: 700; }
.attach-card.dragging { border-color: var(--primary); background: #f0f6ff; }
.attach-chip { display: flex; align-items: center; gap: 6px; max-width: 240px; padding: 5px 6px 5px 10px; border: 1px solid #d9e7ff; border-radius: 8px; background: var(--blue-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; }
.attach-chip[hidden] { display: none; }
.attach-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip button { width: 22px; height: 22px; flex: none; border: 0; border-radius: 6px; background: transparent; color: var(--primary); font-size: 16px; line-height: 1; cursor: pointer; }
.attach-chip button:hover { background: #d9e7ff; }
#paymentProof { margin-top: 13px; }
.wizard-attach { margin-bottom: 11px; }
.detail-attach { margin-top: 16px; }
.logo-upload { grid-template-columns: auto minmax(0, 1fr) auto; grid-column: 1 / -1; margin-top: 3px; }
.logo-upload > .feature-note { grid-column: 1 / -1; }
.settings-grid label.attach-button { display: inline-flex; color: var(--primary); font-size: 14px; }
.settings-grid label.attach-button input { display: none; }
.property-form label.attach-button { color: var(--primary); font-size: 14px; font-weight: 700; }
/* Lo mismo en los formularios de gastos (panel → Gastos y Balance): el botón es un <label>. */
.plan-editor-form label.attach-button { display: inline-flex; gap: 7px; color: var(--primary); font-size: 14px; font-weight: 700; }
.contract-modal .upload-zone { margin: 15px 0 11px; }
.upload-zone.compact { padding: 9px 12px; }
.upload-zone.compact small { display: none; }
.property-form .property-photo-upload { justify-self: end; }
@media (max-width: 480px) { .attach-card { grid-template-columns: 1fr; }.attach-card .attach-button, .attach-card .attach-chip { width: 100%; max-width: none; }.attach-card .attach-chip { justify-content: space-between; }.logo-upload { grid-template-columns: auto minmax(0, 1fr); }.logo-upload .attach-button { grid-column: 1 / -1; } }
.payment-concepts-prompt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: -6px 0 14px; padding: 11px 13px; border: 1px solid #c9dbf7; border-radius: 10px; background: #f3f7ff; }
.payment-concepts-prompt.has-concepts { border-color: #cfe9da; background: #f4fbf7; }
.payment-concepts-prompt[hidden] { display: none; }
.payment-concepts-prompt > .ui-icon { width: 22px; height: 22px; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.payment-concepts-prompt.has-concepts > .ui-icon { color: var(--green); }
.payment-concepts-prompt > div { min-width: 0; }
.payment-concepts-prompt strong { display: block; color: #344054; font-size: 13.5px; }
.payment-concepts-prompt small { display: block; margin-top: 2px; color: #667085; font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.payment-concepts-prompt .secondary-button { height: 34px; padding: 0 12px; white-space: nowrap; }
@media (max-width: 480px) { .payment-concepts-prompt { grid-template-columns: auto minmax(0, 1fr); }.payment-concepts-prompt .secondary-button { grid-column: 1 / -1; width: 100%; } }
.concept-add-row[hidden] { display: none; }

/* Inicio → Próximos ajustes: cada contrato es un renglón (no un botón gris del navegador). */
.home-adjustment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; padding: 11px 4px; border: 0; border-top: 1px solid #f0f2f5; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.home-adjustment:first-child { border-top: 0; }
.home-adjustment:hover { background: #f8f6ff; }
.home-adjustment > span { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 8px; background: #f1edff; color: #6941c6; font-weight: 800; }
.home-adjustment strong, .home-adjustment small { display: block; }
.home-adjustment strong { color: #344054; font-size: 14px; overflow-wrap: anywhere; }
.home-adjustment small { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.home-adjustment em { color: #344054; font-style: normal; font-weight: 800; font-size: 14px; white-space: nowrap; }
/* Renglones navegables (actividad, historial, movimientos, comunicaciones, tareas): llevan a la ficha
   que corresponde y se marcan al pasar el mouse o con el foco del teclado. */
[data-nav-kind], [data-communication-open], .rentals-table tbody tr[data-open-detail] { cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
[data-nav-kind]:not(button):hover, [data-communication-open]:hover, .rentals-table tbody tr[data-open-detail]:hover { background: #f4f8ff; }
[data-nav-kind]:focus-visible, [data-communication-open]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.rentals-table tbody tr[data-open-detail]:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.activity-list > [data-nav-kind] { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.full-activity-list article[data-nav-kind]:hover { border-color: #c9dafb; }
.property-incident-summary > [data-nav-kind] { border-radius: 8px; }
.home-adjustment:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 8px; }
/* Asistente de contrato: paso "Revisión" y confirmación final. */
.wizard-actions[hidden] { display: none; }
.contract-review { display: grid; gap: 12px; }
.contract-review-warning { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f5d3a2; border-radius: 9px; background: #fff8ec; color: #93370d; font-size: 13.5px; line-height: 1.4; }
.contract-review-warning[hidden] { display: none; }
.review-section { padding: 2px 16px 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.review-section header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 9px; border-bottom: 1px solid var(--line); }
.review-section h4 { margin: 0; color: #1d2939; font-size: 14.5px; }
.review-section header .text-button { padding: 4px 2px; font-size: 13.5px; font-weight: 700; }
.review-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; }
.review-row:last-child { border-bottom: 0; }
.review-row > span { color: var(--muted); }
.review-row > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; min-width: 0; color: #344054; font-weight: 600; overflow-wrap: anywhere; }
.review-row small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.review-person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; }
.review-person b { font-weight: 700; }
.review-missing { color: var(--red); font-style: normal; font-weight: 700; }
.review-empty { color: var(--muted); font-style: normal; font-weight: 500; }
.review-row .review-tag { padding: 2px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--primary); font-weight: 700; }
.contract-created { padding: 4px 0 2px; text-align: center; }
.contract-created-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 4px auto 12px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 26px; font-weight: 800; }
.contract-created h3 { margin: 0 0 6px; color: #1d2939; font: 800 19px Manrope, sans-serif; overflow-wrap: anywhere; }
.contract-created > p { max-width: 470px; margin: 0 auto 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.contract-created-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: left; }
.contract-created-action { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.contract-created-action:hover { border-color: #b9cff7; background: #f7faff; }
.contract-created-action:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.contract-created-action:disabled { opacity: .5; cursor: not-allowed; }
.contract-created-action > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--primary); font-weight: 800; }
.contract-created-action strong, .contract-created-action small { display: block; }
.contract-created-action strong { color: #1d2939; font-size: 14px; }
.contract-created-action small { margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.contract-created-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .contract-created-actions { grid-template-columns: 1fr; }.review-row { grid-template-columns: 1fr; gap: 3px; } }

/* Acciones de cada paso del mes: en fila a la derecha; la nota o el espacio de la izquierda ocupa el resto. */
.workflow-actions.tenant-actions, .workflow-actions.owner-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; }
.tenant-actions > span:first-child, .owner-actions > p { flex: 1 1 auto; }
.workflow-actions .text-button { padding: 8px 4px; }
.workflow-actions .primary-button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 560px) {
  .workflow-actions.tenant-actions, .workflow-actions.owner-actions { display: flex; justify-content: center; gap: 8px 18px; }
  .workflow-actions.tenant-actions > span:first-child { display: none; }
  .workflow-actions.owner-actions > p { flex-basis: 100%; }
  .workflow-actions .primary-button, .workflow-actions .secondary-button { flex: 1 1 100%; width: 100%; }
}

/* Mes reabierto con "Editar mes": aviso en la cuenta del inquilino. */
.month-reopened-note { display: flex; gap: 9px; margin: 13px 0 0; padding: 10px 12px; border: 1px solid #f5d3a2; border-radius: 9px; background: #fff8ec; color: #93370d; font-size: 13px; line-height: 1.45; }
.month-reopened-note > span:first-child { font-weight: 800; }

/* Mes completo (cobrado y liquidado): un renglón con el resumen y las acciones del mes. */
.month-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 13px; padding: 13px 16px; border: 1px solid #cfe9da; border-radius: 12px; background: #fbfffc; box-shadow: var(--shadow); }
.month-summary-icon { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; }
.month-summary > p { flex: 1 1 260px; min-width: 0; margin: 0; color: #475467; font-size: 14px; line-height: 1.45; }
.month-summary > p strong { color: var(--ink); font-size: 15px; }
.month-summary > p span { white-space: nowrap; }
.month-summary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.month-summary-actions .secondary-button { height: 34px; padding: 0 12px; font-size: 14px; }
.month-send { position: relative; }
.month-send-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 240px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(16, 24, 40, .16); }
.month-send-menu button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.month-send-menu button:hover, .month-send-menu button:focus-visible { background: #eef4ff; }
.month-send-menu strong, .month-send-menu small { display: block; }
.month-send-menu strong { font-size: 14px; }
.month-send-menu small { margin-top: 2px; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .month-summary { padding: 12px; }
  .month-summary-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .month-summary-actions .month-send, .month-summary-actions .month-send > button, .month-summary-actions #reopenMonthButton { width: 100%; }
  .month-summary-actions #monthDetailToggle { grid-column: 1 / -1; order: 3; }
  .month-send-menu { left: 0; right: auto; min-width: min(280px, calc(100vw - 48px)); }
}

/* Movimientos → Historial de meses: un renglón por mes con lo cobrado y lo liquidado. */
.month-history { margin-top: 22px; }
.month-history h4 { margin: 0 0 3px; font: 800 15px Manrope, sans-serif; }
.month-history > p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.month-history-list { border-top: 1px solid var(--line); }
.month-history-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px; min-height: 50px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.month-history-row.current { background: #f8fbff; }
.month-history-row > span { color: #475467; }
.month-history-row .collection-state { font-style: normal; white-space: nowrap; }
@media (max-width: 560px) {
  .month-history-row { grid-template-columns: 1fr auto; }
  .month-history-row > span { grid-column: 1; }
  .month-history-row .collection-state { grid-column: 2; grid-row: 1; }
  .month-history-row .text-button { grid-column: 2; grid-row: 2; justify-self: end; }
}

/* Sugerencias de los campos (reemplazan al datalist del navegador). */
.suggestion-box { position: fixed; z-index: 120; max-height: 260px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); box-shadow: 0 12px 32px rgba(16, 24, 40, .16); }
.suggestion-box[hidden] { display: none; }
.suggestion-option { padding: 9px 11px; border-radius: 7px; color: var(--ink); font-size: 14px; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; }
.suggestion-option:hover, .suggestion-option.active { background: #eef4ff; color: var(--primary); }

/* Mensajes: aviso cuando falta la cuenta a la que hay que transferir. */
.message-account-warning { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 10px 0 0; padding: 9px 11px; border: 1px solid #f5d3a2; border-radius: 9px; background: #fff8ec; color: #93370d; font-size: 13px; line-height: 1.4; }
.message-account-warning[hidden] { display: none; }
.message-preview-field input { display: block; width: 100%; height: 38px; margin-top: 5px; border: 1px solid #dfe4eb; border-radius: 8px; padding: 0 10px; background: #fff; color: #101828; font: 14px DM Sans, sans-serif; }
.message-email-fields[hidden] { display: none; }
.message-adjustment-note { margin: 10px 0 0; padding: 9px 11px; border: 1px solid #bfd7f5; border-radius: 9px; background: #eef5ff; color: #1d4f91; font-size: 13px; line-height: 1.4; }
.message-adjustment-note[hidden] { display: none; }
.message-account-warning .text-button { padding: 0; font-size: 13px; }

/* Historial: filtros en una fila y estados. */

.history-view .property-summary-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .history-view .property-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.history-table tr[data-history-row] { cursor: pointer; }
.history-table tr[data-history-row]:hover td, .history-table tr[data-history-row]:focus-visible td { background: #f7faff; }
.status-pill.history-settled { background: var(--green-soft); color: var(--green); }
.status-pill.history-to-settle { background: #fff6e7; color: #b54708; }
.status-pill.history-partial { background: #eef4ff; color: var(--primary); }
.status-pill.history-reopened { background: #fef3f2; color: #b42318; }
.muted-note { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { }
@media (min-width: 1101px) { .history-table td:nth-child(2) { min-width: 190px; overflow-wrap: normal; word-break: normal; } .history-table td:nth-child(4) { min-width: 150px; } }
/* Actualizaciones automáticas por índice */
.suggested-adjustment { gap: 12px; }.suggested-adjustment span { line-height: 1.45; }.suggested-adjustment strong { flex-shrink: 0; }.suggested-adjustment[hidden] { display: none; }
.adjustment-history { display: grid; gap: 0; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.adjustment-history[hidden] { display: none; }.adjustment-history > strong { margin-bottom: 6px; color: #98a2b3; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }.adjustment-history-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid #edf0f4; font-size: 13px; }.adjustment-history-row > span { color: #475467; }.adjustment-history-row strong { display: block; color: #344054; }.adjustment-history-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
@media (max-width: 620px) { .suggested-adjustment { flex-direction: column; align-items: flex-start; }.adjustment-history-row { grid-template-columns: 1fr; gap: 3px; } }
/* Calculadora pública de alquileres (landing) */
.calculator-section { padding-top: 64px; padding-bottom: 64px; }.calculator-layout { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.calculator-form { display: grid; gap: 14px; padding: 24px; border: 1px solid #dfe6ef; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(31,54,88,.07); }.calculator-form label { display: grid; gap: 6px; color: #344054; font-size: 15.5px; font-weight: 700; }.calculator-form input, .calculator-form select { width: 100%; height: 46px; border: 1px solid #d6dee8; border-radius: 9px; padding: 0 12px; background: #fff; color: #26364d; font: 16px DM Sans, sans-serif; outline: 0; }.calculator-form input:focus, .calculator-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #edf4ff; }.calculator-money { position: relative; }.calculator-money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #667085; }.calculator-money input { padding-left: 26px; }.calculator-form .marketing-primary { height: 48px; margin-top: 4px; }.calculator-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 15px; }.calculator-error[hidden] { display: none; }
.calculator-result { min-height: 100%; padding: 24px; border: 1px solid #dbe7fa; border-radius: 16px; background: #f7faff; }.calculator-empty { height: 100%; min-height: 260px; display: grid; place-items: center; align-content: center; gap: 12px; color: #7a8798; text-align: center; }.calculator-empty svg { width: 34px; height: 34px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }.calculator-empty p { max-width: 360px; margin: 0; font-size: 17px; line-height: 1.55; }
.calculator-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.calculator-summary > div { padding: 18px; border: 1px solid #dfe6ef; border-radius: 12px; background: #fff; }.calculator-summary small, .calculator-summary strong, .calculator-summary span { display: block; }.calculator-summary small { color: #68778b; font-size: 14.5px; font-weight: 700; }.calculator-summary strong { margin: 6px 0 4px; color: #1c2e49; font: 800 30px Manrope, sans-serif; letter-spacing: -.5px; }.calculator-summary span { color: #697689; font-size: 14.5px; line-height: 1.4; }.calculator-summary .next strong { color: var(--primary); }
.calculator-steps { margin-top: 14px; overflow: hidden; border: 1px solid #dfe6ef; border-radius: 12px; background: #fff; }.calculator-step { display: grid; grid-template-columns: 110px 1fr 90px; gap: 4px 12px; align-items: center; padding: 11px 16px; border-top: 1px solid #edf0f4; color: #43536a; font-size: 15px; }.calculator-step:first-child { border-top: 0; }.calculator-step.head { background: #f9fafc; color: #8b95a5; font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }.calculator-step > span:last-of-type { text-align: right; color: var(--green); font-weight: 700; }.calculator-step.head > span:last-of-type { color: #8b95a5; }.calculator-step small { grid-column: 1 / -1; color: #8b95a5; font-size: 13px; }
.calculator-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid #dfe6ef; }.calculator-cta p { margin: 0; color: #43536a; font-size: 15.5px; line-height: 1.5; }.calculator-cta .marketing-primary { flex-shrink: 0; }
.calculator-source { max-width: 760px; margin: 18px auto 0; color: #8591a2; font-size: 14.5px; line-height: 1.5; text-align: center; }
@media (max-width: 860px) { .calculator-layout { grid-template-columns: 1fr; }.calculator-summary { grid-template-columns: 1fr; }.calculator-cta { flex-direction: column; align-items: stretch; }.calculator-step { grid-template-columns: 1fr auto; }.calculator-step > span:nth-child(2) { grid-column: 1 / -1; order: 3; }.calculator-step.head > span:nth-child(2) { display: none; } }
@media (max-width: 620px) { .calculator-section { padding-top: 64px; padding-bottom: 64px; }.calculator-form, .calculator-result { padding: 16px; }.calculator-summary strong { font-size: 26px; } }
.adjustment-correct { margin-top: 6px; }.adjustment-correct > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }.adjustment-correct > div[hidden] { display: none; }.adjustment-correct .input-prefix { width: 160px; }.adjustment-correct input { width: 100%; height: 32px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 0 10px 0 22px; }.adjustment-correct button { height: 32px; }
/* Modelos de contrato (Configuración) */
.template-upload-button { display: inline-flex; align-items: center; cursor: pointer; }.template-upload-button[hidden] { display: none; }.template-locked { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border: 1px solid #dce8f9; border-radius: 10px; background: #f8fbff; color: var(--primary); }.template-locked[hidden] { display: none; }.template-locked strong { color: #26364b; font-size: 14px; }.template-locked p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }.template-locked .icon-svg { margin-top: 2px; font-size: 18px; }
.template-busy { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 16px; border: 1px solid #dce8f9; border-radius: 10px; background: #f8fbff; }.template-busy[hidden] { display: none; }.template-busy strong, .template-busy small { display: block; }.template-busy strong { font-size: 14px; }.template-busy small { margin-top: 2px; color: var(--muted); font-size: 12.5px; }.template-busy .spinner { width: 20px; height: 20px; flex-shrink: 0; border: 2.5px solid #d6e3f7; border-top-color: var(--primary); border-radius: 50%; animation: templateSpin .8s linear infinite; }
@keyframes templateSpin { to { transform: rotate(360deg); } }
.template-list-wrap { display: grid; gap: 12px; margin-top: 14px; }.template-list-wrap[hidden] { display: none; }.template-cards { display: grid; gap: 9px; }.template-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.template-card.pending { border-color: #f3d9a4; background: #fffcf5; }.template-card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--primary); font-size: 18px; }.template-card-info { min-width: 0; }.template-card-info strong { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 14px; }.template-card-info small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }.template-default { padding: 2px 7px; border-radius: 99px; background: var(--blue-soft); color: var(--primary); font-size: 11px; font-style: normal; font-weight: 800; }.template-status-pending { color: #b54708; }.template-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }.template-card-actions .primary-button, .template-card-actions .secondary-button { height: 32px; padding: 0 11px; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; }
.template-empty { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px dashed #cfd8e3; border-radius: 10px; color: var(--primary); }.template-empty > .icon-svg { font-size: 24px; }.template-empty strong, .template-empty small { display: block; }.template-empty strong { color: #26364b; font-size: 14px; }.template-empty small { margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.template-editor { display: grid; gap: 12px; margin-top: 14px; }.template-editor[hidden] { display: none; }.template-editor-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }.template-editor-head label { display: grid; gap: 5px; flex: 1 1 260px; color: #475467; font-size: 13px; font-weight: 700; }.template-editor-head input { height: 38px; border: 1px solid #dfe4eb; border-radius: 8px; padding: 0 11px; font: 14px DM Sans, sans-serif; outline: 0; }.template-editor-head input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #edf4ff; }.template-editor-actions { display: flex; gap: 8px; }.template-editor-hint { margin: 0; padding: 10px 12px; border-radius: 9px; background: #f8fbff; color: #344054; font-size: 13.5px; line-height: 1.5; }.template-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 12.5px; }.template-legend mark { padding: 0 4px; }
.template-doc { max-height: 62vh; overflow: auto; padding: 22px 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #26364b; font: 14px/1.75 Georgia, "Times New Roman", serif; }.template-doc p { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }.template-doc span::selection, .template-doc span ::selection { background: #cfe0ff; }
.tpl-blank { position: relative; padding: 1px 3px; border-radius: 4px; background: #fff1c2; box-shadow: inset 0 -2px 0 #f0b429; color: inherit; cursor: pointer; }.tpl-blank:hover, .tpl-blank:focus-visible, .tpl-blank.selected { background: #ffe08a; outline: 0; }.tpl-blank small { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 99px; background: #fff; color: #8a5a00; font: 700 11px/1.6 DM Sans, sans-serif; vertical-align: 1px; user-select: none; }.tpl-fixed { padding: 1px 3px; border-radius: 4px; background: #e6f6ec; color: #16734a; font-family: monospace; font-size: 12.5px; font-weight: 600; }
.template-picker { position: sticky; bottom: 12px; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid #c9d8f2; border-radius: 12px; background: var(--surface); box-shadow: 0 14px 36px rgba(16,24,40,.16); }.template-picker[hidden] { display: none; }.template-picker-text { min-width: 0; }.template-picker-text small, .template-picker-text strong { display: block; }.template-picker-text small { color: var(--muted); font-size: 12px; }.template-picker-text strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }.template-picker select, .template-picker input { width: 100%; height: 38px; border: 1px solid #dfe4eb; border-radius: 8px; padding: 0 9px; background: #fff; font: 13.5px DM Sans, sans-serif; outline: 0; }.template-picker input { grid-column: 2; }.template-picker input[hidden] { display: none; }.template-picker-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }.template-picker-actions [hidden] { display: none; }#templatePickerRemove { margin-right: auto; color: #d92d20; }
@media (max-width: 720px) { .template-card { grid-template-columns: auto 1fr; }.template-card-actions { grid-column: 1 / -1; justify-content: flex-start; }.template-doc { padding: 16px; font-size: 15px; }.template-picker { grid-template-columns: 1fr; }.template-picker input { grid-column: 1; }.template-editor-actions { width: 100%; }.template-editor-actions button { flex: 1; } }
/* Contrato para firmar */
.contract-doc-modal { width: min(760px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); display: flex; flex-direction: column; padding: 22px; }.contract-doc-modal .payment-modal-heading { padding-right: 28px; }.contract-doc-body { min-height: 120px; overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; }.contract-doc-modal .modal-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }.contract-doc-modal .modal-actions [hidden] { display: none; }
.contract-doc-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: var(--muted); font-size: 14px; }.contract-doc-loading .spinner { width: 18px; height: 18px; border: 2.5px solid #d6e3f7; border-top-color: var(--primary); border-radius: 50%; animation: templateSpin .8s linear infinite; }
.contract-doc-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; padding: 16px; border: 1px solid #dce8f9; border-radius: 10px; background: #f8fbff; color: var(--primary); }.contract-doc-note > .icon-svg { margin-top: 2px; font-size: 20px; flex-shrink: 0; }.contract-doc-note strong { color: #26364b; font-size: 14.5px; }.contract-doc-note p { margin: 4px 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.contract-doc-options { display: grid; grid-template-columns: 1fr 190px; gap: 12px; align-items: end; margin-top: 6px; }.contract-doc-options label { display: grid; gap: 5px; color: #475467; font-size: 13px; font-weight: 700; }.contract-doc-options select, .contract-doc-options input { height: 38px; border: 1px solid #dfe4eb; border-radius: 8px; padding: 0 10px; background: #fff; font: 14px DM Sans, sans-serif; }.contract-doc-model small, .contract-doc-model strong { display: block; }.contract-doc-model small { color: #475467; font-size: 13px; font-weight: 700; }.contract-doc-model strong { margin-top: 9px; font-size: 14.5px; }
.contract-doc-summary { margin: 14px 0 4px; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; line-height: 1.45; }.contract-doc-summary.pending { background: #fffaeb; color: #93370d; }.contract-doc-summary.complete { background: var(--green-soft); color: #16734a; }
.contract-doc-fields fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 14px 0 0; padding: 0; border: 0; }.contract-doc-fields legend { grid-column: 1 / -1; margin-bottom: 8px; color: #98a2b3; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }.contract-doc-fields label { display: grid; gap: 5px; color: #475467; font-size: 12.5px; font-weight: 700; }.contract-doc-fields label.full { grid-column: 1 / -1; }.contract-doc-fields input, .contract-doc-fields textarea { width: 100%; min-height: 36px; border: 1px solid #dfe4eb; border-radius: 7px; padding: 7px 10px; background: #fff; color: #26364b; font: 14px/1.4 DM Sans, sans-serif; resize: vertical; outline: 0; }.contract-doc-fields input:focus, .contract-doc-fields textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #edf4ff; }.contract-doc-fields label.missing input, .contract-doc-fields label.missing textarea { border-color: #f0b429; background: #fffcf2; }.contract-doc-fields label.missing small { color: #b54708; font-size: 11.5px; font-weight: 600; }.contract-doc-fields label.missing.filled input, .contract-doc-fields label.missing.filled textarea { border-color: #dfe4eb; background: #fff; }.contract-doc-fields label.missing.filled small { visibility: hidden; }
.contract-doc-warning { margin: 12px 0 0; padding: 9px 11px; border-radius: 8px; background: #fffaeb; color: #93370d; font-size: 13px; }
.contract-doc-done { display: grid; justify-items: center; gap: 6px; padding: 18px 0 6px; text-align: center; }.contract-doc-done > strong { font: 800 19px Manrope, sans-serif; }.contract-doc-done > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }.contract-doc-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 12px; }.contract-doc-downloads a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; text-decoration: none; }
@media (max-width: 620px) { .contract-doc-modal { padding: 18px 14px; }.contract-doc-options, .contract-doc-fields fieldset { grid-template-columns: 1fr; }.contract-doc-fields input, .contract-doc-fields textarea { font-size: 16px; } }

/* Plan actual y, si lo asignó la plataforma, hasta cuándo. Estadísticas: aviso de que el historial suma contratos finalizados. */
.current-plan-box { display: grid; justify-items: end; gap: 5px; }
.current-plan-manual { color: var(--muted); font-size: 12px; font-weight: 600; text-align: right; }
.current-plan-manual[hidden] { display: none; }
.stats-history-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.stats-history-note svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .current-plan-box { justify-items: start; }.current-plan-manual { text-align: left; } }
/* Avisos automáticos por email (Configuración → Mensajes y avisos) */
.auto-messages { margin: 4px 0 26px; }.auto-messages .receipt-profile-toggle { margin-top: 0; }
.auto-messages .template-locked .primary-button { margin-top: 10px; }
.auto-message-rules { display: grid; gap: 8px; margin-top: 12px; }
.auto-message-rule { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.4fr) 76px 24px; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.auto-message-rule select, .auto-message-rule input { width: 100%; min-width: 0; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #344054; font: inherit; font-size: 13.5px; }
.auto-message-rule select:disabled, .auto-message-rule input:disabled { background: #f9fafb; color: #98a2b3; }
.auto-message-number { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef4ff; color: var(--primary); font-size: 12px; font-weight: 800; }
.auto-messages-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }.auto-messages-actions[hidden] { display: none; }
.auto-messages-recent { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }.auto-messages-recent[hidden] { display: none; }
.auto-messages-recent h4 { margin: 0 0 6px; color: #344054; font-size: 13.5px; }
.auto-message-log { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f2f4f7; font-size: 13px; }
.auto-message-log > span { color: #667085; }.auto-message-log strong, .auto-message-log small { display: block; }.auto-message-log small { color: #667085; font-size: 12px; }
.auto-message-log em { font-style: normal; font-size: 12px; font-weight: 700; color: #027a48; text-align: right; }.auto-message-log.skipped em, .auto-message-log.failed em { color: #b54708; }
.settings-panel-heading.auto-messages-texts { padding-top: 18px; border-top: 1px solid var(--line); }
/* Aviso de aumento al inquilino (aviso-aumento.js) */
.adjustment-notice { padding-top: 18px; border-top: 1px solid var(--line); }
.adjustment-notice-body { display: grid; gap: 12px; margin-top: 12px; }.adjustment-notice-body[hidden] { display: none; }
.adjustment-notice-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: #344054; font-size: 13.5px; font-weight: 600; }
.adjustment-notice-days input { width: 76px; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #344054; font: inherit; }
.adjustment-notice-days input:disabled { background: #f9fafb; color: #98a2b3; }
.adjustment-notice-days small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.adjustment-notice-channels { margin: 0; color: var(--muted); font-size: 13px; }
.adjustment-notice-texts { display: grid; gap: 8px; }
.adjustment-notice-texts label { display: grid; grid-template-columns: 140px 1fr; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.adjustment-notice-texts label > span strong, .adjustment-notice-texts label > span small { display: block; }
.adjustment-notice-texts label > span strong { font-size: 13.5px; }
.adjustment-notice-texts label > span small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.adjustment-notice-texts textarea { min-height: 120px; resize: vertical; border: 1px solid #dfe4eb; border-radius: 7px; padding: 9px; color: #475467; font: 14px/1.5 DM Sans, sans-serif; outline: 0; }
.adjustment-notice-texts textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #edf4ff; }
.adjustment-notice-texts textarea:disabled { background: #f9fafb; color: #98a2b3; }
.adjustment-notice-preview { margin: 0 0 6px 153px; padding: 10px 12px; border: 1px dashed #d6e3f7; border-radius: 9px; background: #f8fbff; }
.adjustment-notice-preview small { display: block; margin-bottom: 4px; color: #53627a; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.adjustment-notice-preview p { margin: 0; color: #344054; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.variable-helper button:disabled { color: #98a2b3; cursor: default; }
.home-adjustment em small { font-size: 11.5px; font-weight: 600; text-align: right; }
@media (max-width: 620px) { .adjustment-notice-texts label { grid-template-columns: 1fr; }.adjustment-notice-preview { margin-left: 0; } }
.contract-auto-messages { margin: 18px 0 14px; }.contract-auto-messages[hidden] { display: none; }
@media (max-width: 620px) { .auto-message-rule { grid-template-columns: 24px 1fr 24px; }.auto-message-rule select[data-rule-when] { grid-column: 2; }.auto-message-rule input, .auto-message-days-empty { grid-column: 2; }.auto-message-days-empty { display: none; }.auto-messages-actions { flex-direction: column-reverse; }.auto-message-log { grid-template-columns: 1fr; gap: 2px; }.auto-message-log em { text-align: left; } }
.split-transfer-preview[hidden] { display: none; }
/* Honorarios del propietario (cobro directo, "Transferencia al propietario") */
.owner-fee-payments { display: grid; gap: 4px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9fafb; font-size: 13px; }.owner-fee-payments[hidden] { display: none; }
.owner-fee-payments > strong { color: #344054; font-size: 12.5px; }
.owner-fee-payments > div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }.owner-fee-payments > div > span { color: #667085; }
.owner-fee-modal { width: min(500px, calc(100vw - 28px)); padding: 22px; }
.owner-fee-debt { display: grid; gap: 4px; margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #f7faff; font-size: 13.5px; }
.owner-fee-debt > div { display: flex; justify-content: space-between; gap: 12px; }.owner-fee-debt > div.total { margin-top: 4px; padding-top: 6px; border-top: 1px solid #dce8f9; font-weight: 700; }
.owner-fee-modal .owner-fee-hint { margin: 10px 0 14px; color: #667085; font-size: 12.5px; line-height: 1.45; }

/* Panel de plataforma → Funciones */
.feature-flag-list { display: grid; gap: 10px; margin-top: 14px; }
.feature-flag-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.feature-flag-row strong { display: block; font-size: 15px; }.feature-flag-row p { margin: 3px 0 4px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }.feature-flag-row small { color: #98a2b3; font-size: 12px; }.feature-flag-row code { font-size: 11.5px; }
.feature-flag-state { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (max-width: 560px) { .feature-flag-row { flex-direction: column; align-items: stretch; }.feature-flag-state { justify-content: space-between; } }

/* Estadísticas: ícono por indicador (mismo lenguaje que las tarjetas de Inicio) en lugar del círculo decorativo.
   Todo en una línea: etiqueta, valor y una aclaración corta. */
.stats-kpi-grid article { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 1px; align-items: center; min-height: 0; padding: 14px 16px; }
.stats-kpi-grid article > .stats-kpi-icon { grid-row: 1 / 4; align-self: center; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: var(--blue-soft); }
.stats-kpi-grid article > .stats-kpi-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stats-kpi-grid article.positive > .stats-kpi-icon { color: var(--green); background: var(--green-soft); }
.stats-kpi-grid article.purple > .stats-kpi-icon { color: var(--purple); background: #f2edff; }
.stats-kpi-grid article > span:not(.stats-kpi-icon), .stats-kpi-grid article > strong, .stats-kpi-grid article > small { grid-column: 2; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-kpi-grid article > span:not(.stats-kpi-icon) { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.stats-kpi-grid article > strong { font-size: 24px; line-height: 1.15; }
.stats-kpi-grid article > small { color: var(--muted); font-size: 12.5px; }

/* Referidos (Configuración) */
.referral-link-card { padding: 16px; border: 1px solid #bfd7f5; border-radius: 12px; background: #f3f7ff; }.referral-link-card > label { display: block; color: #344054; font-size: 13.5px; font-weight: 700; }
.referral-link-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }.referral-link-row input { flex: 1 1 260px; min-width: 0; height: 40px; border: 1px solid #dfe4eb; border-radius: 8px; padding: 0 10px; background: #fff; color: #101828; font: 14px DM Sans, sans-serif; }.referral-link-row .secondary-button, .referral-link-row .primary-button { height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.referral-code-hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; }.referral-code-hint strong { color: var(--primary); letter-spacing: 1px; }
.referral-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }.referral-totals article { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.referral-totals span { display: block; color: var(--muted); font-size: 12.5px; }.referral-totals strong { font-size: 22px; }
.referral-list { display: grid; gap: 8px; }.referral-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.referral-row strong { display: block; }.referral-row small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .referral-totals { grid-template-columns: 1fr; } }

/* Lectura con IA en curso: panel con spinner, barra animada y mensajes que van cambiando. */
.ai-progress { margin: 12px 0 0; padding: 14px 16px; border: 1px solid #d6e0f5; border-radius: 12px; background: #f3f6ff; }.ai-progress[hidden] { display: none; }
.ai-progress-head { display: flex; gap: 12px; align-items: center; }.ai-progress-head strong { display: block; font-size: 15px; }.ai-progress-head p { margin: 2px 0 0; color: #475467; font-size: 13.5px; line-height: 1.4; }
.ai-spinner { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #d6e0f5; border-top-color: var(--primary); animation: boot-spin .85s linear infinite; }
.ai-progress-bar { position: relative; height: 6px; margin: 12px 0 8px; border-radius: 99px; background: #dfe6f5; overflow: hidden; }.ai-progress-bar > span { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 99px; background: var(--primary); animation: ai-progress-slide 1.6s ease-in-out infinite; }
@keyframes ai-progress-slide { 0% { left: -40%; } 100% { left: 100%; } }
.ai-progress small { color: var(--muted); font-size: 12.5px; }
.wizard-step.reading .upload-file-list, .wizard-step.reading .upload-zone, .wizard-step.reading .method-grid { opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ai-spinner, .ai-progress-bar > span { animation: none; } .ai-progress-bar > span { left: 0; width: 100%; opacity: .5; } }
.button-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: boot-spin .85s linear infinite; }

/* Vista previa del comprobante: la hoja A4 es la altura mínima, no la máxima. Con overflow: clip
   (no hidden) la hoja crece con el contenido y el círculo decorativo sigue recortado. En el teléfono
   el texto ocupa más renglones: ahí la hoja deja de tener proporción fija (también en navegadores
   sin overflow: clip). */
@media (max-width: 760px) {
  .receipt-document { aspect-ratio: auto; min-height: 0; }
}

/* Búsqueda: un solo componente en toda la app y el admin. 40 px de alto, 320 px en escritorio y todo el
   ancho en el teléfono; mismo borde, fondo e ícono. Pisa los anchos sueltos que tenía cada pantalla. */
.search-box, .workspace-header .search-box, .workspace-actions .search-box, .people-header .search-box, .history-filters .search-box, .platform-toolbar .search-box, .contracts-search, .properties-search {
  flex: 0 0 auto; width: 320px; min-width: 0; max-width: 100%; height: 40px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-sizing: border-box; color: #98a2b3; font-size: 15px; font-weight: 400;
}
.search-box svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #98a2b3; stroke-width: 2; stroke-linecap: round; }
.search-box input, .platform-toolbar .search-box input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 15px; outline: 0; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(39, 105, 232, .12); }

@media (max-width: 760px) {
  .search-box, .workspace-header .search-box, .workspace-actions .search-box, .people-header .search-box, .history-filters .search-box, .platform-toolbar .search-box, .contracts-search, .properties-search { width: 100%; }
  .search-box input, .platform-toolbar .search-box input { font-size: 16px; }
  /* Inicio: la búsqueda en su propia fila; Filtros debajo. */
  .workspace-actions { grid-template-columns: auto minmax(0, 1fr); }
  .workspace-actions .search-box { grid-column: 1 / -1; }
  .workspace-actions #filterButton { grid-column: auto; width: 100%; height: 40px; }
}

/* Tablet con menú lateral (761–940 px): el mes y «Cobrado este mes» no entran lado a lado. */
@media (min-width: 761px) and (max-width: 940px) { .month-row { grid-template-columns: 1fr; } }

/* Barra de lista: la misma en toda la app y el admin. Búsqueda a la izquierda, chips con conteo al lado
   y, si hace falta, un selector o una acción al final. En el teléfono, los chips van en una sola línea
   que se desplaza de costado. */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.list-toolbar .search-box { flex: none; }
.list-chips { display: flex; flex: 0 1 auto; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #667085; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: #cbdaf3; background: #f8fbff; }
.chip.active { border-color: #bcd1f5; background: var(--blue-soft); color: var(--primary); }
.chip span { min-width: 19px; padding: 2px 5px; border-radius: 99px; background: #eef1f5; color: #667085; font-size: 12px; text-align: center; }
.chip.active span { background: #fff; color: var(--primary); }
/* Selector compacto en el encabezado de la página (Historial: mes), a la altura de los botones. */
.heading-select { height: 39px; min-width: 150px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 8px; background-color: #fff; color: var(--ink); font: 600 14px DM Sans, sans-serif; }
.workspace-header > .primary-button { flex: none; }
@media (max-width: 760px) {
  .list-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 14px 16px; }
  .list-chips { margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .list-chips::-webkit-scrollbar { display: none; }
  .workspace-header > .primary-button { width: 100%; }
  /* Teléfono: en todas las listas (Contratos, Propiedades, Incidentes, Personas, Historial) las acciones
     del encabezado van debajo del título, alineadas a la izquierda y con el mismo tamaño. */
  .page-heading-row { flex-wrap: wrap; }
  .page-heading-row > div:first-child { flex: 1 1 100%; }
  .page-heading-row > .primary-button { font-size: 15.5px; }
  .page-heading-actions { width: 100%; justify-content: flex-start; }
  .page-heading-actions .heading-select { flex: 1 1 150px; }
}

/* Fichas (contrato, persona, propiedad): mismo encabezado, botón ⋮ con las acciones de ciclo de vida,
   aviso de archivada y diálogo de confirmación compartido. */
.icon-only { width: 40px; padding: 0; display: inline-grid; place-items: center; }
.icon-only .icon-svg { width: 18px; height: 18px; }
.detail-heading-actions .icon-only, .person-detail-actions .icon-only { flex: 0 0 40px; }
.action-menu { width: auto; min-width: 210px; }
.action-menu button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--primary); }
.action-menu button.danger, .action-menu button.danger svg { color: var(--red); }
.ficha-archived { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border: 1px solid #f5d9a8; border-radius: 10px; background: #fff8eb; color: #7a4b00; font-size: 13.5px; }
.ficha-archived .text-button { margin-left: auto; white-space: nowrap; }
.ficha-archived[hidden] { display: none; }
.modal-action-left { margin-right: auto; }
.primary-button.danger { background: var(--red); }
.primary-button.danger:hover { background: #b42318; }
.confirm-modal .modal-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .detail-heading-actions .icon-only, .person-detail-actions .icon-only { flex: 0 0 44px; height: 44px; }
  /* Teléfono: acción principal a lo ancho y, debajo, los botones secundarios con el ⋮ en una sola fila. */
  .detail-heading-actions .secondary-button:not(.icon-only), .person-detail-actions .secondary-button:not(.icon-only) { flex: 1 1 0; min-width: 0; height: auto; min-height: 44px; padding: 6px 10px; font-size: 14px; line-height: 1.2; }
  .ficha-archived { flex-wrap: wrap; }
}

/* Inicio: íconos SVG en Próximos ajustes (tendencia) y Actividad reciente (el mismo reloj que Historial). */
.mini-icon svg, .home-adjustment > span svg, .incident-empty > span svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.incident-empty > span svg { width: 24px; height: 24px; }
.activity-history-modal .modal-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Comunicaciones sin registros: el aviso ocupa todo el ancho, no la primera columna de la grilla. */
.communication-list > div.empty-activity { display: block; padding: 26px 0; text-align: center; color: var(--muted); font-size: 14px; }
/* Panel → Gastos: mes elegido, totales, lista de gastos y resultado mes a mes. */
.expenses-admin { display: grid; gap: 14px; }
.expenses-toolbar { align-items: center; flex-wrap: wrap; }
.expenses-toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.expenses-month-nav { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #d9e0ea; border-radius: 9px; padding: 3px; background: #fff; }
.expenses-month-nav strong { min-width: 128px; text-align: center; font-size: 15px; }
.expenses-month-nav button { width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: #344054; font-size: 20px; cursor: pointer; }
.expenses-month-nav button:hover:not(:disabled) { background: #f2f4f7; }
.expenses-month-nav button:disabled { opacity: .35; cursor: default; }
.expenses-kpis { padding: 16px 20px 0; }
.expenses-kpis .metric-grid-admin { margin-bottom: 16px; }
.expenses-table td .platform-actions { justify-content: flex-end; }
.expenses-monthly tr.current td:first-child { font-weight: 700; }
.expenses-monthly td.negative strong { color: #d92d20; }
.expense-ars-preview { margin: -4px 0 0; color: var(--muted); font-size: 13.5px; }
.expense-ars-preview.wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .expenses-toolbar-actions { width: 100%; } .expenses-toolbar-actions > button { flex: 1 1 auto; } .expenses-kpis { padding: 14px 14px 0; } }
.expenses-table td:nth-child(n+4), .expenses-monthly td:not(:first-child) { white-space: nowrap; }
.expense-attach { margin: 0 0 14px; }
.rate-source { color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; }
/* Balance de la inmobiliaria (reusa la barra de mes y las tarjetas del panel de Gastos). */
.balance-view > * + * { margin-top: 14px; }
.balance-heading { align-items: center; flex-wrap: wrap; gap: 14px; }
.balance-table tr.income td:nth-child(4) strong { color: var(--green); }
.balance-table tr.balance-auto td { background: #fafbfd; }
.balance-table td:nth-child(n+3) { white-space: nowrap; }
.balance-table td .platform-actions { justify-content: flex-end; }
/* «Ingreso» y «Gasto»: el mismo botón con ícono y color propios (verde que sube, comprobante rojo). */
.balance-entry-button { display: inline-flex; align-items: center; gap: 7px; }
.balance-entry-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.balance-entry-button.income { color: #18864b; border-color: #a9dfbe; }
.balance-entry-button.expense { color: #d92d20; border-color: #f3c5c2; }
.balance-entry-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.balance-entry-icon.income { background: var(--green-soft); color: #18864b; }
.balance-entry-icon.expense { background: var(--red-soft); color: #d92d20; }
/* Gastos y Balance: «Se repite todos los meses» como interruptor a la derecha. */
.expense-recurring-toggle { flex-wrap: nowrap; margin: 0 0 14px; }
.expense-recurring-toggle > div { flex: 1 1 auto; min-width: 0; }
.plan-editor-form label.switch { display: block; }
/* Campos alineados arriba: la aclaración debajo de un campo (cotización) no corre al de al lado. */
.expense-editor-form .plan-editor-grid { align-items: start; }
/* Hasta 1100 px (celular y tablet) las tablas de Gastos y Balance son tarjetas (responsive-table): el concepto
   o el mes van a lo ancho. */
@media (max-width: 1100px) {
  .expenses-table td:nth-child(1), .balance-table td:nth-child(1), .expenses-monthly td:nth-child(1) { grid-column: 1 / -1; }
  /* La última columna del mes a mes es el resultado, no acciones: se muestra con su rótulo. */
  .expenses-monthly td:last-child:not([colspan]) { display: block; width: 100%; }
  .expenses-monthly td:last-child:not([colspan])::before { display: block; }
  .expenses-table td:last-child:not([colspan]), .balance-table td:last-child:not([colspan]) { width: 100%; }
  .expenses-table .platform-actions, .balance-table .platform-actions { flex-direction: row; min-width: 0; }
  .balance-table tr.balance-auto { background: #fafbfd; }
  .balance-table tr.balance-auto td { background: transparent; }
  .balance-table .balance-auto-empty { display: none; }
}
/* Gráfico de columnas angosto con muchos meses: un rótulo sí y uno no, y el valor de la última barra no se sale. */
@media (max-width: 620px) {
  .column-chart:has(.column:nth-child(8)) .column:nth-child(odd) small { visibility: hidden; }
  .column:last-child em { right: 0; }
}
/* Celular: el mes a todo el ancho y «Ingreso» y «Gasto» debajo, del mismo tamaño. */
@media (max-width: 620px) {
  .balance-heading .expenses-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .balance-heading .expenses-month-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; }
  .balance-heading .balance-entry-button { justify-content: center; }
  /* Gráficos: el total va debajo del título en lugar de al lado. */
  .chart-heading { flex-direction: column; gap: 6px; }
}
/* «Mes a mes» (Gastos y Balance): la misma tarjeta que «Movimientos del mes», a todo el ancho de la grilla. */
.metric-charts > .monthly-card { grid-column: 1 / -1; }
/* Configuración → WhatsApp: código para vincular el número. */
.whatsapp-link-card { display: grid; gap: 12px; justify-items: start; }.whatsapp-recognized { margin: 0; color: #344054; font-size: 14px; }.whatsapp-recognized strong { color: #101828; }.whatsapp-chat-link { text-decoration: none; }.whatsapp-chat-link[hidden], #whatsappLinksList[hidden], #whatsappLinksTitle[hidden] { display: none; }.phone-whatsapp-hint { display: block; margin-top: 4px; color: #667085; font-size: 12px; font-weight: 500; }.phone-whatsapp-hint.warn { color: #b54708; }.team-member-whatsapp { display: flex; align-items: center; gap: 6px; margin-top: 5px; }.team-member-whatsapp input { width: 150px; height: 28px; border: 1px solid #d9e0ea; border-radius: 6px; background: #fff; padding: 0 7px; color: #101828; font-size: 12.5px; }.whatsapp-plan-note { margin: 0; color: #344054; font-size: 13.5px; }.whatsapp-code { display: grid; gap: 8px; }.whatsapp-code[hidden] { display: none; }.whatsapp-code a { justify-self: start; text-decoration: none; }.whatsapp-code p { margin: 0; color: #344054; font-size: 13.5px; }.whatsapp-code strong { font-size: 24px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
/* Recorrido de bienvenida (recorrido.js): velo con un foco sobre el elemento de cada paso y una tarjeta
   al lado. En el celular la tarjeta va a lo ancho, abajo o arriba según dónde esté el elemento. */
.tour-root { position: fixed; inset: 0; z-index: 95; }
.tour-root[hidden] { display: none; }
.tour-blocker { position: absolute; inset: 0; }
.tour-spotlight { position: fixed; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 3px rgba(39,105,232,.6), 0 0 0 200vmax rgba(9,16,29,.7); transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; }
.tour-centered .tour-spotlight { box-shadow: 0 0 0 200vmax rgba(9,16,29,.7); }
.tour-popover { position: fixed; width: min(370px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 17px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(9,16,29,.3); transition: left .3s ease, top .3s ease; }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.tour-count { padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--primary); font-size: 12.5px; font-weight: 700; }
.tour-skip { border: 0; border-radius: 7px; padding: 4px 7px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.tour-skip:hover { color: var(--ink); }
.tour-skip[hidden] { display: none; }
.tour-popover h2 { margin: 0 0 6px; color: var(--ink); font: 800 19px/1.3 Manrope, sans-serif; }
.tour-popover p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tour-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tour-chips[hidden] { display: none; }
.tour-chips span { padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; }
.tour-foot { display: grid; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tour-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-progress[hidden] { display: none; }
.tour-dots { display: flex; flex-wrap: wrap; gap: 4px; }
/* Ayuda del teclado: solo en computadoras (no en el celular ni en pantallas táctiles). */
.tour-keys { flex-shrink: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tour-keys kbd { display: inline-block; min-width: 18px; margin-right: 3px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); color: var(--muted); font: 600 11px/16px "DM Sans", sans-serif; text-align: center; }
@media (max-width: 760px), (hover: none) { .tour-keys { display: none; } }
.tour-dots span { flex-shrink: 0; width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: width .2s ease, background .2s ease; }
.tour-dots span.done { background: rgba(39,105,232,.42); }
.tour-dots span.active { width: 18px; background: var(--primary); }
.tour-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tour-actions button { height: 37px; }
.tour-actions button[hidden] { display: none; }
.tour-popover button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tour-popover.tour-enter { animation: tour-in .28s ease both; }
.tour-popover.tour-nudge { animation: tour-nudge .35s ease; }
@keyframes tour-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes tour-nudge { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
@media (max-width: 760px) {
  .tour-popover.tour-sheet { left: 12px; right: 12px; width: auto; max-height: 55vh; }
  .tour-popover.tour-sheet.tour-bottom { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .tour-popover.tour-sheet.tour-top { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
  /* En el celular las pestañas de Configuración ya se ven en pantalla: no se repiten en la tarjeta. */
  .tour-popover.tour-sheet .tour-chips { display: none; }
  .tour-popover h2 { font-size: 17.5px; }
  .tour-popover p { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-spotlight, .tour-popover, .tour-dots span { transition: none; }
  .tour-popover.tour-enter, .tour-popover.tour-nudge { animation: none; }
}
/* Botón «¿Cómo funciona?» del encabezado de cada sección: abre el paso a paso de esa sección. */
.tour-launch { display: inline-flex; align-items: center; gap: 6px; height: 29px; margin-top: 10px; padding: 0 11px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #475467; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: .18s ease; }
.tour-launch:hover { border-color: rgba(39,105,232,.4); background: var(--blue-soft); color: var(--primary); }
.tour-launch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tour-launch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* En Inicio va en la barra superior, al lado de «Nuevo contrato», con la misma altura. */
.new-contract-control { display: flex; align-items: center; gap: 10px; }
.new-contract-control[hidden] { display: none; }
.new-contract-control > .tour-launch { height: 39px; margin: 0; padding: 0 13px 0 10px; border-radius: 8px; }
@media (max-width: 1100px) {
  .new-contract-control > .tour-launch { width: 39px; padding: 0; justify-content: center; }
  .new-contract-control > .tour-launch span { display: none; }
  .new-contract-control > .tour-launch svg { width: 19px; height: 19px; }
}
/* Menú del perfil: interruptor para mostrar u ocultar los botones «¿Cómo funciona?» (por usuario). */
.profile-menu-toggle { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #f0f2f5; background: #fff; cursor: pointer; }
.profile-menu-toggle:hover { background: #f7faff; }
.profile-menu-toggle > span:first-child { color: #667085; font-size: 17px; }
.profile-menu-toggle .switch span { width: 33px; height: 19px; }
.profile-menu-toggle .switch span::after { width: 15px; height: 15px; }
.profile-menu-toggle .switch input:checked + span::after { transform: translateX(14px); }
.profile-menu-toggle .switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
html.feature-tours-hidden .tour-launch, html.feature-tours-hidden .new-contract-control > .tour-launch { display: none; }
/* Configuración → Soporte: ícono del recorrido (de trazo, no relleno como el de WhatsApp). */
.support-option-icon.tour-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Ayuda: preguntas frecuentes (public/ayuda.js). Cada respuesta es un <details>, agrupadas por tema. */
.ayuda-list { padding: 4px 20px 8px; }
.ayuda-group { padding: 14px 0 6px; }
.ayuda-group + .ayuda-group { border-top: 1px solid var(--line); }
.ayuda-group h3 { margin: 0 0 6px; color: #98a2b3; font-size: 12.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.ayuda-item { border-bottom: 1px solid var(--line); }
.ayuda-item:last-child { border-bottom: 0; }
.ayuda-item summary { position: relative; padding: 13px 34px 13px 0; list-style: none; color: var(--ink); font-size: 15.5px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.ayuda-item summary::-webkit-details-marker { display: none; }
.ayuda-item summary::after { content: ""; position: absolute; top: 50%; right: 6px; width: 8px; height: 8px; border-right: 2px solid #98a2b3; border-bottom: 2px solid #98a2b3; transform: translateY(-70%) rotate(45deg); transition: transform .18s ease; }
.ayuda-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ayuda-item summary:hover { color: var(--primary); }
.ayuda-answer { padding: 0 34px 14px 0; }
.ayuda-answer p { margin: 0 0 8px; color: #475467; font-size: 14.5px; line-height: 1.6; }
.ayuda-answer p:last-child { margin-bottom: 0; }
.ayuda-link { display: inline-block; margin-top: 4px; color: var(--primary); font-size: 14px; font-weight: 700; text-decoration: none; }
.ayuda-link:hover { text-decoration: underline; }
.ayuda-empty { padding: 34px 20px; text-align: center; }
.ayuda-empty strong { display: block; color: var(--ink); font-size: 16px; }
.ayuda-empty p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.ayuda-empty[hidden] { display: none; }
.ayuda-workspace .table-footer { border-top: 1px solid var(--line); }
.ayuda-contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.ayuda-contact strong { display: block; font: 800 16px Manrope, sans-serif; }
.ayuda-contact p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .ayuda-list { padding: 2px 16px 6px; }.ayuda-contact { align-items: stretch; flex-direction: column; }.ayuda-contact button { width: 100%; } }
