:root{
  --bg:#ffffff;
  --surface:#f7f8f8;
  --surface-2:#f1f4f3;
  --text:#171a1f;
  --muted:#687078;
  --line:#e1e5e7;
  --accent:#0f766e;
  --accent-soft:#edf8f6;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg);font-size:15px;line-height:1.6}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.site-header__inner{max-width:var(--max);height:68px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:34px}
.site-brand{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto}
.site-brand__mark{width:34px;height:34px;display:grid;place-items:center;background:#171a1f;color:#fff;border-radius:5px;font-size:11px;font-weight:700;letter-spacing:.03em}
.site-brand__name{font-size:15px;font-weight:650;letter-spacing:-.01em}
.site-nav{display:flex;align-items:center;gap:28px;margin-right:auto}
.site-nav a,.text-action{color:#555d65;font-size:13px;font-weight:500}
.site-nav a:hover,.text-action:hover{color:var(--text)}
.site-actions{display:flex;align-items:center;gap:18px}
.session-name{font-size:12px;color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 17px;border:1px solid var(--line);border-radius:5px;font-size:13px;font-weight:600;transition:.16s ease;background:#fff}
.button:hover{border-color:#c4c9cc;background:#fafafa}
.button--dark{background:#171a1f;border-color:#171a1f;color:#fff}
.button--dark:hover{background:#292d32;border-color:#292d32}
.button--plain{background:#fff;color:#33383e}
.button--large{min-height:46px;padding:0 20px;font-size:14px}
.hero{max-width:var(--max);margin:0 auto;padding:108px 24px 92px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);gap:74px;align-items:center}
.kicker{display:block;margin-bottom:14px;color:var(--accent);font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.09em}
.hero h1{margin:0;font-size:68px;line-height:.98;letter-spacing:-.055em;font-weight:650;max-width:570px}
.hero__copy>p{margin:26px 0 0;max-width:600px;color:#5e666e;font-size:18px;line-height:1.7;font-weight:400}
.hero__actions{display:flex;align-items:center;gap:10px;margin-top:32px}
.hero__note{margin-top:19px;color:#858c92;font-size:11px}
.product-preview{border:1px solid #d9dee0;background:#fff;box-shadow:0 26px 65px rgba(24,30,35,.09)}
.product-preview__bar{height:54px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px}
.product-preview__bar>div{display:flex;align-items:center;gap:20px}
.preview-brand{font-size:12px;font-weight:650}.preview-section{font-size:10px;color:#737b82}.preview-user{width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--line);font-size:9px;border-radius:50%}
.preview-body{padding:24px;background:#fafbfb}
.preview-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}.preview-heading>div{display:flex;flex-direction:column;gap:3px}.preview-heading span{font-size:9px;color:#8b9298;text-transform:uppercase;letter-spacing:.06em}.preview-heading strong{font-size:19px;font-weight:600;letter-spacing:-.02em}.preview-button{padding:7px 9px!important;border:1px solid #d5dadd;background:#fff;color:#333!important;text-transform:none!important;letter-spacing:0!important}
.preview-kpis{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:#fff}.preview-kpis div{padding:13px;border-right:1px solid var(--line)}.preview-kpis div:last-child{border-right:0}.preview-kpis span{display:block;color:#8b9298;font-size:8px;text-transform:uppercase;letter-spacing:.05em}.preview-kpis strong{display:block;margin-top:4px;font-size:13px;font-weight:600}
.preview-list{margin-top:14px;border:1px solid var(--line);background:#fff}.preview-property{display:flex;align-items:center;justify-content:space-between;padding:14px 13px;border-bottom:1px solid var(--line);font-size:10px;color:#81888f}.preview-property:last-child{border-bottom:0}.preview-property>div{display:flex;align-items:center;gap:8px}.preview-property strong{font-size:11px;color:#30353a;font-weight:550}.preview-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.section{max-width:var(--max);margin:0 auto;padding:100px 24px;border-top:1px solid var(--line)}
.section-heading{max-width:660px;margin-bottom:48px}.section-heading h2,.trust-section h2,.final-cta h2{margin:0;font-size:38px;line-height:1.15;letter-spacing:-.035em;font-weight:600}.section-heading p{margin:16px 0 0;color:var(--muted);font-size:16px;max-width:620px}
.features-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.feature{min-height:270px;padding:30px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);position:relative}.feature__number{font-size:10px;color:#9ba1a6}.feature h3{margin:38px 0 12px;font-size:20px;font-weight:600;letter-spacing:-.02em}.feature p{max-width:470px;margin:0;color:var(--muted);font-size:14px}.feature a{position:absolute;left:30px;bottom:27px;color:#3e464d;font-size:12px;font-weight:600}.feature a span{margin-left:4px}.feature__status{position:absolute;left:30px;bottom:28px;color:#9ba1a6;font-size:11px}
.section--split{display:grid;grid-template-columns:.85fr 1.15fr;gap:90px;align-items:start}.section-heading--left{margin-bottom:0}.steps{border-top:1px solid var(--line)}.step-row{display:grid;grid-template-columns:48px 1fr;gap:20px;padding:27px 0;border-bottom:1px solid var(--line)}.step-row>span{font-size:10px;color:#9aa0a5;margin-top:4px}.step-row h3{margin:0 0 7px;font-size:17px;font-weight:600}.step-row p{margin:0;color:var(--muted);font-size:14px}
.trust-section{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:end;background:var(--surface);max-width:none;padding-left:max(24px,calc((100vw - var(--max))/2 + 24px));padding-right:max(24px,calc((100vw - var(--max))/2 + 24px))}.trust-section>div{max-width:530px}.trust-section>p{margin:0;max-width:510px;color:#5f676f;font-size:15px}
.final-cta{max-width:var(--max);margin:0 auto;padding:100px 24px;display:flex;align-items:end;justify-content:space-between;gap:40px;border-bottom:1px solid var(--line)}.final-cta__actions{display:flex;align-items:center;gap:20px;flex:0 0 auto}
.site-footer{max-width:var(--max);margin:0 auto;padding:38px 24px 48px;display:grid;grid-template-columns:1fr auto auto;gap:40px;align-items:start;color:#7a8187;font-size:11px}.site-brand--footer .site-brand__mark{width:29px;height:29px;font-size:9px}.site-footer p{margin:10px 0 0}.site-footer__links{display:flex;gap:22px}.site-footer__links a:hover{color:var(--text)}.site-footer__copy{white-space:nowrap}
@media(max-width:1000px){.site-nav{display:none}.hero{grid-template-columns:1fr;padding-top:80px;gap:50px}.hero__copy{max-width:720px}.product-preview{max-width:760px}.section--split{grid-template-columns:1fr;gap:40px}.trust-section{grid-template-columns:1fr;gap:28px}.final-cta{align-items:flex-start;flex-direction:column}.site-footer{grid-template-columns:1fr auto}}
@media(max-width:700px){.site-header__inner{padding:0 16px}.site-brand__name{display:none}.site-actions{margin-left:auto;gap:10px}.site-actions .text-action{display:none}.hero{padding:66px 16px 70px}.hero h1{font-size:48px}.hero__copy>p{font-size:16px}.product-preview{overflow:hidden}.preview-kpis{grid-template-columns:repeat(2,1fr)}.preview-kpis div:nth-child(2){border-right:0}.preview-kpis div:nth-child(-n+2){border-bottom:1px solid var(--line)}.section{padding:72px 16px}.section-heading h2,.trust-section h2,.final-cta h2{font-size:31px}.features-grid{grid-template-columns:1fr}.feature{min-height:245px}.trust-section{padding:72px 16px}.final-cta{padding:72px 16px}.final-cta__actions{width:100%;justify-content:space-between}.site-footer{padding:30px 16px 40px;grid-template-columns:1fr}.site-footer__links{margin-top:4px}}
@media(max-width:430px){.hero h1{font-size:42px}.hero__actions{align-items:stretch;flex-direction:column}.button--large{width:100%}.product-preview__bar .preview-section{display:none}.preview-body{padding:14px}.preview-property span:last-child{display:none}.final-cta__actions{align-items:stretch;flex-direction:column}.final-cta__actions .text-action{text-align:center}}

/* Theme switch */
.theme-toggle{
  appearance:none;border:0;background:transparent;padding:0;display:inline-flex;align-items:center;gap:6px;
  color:var(--muted);cursor:pointer;flex:0 0 auto;
}
.theme-toggle__icon{font-size:12px;line-height:1;opacity:.75}
.theme-toggle__track{width:34px;height:18px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:2px;display:block;transition:.18s ease}
.theme-toggle__thumb{display:block;width:12px;height:12px;border-radius:50%;background:#7c848b;transition:transform .18s ease,background .18s ease}
.theme-toggle[aria-pressed="true"] .theme-toggle__thumb{transform:translateX(16px);background:#d5d9dc}
.theme-toggle:hover .theme-toggle__track{border-color:#b8bec2}

html[data-theme="dark"]{
  --bg:#0f1215;
  --surface:#161a1e;
  --surface-2:#1b2025;
  --text:#f1f3f5;
  --muted:#9aa3ab;
  --line:#2b3238;
  --accent:#55cbbd;
  --accent-soft:#153833;
}
html[data-theme="dark"] body{background:#0f1215;color:var(--text)}
html[data-theme="dark"] .site-header{background:rgba(15,18,21,.94)}
html[data-theme="dark"] .site-brand__mark{background:#f1f3f5;color:#15181b}
html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .text-action{color:#a7afb6}
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .text-action:hover{color:#fff}
html[data-theme="dark"] .button{background:#15191d;border-color:#333a40;color:#eef1f3}
html[data-theme="dark"] .button:hover{background:#1d2227;border-color:#454d54}
html[data-theme="dark"] .button--dark{background:#eef1f3;border-color:#eef1f3;color:#15181b}
html[data-theme="dark"] .button--dark:hover{background:#fff;border-color:#fff}
html[data-theme="dark"] .button--plain{background:transparent;color:#d8dde0}
html[data-theme="dark"] .hero__copy>p{color:#aab2b9}
html[data-theme="dark"] .hero__note{color:#7f8991}
html[data-theme="dark"] .product-preview{background:#14181c;border-color:#30373d;box-shadow:0 26px 65px rgba(0,0,0,.22)}
html[data-theme="dark"] .preview-body{background:#111519}
html[data-theme="dark"] .preview-button,
html[data-theme="dark"] .preview-kpis,
html[data-theme="dark"] .preview-list{background:#171c20;border-color:#30373d}
html[data-theme="dark"] .preview-button{color:#d9dee2!important}
html[data-theme="dark"] .preview-heading strong,
html[data-theme="dark"] .preview-kpis strong,
html[data-theme="dark"] .preview-property strong{color:#eef1f3}
html[data-theme="dark"] .preview-heading span,
html[data-theme="dark"] .preview-kpis span,
html[data-theme="dark"] .preview-property{color:#8e98a0}
html[data-theme="dark"] .feature a{color:#d1d6da}
html[data-theme="dark"] .site-footer{color:#818b93}
html[data-theme="dark"] .theme-toggle__track{background:#20262b;border-color:#3a4248}

@media(max-width:700px){
  .theme-toggle__icon{display:none}
  .site-actions{gap:12px}
}

/* Cuenta pública: menú accesible, sin añadir navegación extra. */
.public-account {position:relative;flex:0 0 auto;min-width:0}
.public-account[hidden],.public-account__menu[hidden],.public-account__error[hidden],.theme-control[hidden]{display:none!important}
.public-account__trigger{
  display:inline-flex;align-items:center;gap:8px;max-width:190px;padding:8px 5px;
  border:0;background:none;color:var(--text);font-size:13px;font-weight:550;cursor:pointer;
}
.public-account__trigger .session-name{color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:154px}
.public-account__plan{display:inline-flex;align-items:center;flex:0 0 auto;padding:2px 6px;border:1px solid var(--line);border-radius:5px;font-size:9px;line-height:1.2;color:var(--muted);font-weight:600}
.public-account__plan.is-premium{border-color:rgba(15,118,110,.28);background:rgba(15,118,110,.05);color:var(--accent)}
.public-account__plan[hidden]{display:none!important}
.public-account__trigger svg{flex:0 0 auto;color:var(--muted);transition:transform .16s ease}
.public-account__trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
.public-account__trigger:hover{color:var(--accent)}
.public-account__trigger:focus-visible,.public-account__menu :is(a,button):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.public-account__menu{
  position:absolute;z-index:90;right:0;top:calc(100% + 11px);width:220px;padding:6px;
  background:var(--bg);border:1px solid var(--line);box-shadow:0 14px 35px rgba(0,0,0,.09);
}
.public-account__email{display:block;padding:10px 10px 11px;border-bottom:1px solid var(--line);margin-bottom:4px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.public-account__menu a,.public-account__menu button{display:block;width:100%;padding:10px;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;font-size:12px;cursor:pointer}
.public-account__menu a:hover,.public-account__menu button:hover{background:var(--surface)}
.public-account__menu button:disabled{opacity:.5;cursor:wait}
.public-account__error{padding:8px 10px;display:block;color:#b91c1c;font-size:11px}
/* Beta discreta junto al control de tema */
.theme-control{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}
.theme-beta{font-size:9px;letter-spacing:.035em;font-weight:550;color:var(--muted);opacity:.78;user-select:none}
html[data-theme="dark"] .public-account__menu{background:#171c20;box-shadow:0 14px 35px rgba(0,0,0,.32)}
html[data-theme="dark"] .public-account__menu a:hover,
html[data-theme="dark"] .public-account__menu button:hover{background:#252b30}
html[data-theme="dark"] .public-account__trigger{color:var(--text)}
@media(max-width:700px){
  .public-account__trigger{max-width:132px}
  .public-account__trigger .session-name{max-width:105px}
  .public-account__plan{display:none}
  .theme-control{gap:2px}
  .theme-beta{font-size:9px}
}

.feature__soon{display:inline-flex;margin-top:14px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:2px}

/* Ajustes de la portada SOLO para pantallas pequenas. La version de escritorio no cambia. */
.hero-mobile-login{display:none}
@media (max-width:700px){
  .site-footer,.site-footer>*{min-width:0;max-width:100%}
  .site-footer__links{display:flex;flex-wrap:wrap;column-gap:16px;row-gap:12px;align-items:flex-start;min-width:0}
  .site-footer__links a{max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.45}
}
@media (max-width:700px){
  .hero__actions{flex-direction:column;align-items:stretch}
  .hero__actions .button{width:100%}
  .hero-desktop-how{display:none}
  .hero-mobile-login{display:inline-flex}
}

/* Acceso a las mismas herramientas desde la calculadora en el movil. */
.site-header--tools .mobile-tools-button,.site-header--tools .mobile-tools-menu{display:none!important}
@media (max-width:700px){
  .site-header--tools .site-header__inner{position:relative;gap:8px;padding-inline:12px}
  .site-header--tools .site-brand{min-width:0;flex:0 1 auto}
  .site-header--tools .site-brand .brand-logo{max-width:min(108px,29vw);height:27px}
  .site-header--tools .site-actions{margin-left:auto;min-width:0;flex:0 0 auto;gap:4px}
  .site-header--tools .site-actions>.button{padding:0 8px;font-size:11px;min-height:34px;white-space:nowrap}
  .site-header--tools .public-account__trigger{max-width:94px;gap:3px;padding-inline:2px}
  .site-header--tools .public-account__trigger [data-session-name]{max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .site-header--tools .mobile-tools-button{
    display:inline-flex!important;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;
    padding:8px 8px;border:1px solid var(--line);border-radius:7px;
    background:var(--bg);color:var(--text);font-size:11px;font-weight:600;white-space:nowrap;cursor:pointer;
  }
  .site-header--tools .mobile-tools-button svg{width:14px;height:14px;transition:transform .16s ease}
  .site-header--tools .mobile-tools-button[aria-expanded="true"] svg{transform:rotate(180deg)}
  .site-header--tools .mobile-tools-menu{position:absolute;top:calc(100% + 5px);left:12px;right:12px;z-index:100;background:var(--bg);border:1px solid var(--line);border-radius:9px;box-shadow:0 14px 30px rgba(0,0,0,.12);padding:7px;max-height:calc(100dvh - 85px);overflow-y:auto}
  .site-header--tools .mobile-tools-menu:not([hidden]){display:grid!important;gap:2px}
  .site-header--tools .mobile-tools-menu a{display:block;padding:12px 13px;border-radius:6px;font-size:13px;font-weight:500}
  .site-header--tools .mobile-tools-menu a:hover,.site-header--tools .mobile-tools-menu a[aria-current="page"]{background:var(--surface);color:var(--accent)}
  .site-header--tools .mobile-tools-button:focus-visible,.site-header--tools .mobile-tools-menu a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  html[data-theme="dark"] .site-header--tools .mobile-tools-menu{box-shadow:0 14px 30px rgba(0,0,0,.4)}
}

/* Evita desbordamiento del pie también en tabletas estrechas; no cambia el escritorio grande. */
@media (min-width:701px) and (max-width:1000px){
  .site-footer{grid-template-columns:minmax(0,1fr);gap:22px}
  .site-footer__links{min-width:0;display:flex;flex-wrap:wrap;gap:12px 20px}
  .site-footer__copy{white-space:normal}
}

@media (max-width:360px){
  .site-header--tools .site-brand .brand-logo{max-width:27vw}
  .site-header--tools .mobile-tools-button{padding:8px 6px;font-size:10px}
  .site-header--tools .site-actions>.button{font-size:10px;padding-inline:6px}
}
