*{box-sizing:border-box}img{max-width:100%}body{min-width:0}input,select,textarea{max-width:100%;font-size:16px}body .header{gap:16px}body .header>div{min-width:0}body .header h1,body .titulo{overflow-wrap:anywhere}body .toolbar{display:flex;flex-wrap:wrap;gap:8px}body .toolbar .btn{white-space:normal;text-align:center}body .productos-grid{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px;max-width:1600px;margin-inline:auto}body .producto{min-width:0}body .acciones-producto{display:flex;flex-wrap:wrap;gap:6px}body .acciones-producto a{flex:1;min-width:70px;padding:9px!important}body .busqueda-box input{min-width:0;flex:1 1 180px}body .busqueda-box{max-width:100%}body .chat-historial{overscroll-behavior:contain}body .contacto-flotante{bottom:94px}body .subir-arriba-flotante{bottom:265px}body .footer{margin-bottom:80px}
body .chat-lanzador{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:1200;display:flex;align-items:center;gap:10px;border:0!important;border-radius:30px;padding:15px 20px;background:#193b5a!important;color:#fff!important;box-shadow:0 8px 30px #0c223944;font:700 15px system-ui;cursor:pointer;min-height:54px}body .chat-lanzador>span:first-child{font-size:23px}body .chat-cuenta{background:#fff;color:#183956;border-radius:20px;padding:3px 7px;font-size:12px}.chat-ventana{position:fixed;inset:auto 18px 84px auto;margin:0;width:min(520px,calc(100vw - 36px));height:min(740px,calc(100dvh - 116px));max-height:none;max-width:none;padding:0;border:1px solid #c0d0df;border-radius:22px;background:#f7f9fc;color:#172c41;box-shadow:0 22px 80px #152b4755;overflow:hidden}.chat-ventana[open]{display:flex;flex-direction:column}.chat-ventana::backdrop{background:#13293e33}.chat-ventana-barra{padding:16px 20px;background:#193b5a;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#fff;flex-shrink:0}.chat-ventana-barra strong{display:block;font-size:17px;color:#fff}.chat-ventana-barra span{display:block;color:#d1e1ef;font-size:12px;margin-top:4px}body .chat-ventana .chat-cerrar{color:#fff!important;background:#ffffff18!important;border:1px solid #ffffff44!important;border-radius:10px;width:42px;height:42px;font-size:20px;cursor:pointer;flex-shrink:0}.chat-ventana-contenido{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.chat-marco{display:block;width:100%;height:100%;border:0;background:#fff}.chat-ventana .mensajes-seccion{margin:0!important;border:0!important;padding:18px!important;box-shadow:none!important;border-radius:0!important;max-width:100%}.chat-ventana .mensajes-seccion h2{font-size:18px}.chat-ventana .row{padding:12px!important;border-radius:14px!important}.chat-ventana .chat-historial{max-height:280px}.chat-ventana .actions{gap:6px}.chat-ventana .actions button{font-size:13px!important;padding:10px!important}.chat-embebido body{padding:10px!important}.chat-embebido .panel{margin:0!important;padding:14px!important;border:0!important;box-shadow:none!important}.chat-embebido .panel>h1{font-size:21px}.chat-embebido .access{padding:14px}.chat-embebido .access h2{font-size:18px}.chat-embebido #qr{width:180px}.chat-embebido #qr img,.chat-embebido #qr canvas{width:180px!important;height:180px!important}.chat-embebido .chat-historial{max-height:300px}
@media(max-width:700px){body{padding:12px!important}body .header{padding:16px!important}body .toolbar .btn{flex:1 1 135px;padding:11px!important}body .container{padding:16px;max-width:100%}body .busqueda-box form{flex-wrap:wrap}body .busqueda-box form input{flex-basis:100%}body .busqueda-box form button{flex:1}body .productos-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body .producto{padding:10px}.chat-ventana{inset:10px;bottom:max(10px,env(safe-area-inset-bottom));width:calc(100vw - 20px);height:calc(100dvh - 20px - env(safe-area-inset-bottom));border-radius:18px}.chat-ventana-barra{padding:12px 16px}body .chat-lanzador{right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:12px 16px}.chat-etiqueta{display:none}body .contacto-flotante{bottom:82px}body .subir-arriba-flotante{bottom:240px}}
@media(max-width:370px){body .productos-grid{grid-template-columns:1fr}}

.campos-apellidos{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}.campos-apellidos>div{min-width:0}@media(max-width:420px){.campos-apellidos{grid-template-columns:1fr;gap:0}}

.chat-embebido .panel>h1{display:none}.chat-embebido details>summary{padding:8px 0;color:#193b5a;font-weight:700;cursor:pointer}
