*{box-sizing:border-box} :root{--ink:#202a27;--muted:#616c65;--canvas:#f7f8f2;--surface:#fff;--accent:#d6f29b;--on-accent:#18231a;--line:#dce2d8;--radius:22px;color-scheme:light}body{margin:0;background:var(--canvas);color:var(--ink);font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button,.pill{cursor:pointer;border:0;border-radius:999px;padding:12px 22px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;background:var(--accent);color:var(--on-accent);font-weight:600}button:disabled{opacity:.55;cursor:wait}.outline{background:transparent;border:1px solid var(--line);color:var(--ink)}.small{font-size:14px;padding:8px 14px}.danger{background:#ffe4df;color:#7b2420}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #206657;outline-offset:4px}.skip{position:absolute;top:-60px}.skip:focus{top:0;background:white;padding:16px;z-index:20}.site-header{max-width:1280px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:24px 40px;border-bottom:1px solid var(--line)}.brand{text-decoration:none;font-size:30px;letter-spacing:-1.8px;font-weight:800}.brand span{font-weight:400}.brand i{font-style:normal;color:#557e33;margin-left:9px}.site-header nav{display:flex;align-items:center;gap:28px;font-size:14px}.site-header nav>a{text-decoration:none}main{max-width:1280px;margin:auto;padding:40px}.eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:650;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(36px,5.7vw,72px);line-height:1.08;letter-spacing:-.055em;font-weight:550}h2{font-size:30px;line-height:1.2;letter-spacing:-.035em}h3{font-size:20px;line-height:1.3}p{color:var(--muted)}.hero{display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:50px;padding:42px 0 60px}.hero h1{max-width:760px}.hero p{font-size:18px;max-width:490px}.hero-aside{border-radius:var(--radius);background:#e8eedf;padding:35px;transform:rotate(2deg)}.avatar{background:var(--ink);color:var(--accent);width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:26px;flex-shrink:0}.hero-aside h3{margin:20px 0 12px}.filters,.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:26px}.filters label{flex:1;min-width:150px}.filters input,.filters select{background:white}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card a{text-decoration:none}.card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.card-body{padding:22px}.price{font-size:25px;letter-spacing:-.03em;font-weight:650}.tag{display:inline-block;border-radius:999px;padding:4px 12px;background:#eef2e8;font-size:12px}.card h3{margin:10px 0}.muted{color:var(--muted);font-size:14px}.empty{padding:60px 24px;text-align:center;border:1px dashed var(--line);border-radius:var(--radius)}.site-footer{max-width:1200px;margin:50px auto 0;border-top:1px solid var(--line);padding:40px;display:flex;gap:40px;justify-content:space-between;align-items:flex-start}.site-footer small{max-width:290px;color:var(--muted)}.back{display:inline-block;margin-bottom:28px;text-decoration:none;font-size:14px}.property-heading{display:grid;grid-template-columns:1fr auto;gap:26px;align-items:end;margin-bottom:30px}.property-heading h1{font-size:clamp(32px,4.6vw,56px);max-width:800px;margin:12px 0}.property-heading .price{font-size:32px}.gallery{display:grid;grid-template-columns:2fr 1fr;gap:12px;max-height:560px;overflow:hidden;border-radius:var(--radius);margin-bottom:35px}.gallery img{width:100%;height:100%;object-fit:cover;display:block}.gallery>a{min-height:200px}.gallery>a:first-child{grid-row:span 2}.gallery.single{grid-template-columns:1fr}.gallery.single>a{max-height:540px}.photo-strip{display:flex;gap:10px;overflow:auto;margin:-18px 0 30px}.photo-strip img{height:85px;width:120px;object-fit:cover;border-radius:10px}.property-body{display:grid;grid-template-columns:1.5fr 1fr;gap:40px}.details{min-width:0}.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.fact{padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.fact dt{font-size:12px;color:var(--muted)}.fact dd{margin:5px 0 0;font-weight:600;overflow-wrap:anywhere}.description{white-space:pre-wrap;overflow-wrap:anywhere}.chat{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;align-self:start;position:sticky;top:20px}.chat-head{display:flex;align-items:center;gap:14px;padding:22px;border-bottom:1px solid var(--line)}.chat-head h3,.chat-head p{margin:0}.chat-log{height:300px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:14px}.bubble{background:var(--canvas);padding:12px 16px;border-radius:16px;font-size:14px;max-width:95%;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{align-self:flex-end;background:var(--accent);color:var(--on-accent)}.chat-form{display:flex;gap:8px;padding:16px}.chat-form input{min-width:0;flex:1}.chat-foot{padding:0 20px 20px}.chat-foot p{font-size:12px;margin:10px 0 0}.contact{border-top:1px solid var(--line);padding:20px}.contact h3{margin-bottom:8px}.contact button{margin-top:14px}.theme-moderno{--canvas:#f5f5eb;--ink:#14140f;--muted:#626257;--accent:#beff50;--on-accent:#14140f;--radius:28px}.theme-moderno .property-heading{background:var(--accent);color:var(--on-accent);padding:32px;border-radius:var(--radius)}.theme-moderno .property-heading p,.theme-moderno .property-heading .eyebrow{color:inherit}.theme-moderno .facts{grid-template-columns:repeat(2,1fr)}.theme-elegante{--canvas:#f3f0e9;--ink:#302e2a;--muted:#696358;--accent:#383e35;--on-accent:#fff;--radius:4px}.theme-elegante h1,.theme-elegante h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.035em}.theme-elegante .property-heading{display:block;text-align:center;padding:20px 0}.theme-elegante .property-heading h1{margin:15px auto}.theme-elegante .gallery{grid-template-columns:1fr}.theme-elegante .gallery>a:not(:first-child){display:none}.theme-elegante .gallery>a:first-child{max-height:550px}.theme-elegante button,.theme-elegante .pill{border-radius:4px}.accent-verde{--accent:#d6f29b;--on-accent:#18231a}.accent-azul{--accent:#d6e8fa;--on-accent:#152e46}.accent-terracota{--accent:#efd1ba;--on-accent:#42291a}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.admin-top h1{font-size:42px;margin-bottom:6px}.login{max-width:430px;margin:40px auto;padding:34px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}label{display:block;font-size:14px;font-weight:600}input,select,textarea{display:block;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);margin-top:6px}textarea{min-height:120px;resize:vertical}input[type=checkbox],input[type=radio]{width:auto;display:inline;margin-right:8px}label .muted{display:block;font-weight:400;font-size:12px}.login button{margin-top:20px;width:100%}.login .auth-text-link{display:inline;width:auto;margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--ink);font-size:13px;font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.auth-secondary{margin:18px 0 0;text-align:center;font-size:13px}.auth-recovery{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;text-align:center}.auth-recovery p{flex-basis:100%;margin:0 0 2px;font-size:13px}.auth-recovery span{color:var(--muted)}.auth-contact{margin-top:28px;font-size:12px}.steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.steps button{background:transparent;border:1px solid var(--line);color:var(--muted);font-size:13px}.steps button.current{background:var(--ink);color:white}.wizard-section{padding:30px}.wizard-section[hidden]{display:none}.wizard-actions{display:flex;gap:12px;justify-content:space-between;padding:24px 0;flex-wrap:wrap}.design-options{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.design-option{border:2px solid var(--line);padding:16px;border-radius:15px;background:white;color:#202a27}.design-option:has(input:checked){border-color:#206657}.swatch{height:95px;border-radius:10px;margin:12px 0;background:linear-gradient(110deg,#f5f4ed 65%,#d6f29b 65%);border:1px solid #ccc}.swatch.moderno{background:linear-gradient(135deg,#beff50 45%,#f5f5eb 45%)}.swatch.elegante{background:linear-gradient(90deg,#383e35 30%,#f3f0e9 30%);border-radius:0}.photo-edit{display:flex;gap:14px;flex-wrap:wrap;margin-top:20px}.photo-tile{width:150px}.photo-tile img{width:150px;height:110px;object-fit:cover;border-radius:12px}.photo-tile button{font-size:12px;padding:5px 9px;margin:5px 3px 0 0}.photo-tile small{display:block}.report-item{padding:20px;border-bottom:1px solid var(--line)}.stars{letter-spacing:3px;color:#48682d}.preview-shell{border:1px solid var(--line);height:720px;overflow:auto;margin:20px auto;background:white}.preview-shell.mobile{max-width:390px}.preview-shell iframe{border:0;width:100%;height:100%}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#202a27;color:white;border-radius:12px;max-width:min(90vw,650px);padding:14px 22px;z-index:30;display:none}#notice.visible{display:block}.loading{text-align:center;padding:80px}.error{color:#8c2e20;font-size:14px}.preview-banner{background:#fff1c5;color:#4e3b0c;padding:12px;margin-bottom:20px}body.preview .site-header,body.preview .site-footer{display:none}body.preview main{padding:22px}@media(max-width:850px){.grid{grid-template-columns:repeat(2,1fr)}.hero{gap:20px}.property-body{grid-template-columns:1fr}.chat{position:static}.site-footer{flex-wrap:wrap}.facts{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){main{padding:24px 18px}.site-header{padding:18px}.site-header nav{gap:12px}.site-header nav>a:first-child{display:none}.hero{grid-template-columns:1fr;padding:25px 0}.hero-aside{transform:none;padding:24px}.grid,.form-grid,.design-options{grid-template-columns:1fr}.full{grid-column:auto}.property-heading{grid-template-columns:1fr;gap:8px}.gallery{max-height:350px;grid-template-columns:1fr}.gallery>a:not(:first-child){display:none}.gallery>a:first-child{height:320px}.site-footer{padding:24px 18px;margin-top:25px;gap:20px}.wizard-section{padding:20px}.admin-top{align-items:flex-start;flex-direction:column}.filters{gap:8px}.filters label{min-width:100%}.theme-moderno .property-heading{padding:24px}.steps button{padding:8px 12px}.facts{gap:8px}.fact{padding:14px}h2{font-size:26px}.chat-log{height:260px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.photo-count{font-size:14px;margin:0 0 12px}.photo-strip{margin:0 0 32px;padding:4px 0 12px}.photo-strip a{flex:0 0 auto}.photo-viewer{width:min(1100px,96vw);max-height:95dvh;background:#17151b;color:#fff;border:0;border-radius:18px;padding:18px}.photo-viewer::backdrop{background:rgba(20,15,25,.84)}.photo-viewer img{display:block;width:100%;height:65dvh;object-fit:contain}.viewer-toolbar,.viewer-controls{display:flex;align-items:center;justify-content:space-between;gap:15px}.viewer-toolbar .outline{color:#fff}.viewer-controls{margin-top:12px}#upload-errors{padding-left:20px}#upload-errors:empty{display:none}#upload-status:empty{display:none}


.legal-consent{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;line-height:1.5}
.legal-consent input{width:auto;margin-top:4px}
.legal-page{max-width:900px;margin:40px auto}
.legal-page h2{margin-top:28px}
.optional-details-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 0;padding:24px 0;border-top:1px solid var(--line)}.optional-details-intro h3,.optional-details-intro p{margin-bottom:4px}.optional-module{padding:24px;margin-top:14px;border:1px solid var(--line);border-radius:16px;background:var(--canvas)}.optional-module h3{margin-bottom:18px}.advisor-fields{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.quantity-control{display:grid;grid-template-columns:44px minmax(70px,1fr) 44px;gap:8px;align-items:center;margin-top:6px}.quantity-control input{margin:0;text-align:center}.quantity-control button{width:44px;height:44px;padding:0;font-size:22px}.unknown-value{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:12px;font-weight:500;color:var(--muted)}.unknown-value input{margin:0}.fact-checkbox{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.fact-checkbox input{margin-top:0}.fact-field[hidden],[data-dependent-field][hidden]{display:none}.optional-module textarea{min-height:90px}@media(max-width:600px){.optional-details-intro{align-items:stretch;flex-direction:column}.optional-details-intro button{width:100%}.optional-module{padding:18px 14px}.quantity-control{grid-template-columns:46px minmax(60px,1fr) 46px}.quantity-control button{width:46px;height:46px}}

.owner-admin-top{background:#202a27;color:#fff;border-radius:24px;padding:28px 30px}.owner-admin-top p,.owner-admin-top .eyebrow{color:#cbd5ce}.owner-admin-top .outline{color:#fff;border-color:#607069}.owner-audit-entry{background:#202a27;color:#fff}.owner-audit-page main{max-width:1500px}.owner-audit-shell{display:grid;gap:22px}.owner-audit-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;background:#202a27;color:white;padding:34px;border-radius:26px}.owner-audit-header h1{font-size:46px;margin:6px 0 8px}.owner-audit-header p,.owner-audit-header .eyebrow{color:#cbd5ce}.owner-audit-header .outline{color:white;border-color:#607069}.audit-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.audit-summary article{display:grid;gap:4px;background:white;border:1px solid var(--line);border-radius:18px;padding:20px}.audit-summary strong{font-size:30px}.audit-summary span{font-size:13px;color:var(--muted)}.audit-summary .success{border-top:4px solid #648c46}.audit-summary .warning{border-top:4px solid #c8922c}.audit-summary .failure{border-top:4px solid #a84b42}.audit-filters{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:14px;padding:20px;align-items:end}.audit-filters .audit-search{grid-column:span 3}.audit-list{overflow:hidden}.audit-event{display:grid;grid-template-columns:190px minmax(0,1fr) 190px;gap:22px;align-items:center;padding:20px 22px;border-left:5px solid #9aa69e;border-bottom:1px solid var(--line)}.audit-event:last-child{border-bottom:0}.audit-event.outcome-success{border-left-color:#648c46}.audit-event.outcome-denied{border-left-color:#c8922c}.audit-event.outcome-error{border-left-color:#a84b42}.audit-event-time{display:grid;gap:3px}.audit-event-time span,.audit-event-actions small{color:var(--muted);font-size:12px}.audit-event-main h3{font-size:18px;margin:5px 0}.audit-event-main p{margin:0;font-size:13px}.audit-status{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.audit-event-actions{display:grid;justify-items:end;gap:8px;text-align:right}.audit-pagination{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.audit-pagination .toolbar{margin:0}.audit-pagination small{width:100%;color:var(--muted)}.audit-conversation{width:min(760px,94vw);max-height:88dvh;border:0;border-radius:24px;padding:0;box-shadow:0 24px 80px #0e171255}.audit-conversation::backdrop{background:#18231ab8;backdrop-filter:blur(4px)}.audit-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.audit-dialog-head h2{margin:4px 0}.audit-transcript{padding:22px;display:grid;gap:12px}.audit-message{max-width:88%;padding:14px 17px;background:#edf1eb;border-radius:16px}.audit-message.mia{justify-self:end;background:#202a27;color:#fff}.audit-message p{margin:5px 0 0;color:inherit}.audit-message strong{font-size:12px}@media(max-width:900px){.audit-summary{grid-template-columns:repeat(2,1fr)}.audit-filters{grid-template-columns:repeat(2,1fr)}.audit-filters .audit-search{grid-column:span 2}.audit-event{grid-template-columns:1fr}.audit-event-actions{justify-items:start;text-align:left}.owner-audit-header{flex-direction:column}}@media(max-width:540px){.audit-summary,.audit-filters{grid-template-columns:1fr}.audit-filters .audit-search{grid-column:auto}.owner-audit-header{padding:24px}.owner-audit-header h1{font-size:36px}}

/* owner audit compact rows v2 */
.audit-summary button{display:grid;gap:4px;text-align:left;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:none}.audit-summary button:hover,.audit-summary button:focus-visible{transform:none;background:#faf7f2;border-color:#9aa69e}.audit-summary button strong{font-size:30px}.audit-summary button span{font-size:13px;color:var(--muted)}.audit-summary button.success{border-top:4px solid #648c46}.audit-summary button.warning{border-top:4px solid #c8922c}.audit-summary button.failure{border-top:4px solid #a84b42}.audit-list-head,.audit-event summary{display:grid;grid-template-columns:180px 105px minmax(220px,1.1fr) minmax(220px,1fr) 105px;gap:14px;align-items:center}.audit-list-head{padding:11px 18px;background:#f0ebe4;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.audit-event{display:block;padding:0;border-left:4px solid #9aa69e}.audit-event summary{min-height:48px;padding:8px 18px 8px 14px;cursor:pointer;list-style:none}.audit-event summary::-webkit-details-marker{display:none}.audit-event summary:hover{background:#faf7f2}.audit-event summary:focus-visible{outline:2px solid #526f5a;outline-offset:-3px}.audit-event time,.audit-event-actor,.audit-event summary strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audit-event time{font-variant-numeric:tabular-nums;font-size:12px}.audit-event summary strong{font-size:13px;margin:0}.audit-event-actor{color:var(--muted);font-size:12px}.audit-expand-label{justify-self:end;color:#526f5a;font-size:11px;font-weight:700}.audit-expand-close,.audit-event[open] .audit-expand-open{display:none}.audit-event[open] .audit-expand-close{display:inline}.audit-event-detail{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:14px 18px 18px;background:#faf7f2;border-top:1px solid var(--line)}.audit-event-detail dl{display:flex;flex-wrap:wrap;gap:12px 28px;margin:0;min-width:0}.audit-event-detail dl div{display:grid;gap:3px}.audit-event-detail dt{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.audit-event-detail dd{margin:0;font-size:12px;overflow-wrap:anywhere}@media(max-width:900px){.audit-list{overflow-x:auto}.audit-list-head,.audit-event summary{grid-template-columns:155px 90px minmax(190px,1fr) minmax(190px,1fr) 95px;min-width:820px}.audit-event-detail{min-width:780px}}

/* Paneles privados MVP */
body.private-panel-page{background:#f4f1eb}
body.private-panel-page>main{max-width:none;margin:0;padding:0}
.private-panel-shell{min-height:calc(100dvh - 96px);display:grid;grid-template-columns:260px minmax(0,1fr)}
.private-panel-sidebar{position:sticky;top:54px;height:calc(100dvh - 96px);display:flex;flex-direction:column;background:#202a27;color:#fff;padding:20px 18px;z-index:25}
.private-panel-brand{display:grid;gap:1px;padding:0 12px 24px;border-bottom:1px solid #ffffff20}
.private-panel-brand a{color:#fff;text-decoration:none;font-size:29px;font-weight:800;letter-spacing:-1.7px}
.private-panel-brand a span{font-weight:800}.private-panel-brand a i{font-style:normal;color:#f06449;margin-left:2px;font-size:.55em;vertical-align:top}
.private-panel-brand small,.private-panel-profile small{color:#b9c3bc}
.private-panel-sidebar nav{display:grid;gap:4px;margin:22px 0;overflow:auto}
.private-panel-sidebar nav button{width:100%;justify-content:flex-start;border-radius:11px;padding:11px 13px;background:transparent;color:#dce4df;font-weight:500}
.private-panel-sidebar nav button>span{width:20px;text-align:center;color:#b9c3bc}
.private-panel-sidebar nav button b{font:inherit;flex:1;text-align:left}
.private-panel-sidebar nav button em{min-width:22px;padding:2px 7px;border-radius:999px;background:#d6f29b;color:#18231a;font-size:11px;font-style:normal;text-align:center}
.private-panel-sidebar nav button:hover,.private-panel-sidebar nav button.active{background:#ffffff13;color:#fff}
.private-panel-sidebar nav button.active{box-shadow:inset 3px 0 #d6f29b}
.private-panel-profile{margin-top:auto;padding:18px 12px 0;border-top:1px solid #ffffff20;display:grid;gap:2px}
.private-panel-profile strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.private-panel-profile button{justify-self:start;margin-top:10px;padding:5px 0;background:none;color:#d6f29b;font-size:13px}
.private-panel-main{min-width:0}.private-panel-content{max-width:1500px;margin:0 auto;padding:40px}
.private-panel-mobile-bar,.private-panel-mobile-close,.private-panel-scrim{display:none}
.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}
.panel-heading h1{font-size:clamp(34px,4vw,50px);margin:5px 0 7px}.panel-heading p{margin:0}
.panel-state,.panel-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 11px;background:#e9eee5;color:#405347;font-size:12px;font-weight:700}
.panel-badge.good{background:#e7f2de;color:#385a2b}.panel-badge.warn{background:#fff0ca;color:#765312}.panel-badge.bad{background:#fde1dc;color:#7b2922}
.panel-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.panel-stat{display:grid;gap:3px;background:#fff;border:1px solid #ded8ce;border-radius:18px;padding:20px}
.panel-stat>span,.panel-stat small{color:var(--muted);font-size:12px}.panel-stat strong{font-size:30px;line-height:1.2}
.panel-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:20px}
.panel-section{background:#fff;border:1px solid #ded8ce;border-radius:18px;padding:22px;overflow:hidden}
.panel-section h2{font-size:22px;margin-bottom:18px}
.panel-list{display:grid}.panel-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #ece7df}
.panel-row:last-child{border-bottom:0}.panel-row h3{font-size:15px;margin:0 0 3px}.panel-row p{font-size:13px;margin:0}
.panel-actions{display:flex;gap:8px;flex-wrap:wrap}.panel-actions button,.panel-actions .pill{padding:8px 13px;font-size:12px}
.panel-table-wrap{overflow:auto}.panel-table{width:100%;border-collapse:collapse;min-width:760px}
.panel-table th,.panel-table td{text-align:left;padding:13px 12px;border-bottom:1px solid #ece7df;font-size:13px;vertical-align:middle}
.panel-table th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.panel-table td strong{display:block}.panel-table td small{color:var(--muted)}
.property-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}.property-row-action{position:relative;display:inline-grid;place-items:center;width:38px;height:38px;min-width:38px;padding:0;border:1px solid #d9d0c5;border-radius:10px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:none}.property-row-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.property-row-action:hover{background:#f1ece5;border-color:#9e8e80}.property-row-action:after{content:attr(data-tooltip);position:absolute;right:0;bottom:calc(100% + 9px);z-index:30;width:max-content;max-width:180px;padding:6px 9px;border-radius:7px;background:#202a27;color:#fff;font-size:11px;font-weight:600;line-height:1.25;pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease}.property-row-action:hover:after,.property-row-action:focus-visible:after{opacity:1;transform:translateY(0)}
.property-status-light{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;vertical-align:middle;cursor:help}.property-status-light i{display:block;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:#89918c;box-shadow:0 0 0 2px #d9ddda}.property-status-light.online i{background:#55a83d;box-shadow:0 0 0 2px #cfe6c7}.property-status-light.draft i{background:#d69b2d;box-shadow:0 0 0 2px #f0ddb5}.property-status-light.offline i{background:#c75a4f;box-shadow:0 0 0 2px #edcbc7}.property-status-light.archived i{background:#7d8580;box-shadow:0 0 0 2px #d6d9d7}.property-status-light:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 7px);z-index:30;width:max-content;padding:6px 9px;border-radius:6px;background:#202a27;color:#fff;font-size:11px;font-weight:600;line-height:1.2;pointer-events:none;opacity:0;transform:translate(-50%,4px);transition:opacity .15s ease,transform .15s ease}.property-status-light:hover:after,.property-status-light:focus-visible:after{opacity:1;transform:translate(-50%,0)}
.panel-empty{padding:50px 24px;text-align:center;background:#fff;border:1px dashed #cfc8bd;border-radius:18px}
.panel-empty h2{font-size:24px}.panel-empty p{max-width:600px;margin:0 auto}
.agenda-preview{min-height:360px;display:grid;grid-template-columns:minmax(180px,320px) minmax(0,560px);align-items:center;justify-content:center;gap:clamp(32px,7vw,90px);overflow:hidden;background:linear-gradient(135deg,var(--surface),#eef2ea)}
.agenda-preview-mark{width:min(100%,270px);aspect-ratio:1;border-radius:34px;background:#fff;box-shadow:0 24px 70px #21352b18;display:grid;grid-template-rows:64px 1fr;overflow:hidden;justify-self:center;border:1px solid var(--line)}.agenda-preview-mark span{background:#d6f29b;position:relative}.agenda-preview-mark span:before,.agenda-preview-mark span:after{content:'';position:absolute;top:20px;width:17px;height:28px;border-radius:9px;background:#202a27}.agenda-preview-mark span:before{left:58px}.agenda-preview-mark span:after{right:58px}.agenda-preview-mark b{place-self:center;font:500 clamp(72px,10vw,116px)/1 var(--heading);color:#202a27}.agenda-preview h2{font-size:clamp(30px,4vw,48px);line-height:1.12;margin:15px 0}.agenda-preview p{font-size:14px;line-height:1.85;margin:0 0 22px;max-width:540px}.preference-contact-note{padding:13px 15px;border-radius:12px;background:var(--canvas);border-left:3px solid #6d8a72;font-size:12px;line-height:1.65}
.panel-form{display:grid;gap:16px}.panel-form-actions{display:flex;gap:10px;flex-wrap:wrap}
.panel-notification{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:14px;align-items:start;padding:16px 0;border-bottom:1px solid #ece7df}
.panel-notification:last-child{border-bottom:0}.panel-notification>i{width:8px;height:8px;border-radius:50%;background:#6d8d56;margin-top:8px}
.panel-notification.read>i{background:#c9c6be}.panel-notification h3{font-size:15px;margin:0 0 4px}.panel-notification p{font-size:13px;margin:0}
.panel-health{display:grid;gap:10px}.panel-health .panel-row{border:1px solid #ece7df;border-radius:14px;padding:15px}
.panel-support-dialog{width:min(620px,94vw);border:0;border-radius:20px;padding:0;box-shadow:0 24px 80px #1b241d55}
.panel-support-dialog::backdrop{background:#162019aa}.panel-support-dialog form{padding:24px}
.panel-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.panel-dialog-head h2{margin:0}
.panel-dialog-head button{padding:7px 12px}
@media(max-width:1050px){.panel-stats{grid-template-columns:repeat(2,1fr)}.panel-grid{grid-template-columns:1fr}}
@media(max-width:760px){
 .private-panel-shell{display:block}.private-panel-sidebar{position:fixed;left:0;top:0;width:min(300px,88vw);transform:translateX(-105%);transition:transform .2s ease;box-shadow:16px 0 50px #10201644}
 .private-panel-sidebar.open{transform:translateX(0)}.private-panel-sidebar.open~.private-panel-scrim{display:block;position:fixed;inset:0;background:#16201988;border-radius:0;z-index:20}
 .private-panel-mobile-close{display:block;position:absolute;right:12px;top:12px;padding:7px 11px;background:#ffffff10;color:#fff}
 .private-panel-mobile-bar{position:sticky;top:0;z-index:15;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;background:#fff;border-bottom:1px solid #ded8ce;padding:11px 14px}
 .private-panel-mobile-bar button{padding:8px 12px}.private-panel-content{padding:24px 16px 40px}
 .panel-heading{display:block}.panel-heading .panel-state{margin-top:12px}.panel-stats{grid-template-columns:1fr 1fr}.panel-row{align-items:flex-start}.panel-table{min-width:700px}
}
@media(max-width:470px){.panel-stats{grid-template-columns:1fr}.panel-stat{padding:17px}.panel-row{display:grid}.panel-actions{width:100%}.panel-actions button{flex:1}.panel-notification{grid-template-columns:8px minmax(0,1fr)}}

:root[data-private-theme='dark'] body.private-panel-page{--ink:#edf2ee;--muted:#aeb9b1;--canvas:#171d1a;--surface:#222a26;--line:#3a463f;background:#171d1a;color:#edf2ee}
:root[data-private-theme='dark'] .private-panel-content,:root[data-private-theme='dark'] .private-panel-main{background:#171d1a}
:root[data-private-theme='dark'] .panel-section,:root[data-private-theme='dark'] .panel-stat,:root[data-private-theme='dark'] .panel-empty,:root[data-private-theme='dark'] .private-panel-mobile-bar{background:#222a26;border-color:#3a463f}
:root[data-private-theme='dark'] .panel-row,:root[data-private-theme='dark'] .panel-table th,:root[data-private-theme='dark'] .panel-table td,:root[data-private-theme='dark'] .panel-notification{border-color:#3a463f}
:root[data-private-theme='dark'] input,:root[data-private-theme='dark'] select,:root[data-private-theme='dark'] textarea{background:#18201c;color:#edf2ee;border-color:#48554e}
@media(prefers-color-scheme:dark){:root[data-private-theme='system'] body.private-panel-page{--ink:#edf2ee;--muted:#aeb9b1;--canvas:#171d1a;--surface:#222a26;--line:#3a463f;background:#171d1a;color:#edf2ee}:root[data-private-theme='system'] .private-panel-content,:root[data-private-theme='system'] .private-panel-main{background:#171d1a}:root[data-private-theme='system'] .panel-section,:root[data-private-theme='system'] .panel-stat,:root[data-private-theme='system'] .panel-empty,:root[data-private-theme='system'] .private-panel-mobile-bar{background:#222a26;border-color:#3a463f}:root[data-private-theme='system'] .panel-row,:root[data-private-theme='system'] .panel-table th,:root[data-private-theme='system'] .panel-table td,:root[data-private-theme='system'] .panel-notification{border-color:#3a463f}:root[data-private-theme='system'] input,:root[data-private-theme='system'] select,:root[data-private-theme='system'] textarea{background:#18201c;color:#edf2ee;border-color:#48554e}}

/* Wizard estructurado 2026-09-28 */
.steps{overflow-x:auto;flex-wrap:nowrap;padding-bottom:7px;scrollbar-width:thin}
.steps button{white-space:nowrap;flex:0 0 auto}
.optional-stage-note{padding:11px 14px;border-left:3px solid #d7ae32;background:#fff9e7;border-radius:0 10px 10px 0;font-size:13px}
.optional-module{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.optional-module:first-of-type{margin-top:10px}
.optional-module h3{margin-bottom:16px}
.fact-options{margin:0;padding:0;border:0;min-width:0}
.fact-options legend{font-size:14px;font-weight:600;margin-bottom:8px}
.fact-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.fact-option-grid label{font-weight:450;font-size:13px;display:flex;align-items:flex-start;gap:6px}
.fact-option-grid input{margin:3px 0 0;flex:0 0 auto}
.field-help{display:inline-grid;place-items:center;width:19px;height:19px;min-width:19px;padding:0;margin-left:6px;border-radius:50%;background:#f5d66f;color:#56440d;font-size:11px;line-height:1;vertical-align:middle}
input::placeholder,textarea::placeholder{color:#a9ada9;opacity:.72;font-weight:400}
.review-warning,.review-ready{padding:18px 20px;margin:18px 0;border-radius:14px;border:1px solid #dfc67e;background:#fff9e8}
.review-warning.blocking{border-color:#e1a99f;background:#fff2ef}
.review-warning ul{margin:10px 0 0;padding-left:21px}
.review-ready{border-color:#b8d0b5;background:#f1f8ef}
@media(max-width:600px){.fact-option-grid{grid-template-columns:1fr}.steps{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}.steps button{font-size:12px}}

/* Descripción asistida de la zona */
.zone-editor{display:grid;gap:14px;margin:8px 0 20px}
.zone-editor>label{display:grid;gap:8px}
.zone-research{border:1px solid color-mix(in srgb,var(--accent,#bd5d43) 24%,#ddd);border-radius:18px;padding:18px;background:color-mix(in srgb,var(--paper,#fff) 94%,var(--accent,#bd5d43));display:grid;gap:12px}
.zone-research h3,.zone-research p{margin:0}
.zone-research .toolbar{justify-content:flex-start;gap:10px;flex-wrap:wrap}
.zone-disclaimer{display:block;color:color-mix(in srgb,currentColor 48%,transparent);font-size:11px;line-height:1.45}
.zone-sources{font-size:13px}
.zone-sources summary{cursor:pointer;font-weight:700}
.zone-sources ul{margin:8px 0 0;padding-left:20px}
.zone-sources a{overflow-wrap:anywhere}
@media(max-width:640px){.zone-research{padding:15px}.zone-research .toolbar button{width:100%}}

/* Revisión de acceso y pie legal */
.legal-consent span{min-width:0;font-weight:400}
.publication-consents{display:grid;gap:0;margin:24px 0 26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.publication-consent{grid-template-columns:20px minmax(0,1fr);gap:13px;align-items:start;padding:16px 2px;font-size:13px;line-height:1.55;font-weight:400}
.publication-consent+.publication-consent{border-top:1px solid var(--line)}
.publication-consent input{width:16px;height:16px;margin:2px 0 0;accent-color:#8f4051}
.publication-consent a{font-weight:650;text-underline-offset:3px;white-space:nowrap}
.publication-actions{margin:0;align-items:center}
@media(max-width:600px){.publication-consent{padding:14px 0;font-size:12px}.publication-consent a{white-space:normal}.publication-actions{display:grid;grid-template-columns:1fr 1fr}.publication-actions button{width:100%}.publication-actions #return-to-recommendation{grid-column:1/-1}}
.login .auth-text-link:hover{background:transparent;color:#8f4051;box-shadow:none;transform:none;text-decoration-thickness:2px;text-underline-offset:5px}.auth-registration-message{padding:11px 13px;border-left:3px solid var(--coral,coral);border-radius:7px;background:color-mix(in srgb,var(--coral,coral) 9%,var(--surface));color:var(--ink);font-size:12px;line-height:1.6;font-weight:500}
.auth-password-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin-top:6px;border:1px solid var(--line);border-radius:9px;background:var(--surface);overflow:hidden}
.auth-password-control input{margin:0;border:0;border-radius:0;box-shadow:none;min-width:0}
.login .auth-password-toggle{width:auto;min-height:38px;margin:0 6px;padding:7px 10px;background:transparent;color:var(--muted);border-radius:8px;font-size:12px;box-shadow:none}
.login .auth-password-toggle:hover{background:#f3ece8;color:var(--ink);transform:none;box-shadow:none}
.password-requirements{list-style:none;margin:12px 0 20px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#faf7f2;display:grid;gap:5px}
.password-requirements li{position:relative;padding-left:22px;color:var(--muted);font-size:12px;line-height:1.45}
.password-requirements li:before{content:'○';position:absolute;left:0;color:#a4939c}
.password-requirements li.valid{color:#416336}
.password-requirements li.valid:before{content:'✓';font-weight:800;color:#527a3e}
.footer-legal{max-width:420px;display:grid;gap:10px;justify-items:end;text-align:right}
.footer-legal nav{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.footer-legal a{font-size:11px;color:var(--muted);text-underline-offset:3px}
.footer-legal a:hover{color:var(--ink)}
@media(max-width:600px){.login{padding:26px 20px}.legal-consent{grid-template-columns:20px minmax(0,1fr)}.footer-legal{justify-items:start;text-align:left}.footer-legal nav{justify-content:flex-start}}


/* Captura conversacional de propiedades */
.capture-mode-switch{display:inline-flex;gap:4px;padding:4px;margin:0 0 18px;background:#eee9e2;border:1px solid var(--line);border-radius:999px}
.capture-mode-switch button{border-radius:999px;padding:10px 17px;background:transparent;color:var(--ink);box-shadow:none}
.capture-mode-switch button.active{background:#202a27;color:#fff}
.capture-shell{display:grid;gap:18px;max-width:980px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px}
.capture-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.capture-head h2,.capture-head p{margin:5px 0}.capture-head p{color:var(--muted)}
.capture-log{display:grid;gap:12px;max-height:420px;overflow-y:auto;overscroll-behavior:contain;padding:4px}
.capture-bubble{max-width:min(82%,700px);padding:14px 17px;border-radius:18px;background:#edf1eb}
.capture-bubble.user{justify-self:end;background:#202a27;color:#fff}.capture-bubble p{margin:5px 0;white-space:pre-wrap}.capture-bubble small{opacity:.65;font-size:11px}
.capture-review{display:grid;gap:12px;padding:18px;border:1px solid #d8c978;border-radius:16px;background:#fff9e8}
.capture-review h3{margin:4px 0}.capture-proposal{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;padding:11px;background:#fff;border:1px solid var(--line);border-radius:12px}
.capture-proposal>input{margin-top:11px}.capture-proposal span{display:grid;gap:5px}.capture-proposal span>input{margin:0}.capture-proposal small{color:var(--muted)}
.capture-composer{display:grid;gap:10px;padding-top:17px;border-top:1px solid var(--line)}.capture-composer textarea{resize:vertical}
.capture-composer-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.capture-composer-actions button:last-child{margin-left:auto}
.capture-file{cursor:pointer;font-size:13px}.capture-transcript{display:grid;gap:10px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#faf7f2}
.capture-transcript h3,.capture-transcript p{margin:0}.capture-transcript audio{width:100%}
@media(max-width:680px){.capture-mode-switch{display:grid;grid-template-columns:1fr 1fr;width:100%}.capture-mode-switch button{padding:9px 7px}.capture-shell{padding:17px}.capture-head{display:grid}.capture-head button{width:100%}.capture-bubble{max-width:94%}.capture-composer-actions{display:grid;grid-template-columns:1fr 1fr}.capture-composer-actions button:last-child{grid-column:1/-1;margin:0}.capture-file{text-align:center}.capture-review .toolbar button{width:100%}}

[hidden]{display:none!important}


/* Experiencia privada de captura guiada */
.capture-workspace{max-width:1180px;margin:0 auto;padding-bottom:110px}
.capture-workspace>.back,.capture-back{display:inline-flex;align-items:center;width:auto;margin:0 0 26px;padding:0;border:0;background:transparent;color:#6f5a66;font-size:13px;font-weight:650;text-decoration:none}
.capture-workspace>.back:hover,.capture-back:hover{color:#35152e;transform:translateX(-2px)}
.capture-page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:30px;margin-bottom:34px;padding-bottom:30px;border-bottom:1px solid #ded3cb}
.capture-page-head h1{max-width:820px;margin:8px 0 12px;font-family:var(--heading);font-size:clamp(40px,5vw,64px);line-height:1;letter-spacing:-.055em;color:#35152e}
.capture-page-head p{max-width:690px;margin:0;font-size:16px;line-height:1.75}
.capture-step-mark{display:grid;place-items:center;width:82px;height:82px;border-radius:50%;background:#202a27;color:#fff;font:500 31px/1 var(--heading);box-shadow:0 14px 35px #17231d22}
.capture-step-mark small{font:700 8px/1.2 system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#d6f29b}
.capture-start-card{overflow:hidden;border:1px solid #ded3cb;border-radius:24px;background:#fff;box-shadow:0 22px 65px #49293b0c}
.capture-start-intro{display:grid;gap:3px;padding:25px 30px;border-bottom:1px solid #eee5df;background:linear-gradient(115deg,#fff 50%,#f7eee7)}
.capture-start-intro span{font-size:10px;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:#94707f}
.capture-start-intro strong{font:500 24px/1.25 var(--heading);color:#35152e}
.capture-start-card>.form-grid{gap:28px;padding:32px 30px 34px}
.capture-start-card label{font-size:12px;letter-spacing:.015em;color:#35152e}
.capture-start-card select{min-height:52px;margin-top:10px;border-color:#d9cbc4;background:#fdfbf9}
.capture-start-card .muted{margin-top:9px;line-height:1.55}
.capture-start-card footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:20px 30px;border-top:1px solid #eee5df;background:#faf7f3}
.capture-start-card footer button{min-width:150px}.capture-start-card footer button[type="submit"]{background:#ef6c52;color:#fff;box-shadow:0 10px 25px #d85f4830}
.capture-guided-label{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:14px 18px;border:1px solid #ded3cb;border-radius:16px;background:linear-gradient(110deg,#fff,#f7f1eb);box-shadow:0 10px 32px #49293b08}
.capture-guided-label span{display:grid}.capture-guided-label small{font-size:8px;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:var(--muted)}.capture-guided-label strong{font:500 20px/1.3 var(--heading);color:var(--ink)}
.capture-guided-label button{padding:9px 15px;background:#fff;border-color:#d8c8c0}

/* MIA acompaña sin sustituir el formulario */
.private-mia-companion{position:fixed;right:28px;bottom:24px;z-index:45;display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}
.private-mia-companion>*{pointer-events:auto}
.private-mia-reminder{position:relative;max-width:285px;padding:13px 17px;border:1px solid #ddcec6;border-radius:16px 16px 4px 16px;background:#fff;color:#45263c;font-size:12px;font-weight:650;line-height:1.45;text-align:left;box-shadow:0 15px 40px #2f172a24;animation:mia-private-arrive .38s ease both}
.private-mia-reminder:after{content:'';position:absolute;right:14px;bottom:-7px;width:13px;height:13px;transform:rotate(45deg);background:#fff;border-right:1px solid #ddcec6;border-bottom:1px solid #ddcec6}.private-mia-reminder.is-fading{opacity:0;transform:translateY(5px);transition:.35s ease}.private-mia-reminder.is-fading{opacity:0;transform:translateY(5px);transition:.35s ease}
.private-mia-launcher{min-width:224px;justify-content:flex-start;padding:8px 12px 8px 9px;border:1px solid #ffffff1c;border-radius:18px;background:#202a27;color:#fff;box-shadow:0 18px 45px #17231d35}
.private-mia-launcher:hover{transform:translateY(-2px);box-shadow:0 22px 50px #17231d42}
.private-mia-launcher img{width:48px;height:50px;object-fit:contain;border-radius:13px;background:#f2e4da}
.private-mia-launcher span{display:grid;text-align:left;line-height:1.25}.private-mia-launcher strong{font-size:13px;letter-spacing:.05em}.private-mia-launcher small{margin-top:3px;color:#bac6bf;font-size:9px;font-weight:500}.private-mia-launcher b{margin-left:auto;color:#d6f29b;font-size:18px}
.private-mia-drawer{position:fixed;right:28px;bottom:92px;width:min(560px,calc(100vw - 310px));height:min(760px,calc(100dvh - 125px));display:none;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #d7cbc3;border-radius:24px;background:#fff;box-shadow:0 30px 90px #23121f35}
.private-mia-companion.open .private-mia-drawer{display:grid;animation:mia-private-open .22s ease both}
.private-mia-drawer>header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e7ddd6;background:#202a27;color:#fff}
.private-mia-drawer>header>div{display:grid}.private-mia-drawer>header .eyebrow{font-size:8px;color:#b9c8bf}.private-mia-drawer>header strong{font:500 24px/1.2 var(--heading)}
.private-mia-close{width:38px;height:38px;padding:0;border-color:#ffffff33;color:#fff;font-size:20px}
.private-mia-body{min-height:0;overflow:auto;background:#faf8f5}
.private-mia-body>.capture-shell{min-height:100%;max-width:none;border:0;border-radius:0;background:#faf8f5;padding:20px}
.private-mia-body .capture-head{padding-bottom:14px}.private-mia-body .capture-head h2{font-size:25px}.private-mia-body .capture-head p{font-size:12px}.private-mia-body .capture-head button{font-size:11px;padding:8px 12px}
.private-mia-body .capture-log{max-height:230px}.private-mia-body .capture-bubble{font-size:12px}
.private-mia-body .capture-composer label{font-size:11px}.private-mia-body .capture-composer textarea{min-height:90px}
.private-mia-intro{display:grid;justify-items:center;padding:42px 32px;text-align:center}.private-mia-intro img{width:115px;height:130px;object-fit:contain}.private-mia-intro h2{margin:12px 0 8px;font:500 31px/1.1 var(--heading);color:#35152e}.private-mia-intro p{max-width:380px;font-size:13px}.private-mia-intro button{margin-top:12px}
@keyframes mia-private-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes mia-private-open{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:760px){
 .capture-workspace{padding-bottom:100px}.capture-page-head{grid-template-columns:1fr;margin-bottom:24px}.capture-step-mark{display:none}.capture-page-head h1{font-size:40px}
 .capture-start-card>.form-grid{padding:24px 20px}.capture-start-intro{padding:22px 20px}.capture-start-card footer{display:grid;padding:18px 20px}.capture-start-card footer button{width:100%}
 .capture-guided-label{align-items:flex-start}.capture-guided-label button{font-size:11px}
 .private-mia-companion{right:14px;bottom:14px}.private-mia-reminder{max-width:250px}.private-mia-launcher{min-width:0}.private-mia-launcher small{display:none}
 .private-mia-drawer{right:8px;bottom:78px;width:calc(100vw - 16px);height:calc(100dvh - 94px);border-radius:20px}
}
@media(prefers-reduced-motion:reduce){.private-mia-reminder,.private-mia-companion.open .private-mia-drawer{animation:none}}
@media(max-width:600px){.capture-workspace .steps{max-width:100%;margin-left:0;margin-right:0;padding-left:0;padding-right:0}}


/* Preferencias de cuenta y soporte */
.preferences-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:20px;align-items:start}
.preference-profile header{display:flex;align-items:center;justify-content:space-between;gap:18px}.preference-profile h2,.preference-appearance h2,.preference-password h2{margin:5px 0 8px}
.preference-profile-mark{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:#202a27;color:#d6f29b;font:500 27px var(--heading)}
.preference-identity{display:grid;gap:0;margin:20px 0}.preference-identity>div{padding:15px 0;border-bottom:1px solid #ece4de}.preference-identity dt{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.preference-identity dd{margin:3px 0 1px;font-size:15px;font-weight:700;overflow-wrap:anywhere}.preference-identity small{font-size:10px;color:var(--muted)}
.preference-phone{padding-top:4px}.preference-phone button{justify-self:start}
.preference-appearance{min-height:320px;background:linear-gradient(145deg,#fff,#f7eee7)}
.theme-switch{display:grid;grid-template-columns:auto 62px auto;align-items:center;justify-content:start;gap:12px;margin:25px 0 22px;font-size:12px}
.theme-switch>span{display:flex;align-items:center;gap:6px}.theme-switch input{position:absolute;opacity:0;pointer-events:none}.theme-switch i{position:relative;width:62px;height:32px;border-radius:999px;background:#ded8d0;box-shadow:inset 0 0 0 1px #c9c0b8;cursor:pointer;transition:.2s}
.theme-switch i:after{content:'';position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 3px 9px #2b1b2730;transition:.2s}.theme-switch input:checked+i{background:#31263a}.theme-switch input:checked+i:after{transform:translateX(30px);background:#d6f29b}.theme-switch input:focus-visible+i{outline:3px solid #206657;outline-offset:4px}
.weekly-report{padding-top:18px;border-top:1px solid #e8ddd6;font-size:12px}
.preference-password{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:30px}.preference-password>div{max-width:650px}.preference-password>button{flex:0 0 auto}
.preference-password-dialog form{display:grid;gap:15px}.preference-password-dialog form footer{display:flex;justify-content:flex-end;gap:10px;padding-top:6px}
.preference-password-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin-top:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}.preference-password-control input{margin:0;border:0;border-radius:0}.preference-password-control button{margin:0 6px;padding:6px 9px;border:0;font-size:11px}
.preference-password-rules{display:flex;gap:8px;flex-wrap:wrap;list-style:none;margin:0;padding:0}.preference-password-rules li{padding:6px 10px;border-radius:999px;background:#f3eee9;color:var(--muted);font-size:10px}
.support-invitation{position:relative;display:grid;align-content:start;gap:18px;min-height:100%;background:linear-gradient(145deg,#202a27,#2c3933);color:#fff}.support-invitation p{color:#c2ccc6}.support-invitation .eyebrow{color:#d6f29b}.support-invitation button{justify-self:start}.support-mark{position:absolute;right:20px;top:17px;font:500 58px/1 var(--heading);color:#ffffff12}
.panel-support-dialog{width:min(680px,calc(100vw - 32px));padding:0;border:1px solid #e1d4cc;border-radius:26px;background:#fff;box-shadow:0 35px 110px #1b0d183f;overflow:hidden}.panel-support-dialog::backdrop{background:#17201caa;backdrop-filter:blur(4px)}
.support-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding:28px 30px 24px;background:linear-gradient(125deg,#f8eee7,#fff)}.support-dialog-head h2{margin:5px 0 7px;font:500 34px/1.1 var(--heading);color:#35152e}.support-dialog-head p{max-width:500px;margin:0;font-size:12px;line-height:1.7}.support-dialog-close{flex:0 0 auto;width:34px;height:34px;padding:0;border:1px solid #d7c7bf;border-radius:50%;background:#fff;color:#563548;font:400 19px/1 system-ui;box-shadow:none}
.panel-support-dialog form{padding:26px 30px 28px}.panel-support-dialog textarea{min-height:150px}.panel-support-dialog form footer{display:flex;justify-content:flex-end;gap:10px;padding-top:6px}.support-result{color:#416336;font-weight:700}
:root[data-private-theme='dark'] .preference-appearance{background:linear-gradient(145deg,#222a26,#1b211e)}:root[data-private-theme='dark'] .preference-password-rules li{background:#303934}:root[data-private-theme='dark'] .panel-support-dialog{background:#222a26}:root[data-private-theme='dark'] .support-dialog-head{background:#29332e}:root[data-private-theme='dark'] .support-dialog-head h2{color:#fff}
@media(max-width:980px){.preferences-layout{grid-template-columns:1fr}.preference-password{grid-column:auto}}
@media(max-width:600px){.preferences-layout{gap:14px}.preference-password{align-items:flex-start;flex-direction:column}.theme-switch{grid-template-columns:auto 56px auto;gap:8px}.theme-switch i{width:56px}.theme-switch input:checked+i:after{transform:translateX(24px)}.support-dialog-head{padding:22px 20px}.support-dialog-head h2{font-size:29px}.panel-support-dialog form{padding:22px 20px}.panel-support-dialog form footer{display:grid}.panel-support-dialog form footer button{width:100%}}
@media(max-width:700px){.agenda-preview{grid-template-columns:1fr;min-height:0;padding:30px 20px;text-align:center}.agenda-preview-mark{width:170px;border-radius:24px;grid-template-rows:44px 1fr}.agenda-preview-mark span:before,.agenda-preview-mark span:after{top:13px;width:12px;height:20px}.agenda-preview-mark span:before{left:38px}.agenda-preview-mark span:after{right:38px}.agenda-preview p{font-size:12px}.agenda-preview .panel-badge{margin:auto}}


/* Dimensiones compactas */
.fact-modules{display:grid;gap:16px}
.fact-modules.compact-dimensions{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start}
.fact-modules.compact-dimensions .optional-module{margin:10px 0 0;padding:20px}
.fact-modules.compact-dimensions .optional-module h3{margin-bottom:14px}
.fact-modules.compact-dimensions .form-grid{gap:14px 16px}
.fact-modules.compact-dimensions .quantity-control{grid-template-columns:36px minmax(54px,92px) 36px;width:max-content;max-width:100%}
.fact-modules.compact-dimensions .quantity-control button{width:36px;height:38px;font-size:18px}
.fact-modules.compact-dimensions .quantity-control input{height:38px;padding:7px 9px}
.field-help{width:16px;height:16px;min-width:16px;margin-left:4px;padding:0;border:1px solid color-mix(in srgb,currentColor 35%,transparent);border-radius:50%;background:transparent;color:var(--muted);font-size:9px;font-weight:700;box-shadow:none}
.field-help:hover,.field-help:focus-visible{background:var(--canvas);color:var(--ink);border-color:currentColor}
@media (max-width:900px){.fact-modules.compact-dimensions{grid-template-columns:1fr}}
@media(max-width:600px){.fact-modules.compact-dimensions .optional-module{padding:16px 14px}.fact-modules.compact-dimensions .form-grid{grid-template-columns:1fr 1fr;gap:14px 12px}.fact-modules.compact-dimensions .quantity-control{grid-template-columns:38px minmax(48px,78px) 38px}.fact-modules.compact-dimensions .quantity-control button{width:38px}}
@media (max-width:390px){.fact-modules.compact-dimensions .form-grid{grid-template-columns:1fr}}


/* Densidad editorial del wizard */
.capture-workspace .wizard-section{padding:clamp(22px,3vw,34px)}
.capture-workspace .wizard-section>h2{margin-bottom:20px}
.fact-modules{gap:0}
.fact-modules .optional-module{margin:0;padding:20px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.fact-modules .optional-module:first-child{margin:0;border-top:0;padding-top:6px}
.fact-modules .optional-module h3{margin:0 0 14px;font-size:18px}
.fact-modules .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.fact-modules .fact-checkbox{min-height:44px;display:flex;align-items:center;margin:0;padding:10px 12px;background:var(--surface);border-radius:9px}
.fact-modules .fact-checkbox+label[data-dependent-field]{align-self:end}
.fact-modules .quantity-control{grid-template-columns:36px minmax(56px,92px) 36px;width:max-content;max-width:100%;gap:6px}
.fact-modules .quantity-control button{width:36px;height:38px;padding:0;font-size:18px}
.fact-modules .quantity-control input{height:38px;padding:7px 9px}
.fact-modules input,.fact-modules select{min-height:42px}
.fact-modules .unknown-value{margin-top:5px}
.fact-modules.compact-dimensions{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:26px;border-top:1px solid var(--line);padding-top:18px}
.fact-modules.compact-dimensions .optional-module,.fact-modules.compact-dimensions .optional-module:first-child{margin:0;padding:0;border:0;background:transparent}
@media (max-width:900px){.fact-modules.compact-dimensions{grid-template-columns:1fr;gap:22px}.fact-modules.compact-dimensions .optional-module+ .optional-module{border-top:1px solid var(--line);padding-top:20px}}
@media(max-width:600px){.fact-modules .form-grid,.fact-modules.compact-dimensions .form-grid{grid-template-columns:1fr}.capture-workspace .wizard-section{padding:22px 16px}.fact-modules .quantity-control{grid-template-columns:40px minmax(64px,92px) 40px}.fact-modules .quantity-control button{width:40px;height:42px}}


/* Opciones compactas sin espacio muerto */
.fact-modules .fact-options{grid-column:1/-1}
.fact-modules .fact-option-grid{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:transparent}
.fact-modules .fact-option-grid label{display:inline-flex;align-items:center;flex:0 0 auto;min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:13px;font-weight:500}
.fact-modules .fact-option-grid label:has(input:checked){border-color:#6f8a74;background:#edf3ea}
.fact-modules .fact-option-grid input{margin:0 7px 0 0}
.fact-modules textarea{min-height:72px}
.capture-workspace .fact-modules .fact-field textarea{min-height:70px;font-size:12px;line-height:1.45;overflow-y:hidden}
.fact-modules .fact-field textarea.has-overflow{overflow-y:auto}
.capture-workspace .fact-modules .fact-field textarea::placeholder{font-size:12px;line-height:1.45}
.fact-modules .fact-options+label[data-dependent-field],.fact-modules .fact-field.full{grid-column:1/-1}
@media(max-width:600px){.fact-modules .fact-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fact-modules .fact-option-grid label{min-width:0}}
@media (max-width:390px){.fact-modules .fact-option-grid{grid-template-columns:1fr}}


/* Galería editorial: acciones discretas */
.photo-order-help{display:flex;align-items:flex-start;gap:10px;margin:16px 0 12px;padding:11px 13px;border-left:2px solid #6f8a74;background:#f4f6f1;color:var(--muted);font-size:12px;line-height:1.5}
.photo-order-help>span:first-child{color:#506b56;font-size:17px;line-height:1.2}
.photo-edit{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px 14px;margin-top:0}
.photo-tile{width:auto;min-width:0;position:relative}
.photo-frame{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:12px;background:#ebe8e1}
.photo-frame img{display:block;width:100%;height:100%;object-fit:cover;cursor:grab;touch-action:none}
.photo-frame img:active{cursor:grabbing}
.photo-remove{position:absolute;top:7px;right:7px;width:26px;height:26px;min-width:0;padding:0;border:0;border-radius:4px;background:#1f2422cc;color:white;font:500 19px/1 system-ui;box-shadow:0 2px 8px #0003}
.photo-remove:hover,.photo-remove:focus-visible{background:#7b2922}
.photo-cover,.photo-set-cover{position:absolute;left:7px;bottom:7px;margin:0;padding:5px 8px;border:0;border-radius:5px;background:#1f2422d9;color:white;font-size:11px;font-weight:700;line-height:1.2}
.photo-tile>small{display:block;margin-top:6px;color:var(--muted);font-size:11px}
.photo-dragging{opacity:.72;transform:scale(.98)}
@media(max-width:600px){.photo-edit{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.photo-order-help{margin-top:12px}}

.review-advisor{margin:20px 0 26px;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.review-advisor h3{margin:8px 0 4px}.review-advisor>p{font-size:12px;margin-bottom:18px}


/* Presentación fotográfica */
.gallery{border-radius:16px;gap:10px;background:transparent;height:560px;grid-template-rows:repeat(2,minmax(0,1fr))}
.gallery>a{min-height:0;min-width:0;overflow:hidden;border-radius:12px;background:#e9e6df}
.gallery.single,.theme-elegante .gallery{grid-template-rows:minmax(0,1fr);height:540px}
.gallery.single>a:first-child,.theme-elegante .gallery>a:first-child{grid-row:1;height:100%;max-height:none}
@media(max-width:600px){.gallery,.gallery.single,.theme-elegante .gallery{height:320px;grid-template-rows:minmax(0,1fr)}.gallery>a:first-child{grid-row:1;height:100%;max-height:none}}
.gallery img{border-radius:12px;transition:transform .45s cubic-bezier(.22,.61,.36,1),filter .3s ease}
.gallery>a.adaptive-contain{isolation:isolate;background:#242724}
.gallery>a.adaptive-contain:before{content:"";position:absolute;z-index:0;inset:-24px;background-image:var(--adaptive-cover);background-size:cover;background-position:center;filter:blur(20px) brightness(.62);transform:scale(1.08)}
.gallery>a.adaptive-contain>img{position:relative;z-index:1;object-fit:contain;transform:none}
.gallery>a.adaptive-contain:hover>img{transform:none;filter:none}
.gallery>a.adaptive-contain .gallery-caption{z-index:3}
.gallery a:hover img{transform:scale(1.018);filter:saturate(1.04) contrast(1.015)}
.photo-strip a{overflow:hidden;border-radius:9px;background:#e9e6df}
.photo-strip img{border-radius:9px;transition:transform .25s ease,opacity .25s ease}
.photo-strip a:hover img{transform:scale(1.035);opacity:.94}
.photo-viewer{overflow:hidden}
.photo-viewer img{border-radius:11px;background:#0f0f10;will-change:transform,opacity}
@media (prefers-reduced-motion:reduce){.gallery img,.photo-strip img{transition:none}.gallery a:hover img,.photo-strip a:hover img{transform:none}}


/* Lenguaje de controles del wizard: sobrio, no píldoras */
.capture-workspace button,.capture-workspace .pill{border-radius:8px}
.capture-workspace .steps button{border-radius:8px;padding:9px 14px}
.capture-workspace .quantity-control button{border-radius:7px}
.capture-workspace .field-help{width:auto;height:auto;min-width:0;margin-left:4px;padding:0 2px;border:0;border-radius:2px;background:transparent;color:var(--muted);font-size:10px;text-decoration:underline;text-underline-offset:2px}
.capture-workspace .field-help:hover,.capture-workspace .field-help:focus-visible{background:transparent;color:var(--ink)}
.capture-workspace .optional-module,.capture-workspace .fact-option-grid label,.capture-workspace .fact-checkbox{box-shadow:none}

/* Dimensiones: cada dato usa el control que mejor lo representa */
.wizard-section[data-section="1"]{overflow:hidden}.wizard-section[data-section="1"]>h2{margin-bottom:8px}.mia-dimension-note{align-items:center;border-bottom:1px solid var(--line);border-top:1px solid var(--line);display:flex;gap:14px;margin:12px 0 24px;padding:15px 2px}.mia-dimension-mark{align-items:center;background:var(--ink);border-radius:50%;color:#d3f48f;display:flex;flex:0 0 auto;font-size:15px;height:34px;justify-content:center;width:34px;box-shadow:0 0 0 5px rgba(43,32,49,.055)}.mia-dimension-note p{display:flex;flex-direction:column;margin:0}.mia-dimension-note strong{font-family:Georgia,'Times New Roman',serif;font-size:16px;font-weight:600}.mia-dimension-note p span{color:var(--muted);font-size:12px;margin-top:3px}.module-heading{align-items:center;display:flex;gap:10px;margin-bottom:15px}.module-heading h3{margin:0!important}.module-icon{align-items:center;color:#8e4f64;display:flex;height:30px;justify-content:center;width:30px}.module-icon svg{fill:none;height:23px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.45;width:23px}.wizard-section[data-section="1"] .compact-field{max-width:230px}.wizard-section[data-section="1"] .measurement-control{display:grid;grid-template-columns:minmax(90px,150px) 38px;align-items:center;margin-top:6px}.wizard-section[data-section="1"] .measurement-control input{height:40px;margin:0;border-radius:4px 0 0 4px;transition:border-color .22s ease,box-shadow .22s ease}.wizard-section[data-section="1"] .measurement-control span{align-items:center;align-self:stretch;background:#f2eee9;border:1px solid var(--line);border-left:0;color:var(--muted);display:flex;font-size:12px;justify-content:center;border-radius:0 4px 4px 0}.wizard-section[data-section="1"] .floor-field{display:grid;grid-column:1/-1;grid-template-columns:minmax(190px,270px) minmax(140px,190px);gap:12px;align-items:end}.wizard-section[data-section="1"] .floor-field select,.wizard-section[data-section="1"] .floor-other input{margin-top:6px}.wizard-section[data-section="1"] .floor-other:not([hidden]){animation:fieldUnfold .32s cubic-bezier(.22,.8,.32,1)}.wizard-section[data-section="1"] .floor-other[hidden]{display:none}.wizard-section[data-section="1"] .quantity-control button{background:transparent;border:0;border-bottom:1px solid transparent;border-radius:0;color:#704759;box-shadow:none;height:38px;font-family:Georgia,'Times New Roman',serif;font-size:24px;transition:color .18s ease,transform .18s ease}.wizard-section[data-section="1"] .quantity-control button:hover,.wizard-section[data-section="1"] .quantity-control button:focus-visible{background:transparent;border-bottom-color:#b98597;color:var(--ink);transform:translateY(-1px)}.wizard-section[data-section="1"] .quantity-control input{border-width:0 0 1px;border-radius:0;background:transparent}.wizard-section[data-section="1"] .module-main-spaces .form-grid{display:flex;align-items:flex-start;column-gap:15px;row-gap:8px;flex-wrap:wrap}.wizard-section[data-section="1"] .module-main-spaces .fact-checkbox{flex:0 0 auto}.wizard-section[data-section="1"] .module-main-spaces label[data-dependent-field]{flex:1 1 100%;max-width:520px}.wizard-section[data-section="1"] .fact-options[data-field-key="Espacios adicionales"]{border-left:2px solid #caa7b3;padding:5px 0 5px 18px}.wizard-section[data-section="1"] .fact-options[data-field-key="Espacios adicionales"] legend{padding:0 8px 0 0}.wizard-section[data-section="1"] .fact-options[data-field-key="Espacios adicionales"] .fact-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 18px}.wizard-section[data-section="1"] .fact-options[data-field-key="Espacios adicionales"] .fact-option-grid label{background:transparent;border:0;border-radius:0;min-height:32px;padding:4px 0;transition:color .2s ease,transform .2s ease}.wizard-section[data-section="1"] .fact-options[data-field-key="Espacios adicionales"] .fact-option-grid label:has(input:checked){background:transparent;border-color:transparent;color:#315f4a;font-weight:650;transform:translateX(3px)}.wizard-section[data-section="1"] .fact-options[data-field-key="Espacios adicionales"] input{accent-color:#3f7658}.wizard-section[data-section="1"] .fact-checkbox{background:transparent;border:0;border-radius:0;min-height:auto;padding:5px 0;transition:color .2s ease,transform .2s ease}.wizard-section[data-section="1"] .fact-checkbox:has(input:checked){color:#315f4a;font-weight:650;transform:translateX(3px)}.wizard-section[data-section="1"] select{border-radius:5px;transition:border-color .22s ease,box-shadow .22s ease}.wizard-section[data-section="1"] input:focus,.wizard-section[data-section="1"] select:focus{border-color:#9c6b7b;box-shadow:0 0 0 3px rgba(156,107,123,.11)}.wizard-section[data-section="1"]:not([hidden]){animation:dimensionStageIn .5s cubic-bezier(.22,.8,.32,1)}.wizard-section[data-section="1"]:not([hidden]) .optional-module{animation:moduleRise .48s cubic-bezier(.22,.8,.32,1) both;animation-delay:calc(var(--module-order) * 70ms + 90ms)}@keyframes dimensionStageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes moduleRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes fieldUnfold{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}@media(max-width:700px){.wizard-section[data-section="1"] .floor-field{grid-template-columns:1fr}.wizard-section[data-section="1"] .fact-options[data-field-key="Espacios adicionales"] .fact-option-grid{grid-template-columns:1fr 1fr}}@media(max-width:420px){.wizard-section[data-section="1"] .fact-options[data-field-key="Espacios adicionales"] .fact-option-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.wizard-section[data-section="1"]:not([hidden]),.wizard-section[data-section="1"]:not([hidden]) .optional-module,.wizard-section[data-section="1"] .floor-other:not([hidden]){animation:none}.wizard-section[data-section="1"] .fact-checkbox,.wizard-section[data-section="1"] .fact-option-grid label{transition:none}}

/* El mismo lenguaje visual continúa en servicios, exteriores y condiciones. */
.wizard-section[data-section="2"] .fact-options,.wizard-section[data-section="3"] .fact-options,.wizard-section[data-section="4"] .fact-options{border-left:2px solid #d6bdc5;padding:4px 0 4px 17px}.wizard-section[data-section="2"] .fact-option-grid,.wizard-section[data-section="3"] .fact-option-grid,.wizard-section[data-section="4"] .fact-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 16px}.wizard-section[data-section="2"] .fact-option-grid label,.wizard-section[data-section="3"] .fact-option-grid label,.wizard-section[data-section="4"] .fact-option-grid label{background:transparent;border:0;border-radius:0;min-height:32px;padding:4px 0;transition:color .2s ease,transform .2s ease}.wizard-section[data-section="2"] .fact-option-grid label:has(input:checked),.wizard-section[data-section="3"] .fact-option-grid label:has(input:checked),.wizard-section[data-section="4"] .fact-option-grid label:has(input:checked){background:transparent;color:#315f4a;font-weight:650;transform:translateX(3px)}.wizard-section[data-section="2"] .fact-checkbox,.wizard-section[data-section="3"] .fact-checkbox,.wizard-section[data-section="4"] .fact-checkbox{background:transparent;border:0;border-radius:0;padding:5px 0}.wizard-section[data-section="2"]:not([hidden]),.wizard-section[data-section="3"]:not([hidden]),.wizard-section[data-section="4"]:not([hidden]){animation:dimensionStageIn .48s cubic-bezier(.22,.8,.32,1)}.wizard-section[data-section="2"]:not([hidden]) .optional-module,.wizard-section[data-section="3"]:not([hidden]) .optional-module,.wizard-section[data-section="4"]:not([hidden]) .optional-module{animation:moduleRise .45s cubic-bezier(.22,.8,.32,1) both;animation-delay:calc(var(--module-order) * 65ms + 70ms)}@media(max-width:700px){.wizard-section[data-section="2"] .fact-option-grid,.wizard-section[data-section="3"] .fact-option-grid,.wizard-section[data-section="4"] .fact-option-grid{grid-template-columns:1fr 1fr}}@media(max-width:420px){.wizard-section[data-section="2"] .fact-option-grid,.wizard-section[data-section="3"] .fact-option-grid,.wizard-section[data-section="4"] .fact-option-grid{grid-template-columns:1fr}}


/* Conocimiento de MIA: propósito visible */
.wizard-section[data-section="6"] .knowledge-intro{max-width:760px;margin-bottom:18px;font-size:14px}
.wizard-section[data-section="6"]>label{max-width:900px}
.wizard-section[data-section="6"] textarea{min-height:150px}


/* Pestañas del wizard sin desplazamiento horizontal */
.capture-workspace .steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0 0 22px;padding:0;overflow:visible;scrollbar-width:none}
.capture-workspace .steps button{width:100%;min-height:44px;white-space:normal;line-height:1.25;text-align:center;padding:8px 10px;border-radius:8px;background:var(--surface)}
.capture-workspace .steps button.current{background:var(--ink);color:white;border-color:var(--ink)}
.capture-workspace .steps button:disabled{cursor:not-allowed;opacity:.42;background:#eeeae3;color:#777}
@media(max-width:980px){.capture-workspace .steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.capture-workspace .steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.capture-workspace .steps button{font-size:11px;padding:7px 8px}}


/* Miniaturas fotográficas sin carrusel horizontal */
.photo-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;overflow:visible;margin:-18px 0 30px;padding:4px 0 12px}
.photo-strip a{min-width:0;width:100%;overflow:hidden;border-radius:9px}
.photo-strip img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
@media(max-width:600px){.photo-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.photo-strip img{height:auto;width:100%}}


/* Vista previa sin scroll anidado */
.preview-shell{height:auto;overflow:visible}
.preview-shell iframe{height:720px;overflow:hidden}


/* Lenguaje visual inmobiliario */
.gallery>a{position:relative}
.fact svg{flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.fact{display:flex;align-items:center;gap:12px;padding:16px 14px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.fact:nth-child(3n){border-right:0}
.fact dt{line-height:1.25}.fact dd{font-size:17px;line-height:1.25}
.fact svg{width:44px;height:44px;color:#526f5a}.fact-icon-bed,.fact-icon-bath,.fact-icon-toilet,.fact-icon-car,.fact-icon-floor{transform:scale(1.12);transform-origin:center}
.property-body-single .facts{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.property-body-single .facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.property-body-single .facts{grid-template-columns:1fr}}
@media(max-width:700px){.facts{grid-template-columns:repeat(2,minmax(0,1fr))}.fact:nth-child(3n){border-right:1px solid var(--line)}.fact:nth-child(2n){border-right:0}}
/* MIA autenticada comparte el lenguaje y la geometría de la conversación pública. */
.private-mia-drawer{width:min(390px,calc(100vw - 32px));height:min(720px,calc(100dvh - 44px));bottom:24px;grid-template-rows:auto minmax(0,1fr);border-color:#fff;border-radius:24px;background:#fffaf5f5;backdrop-filter:blur(24px);box-shadow:0 24px 85px #32162f30}
.private-mia-drawer>header{gap:12px;padding:12px 16px 0;background:transparent;color:#321831;border:0}
.private-mia-drawer>header>img{width:66px;height:75px;object-fit:contain;align-self:end}
.private-mia-drawer>header>div{flex:1}.private-mia-drawer>header>div strong{font:450 26px/1.2 var(--heading)}.private-mia-drawer>header>div span{font-size:10px;color:#756876}
.private-mia-close,.private-mia-support{width:36px;height:36px;min-width:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#4b3548;box-shadow:none;font-size:20px}.private-mia-support{font-size:13px;text-decoration:underline;text-underline-offset:2px}
.mia-capture-body{display:flex;flex:1;min-height:0;overflow:hidden;background:transparent}.mia-capture-body>.capture-shell{height:100%;min-height:0;display:flex;flex:1;flex-direction:column;gap:10px;overflow:hidden;padding:0 16px 12px;background:transparent}.mia-capture-body .capture-head{display:none}
.mia-capture-body .capture-log{flex:1;min-height:100px;max-height:none;overflow-y:auto;padding:10px 1px}.mia-capture-body .capture-bubble{padding:10px 13px;border-radius:16px 16px 16px 4px;background:#fff;border:1px solid #f0e5df}.mia-capture-body .capture-bubble.user{border:0;border-radius:16px 16px 4px 16px;background:#f4d6c7;color:#4a2f3e}
.mia-capture-body .capture-review{max-height:210px;overflow-y:auto;padding:12px;border-radius:12px}.mia-capture-body .capture-composer{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;padding:7px;border:1px solid #e5d7d3;border-radius:24px;background:#fff}.mia-capture-body .capture-composer>label{grid-column:1/-1;padding:0 8px;font-size:9px;color:#756876}.mia-capture-body .capture-composer textarea{grid-column:1;min-height:38px;max-height:86px;margin:0;padding:8px;border:0;resize:none;background:transparent;box-shadow:none}.mia-capture-body .capture-composer-actions{grid-column:2;display:flex;gap:5px;flex-wrap:nowrap}.mia-capture-body .capture-composer-actions button{width:36px;height:36px;min-width:36px;padding:0;border:0;border-radius:50%;box-shadow:none}.capture-attach,.capture-record{background:#f3e8e2;color:#4b3548}.capture-send{background:#ed6b50;color:#fff;font-size:20px}.capture-wave{display:none;align-items:center;justify-content:center;gap:2px;height:18px}.capture-wave i{display:block;width:2px;height:6px;border-radius:2px;background:currentColor;animation:capture-wave .65s ease-in-out infinite}.capture-wave i:nth-child(2){animation-delay:.12s}.capture-wave i:nth-child(3){animation-delay:.24s}.capture-wave i:nth-child(4){animation-delay:.36s}.capture-record.is-recording{background:#ed6b50;color:#fff}.capture-record.is-recording .capture-mic-icon{display:none}.capture-record.is-recording .capture-wave{display:flex}@keyframes capture-wave{50%{height:18px}}
.mia-capture-body .capture-transcript{flex:0 0 auto;max-height:240px;overflow-y:auto;padding:12px}.mia-capture-body #capture-status{flex:0 0 auto;margin:0 7px;font-size:9px}
@media(max-width:700px){.mia-capture-body .capture-composer-actions{display:flex;grid-template-columns:none}.mia-capture-body .capture-composer-actions button:last-child{grid-column:auto;margin:0}}
@media(prefers-reduced-motion:reduce){.capture-wave i{animation:none}}
.photo-caption-label{display:grid;gap:5px;margin-top:7px;font-size:10px}.photo-caption-label span{color:var(--muted);font-weight:400}.photo-caption-label input{min-height:36px;margin:0;padding:7px 9px;font-size:11px}.gallery>a{position:relative}.gallery-caption{position:absolute;left:10px;right:10px;bottom:10px;z-index:3;padding:7px 9px;border-radius:7px;background:#17201ccc;color:#fff;font-size:10px;line-height:1.35;backdrop-filter:blur(6px)}.viewer-caption{margin:10px 0 0;padding:0 18px;color:#fff;text-align:center;font-size:13px;line-height:1.5}
.property-community{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin:16px 0 24px}.property-community button{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:var(--ink);box-shadow:none;font-size:12px}.property-community button:hover{background:#f2ece7}.property-community button[aria-pressed="true"] span{color:#d9574d}.property-community a{color:var(--ink);font-size:11px;text-decoration:underline;text-underline-offset:4px}.property-improve-dialog{width:min(620px,calc(100vw - 28px));padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 30px 100px #20141d55}.property-improve-dialog::backdrop{background:#17201caa;backdrop-filter:blur(4px)}.property-improve-dialog form{display:grid;gap:18px;padding:26px}.property-improve-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.property-improve-dialog h2{margin:5px 0 0;font-size:32px}.property-improve-dialog header button{width:32px;height:32px;min-width:32px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--ink);font-size:21px;box-shadow:none}.property-improve-dialog fieldset{display:grid;gap:10px;margin:0;padding:0;border:0}.property-improve-dialog legend{margin-bottom:10px;font-size:12px;font-weight:700}.property-improve-dialog fieldset label{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:9px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.property-improve-dialog fieldset input{min-height:0;margin:3px 0 0}.property-improve-dialog textarea{min-height:120px;margin-top:8px;resize:vertical}.property-improve-dialog footer{display:flex;justify-content:flex-end;gap:9px}.property-improve-status{min-height:20px;margin:0;color:#416336;font-size:12px;font-weight:650}@media(max-width:600px){.property-community{justify-content:space-between}.property-improve-dialog form{padding:20px}.property-improve-dialog h2{font-size:27px}.property-improve-dialog footer{display:grid}.property-improve-dialog footer button{width:100%}}
.property-improve-dialog form{position:relative}.property-feedback-thanks{position:absolute;inset:0;z-index:4;display:grid;place-items:center;padding:34px;background:#fffdfbf2;color:var(--ink);font:500 24px/1.45 var(--heading);text-align:center;backdrop-filter:blur(7px)}.property-feedback-thanks[hidden]{display:none}

/* Sistema compacto de acciones — PRUEBA-025/026/027 */
.icon-action{width:38px;height:38px;min-width:38px;padding:0!important;margin:0!important;border:1px solid color-mix(in srgb,var(--line) 78%,#747474)!important;border-radius:6px!important;background:color-mix(in srgb,var(--surface) 94%,transparent)!important;color:var(--ink)!important;font:600 20px/1 system-ui!important;box-shadow:0 3px 12px #0002!important}
.icon-action:hover{background:color-mix(in srgb,var(--surface) 84%,var(--ink))!important}.icon-action:focus-visible{outline:3px solid #557e99!important;outline-offset:3px!important}
.icon-action.icon-close,.icon-action.icon-remove{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;flex:0 0 24px!important;border-radius:3px!important;padding:0!important;font-size:12px!important;line-height:1!important;border-color:#b86d66!important;background:#8a332e!important;color:#eee!important;transform:none!important}.icon-action.icon-close:hover,.icon-action.icon-remove:hover{background:#70231f!important;transform:none!important}
.photo-viewer{border-radius:9px}.photo-viewer img{width:auto;height:auto;max-width:100%;max-height:65dvh;margin-inline:auto;border-radius:14px}.viewer-controls .icon-action{background:#f4f5f2!important;color:#17191a!important}.viewer-toolbar .icon-close{margin-left:auto!important}
.photo-frame{border-radius:7px}.photo-strip img{border-radius:6px}.gallery{border-radius:9px}.gallery img{border-radius:7px}
.photo-remove{top:7px;right:7px;width:24px!important;height:24px!important;min-width:24px!important;font-size:12px!important}
.photo-dragging{opacity:1!important;transform:none!important;transition:none;min-height:210px;border:2px dashed #a14b5d;border-radius:9px;background:#f7eae6}.photo-dragging>*{visibility:hidden}.photo-drag-ghost{position:fixed;z-index:1000;left:0;top:0;width:150px;height:110px;object-fit:cover;border-radius:7px;opacity:.72;pointer-events:none;box-shadow:0 14px 36px #0006;will-change:transform}
.photo-tile{transition:transform .16s ease}.support-dialog-close{border-radius:3px!important}
@media(max-width:600px){.icon-action{width:40px;height:40px;min-width:40px}.photo-drag-ghost{width:120px;height:90px}}

/* Pestañas conectadas de captura guiada — PRUEBA-010 */
.capture-workspace .steps{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;align-items:end;margin:0 0 -1px;padding:0;border-bottom:1px solid #d8cec7;overflow:visible}
.capture-workspace .steps button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:100%;min-height:44px;padding:4px 6px;border:1px solid #ddd2cb;border-bottom-color:#cfc3bc;border-radius:7px 7px 0 0;background:#fbf8f5;color:#695b64;font-size:11px;line-height:1.15;text-align:center;box-shadow:none}
.capture-workspace .steps button span,.capture-workspace .steps button small{display:block}.capture-workspace .steps button small{color:inherit;font-size:10px;font-weight:600}
.capture-workspace .steps button.current{position:relative;z-index:2;background:#171d1b;color:#fff;border-color:#171d1b;border-bottom-color:#171d1b;box-shadow:0 -3px 12px #0001}
.capture-workspace .steps button.has-data:not(.current)::after{content:'✓';position:absolute;top:4px;right:5px;color:#557044;font-size:9px}.capture-workspace .steps button.has-data{position:relative;color:#342931;background:#fff}
.capture-workspace .steps button.ghost:not(.current){background:transparent;border-style:dashed;color:#9a8f94}.capture-workspace .steps button:disabled{opacity:.36;cursor:not-allowed}
.capture-workspace .wizard-section{border:0;border-radius:0;background:transparent;box-shadow:none}
.capture-guided-label{padding:8px 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;margin-bottom:14px!important}
@media(max-width:980px){.capture-workspace .steps{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:7px;margin-bottom:10px}.capture-workspace .steps button{border-radius:7px;min-height:44px}.capture-workspace .wizard-section{border-radius:0}}
@media(max-width:560px){.capture-workspace .steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.capture-workspace .steps button{min-height:42px;font-size:10px;padding:4px}}

/* P1 — MIA privada usa la misma identidad visual del portal. */
.private-mia-launcher{position:relative;min-width:222px;min-height:64px;overflow:visible;justify-content:flex-start;gap:12px;padding:8px 18px 8px 94px;border:1px solid #ffffffd4;border-radius:14px;background:#fffcf6ef;color:#321831;box-shadow:0 10px 35px #33202f29;backdrop-filter:blur(18px)}
.private-mia-launcher:hover{transform:translateY(-2px);box-shadow:0 14px 40px #33202f33}
.private-mia-launcher img{position:absolute;left:5px;bottom:0;width:84px;height:102px;object-fit:contain;border-radius:0;background:transparent}
.private-mia-launcher span{display:grid;text-align:left;line-height:1.25}.private-mia-launcher strong{font-size:15px;letter-spacing:0}.private-mia-launcher small{margin-top:2px;color:#756876;font-size:9px;font-weight:450}.private-mia-launcher b{margin-left:auto;padding-left:10px;color:#b86355;font-size:24px}
.private-mia-intro>div{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}.private-mia-intro>div button{border-radius:7px}
@media(max-width:700px){.private-mia-launcher{min-width:204px;min-height:60px;padding-left:82px}.private-mia-launcher img{width:74px;height:91px}.private-mia-launcher small{display:block}}

/* P2 — densidad del wizard: menos cajas, mejor uso del ancho. */
.capture-workspace .fact-options[data-field-key="Créditos aceptados"]{padding:0;border:0;background:transparent}
.capture-workspace .fact-options[data-field-key="Créditos aceptados"] .fact-option-grid{display:flex;gap:8px 18px;flex-wrap:wrap}
.capture-workspace .fact-options[data-field-key="Créditos aceptados"] .fact-option-grid label{display:flex;align-items:center;gap:7px;width:auto;padding:5px 0;border:0;border-radius:0;background:transparent;font-size:13px}
.capture-workspace .fact-options[data-field-key="Créditos aceptados"] input{min-height:0;margin:0}
.capture-workspace [data-field-key="Situación de escritura"]{grid-column:span 1}
.capture-workspace .fact-field[data-field-key="Notas de venta"],.capture-workspace .fact-field[data-field-key="Otra restricción del condominio"],.capture-workspace .fact-field[data-field-key="Notas generales del condominio"]{grid-column:span 1}
.capture-workspace .fact-field[data-field-key="Observaciones adicionales"]{max-width:760px}
.capture-workspace .fact-field textarea{min-height:70px;max-height:180px;resize:vertical;font-size:12px;line-height:1.45;overflow-y:hidden}
.capture-workspace .fact-field textarea.has-overflow{overflow-y:auto}
.capture-workspace .fact-field textarea::placeholder{font-size:12px;line-height:1.45}
.zone-editor{gap:8px;max-width:920px}.zone-editor-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.zone-editor-head label{font-size:13px;font-weight:700}.zone-editor-head button{flex:0 0 auto;padding:8px 12px;border-radius:7px;font-size:11px}.zone-editor>textarea{min-height:104px;max-height:250px;resize:vertical;font-size:14px;line-height:1.6}.zone-privacy{color:var(--muted);font-size:10px}.zone-editor #zone-research-status:empty{display:none}
@media(max-width:700px){.capture-workspace .fact-field[data-field-key="Notas de venta"],.capture-workspace .fact-field[data-field-key="Otra restricción del condominio"],.capture-workspace .fact-field[data-field-key="Notas generales del condominio"]{grid-column:1/-1}.zone-editor-head{align-items:flex-start;flex-direction:column}.zone-editor-head button{width:auto}.capture-workspace .fact-options[data-field-key="Créditos aceptados"] .fact-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px}}

/* Ubicación privada opcional — P3 cartográfico */
.property-map-control{display:flex;align-items:flex-start;gap:22px;flex-wrap:wrap}.property-map-action{display:flex;align-items:flex-start;flex-direction:column;gap:7px}.property-map-control button{border-radius:7px;min-height:46px;padding:9px 13px}.property-map-control small{max-width:420px}.property-pin-status{align-items:center;align-self:flex-start;background:#edf5e9;border:1px solid #cadfc1;border-radius:12px;color:#244f39;display:flex;gap:10px;margin-top:0;min-height:46px;padding:7px 13px;box-shadow:0 5px 16px rgba(49,95,74,.08)}.property-pin-status:empty{display:none}.property-pin-icon{align-items:center;background:#3f7658;border-radius:50%;display:flex;height:30px;justify-content:center;width:30px}.property-pin-icon svg{fill:none;height:19px;overflow:visible;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:19px}.property-pin-icon .property-pin-check{stroke:#c9f28c;stroke-width:2.2}.property-pin-copy{display:flex;flex-direction:column;line-height:1.2}.property-pin-copy strong{font-family:Georgia,'Times New Roman',serif;font-size:14px;font-weight:600}.property-pin-copy small{color:#567364;font-size:11px;letter-spacing:.025em;margin-top:3px;white-space:nowrap}
.property-map-dialog{width:min(760px,calc(100vw - 28px));padding:22px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 28px 90px #0005}.property-map-dialog::backdrop{background:#17201caa;backdrop-filter:blur(4px)}.property-map-dialog header,.property-map-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.property-map-dialog h2{margin:3px 0 0}.property-map-dialog>p{font-size:13px}.property-map-dialog #property-map{height:min(52vh,430px);margin:18px 0;border:1px solid var(--line);border-radius:7px;overflow:hidden}.property-map-dialog footer span{font-size:11px;color:var(--muted)}.property-map-dialog footer button{border-radius:7px}
.property-row-actions>.property-row-action{box-sizing:border-box!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;flex:0 0 38px!important;padding:0!important;border-radius:6px!important;line-height:1!important}
.panel-heading-actions>.property-row-action{box-sizing:border-box;width:46px;height:46px;min-width:46px;padding:0;border-radius:9px}.panel-heading-actions>.property-row-action:disabled{opacity:.38;cursor:not-allowed}
@media(max-width:600px){.property-map-dialog{padding:15px}.property-map-dialog #property-map{height:48vh}.property-map-dialog footer{align-items:stretch;flex-direction:column}.property-map-dialog footer button{width:100%}.property-map-action{width:100%}.property-pin-status{width:100%}.property-pin-copy small{white-space:normal}}

/* Los avisos del wizard deben quedar completamente visibles sobre sus acciones fijas. */
#notice{bottom:max(88px,calc(env(safe-area-inset-bottom) + 72px));z-index:120;box-shadow:0 12px 35px #0004}

/* El panel sólo define su contenido; el shell compartido vive en editorial.css. */
.panel-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.panel-stat[data-tooltip]{position:relative;cursor:help}.panel-stat[data-tooltip]:after{content:attr(data-tooltip);position:absolute;left:14px;right:14px;top:calc(100% + 7px);z-index:35;padding:9px 11px;border-radius:7px;background:#261c23;color:#fff;font-size:11px;line-height:1.5;opacity:0;pointer-events:none;transform:translateY(-4px);transition:.16s}.panel-stat[data-tooltip]:hover:after,.panel-stat[data-tooltip]:focus-visible:after{opacity:1;transform:none}
@media(max-width:760px){.panel-heading-actions [data-panel-primary]{display:none}}

/* Acceso compacto: el pie no se duplica dentro del cuadro ni fuerza scroll innecesario. */
body.public-auth-page>main{min-height:calc(100dvh - 96px);padding:18px 40px;display:grid;align-items:center}body.public-auth-page .login{margin:0 auto;padding:25px 30px;max-height:calc(100dvh - 118px);overflow:auto}body.public-auth-page .login h1{margin-bottom:12px}body.public-auth-page .login>p{margin-bottom:12px;font-size:13px}body.public-auth-page .login label{font-size:12px}body.public-auth-page .login input,body.public-auth-page .login select{padding:9px 11px}
body.public-auth-page .auth-register{width:min(880px,100%);max-width:880px;max-height:none;overflow:visible;padding:28px 32px 22px}body.public-auth-page .auth-register h1{font-size:clamp(30px,3vw,40px)!important}body.public-auth-page .auth-register #auth-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:30px;row-gap:12px;align-items:start}body.public-auth-page .auth-register-column{display:flex;flex-direction:column;gap:10px;min-width:0}body.public-auth-page .auth-register-column>label{margin:0}body.public-auth-page .auth-register .password-requirements{margin:0;padding:13px 16px}body.public-auth-page .auth-register-account>.muted{margin:0;font-size:10px;line-height:1.55}body.public-auth-page .auth-register .legal-consent{margin:0;padding-top:2px}body.public-auth-page .auth-register #auth-form>button[type=submit]{grid-column:1/-1;width:min(320px,100%);justify-self:center;margin:0}body.public-auth-page .auth-register #auth-error{grid-column:1/-1;margin:0;text-align:center}body.public-auth-page .auth-register #auth-help{margin-top:10px}body.public-auth-page .auth-register .auth-secondary{margin:0;text-align:center}body.public-auth-page .auth-register .auth-contact{margin:8px 0 0;text-align:center}
@media(max-width:700px){body.public-auth-page>main{min-height:auto;padding:14px}body.public-auth-page .login{max-height:none;padding:22px 19px}body.public-auth-page .auth-register #auth-form{display:block}body.public-auth-page .auth-register-column{margin-bottom:12px}body.public-auth-page .auth-register #auth-form>button[type=submit],body.public-auth-page .auth-register #auth-error{margin-bottom:12px}}

/* Espacios principales: tres columnas semánticas; cada nota pertenece a su espacio. */
.wizard-section[data-section="1"] .module-main-spaces .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px;row-gap:8px;align-items:start}
.wizard-section[data-section="1"] .module-main-spaces [data-field-key="Sala"]{grid-column:1;grid-row:1}
.wizard-section[data-section="1"] .module-main-spaces [data-field-key="Notas de sala"]{grid-column:1;grid-row:2}
.wizard-section[data-section="1"] .module-main-spaces [data-field-key="Comedor"]{grid-column:2;grid-row:1}
.wizard-section[data-section="1"] .module-main-spaces [data-field-key="Notas de comedor"]{grid-column:2;grid-row:2}
.wizard-section[data-section="1"] .module-main-spaces [data-field-key="Cocina"]{grid-column:3;grid-row:1}
.wizard-section[data-section="1"] .module-main-spaces [data-field-key="Notas de cocina"]{grid-column:3;grid-row:2}
.wizard-section[data-section="1"] .module-main-spaces input[type="checkbox"]{appearance:auto;display:inline-block;width:auto;height:auto;min-height:0;margin:0 7px 0 0;padding:0;border:0;box-shadow:none}
.wizard-section[data-section="1"] .module-main-spaces .fact-field{width:100%;max-width:none;animation:fieldUnfold .28s cubic-bezier(.22,.8,.32,1)}
.wizard-section[data-section="1"] .module-main-spaces .fact-field input{width:100%;min-height:40px}
@media(max-width:700px){
 .wizard-section[data-section="1"] .module-main-spaces .form-grid{grid-template-columns:1fr;row-gap:7px}
 .wizard-section[data-section="1"] .module-main-spaces [data-field-key]{grid-column:1}
 .wizard-section[data-section="1"] .module-main-spaces [data-field-key="Sala"]{grid-row:1}
 .wizard-section[data-section="1"] .module-main-spaces [data-field-key="Notas de sala"]{grid-row:2}
 .wizard-section[data-section="1"] .module-main-spaces [data-field-key="Comedor"]{grid-row:3}
 .wizard-section[data-section="1"] .module-main-spaces [data-field-key="Notas de comedor"]{grid-row:4}
 .wizard-section[data-section="1"] .module-main-spaces [data-field-key="Cocina"]{grid-row:5}
 .wizard-section[data-section="1"] .module-main-spaces [data-field-key="Notas de cocina"]{grid-row:6}
}

/* Los contadores usan nuestros controles − / +; se eliminan los spinners nativos. */
.capture-workspace .quantity-control input[type="number"]{-moz-appearance:textfield;appearance:textfield}
.capture-workspace .quantity-control input[type="number"]::-webkit-inner-spin-button,.capture-workspace .quantity-control input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.mia-record.is-unavailable,.capture-record.is-unavailable{opacity:.4;cursor:not-allowed;background:transparent;border-style:dashed}.mia-record.is-unavailable:hover,.capture-record.is-unavailable:hover{background:transparent}

.user-file-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:14px}.user-file-head>div{flex:1;min-width:220px}.user-file-head h2{margin:0}.user-file-head p{margin:2px 0 0;color:var(--muted)}
.panel-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 16px;border-bottom:1px solid var(--line,#e1e5df)}
.panel-tabs button{border:0;background:transparent;padding:10px 16px;border-radius:8px 8px 0 0;color:var(--muted);font:inherit;cursor:pointer}
.panel-tabs button.active{background:var(--surface,#fff);color:var(--ink);box-shadow:inset 0 -2px 0 var(--ink)}
.panel-search{display:block;margin:0 0 12px;max-width:360px}.panel-search input{width:100%}

.audit-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.audit-tabs button{display:flex;align-items:baseline;gap:8px;border:1px solid var(--line,#e1e5df);background:var(--surface,#fff);border-radius:12px;padding:10px 16px;font:inherit;cursor:pointer;color:var(--muted)}
.audit-tabs button strong{font-size:20px;color:var(--ink)}
.audit-tabs button.active{border-color:var(--ink);color:var(--ink);box-shadow:0 0 0 1px var(--ink) inset}
.audit-row{border-bottom:1px solid var(--line,#e8ece5)}
.audit-row:last-child{border-bottom:0}
.audit-row summary{display:grid;grid-template-columns:130px minmax(0,1fr) auto 18px;gap:12px;align-items:center;padding:10px 16px;cursor:pointer;list-style:none}
.audit-row summary::-webkit-details-marker{display:none}
.audit-row summary::after{content:'›';color:var(--muted);font-size:18px;transition:transform .15s}
.audit-row[open] summary::after{transform:rotate(90deg)}
.audit-row summary:hover{background:rgba(0,0,0,.025)}
.audit-row time{color:var(--muted);font-size:13px;white-space:nowrap}
.audit-row summary strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.audit-row[open] summary strong{white-space:normal;overflow:visible}
.audit-state{color:var(--muted);font-size:12px;white-space:nowrap}
.audit-row.outcome-error .audit-state,.audit-row.level-attention .audit-state{color:#c0392b;font-weight:600}
.audit-row-body{padding:0 16px 12px 158px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.audit-reason{margin:0;color:#8a3b2b}
.audit-row-body small{color:var(--muted);overflow-wrap:anywhere}
.audit-row.level-attention{border-left:3px solid #c0392b;background:#fff8f6}
.audit-legend{margin-top:14px;line-height:1.6}
@media(max-width:700px){.audit-row summary{grid-template-columns:minmax(0,1fr) auto 18px}.audit-row time{grid-column:1/-1;white-space:normal;margin-bottom:-6px}.audit-row-body{padding:0 16px 12px}}

.audit-count{display:inline-block;margin-left:6px;padding:0 8px;border-radius:999px;background:#eee7e3;color:#5b4a52;font-size:12px;font-weight:600}

.integration-row.status-off h3{color:var(--muted)}.integration-legend{margin-top:14px;line-height:1.6}.panel-badge.off{background:#ece9e6;color:#6b6168}

.share-qr{display:flex;gap:18px;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--line,#e8ece5)}
.share-qr img{width:128px;height:128px;border-radius:10px;background:#fff;padding:6px;border:1px solid var(--line,#e8ece5);flex:none}
.share-qr code{display:block;margin:4px 0 10px;font-size:14px;overflow-wrap:anywhere}
.share-qr-actions{display:flex;gap:10px;flex-wrap:wrap}
.share-qr-actions a{display:inline-flex;align-items:center;text-decoration:none}
@media(max-width:700px){.share-qr{flex-direction:column;align-items:flex-start}}
