/* MarkArte · JULia */
html body .mk-chat.mka-on{font-family:Questrial,system-ui,sans-serif!important}
html body .mk-chat .mka-name{white-space:nowrap;letter-spacing:.01em}
html body .mk-chat .mka-name b{font-weight:800}
html body .mk-chat .mka-name i{font-style:normal;font-weight:800;color:#8FD3B3}
html body .mk-chat .mka-msg .mka-name i{color:#4E9E7B}

/* ---- Pastilla "Habla con JULia" ---- */
html body .mk-chat.mka-on summary,html body .mk-chat.mka-on[open] summary{display:flex!important;align-items:center;gap:12px;width:auto!important;height:auto!important;margin:0!important;padding:6px 24px 6px 6px!important;border-radius:999px!important;background:#C9E4D7!important;border:0!important;box-shadow:0 14px 34px -14px rgba(30,28,26,.45)!important;transition:transform .25s,box-shadow .25s}
html body .mk-chat.mka-on summary:hover{transform:translateY(-2px);background:#BFE0D0!important}
html body .mk-chat.mka-on summary::before,html body .mk-chat.mka-on summary::after{display:none!important}
html body .mk-chat.mka-on summary>.mk-chat-av,html body .mk-chat.mka-on[open] summary>.mk-chat-av{display:block!important;width:58px!important;height:58px!important;border:2px solid #fff!important;box-shadow:none!important;transform:none!important}
html body .mk-chat.mka-on .mk-chat-badge,html body .mk-chat.mka-on .mk-chat-tip{display:none!important}
html body .mk-chat.mka-on .mka-pill{font-size:17px;font-weight:700;color:#1E1C1A;white-space:nowrap}
html body .mk-chat.mka-on .mka-pill .mka-name{font-size:19px;margin-left:4px}
html body .mk-chat.mka-on .mka-pill .mka-name i{color:#4E9E7B}

/* ---- Panel ---- */
html body .mk-chat.mka-on .mk-chat-panel,html body .mk-chat.mka-on[open] .mk-chat-panel{position:absolute;right:0;bottom:calc(100% + 14px)!important;width:390px!important;max-width:calc(100vw - 24px)!important;background:#fff!important;border:0!important;border-radius:24px!important;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 70px -24px rgba(30,28,26,.45)!important;font-size:15px!important}
html body .mk-chat.mka-on:not([open])::details-content{content-visibility:hidden!important}
html body .mk-chat.mka-on:not([open]) .mk-chat-panel{animation:none!important;display:none!important}

/* Cabecera */
html body .mk-chat.mka-on .mk-chat-head{display:flex;align-items:center;gap:14px;background:#111!important;color:#fff!important;padding:16px 18px!important}
html body .mk-chat.mka-on .mk-chat-head .mka-av{width:56px!important;height:56px!important;border-radius:50%;object-fit:cover;border:2px solid #C9E4D7!important;background:#C9E4D7;flex:none}
html body .mk-chat.mka-on .mka-head-txt{flex:1;min-width:0}
html body .mk-chat.mka-on .mk-chat-head .mka-title{display:block;font-size:24px!important;line-height:1.1;color:#fff;letter-spacing:.01em!important}
html body .mk-chat.mka-on .mk-chat-head small{display:block;font-size:14px!important;color:#C9E4D7!important;margin-top:4px}
html body .mk-chat.mka-on .mk-chat-head small::before{display:none!important}
html body .mk-chat.mka-on .mka-close{appearance:none;background:transparent!important;border:0!important;color:#fff!important;font-size:34px!important;line-height:1!important;padding:0 4px!important;cursor:pointer;opacity:.95;box-shadow:none!important;min-height:0!important}
html body .mk-chat.mka-on .mka-close:hover{color:#C9E4D7!important}

/* Conversación */
html body .mk-chat.mka-on .mk-chat-body{background:#FAFAF8;padding:18px 18px 10px!important;min-height:260px;max-height:min(50vh,440px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
html body .mk-chat.mka-on .mka-msg{max-width:88%;padding:14px 18px;border-radius:20px;font-size:15.5px;line-height:1.5;margin:0;border:0}
html body .mk-chat.mka-on .mka-bot{align-self:flex-start;background:#EFEFEC;color:#1E1C1A}
html body .mk-chat.mka-on .mka-bot a{color:#1E1C1A;text-decoration:underline;text-decoration-color:#8FD3B3;text-underline-offset:2px}
html body .mk-chat.mka-on .mka-me{align-self:flex-end;background:#1E1C1A;color:#fff;border-bottom-right-radius:6px}
html body .mk-chat.mka-on .mka-choices{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 6px}
html body .mk-chat.mka-on .mka-chip{appearance:none;display:inline-block;border:1px solid #D7E5DE!important;background:#fff!important;color:#1E1C1A!important;font-family:inherit!important;font-size:15px!important;font-weight:400!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important;min-height:0!important;width:auto;padding:11px 15px!important;border-radius:16px!important;cursor:pointer;text-decoration:none!important;text-align:left;transition:background .2s,border-color .2s,transform .15s}
html body .mk-chat.mka-on .mka-chip:hover:not(:disabled){background:#EEF6F2!important;border-color:#8FD3B3!important;transform:translateY(-1px)}
html body .mk-chat.mka-on .mka-chip:disabled{opacity:.4;cursor:default;transform:none}
html body .mk-chat.mka-on .mka-chip.is-picked{opacity:1;background:#1E1C1A!important;border-color:#1E1C1A!important;color:#fff!important}
html body .mk-chat.mka-on .mka-chip-main{background:#C9E4D7!important;border-color:#C9E4D7!important}
html body .mk-chat.mka-on .mka-chip-link:after{content:" →"}

/* Formulario de contacto */
html body .mk-chat.mka-on .mka-form{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #E5ECE8;border-radius:18px;padding:12px}
html body .mk-chat.mka-on .mka-form input[type=text],html body .mk-chat.mka-on .mka-form input[type=tel],html body .mk-chat.mka-on .mka-form input[type=email]{width:100%;box-sizing:border-box;border:1px solid #DCD7D1!important;border-radius:12px!important;padding:11px 13px!important;font:inherit;font-size:15px!important;background:#FBFAF8!important;color:#1E1C1A!important;min-height:0;box-shadow:none!important}
html body .mk-chat.mka-on .mka-form input:focus{outline:2px solid #8FD3B3;outline-offset:0;border-color:#8FD3B3!important}
html body .mk-chat.mka-on .mka-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
html body .mk-chat.mka-on .mka-check{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.4;color:#4a4744;margin:0}
html body .mk-chat.mka-on .mka-check input{margin-top:2px;accent-color:#1E1C1A;flex-shrink:0}
html body .mk-chat.mka-on .mka-check a{color:#1E1C1A;text-decoration:underline}
html body .mk-chat.mka-on .mka-err{color:#B4442E;font-size:13px;margin:0}
html body .mk-chat.mka-on .mka-err:empty{display:none}
html body .mk-chat.mka-on .mka-send{align-self:stretch;text-align:center;background:#1E1C1A!important;border-color:#1E1C1A!important;color:#fff!important;font-weight:600!important;padding:13px 14px!important}
html body .mk-chat.mka-on .mka-send:hover{background:#3a3633!important}
html body .mk-chat.mka-on .mka-skip{font-size:13px;color:#6b6661;text-decoration:underline;align-self:center;margin:2px 0 4px}

/* Caja de texto */
html body .mk-chat.mka-on .mka-input{display:flex;gap:10px;align-items:center;padding:14px 16px 16px;border-top:1px solid #EEEEEB;background:#fff;margin:0}
html body .mk-chat.mka-on .mka-input input{flex:1;min-width:0;height:52px;border:1px solid #DDDDD8!important;border-radius:999px!important;padding:0 20px!important;font:inherit;font-size:16px!important;background:#fff!important;color:#1E1C1A!important;box-shadow:none!important}
html body .mk-chat.mka-on .mka-input input:focus{outline:2px solid #8FD3B3;outline-offset:0;border-color:#8FD3B3!important}
html body .mk-chat.mka-on .mka-input button{flex:none;width:52px;height:52px;border-radius:50%!important;border:0!important;background:#C9E4D7!important;color:#111!important;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0!important;box-shadow:none!important;min-height:0!important}
html body .mk-chat.mka-on .mka-input button:hover{background:#8FD3B3!important}
html body .mk-chat.mka-on .mk-chat-go{display:none!important}

/* Móvil */
@media (max-width:767px){
  html body .mk-chat.mka-on{right:12px!important;bottom:12px!important}
  html body .mk-chat.mka-on summary,html body .mk-chat.mka-on[open] summary{padding:5px 18px 5px 5px!important;gap:10px}
  html body .mk-chat.mka-on summary>.mk-chat-av,html body .mk-chat.mka-on[open] summary>.mk-chat-av{width:46px!important;height:46px!important}
  html body .mk-chat.mka-on .mka-pill{font-size:15px}
  html body .mk-chat.mka-on .mka-pill .mka-name{font-size:16px}
  html body .mk-chat.mka-on .mk-chat-panel,html body .mk-chat.mka-on[open] .mk-chat-panel{width:calc(100vw - 24px)!important;max-width:none!important;bottom:calc(100% + 10px)!important}
  html body .mk-chat.mka-on .mk-chat-body{min-height:200px;max-height:46vh}
  html body .mk-chat.mka-on .mk-chat-head{padding:12px 14px!important}
  html body .mk-chat.mka-on .mk-chat-head .mka-av{width:46px!important;height:46px!important}
  html body .mk-chat.mka-on .mk-chat-head .mka-title{font-size:21px!important}
  html body .mk-chat.mka-on .mk-chat-head small{font-size:13px!important}
  html body .mk-chat.mka-on .mka-msg{font-size:15px}
  html body .mk-chat.mka-on .mka-chip{font-size:14px!important;padding:10px 13px!important}
  html body .mk-chat.mka-on .mka-input{padding:10px 12px 12px}
  html body .mk-chat.mka-on .mka-input input,html body .mk-chat.mka-on .mka-input button{height:46px}
  html body .mk-chat.mka-on .mka-input button{width:46px}
}
@media (prefers-reduced-motion:reduce){html body .mk-chat.mka-on .mka-chip,html body .mk-chat.mka-on summary{transition:none}html body .mk-chat.mka-on .mk-chat-body{scroll-behavior:auto}}

/* WhatsApp: cara de Julia dentro, icono redondo fuera */
html body .mk-chat.mka-on .mka-chip-wa{display:inline-flex!important;align-items:center;gap:8px;background:#25D366!important;border-color:#25D366!important;color:#fff!important;font-weight:600!important}
html body .mk-chat.mka-on .mka-chip-wa:hover{background:#1EBE5A!important;border-color:#1EBE5A!important}
html body .mk-chat.mka-on .mka-chip-wa svg{flex:none}
html body .mk-chat.mka-on .mka-wa-face{width:28px;height:28px;border-radius:50%;object-fit:contain;flex:none;display:block}
html body .mka-wa-fab{position:fixed;right:26px;bottom:100px;z-index:9998;width:60px;height:60px;border-radius:50%;background:#25D366;color:#fff!important;display:flex;align-items:center;justify-content:center;text-decoration:none!important;box-shadow:0 12px 28px -10px rgba(30,28,26,.5);transition:transform .25s,opacity .2s;cursor:pointer}
html body .mka-wa-fab:hover{transform:scale(1.07)}
html.mka-open body .mka-wa-fab{opacity:0;pointer-events:none;transform:scale(.8)}
/* Ventanita WhatsApp */
html body .mka-wa-pop{position:fixed;right:22px;bottom:186px;z-index:10000;width:340px;max-width:calc(100vw - 24px);background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 28px 60px -20px rgba(30,28,26,.5);font-family:Questrial,system-ui,sans-serif;opacity:0;visibility:hidden;transform:translateY(12px) scale(.97);transform-origin:100% 100%;transition:opacity .25s,transform .25s,visibility 0s .25s}
html body .mka-wa-pop.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .25s,transform .25s}
html body .mka-wa-head{display:flex;align-items:center;gap:12px;background:#075E54;color:#fff;padding:12px 14px}
html body .mka-wa-head img{width:44px;height:44px;border-radius:50%;background:#DDEEE6;object-fit:contain;flex:none}
html body .mka-wa-head div{flex:1;min-width:0}
html body .mka-wa-head strong{display:block;font-size:16px;font-weight:700}
html body .mka-wa-head small{display:block;font-size:12.5px;opacity:.85;margin-top:2px}
html body .mka-wa-x{appearance:none;background:none!important;border:0!important;color:#fff!important;font-size:30px!important;line-height:1!important;padding:0 4px!important;cursor:pointer;box-shadow:none!important;min-height:0!important}
html body .mka-wa-body{background:#ECE5DD;padding:18px 14px 22px;min-height:120px}
html body .mka-wa-bubble{position:relative;background:#fff;color:#1E1C1A;border-radius:0 12px 12px 12px;padding:9px 12px 18px;font-size:15px;line-height:1.45;max-width:88%;box-shadow:0 1px 1px rgba(0,0,0,.12)}
html body .mka-wa-bubble b{display:block;color:#075E54;font-size:13px;margin-bottom:2px}
html body .mka-wa-time{position:absolute;right:10px;bottom:4px;font-size:11px;color:#8a8a8a}
html body .mka-wa-form{display:flex;gap:8px;align-items:center;padding:10px 12px;background:#F0F0F0;margin:0}
html body .mka-wa-form input{flex:1;min-width:0;height:44px;border:0!important;border-radius:999px!important;padding:0 16px!important;font:inherit;font-size:15px!important;background:#fff!important;color:#1E1C1A!important;box-shadow:none!important}
html body .mka-wa-form input:focus{outline:2px solid #25D366;outline-offset:0}
html body .mka-wa-form button{flex:none;width:44px;height:44px;border-radius:50%!important;border:0!important;background:#25D366!important;color:#fff!important;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0!important;box-shadow:none!important;min-height:0!important}
html body .mka-wa-open{display:flex;align-items:center;justify-content:center;gap:8px;background:#25D366;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:700;padding:12px}
html body .mka-wa-open:hover{background:#1EBE5A}
@media (max-width:767px){html body .mka-wa-fab{right:16px;bottom:76px;width:54px;height:54px}html body .mka-wa-fab svg{width:29px;height:29px}html body .mka-wa-pop{right:12px;bottom:146px}}


/* Mensajito de bienvenida */
html body .mka-teaser{position:fixed;right:22px;bottom:104px;z-index:9999;max-width:240px;background:#fff;color:#1E1C1A;border-radius:18px 18px 4px 18px;padding:14px 34px 14px 16px;box-shadow:0 18px 40px -16px rgba(30,28,26,.45);font-family:Questrial,system-ui,sans-serif;cursor:pointer;opacity:0;transform:translateY(10px) scale(.96);transform-origin:100% 100%;transition:opacity .35s,transform .35s}
html body .mka-teaser.is-on{opacity:1;transform:none}
html body .mka-teaser p{margin:0!important;font-size:15px;line-height:1.4}
html body .mka-teaser .mka-name{white-space:nowrap}html body .mka-teaser .mka-name b{font-weight:800}html body .mka-teaser .mka-name i{font-style:normal;font-weight:800;color:#4E9E7B}
html body .mka-teaser-x{position:absolute;top:6px;right:8px;appearance:none;background:none!important;border:0!important;color:#9a948e!important;font-size:20px!important;line-height:1!important;padding:2px!important;cursor:pointer;box-shadow:none!important;min-height:0!important}
html body .mka-teaser-x:hover{color:#1E1C1A!important}
@media (max-width:767px){html body .mka-teaser{right:12px;bottom:76px;max-width:205px;padding:12px 30px 12px 14px}html body .mka-teaser p{font-size:14px}}
@media (prefers-reduced-motion:reduce){html body .mka-teaser{transition:none}}

html body .mka-wa-pop .mka-wa-form button{border-radius:50%!important;width:44px!important;height:44px!important}

/* JULia ia v2 */
html body .mka-name b{font-weight:500!important}
html body .mka-name i,html body .mk-chat .mka-name i,html body .mk-chat .mka-msg .mka-name i,html body .mk-chat.mka-on .mka-pill .mka-name i,html body .mka-teaser .mka-name i{font-style:normal!important;font-weight:900!important;font-size:1.2em!important;color:#1E1C1A!important;letter-spacing:0;margin-left:.16em}
html body .mk-chat.mka-on .mk-chat-head .mka-name i{color:#fff!important}
/* fin ia v2 */

/* chat mas grande escritorio */
@media (min-width:768px){
  html body .mk-chat.mka-on .mk-chat-panel,html body .mk-chat.mka-on[open] .mk-chat-panel{width:450px!important}
  html body .mk-chat.mka-on .mk-chat-body{min-height:320px;max-height:min(calc(100vh - 340px),560px)}
}
/* fin */
