:root{--blue:#063775;--blue2:#0a5aa8;--cyan:#1fc4ef;--bg:#f5f9fc;--text:#102033;--muted:#64748b;--line:#dbe7f1;--card:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}a{color:var(--blue2);text-decoration:none}.topbar{border-bottom:1px solid var(--line);z-index:10;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffffeb;justify-content:space-between;align-items:center;height:92px;padding:0 6vw;display:flex;position:sticky;top:0}.brand img{object-fit:contain;width:auto;height:135px;margin-top:23px}.topbar nav{align-items:center;gap:22px;font-weight:700;display:flex}.btn{background:linear-gradient(135deg, var(--blue), var(--blue2));color:#fff;cursor:pointer;border:0;border-radius:16px;justify-content:center;align-items:center;gap:8px;padding:13px 20px;font-weight:800;display:inline-flex;box-shadow:0 14px 28px #0637752e}.btn.ghost{color:var(--blue);border:1px solid var(--line);box-shadow:none;background:#fff}.btn.small{border-radius:12px;padding:9px 14px}.btn.full{width:100%}.hero{grid-template-columns:1.05fr .95fr;align-items:center;gap:40px;padding:72px 6vw 50px;display:grid}.hero h1{letter-spacing:-2px;color:var(--blue);margin:18px 0;font-size:clamp(38px,6vw,72px);line-height:.98}.hero p{color:var(--muted);max-width:760px;font-size:20px;line-height:1.55}.pill{color:var(--blue2);background:#e7f8ff;border-radius:999px;padding:9px 14px;font-weight:800;display:inline-flex}.actions{flex-wrap:wrap;gap:14px;margin-top:28px;display:flex}.heroCard{border:1px solid var(--line);background:#fff;border-radius:32px;padding:30px;box-shadow:0 30px 80px #083b7a24}.heroCard img{object-fit:contain;width:100%;max-height:230px}.metricGrid{grid-template-columns:repeat(2,1fr);gap:16px;margin-top:20px;display:grid}.metricGrid div,.stat,.feature,.plan,.cardForm,.tableCard,.miniForm,.bookingIntro,.bookingForm,.success,.billingStatus{border:1px solid var(--line);background:#fff;border-radius:24px;padding:22px}.metricGrid strong,.stat strong{color:var(--blue);font-size:30px;display:block}.metricGrid span,.stat span,.sectionIntro{color:var(--muted)}.sectionNote{color:#334155;background:#eef6ff;border:1px solid #c7dff8;border-radius:14px;margin-top:10px;padding:12px 14px}.features,.planGrid,.stats{grid-template-columns:repeat(4,1fr);gap:18px;padding:28px 6vw;display:grid}.feature svg{color:var(--cyan);width:32px;height:32px}.feature h3,.plan h3{color:var(--blue);margin-bottom:6px}.feature p,.plan p{color:var(--muted);line-height:1.5}.plans{padding:40px 6vw 70px}.plans h2{color:var(--blue);margin-bottom:6px;font-size:42px}.planGrid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));padding:20px 0}.plan strong{color:var(--blue);font-size:28px;display:block}.plan span{color:var(--muted);font-weight:700}.planBadges{flex-wrap:wrap;gap:8px;min-height:26px;margin-bottom:8px;display:flex}.badge{border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800}.badge.featured{color:#047857;background:#e8fff3;border:1px solid #a7f3d0}.badge.oneTime{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa}.planLimits{color:#1e293b;gap:6px;margin:12px 0;font-size:14px;display:grid}.planFeatures{color:var(--muted);gap:8px;margin:8px 0 16px;padding-left:20px;display:grid}.billingSection{margin-top:20px}.billingSection h3{color:var(--blue);margin:0 0 8px}footer{color:var(--muted);border-top:1px solid var(--line);padding:34px 6vw}.authWrap,.loading{place-items:center;min-height:calc(100vh - 92px);padding:32px;display:grid}.cardForm{gap:14px;width:min(480px,100%);display:grid;box-shadow:0 30px 80px #083b7a1f}.formLogo{justify-self:center;width:220px}input,select,textarea{border:1px solid var(--line);width:100%;font:inherit;color:var(--text);background:#fff;border-radius:14px;padding:13px 14px}textarea{resize:vertical;min-height:96px}.error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca;border-radius:14px;padding:12px 14px}.success{text-align:center;place-items:center;gap:8px;display:grid}.success svg{color:#16a34a;width:62px;height:62px}.booking{grid-template-columns:360px 1fr;align-items:start;gap:22px;max-width:1180px;margin:0 auto;padding:36px 20px;display:grid}.bookingIntro img{object-fit:contain;width:100%}.bookingIntro h1{color:var(--blue)}.bookingIntro p{color:var(--muted)}.bookingForm{gap:14px;display:grid}.bookingForm label{color:var(--blue);gap:6px;font-weight:800;display:grid}.twoCols{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.slots{border:1px dashed var(--line);background:#f8fbfe;border-radius:18px;flex-wrap:wrap;gap:10px;padding:14px;display:flex}.slot{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:12px;padding:10px 13px;font-weight:800}.slot.active{background:var(--blue);color:#fff}.embedPage{background:0 0}.appShell{grid-template-columns:280px 1fr;min-height:100vh;display:grid}aside{background:#072e63;flex-direction:column;gap:10px;padding:22px;display:flex}aside img{width:210px;margin:0 auto 20px}aside button{color:#fff;cursor:pointer;text-align:left;background:#ffffff14;border:1px solid #ffffff1f;border-radius:14px;align-items:center;gap:10px;padding:13px;font-weight:800;display:flex}aside svg{width:20px;height:20px}.panel{padding:28px}.panelHeader{justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px;display:flex}.panelHeader h1{color:var(--blue);margin:0;font-size:36px}.panelHeader p{color:var(--muted);margin:4px 0 0}.stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));padding:0}.tableCard{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--line);padding:13px}th{color:var(--blue)}.status{color:var(--blue);background:#e7f8ff;border-radius:999px;padding:6px 10px;font-weight:800}.grid2{grid-template-columns:360px 1fr;align-items:start;gap:18px;display:grid}.miniForm{gap:12px;display:grid}.billingStatus{margin-bottom:18px}@media (width<=900px){.hero,.booking,.appShell,.grid2{grid-template-columns:1fr}.features{grid-template-columns:repeat(2,1fr)}.topbar{height:84px;padding:0 18px}.brand img{height:135px;margin-top:23px}.topbar nav a:not(.btn){display:none}aside{position:static}.twoCols{grid-template-columns:1fr}}@media (width<=560px){.features{grid-template-columns:1fr}.hero{padding-top:38px}.hero h1{font-size:40px}.panel{padding:16px}}.trialOffer{gap:6px;margin:10px 0;display:grid}.trialOffer strong{color:var(--blue);font-size:24px}.trialOffer span{color:var(--ink);font-weight:800}.trialOffer small,.trialIntro{color:var(--muted);line-height:1.45}.btn.danger{background:#b91c1c;margin-top:12px}.startModalOverlay{z-index:50;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#020c1b94;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.startModal{background:#fff;border:1px solid #dbe7f1e6;border-radius:30px;width:min(980px,100%);padding:clamp(22px,4vw,38px);position:relative;box-shadow:0 34px 100px #020c1b47}.startModal h2{color:var(--blue);letter-spacing:-1px;margin:14px 0 22px;font-size:clamp(30px,4vw,46px)}.modalClose{color:var(--blue);cursor:pointer;background:#eef6ff;border:0;border-radius:999px;width:38px;height:38px;font-size:26px;line-height:1;position:absolute;top:16px;right:18px}.startOptions{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.startOptions article{border:1px solid var(--line);background:linear-gradient(#fff,#f8fbfe);border-radius:22px;align-content:start;gap:12px;padding:20px;display:grid}.startOptions h3{color:var(--blue);margin:0;font-size:22px}.startOptions p,.selectionNotice p{color:var(--muted);margin:0;line-height:1.5}.btn.ghostLight{color:var(--blue);box-shadow:none;background:#eef6ff;border:1px solid #c7dff8}.selectionNotice{gap:12px;display:grid}@media (width<=900px){.startOptions{grid-template-columns:1fr}.startModalOverlay{align-items:start;overflow:auto}}.patientWorkspace{flex-direction:column;gap:18px;display:flex}.workspaceHeader{align-items:center;gap:16px;display:flex}.workspaceHeader h2{margin:0}.workspaceHeader p{color:#64748b;margin:4px 0 0}.patientTabs{flex-wrap:wrap;gap:8px;display:flex}.patientTabs button{color:#0f172a;cursor:pointer;text-transform:capitalize;background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:8px 14px}.patientTabs button.active{color:#fff;background:#083b7a}.clinicalPanel{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px;box-shadow:0 10px 30px #0f172a0f}.toothGrid{grid-template-columns:repeat(auto-fit,minmax(74px,1fr));gap:10px;display:grid}.tooth{color:#0f172a;cursor:pointer;background:#f8fafc;border:1px solid #dbeafe;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:68px;display:flex}.tooth span{font-size:11px}.tooth.caries,.tooth.extraccion{background:#fff1f2;border-color:#fecaca}.tooth.restauracion,.tooth.endodoncia,.tooth.corona{background:#fffbeb;border-color:#fde68a}.tooth.implante{background:#eff6ff;border-color:#bfdbfe}.tooth.ausente{opacity:.75;background:#f1f5f9;border-color:#cbd5e1}.tooth.observacion{background:#f5f3ff;border-color:#ddd6fe}.modalOverlay{z-index:50;background:#0f172a73;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modalCard{background:#fff;border-radius:18px;flex-direction:column;gap:12px;width:min(560px,100%);padding:22px;display:flex;position:relative;box-shadow:0 24px 70px #0f172a33}.modalCard textarea,.miniForm textarea{min-height:90px}.historyList{border-top:1px solid #e2e8f0;max-height:180px;padding-top:10px;overflow:auto}.timeline{flex-direction:column;gap:10px;margin-top:14px;display:flex}.timeline article,.miniCard{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.cardsList{gap:12px;margin-top:14px;display:grid}.budgetItem{grid-template-columns:.5fr 1fr 1.2fr .5fr .8fr;gap:8px;display:grid}.checkLine{color:#334155;align-items:center;gap:8px;display:flex}@media (width<=760px){.budgetItem{grid-template-columns:1fr}.workspaceHeader{flex-direction:column;align-items:flex-start}}.fullSpan{grid-column:1/-1}.emptyState{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:12px}
