/* Refined controls and circular assistant entry point. */
.button{padding:13px 22px;gap:20px;min-height:50px;border:1px solid #ffffff18;border-radius:12px;background:linear-gradient(115deg,#0e70a0 0%,#095474 55%,#07374d 100%);box-shadow:0 3px 8px #07374d10,0 8px 20px #07374d12,inset 0 1px 0 #ffffff18;font-size:14px;font-weight:600;letter-spacing:.05px;transition:background .2s,transform .2s,box-shadow .2s}
.button span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-size:19px;background:#ffffff12;transition:transform .2s,background .2s}
.button:hover{transform:translateY(-2px);box-shadow:0 7px 18px #07374d25,inset 0 1px 0 #ffffff25}
.button:hover span{transform:translate(1px,-1px);background:#ffffff22}
.button:active{transform:translateY(0);box-shadow:0 2px 6px #07374d20}
.button.small{min-height:44px;padding:9px 17px;font-size:13px;border-radius:10px;gap:17px}
.button.light{background:#fff;border-color:#ffffff90;box-shadow:0 4px 15px #001e3020;color:var(--navy)}
.button.light span{background:#e8f4f6}
.text-link{border-radius:5px;gap:12px}
.tabs button{border-radius:9px;transition:background .18s,border-color .18s,color .18s}
.tabs button[aria-selected=true]{border-radius:9px;box-shadow:0 2px 5px #07374d06}
.chat-widget{right:26px;bottom:24px}
.chat-launch{position:relative;width:76px;height:76px;padding:0;display:grid;place-items:center;border:2px solid #cbd7e3;border-radius:50%;background:radial-gradient(circle at 35% 25%,#243957,#101f3b 68%);color:#fff;box-shadow:0 0 0 5px #f4f8fbbd,0 0 0 7px #b5c9dc70,0 7px 22px #0b203e30;transition:transform .2s,box-shadow .2s}
.chat-launch:after{content:'';position:absolute;inset:4px;border:1px solid #ffffff20;border-radius:50%;pointer-events:none}
.chat-launch svg{width:58px;height:58px;display:block}
.chat-launch:hover{transform:translateY(-2px);box-shadow:0 0 0 5px #f4f8fb,0 0 0 7px #a4bccf90,0 10px 26px #0b203e40}
.chat-launch:active{transform:scale(.97)}
.chat-launch[aria-expanded=true]{box-shadow:0 0 0 5px #f4f8fbbd,0 0 0 7px #42b8ba60,0 7px 22px #0b203e30}
.chat-launch .chat-tooltip{position:absolute;right:calc(100% + 17px);top:50%;transform:translateY(-50%) translateX(5px);white-space:nowrap;background:#10243c;color:#fff;font-size:11px;line-height:1.5;padding:9px 13px;border-radius:8px;opacity:0;visibility:hidden;transition:opacity .18s,transform .18s;pointer-events:none;box-shadow:0 3px 10px #07374d20}
.chat-launch:hover .chat-tooltip,.chat-launch:focus-visible .chat-tooltip{opacity:1;visibility:visible;transform:translateY(-50%) translateX(0)}
.chat-launch[aria-expanded=true] .chat-tooltip{display:none}
.chat-window{bottom:98px;border-radius:18px}
.chat-options button{padding:7px 11px;border-radius:8px;font-weight:500;transition:background .18s,border-color .18s}
.chat-options button:hover{border-color:#93c8d4}
.chat-form button{border-radius:9px;background:linear-gradient(135deg,#0e70a0,#07374d);box-shadow:0 2px 6px #07374d18}
@media(max-width:760px){.button,.hero-actions .button{padding:13px 19px;font-size:13px;min-height:48px}.chat-widget{right:20px;bottom:20px}.chat-launch{width:64px;height:64px}.chat-launch svg{width:49px;height:49px}.chat-window{bottom:85px;width:min(370px,calc(100vw - 40px));height:min(570px,calc(100dvh - 130px))}.chat-launch .chat-tooltip{display:none}}
@media(prefers-reduced-motion:reduce){.chat-launch,.button{transition:none}}
/* Compact sizing for the three requested contact controls. */
nav .button.small{min-height:36px;padding:6px 13px;font-size:12px;gap:10px;border-radius:9px}
nav .button.small span{width:20px;height:20px;font-size:16px}
.contact>div>.button{min-height:40px;padding:9px 16px;font-size:12px;gap:13px;border-radius:10px}
.contact>div>.button span{width:22px;height:22px;font-size:17px}
.chat-launch{width:58px;height:58px;border-width:1.5px;box-shadow:0 0 0 3px #f4f8fbbd,0 0 0 5px #b5c9dc70,0 5px 16px #0b203e28}
.chat-launch svg{width:44px;height:44px}
.chat-launch:hover{box-shadow:0 0 0 3px #f4f8fb,0 0 0 5px #a4bccf90,0 7px 20px #0b203e35}
.chat-launch[aria-expanded=true]{box-shadow:0 0 0 3px #f4f8fbbd,0 0 0 5px #42b8ba60,0 5px 16px #0b203e28}
.chat-window{bottom:79px}
@media(max-width:760px){nav .button.small{min-height:44px;padding:9px 14px}.contact>div>.button{min-height:44px}.chat-launch{width:52px;height:52px}.chat-launch svg{width:40px;height:40px}.chat-window{bottom:73px}}
.hero-nodes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.58;mask-image:linear-gradient(to bottom,#000 0%,#000 65%,transparent 96%)}
@media(max-width:760px){.hero-nodes{opacity:.32}}

body.admin-bar header{top:32px}@media(max-width:782px){body.admin-bar header{top:46px}}

.audience-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.audience-grid article{padding-right:20px}.audience-grid h3{font-size:23px}.support-download{display:flex;width:fit-content;margin-top:22px;padding:10px 16px;min-height:44px;font-size:12px}.support-download[hidden],.support-download-note[hidden]{display:none!important}#service-panel .support-download-note{font-size:11px;max-width:430px;margin-top:10px}@media(min-width:761px) and (max-width:1000px){.audience-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audience-grid article:nth-child(2){border-right:0}}@media(max-width:760px){.audience-grid{grid-template-columns:1fr}.support-download{font-size:11px;padding:10px 12px}}

.social-block>span{display:block;font-size:10px;letter-spacing:.7px;color:#a8c1cd;margin-bottom:10px}.social-links{display:flex;align-items:center;gap:10px}.social-link{display:grid;place-items:center;width:38px;height:38px;border:1px solid #577585;border-radius:50%;background:#ffffff06;color:#d0dce3;transition:background .2s,border-color .2s,color .2s,transform .2s}.social-link svg{width:19px;height:19px}.social-link:hover,.social-link:focus-visible{color:white;transform:translateY(-2px)}.social-link.facebook:hover,.social-link.facebook:focus-visible{background:#1877f2;border-color:#1877f2}.social-link.linkedin:hover,.social-link.linkedin:focus-visible{background:#0a66c2;border-color:#0a66c2}.social-link.instagram:hover,.social-link.instagram:focus-visible{background:linear-gradient(35deg,#f9a443,#dd2a7b,#8134af);border-color:#dd2a7b}@media(max-width:760px){.social-block{margin:10px 0}.social-link{width:44px;height:44px}}@media(prefers-reduced-motion:reduce){.social-link{transition:none}}

.tabs button{gap:12px}.tabs button .service-tab-icon{width:29px;height:29px;display:grid;place-items:center;flex:0 0 29px;color:#6c8795}.service-tab-icon svg{width:24px;height:24px;display:block}.tabs button .service-number{font-size:10px;color:#7b919d}.tabs button[aria-selected=true] .service-tab-icon{color:var(--blue)}.line-icon svg{width:29px;height:29px;display:block}@media(max-width:760px){.tabs button{gap:8px}.tabs button .service-tab-icon{width:23px;height:23px;flex-basis:23px}.service-tab-icon svg{width:21px;height:21px}.tabs button .service-number{display:none}}

/* Brand typography. Local font references do not distribute desktop font files. */
@font-face{font-family:'CB NewBlack';src:url('fonts/newblack-bold.woff2') format('woff2'),url('fonts/newblack-bold.woff') format('woff');font-style:normal;font-weight:700;font-display:swap}
body,button,input,textarea,select{font-family:'Segoe UI',Arial,sans-serif;font-weight:400}
body h1,body h2,body h3,body h4,body h5,body h6{font-family:'CB NewBlack','Segoe UI',Arial,sans-serif;font-weight:700;letter-spacing:-.025em}
body p,body a,body button,body label,body li,body dt,body dd,body small,body strong,body b,.eyebrow,.number,.panel-label,.trajano-brand>span,.chat-head strong,.chat-launch,.client-name{font-family:'Segoe UI',Arial,sans-serif;font-weight:400}
.hero h1{line-height:1.12}.trajano-brand{display:flex;flex-direction:column;align-items:flex-start;margin:5px 0 30px;gap:12px}.trajano-logo{display:block;width:180px;max-width:100%;height:auto;object-fit:contain}.trajano-brand>span{font-size:11px;color:#b8ced8;letter-spacing:.3px}.software .eyebrow{margin-bottom:25px}@media(max-width:760px){.trajano-logo{width:158px}.trajano-brand{margin-bottom:25px;gap:10px}}

.success-cases{background:#f5f9fb;border-bottom:1px solid #e2edf1}.cases-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}.case-card{border:1px solid #dce8ed;border-top:3px solid #42b8ba;border-radius:12px;background:#fff;padding:28px;overflow:hidden}.case-logo{height:64px;display:flex;align-items:center;justify-content:flex-start;margin-bottom:20px}.case-logo img{display:block;width:auto;height:auto;max-width:140px;max-height:64px;object-fit:contain}.case-client{font-size:13px;color:#123345;margin:0 0 12px}.case-tag{font-size:8px;letter-spacing:1px;color:#0e70a0;min-height:30px;margin:0 0 12px}.case-card h3{font-size:25px;line-height:1.2;min-height:90px;margin:0 0 18px}.case-summary{font-size:14px;color:#59717e;min-height:115px;margin:0 0 20px}.case-details{border-top:1px solid #e0e9ed;padding-top:17px}.case-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;font-size:13px;color:#0e70a0}.case-details>summary::-webkit-details-marker{display:none}.case-details>summary>span{font-size:23px;color:#1ea2ae;font-weight:400;transition:transform .2s}.case-details[open]>summary>span{transform:rotate(45deg)}.case-details>summary:focus-visible{outline:2px solid #0e70a0;outline-offset:5px;border-radius:3px}.case-body{padding-top:15px}.case-body p,.case-body li{font-size:13px;color:#59717e;line-height:1.7}.case-body ul{padding-left:17px}.case-body li{margin-bottom:9px}.case-body h4{font-size:18px;line-height:1.25;margin:25px 0 12px;color:#123345}.case-body .case-result{background:#eff7f8;border-left:2px solid #42b8ba;padding:14px}.case-body .text-link{font-size:12px;margin-top:12px}nav{gap:12px;font-size:12px}.logo{width:165px}html[lang=en] nav,html[lang=pt-BR] nav{font-size:11px;gap:11px}@media(min-width:761px) and (max-width:1100px){.nav.wrap{width:calc(100% - 30px)}.nav{gap:10px}.logo{width:135px}nav,html[lang=en] nav,html[lang=pt-BR] nav{font-size:10px;gap:9px}.cases-grid{gap:14px}.case-card{padding:22px}.case-card h3{font-size:22px}}@media(max-width:760px){.cases-grid{grid-template-columns:1fr;gap:22px}.case-card{padding:25px}.case-card h3,.case-summary,.case-tag{min-height:0}.case-card h3{font-size:27px}.logo{width:178px}nav,html[lang=en] nav,html[lang=pt-BR] nav{font-size:15px;gap:0}}@media(prefers-reduced-motion:reduce){.case-details>summary>span{transition:none}}

header nav>a:not(.button){color:#07374d}header nav>a:not(.button):hover,header nav>a:not(.button):focus-visible{color:#1ea2ae}
/* Stronger, more legible main navigation. */
header nav>a:not(.button){font-size:13px;font-weight:700;line-height:1.4}
header nav{gap:16px}
@media(min-width:761px) and (max-width:1100px){header nav>a:not(.button){font-size:11px}header nav{gap:10px}}
@media(max-width:760px){header nav>a:not(.button){font-size:16px}header nav{gap:0}}

.about-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:80px;align-items:center}.about-photo{margin:0;max-width:370px;position:relative}.about-photo img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid #dce8ec;box-shadow:15px 15px 0 #edf5f7}.about-photo figcaption{font-size:11px;color:#59717e;padding-top:23px}.about-copy h2{font-size:40px;line-height:1.17}.about-copy>p:not(.eyebrow){font-size:15px;line-height:1.8;color:#59717e}.about-copy ul{list-style:none;padding:0;margin:25px 0}.about-copy li{font-size:14px;color:#123345;margin:10px 0}.about-copy li:before{content:'✓';color:#1ea2ae;margin-right:12px}.footer-page-links{display:flex;flex-direction:column;align-items:end;gap:12px}.footer-page-links a{font-size:12px}@media(max-width:1000px){.about-grid{gap:45px}.about-copy h2{font-size:33px}}@media(max-width:760px){.about-grid{grid-template-columns:1fr;gap:35px}.about-photo{max-width:320px;margin:0 auto}.about-copy h2{font-size:33px}.about-copy>p:not(.eyebrow){font-size:15px}.footer-page-links{align-items:start;margin-top:10px}}

.faq-section{background:#f5f9fb;border-top:1px solid #e1ecf0;border-bottom:1px solid #e1ecf0}.faq-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:75px;align-items:start}.faq-heading{position:sticky;top:130px}.faq-heading h2{font-size:39px;max-width:350px}.faq-heading>p:last-child{color:#59717e;font-size:15px;max-width:300px}.faq-item{border-bottom:1px solid #d6e5eb;padding:19px 0}.faq-item:first-child{padding-top:0}.faq-item>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:20px;color:#123345;cursor:pointer;font-size:15px;line-height:1.5}.faq-item>summary::-webkit-details-marker{display:none}.faq-item>summary>span{color:#1ea2ae;font-size:24px;flex-shrink:0;transition:transform .2s}.faq-item[open]>summary>span{transform:rotate(45deg)}.faq-item>summary:focus-visible{outline:2px solid #0e70a0;outline-offset:5px;border-radius:4px}.faq-answer p{font-size:14px;line-height:1.8;color:#59717e;margin:16px 0}.faq-critical>summary{color:#123345}.priority-badge{display:inline-block;padding:7px 11px;border:1px solid #c6e4e8;border-radius:7px;background:#eaf5f6;color:#0e70a0;font-size:11px;margin:2px 0 7px}@media(max-width:1000px){.faq-grid{gap:40px}.faq-heading h2{font-size:34px}}@media(max-width:760px){.faq-grid{grid-template-columns:1fr;gap:25px}.faq-heading{position:static}.faq-heading h2{font-size:33px;max-width:none}.faq-heading>p:last-child{max-width:none}.faq-item>summary{font-size:15px;gap:15px}.faq-answer p{font-size:14px}}@media(prefers-reduced-motion:reduce){.faq-item>summary>span{transition:none}}

/* Nerva: identidad CB Systems, balanceo y doble parpadeo. */
.chat-launch.nerva-launch,.chat-launch.nerva-launch:hover{width:64px;height:84px;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;transform:none}
.chat-launch.nerva-launch:after{display:none}
.chat-launch .nerva-mascot{position:relative;display:block;width:64px;height:auto;transform-origin:50% 92%;animation:nerva-sway 3.8s ease-in-out infinite;filter:drop-shadow(0 5px 6px #07374d59)}
.nerva-mascot img{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
.nerva-mascot .nerva-shut-eyes{position:absolute;inset:0;opacity:0;animation:nerva-blink 4.6s infinite}
.chat-launch.nerva-launch:hover .nerva-mascot{animation-duration:1.8s}
.chat-head .nerva-chat-avatar{width:34px;height:44px;object-fit:contain;margin-right:10px;flex-shrink:0}.chat-head>div{flex:1}
.service-tab-icon .nerva-service-image{width:30px;height:36px;object-fit:contain}.line-icon .nerva-service-image{width:40px;height:48px;object-fit:contain}
.chat-window{bottom:100px}.chat-launch.nerva-launch:focus-visible{outline:2px solid #16a6b2;outline-offset:6px;border-radius:10px}
@keyframes nerva-sway{0%,100%{transform:translate(-5px,0) rotate(-5deg)}25%{transform:translate(0,-3px) rotate(0deg)}50%{transform:translate(5px,0) rotate(5deg)}75%{transform:translate(0,-3px) rotate(0deg)}}
@keyframes nerva-blink{0%,84%,88%,92%,100%{opacity:0}86%,94%,96%{opacity:1}}
@media(prefers-reduced-motion:reduce){.chat-launch .nerva-mascot,.nerva-mascot .nerva-shut-eyes,.chat-launch.nerva-launch:hover .nerva-mascot{animation:none}}

/* Ventana de Nerva: diseño del widget municipal adaptado a CB Systems. */
.chat-widget{bottom:49px;right:22px;z-index:90}
.chat-window{width:370px;height:540px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 155px);bottom:100px;border:0;border-radius:18px;box-shadow:0 12px 40px #07374d4d}
.chat-head{padding:14px 16px;background:#0b5064;border-bottom:3px solid #20b7bf;gap:8px;min-height:74px}
.chat-head strong{font-size:18px;font-weight:700;letter-spacing:.5px}.chat-head small{font-size:12px;color:#e8f5f6;font-weight:400}
.chat-head .nerva-chat-avatar{width:42px;height:44px;margin-right:2px;object-fit:cover;object-position:top;clip-path:inset(0 0 8px 0)}
.chat-clear,.chat-close{display:grid;place-items:center;background:transparent;border:0;color:#d9eeef;cursor:pointer;padding:4px;flex:0 0 auto}.chat-clear{width:28px;height:32px}.chat-close{font-size:26px;width:28px}.chat-clear:hover,.chat-close:hover{color:white;background:#ffffff15;border-radius:5px}.chat-clear:disabled{opacity:.4;cursor:wait}
.chat-history{background:#f4f9fa;padding:11px;gap:7px}.bubble{max-width:88%;padding:6px 10px;border-radius:11px;font-size:12.5px;line-height:1.38;font-weight:400;overflow-wrap:anywhere;white-space:pre-line}
.bubble.bot{background:#fff;border:1px solid #d4e5e8;color:#23414c;border-bottom-left-radius:4px}.bubble.user{background:#0b5064;border-bottom-right-radius:4px}
.chat-options{background:#f4f9fa;justify-content:center;padding:4px 11px 10px;gap:6px}.chat-options button{border-radius:9px;font-size:12px;padding:4px 10px;color:#0b5064;border:1px solid #c5dfe3}.chat-options button:hover{background:#16a6b2;color:#fff;border-color:#16a6b2}
.chat-form{padding:10px 12px;border-top:1px solid #d4e5e8;gap:8px;background:#fff}.chat-form input{font-size:13px;padding:7px 12px;border:1px solid #0b5064;border-radius:999px}.chat-form button{border-radius:999px;background:#0b5064;font-size:13px;min-width:68px;font-weight:600;padding:7px 12px}.chat-disclaimer{background:#fff;color:#52717c;padding:0 14px 12px;font-size:10px;line-height:1.4}
.chat-launch .chat-tooltip{display:block;position:absolute;right:80px;top:18px;white-space:nowrap;background:#fff;color:#0b5064;border:1px solid #d4e5e8;border-radius:14px;padding:11px 14px;box-shadow:0 6px 22px #07374d30;font-size:13px;line-height:1.4;font-weight:400;pointer-events:none;opacity:0;visibility:hidden;transform:translateX(5px);transition:opacity .2s,transform .2s}
.chat-launch .chat-tooltip:after{content:'';position:absolute;right:-6px;top:15px;width:10px;height:10px;background:#fff;border-right:1px solid #d4e5e8;border-top:1px solid #d4e5e8;transform:rotate(45deg)}
.chat-launch[aria-expanded=false]:hover .chat-tooltip,.chat-launch[aria-expanded=false]:focus-visible .chat-tooltip{opacity:1;visibility:visible;transform:none}
@media(max-width:520px){.chat-widget{bottom:41px;right:12px}.chat-launch.nerva-launch,.chat-launch .nerva-mascot{width:54px}.chat-window{bottom:85px;width:370px;height:calc(100dvh - 135px);max-height:540px}.chat-launch .chat-tooltip{right:68px;white-space:normal;width:175px;top:14px}.chat-head{padding:12px}.chat-head small{font-size:11px}}

.chat-options[hidden]{display:none!important}
.chat-options{gap:5px;padding:4px 11px 9px}
.chat-options button,.chat-options .nerva-whatsapp-option{display:inline-flex;align-items:center;justify-content:center;min-height:25px;border:1px solid #dce9ec;border-radius:8px;background:#ffffffa6;color:#53717c;font:400 11px/1.25 'Segoe UI',Arial,sans-serif;padding:4px 8px;text-decoration:none;transition:background .15s,color .15s}
.chat-options button:hover,.chat-options .nerva-whatsapp-option:hover{background:#e6f4f5;color:#0b5064;border-color:#acd8dc}
.chat-options button:focus-visible,.chat-options .nerva-whatsapp-option:focus-visible{outline:2px solid #16a6b2;outline-offset:2px}
/* Mantener el gesto suave de Nerva cuando se solicita reducir movimiento. */
@keyframes nerva-sway-soft{0%,100%{transform:translateX(-2px)}50%{transform:translateX(2px)}}
@media(prefers-reduced-motion:reduce){
 .chat-launch .nerva-mascot,.chat-launch.nerva-launch:hover .nerva-mascot{animation:nerva-sway-soft 6s ease-in-out infinite}
 .nerva-mascot .nerva-shut-eyes{animation:nerva-blink 4.6s infinite}
}
/* Logos institucionales con mayor legibilidad del descriptor. */
header .nav.wrap{width:min(1320px,calc(100% - 48px));gap:20px}
header .nav>a:first-child{flex-shrink:0}
header .logo{width:230px;height:auto}
footer .footer-top>img{width:280px;max-width:100%;height:auto;flex-shrink:0}
@media(min-width:761px) and (max-width:1100px){header .nav.wrap{width:calc(100% - 30px);gap:12px}header .logo{width:180px}}
@media(max-width:760px){header .nav.wrap{width:calc(100% - 36px)}header .logo{width:225px;max-width:calc(100vw - 100px)}footer .footer-top>img{width:265px}}
/* Ajustes verificados en pantallas de celular. */
@media(max-width:520px){
 .chat-window{width:min(370px,calc(100vw - 40px));max-width:calc(100vw - 40px)}
 .chat-form input{font-size:16px}
 .chat-head{min-height:74px}
 .chat-clear,.chat-close{min-height:36px;min-width:30px}
 nav.open{max-height:calc(100dvh - 74px);overflow-y:auto;overscroll-behavior:contain}
}


.privacy-page{max-width:850px;padding-top:65px;padding-bottom:85px}.privacy-page h1{font-size:clamp(32px,4vw,48px);line-height:1.15;letter-spacing:-.025em}.privacy-date{font-size:12px;color:#59717e}.privacy-intro{font-size:19px;color:#59717e;margin-bottom:36px}.privacy-page section{margin:30px 0}.privacy-page section h2{font-size:25px;line-height:1.25;letter-spacing:-.02em;margin:0 0 12px}.privacy-page p{line-height:1.75}.privacy-page a,.chat-privacy-link{color:#0e70a0;text-decoration:underline;text-underline-offset:2px}.privacy-page a{overflow-wrap:anywhere}.chat-disclaimer .chat-privacy-link{font-weight:600;white-space:nowrap}@media(max-width:760px){.privacy-page{padding-top:35px}.privacy-intro{font-size:17px}.privacy-page section h2{font-size:23px}}
/* Nerva compacto en móviles, sin alterar la vista de escritorio. */
@media(max-width:520px){
 .chat-widget{-webkit-text-size-adjust:100%;text-size-adjust:100%;right:12px;bottom:18px}
 .chat-window{width:min(330px,calc(100vw - 36px));max-width:calc(100vw - 36px);height:min(430px,65dvh);max-height:calc(100dvh - 110px);bottom:74px;border-radius:14px}
 .chat-head{min-height:0;padding:9px 10px;gap:5px;flex-shrink:0;line-height:1.2}
 .chat-head>div{min-width:0}
 .chat-head strong{font-size:16px;line-height:1.2;letter-spacing:.2px}
 .chat-head small{display:block;font-size:10px;line-height:1.3;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .chat-head .nerva-chat-avatar{width:30px;height:34px;margin:0 3px 0 0;clip-path:inset(0 0 5px 0)}
 .chat-clear,.chat-close{width:28px;min-width:28px;height:36px;min-height:36px;padding:3px}
 .chat-close{font-size:23px}.chat-clear svg{width:15px;height:15px}
 .chat-history{padding:9px;gap:6px;min-height:55px}
 .bubble{font-size:12px;line-height:1.4;padding:6px 8px;max-width:91%}
 .chat-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:5px 9px 7px;flex-shrink:0}
 .chat-options button,.chat-options .nerva-whatsapp-option{font-size:10.5px;line-height:1.2;min-height:24px;padding:4px 5px;white-space:normal;text-align:center}
 .chat-form{padding:7px 9px;gap:6px;flex-shrink:0}
 .chat-form input{font-size:16px;line-height:1.2;padding:7px 10px}
 .chat-form button{font-size:12px;min-width:58px;padding:7px 9px;line-height:1.2}
 .chat-disclaimer{font-size:9px;line-height:1.3;padding:0 10px 8px;flex-shrink:0}
 .chat-launch.nerva-launch{width:46px;height:60px}.chat-launch .nerva-mascot{width:46px}
 .chat-handoff{font-size:11px;margin-top:7px}
}
@media(max-width:760px) and (max-height:500px){
 .chat-window{position:fixed;right:12px;bottom:12px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);width:min(370px,calc(100vw - 36px))}
 .chat-head{min-height:0;padding:6px 10px}
 .chat-history{min-height:35px}
}
