/* R10. Patrón: Intercom Messenger (identidad y composer), Crisp (continuidad humana), Drift (handoff).
   Referencias públicas: developers.intercom.com/installing-intercom/web/customization;
   crisp.chat/en/livechat; help.salesloft.com/s/article/Conversation-View;
   shadcn.io/ai (Conversation / Suggestion / Prompt input); v0.dev/t/hM0pmmoMNJK.
   Sistema Canarias Pro: Manrope, Barlow Condensed, naranja, tinta y blanco cálido. */
.cpro-chat-launch{position:fixed;z-index:900;right:24px;bottom:max(24px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;gap:10px;height:60px;min-width:60px;padding:0 20px;border:1px solid #252728;border-radius:22px;background:#252728;color:#fff;box-shadow:0 8px 28px #25272824;font:600 15px/1.3 Manrope,Arial,sans-serif;cursor:pointer;transition:transform .18s,box-shadow .18s}
.cpro-chat-launch svg{width:25px;height:25px}.cpro-chat-launch:hover{transform:translateY(-2px);box-shadow:0 12px 32px #25272832}.cpro-chat-launch[hidden],.cpro-chat-greeting[hidden],.cpro-chat [hidden]{display:none!important}
.cpro-chat-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cpro-chat-is-open{overflow:hidden}.cpro-chat[open]{position:fixed;inset:auto 24px 24px auto;width:440px;max-width:calc(100vw - 32px);height:min(760px,calc(100dvh - 48px));max-height:none;display:flex;flex-direction:column;padding:0;margin:0;border:1px solid #deded6;border-radius:24px;background:#fff;color:#252728;box-shadow:0 24px 90px #181a1c40;font:400 16px/1.55 Manrope,Arial,sans-serif;overflow:hidden}.cpro-chat::backdrop{background:#171a2029;backdrop-filter:blur(3px)}
.cpro-chat *,.cpro-chat-greeting *{box-sizing:border-box;min-width:0}.cpro-chat button,.cpro-chat textarea,.cpro-chat a{font-family:inherit;letter-spacing:normal}.cpro-chat button{cursor:pointer}.cpro-chat a{color:#a73309;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.cpro-chat button,.cpro-chat a{-webkit-tap-highlight-color:transparent}
.cpro-chat-head{display:grid;grid-template-columns:42px minmax(0,1fr) 44px;align-items:center;column-gap:12px;row-gap:12px;flex:0 0 auto;padding:20px 22px 12px;background:#f5f5ef;border-bottom:1px solid #e4e4dc}.cpro-chat-avatar{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;background:#fff;border:1px solid #e5e5de;border-radius:15px;color:#252728}.cpro-chat-avatar svg{width:27px;height:27px;overflow:visible}.cpro-chat-eyebrow{display:block;font:700 11px/1.3 Manrope,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#5e645f;margin-bottom:3px}.cpro-chat-head h2{margin:0;font:600 27px/1.05 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:-.01em;color:#252728}.cpro-chat-identity{display:block;font-size:11px;line-height:1.5;color:#5e645f;margin-top:5px}.cpro-chat .cpro-chat-close{grid-column:3;grid-row:1;display:grid;place-items:center;width:44px;height:44px;border:1px solid #dcddd5;border-radius:50%;background:transparent;color:#252728;font:300 28px/1 Arial,sans-serif;padding:0}.cpro-chat-head>button:last-child:not(.cpro-chat-close){grid-column:1/-1;justify-self:end;min-height:44px;margin:-8px 0 -10px;padding:8px 0 8px 12px;border:0;background:transparent;color:#59615c;font:500 12px/1.4 Manrope,Arial,sans-serif;text-decoration:underline;text-underline-offset:3px}
.cpro-chat-disclosure{flex:0 0 auto;margin:0;padding:10px 22px;background:#fff;border-bottom:1px solid #eeeee8;color:#656a65;font-size:12px;line-height:1.55}.cpro-chat-messages{flex:1 1 auto;min-height:60px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cfcbc6 transparent;padding:24px 22px 12px;background:linear-gradient(180deg,#fcfcf8,white 200px)}
.cpro-chat-intro{padding:0 0 20px}.cpro-chat-intro>.cpro-chat-avatar{width:54px;height:54px;margin-bottom:16px;border-radius:18px;background:#f3f3eb}.cpro-chat-intro p{margin:0 0 10px;font:600 34px/1.05 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:-.01em;color:#252728}.cpro-chat-intro>span:last-child{display:block;font-size:15px;line-height:1.7;color:#565e58;max-width:340px}.cpro-chat-suggestions{display:grid;gap:8px;padding-bottom:12px}.cpro-chat .cpro-chat-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;text-align:left;padding:12px 14px;border:1px solid #e0e2da;border-radius:12px;background:#fff;color:#303b33;font:500 14px/1.5 Manrope,Arial,sans-serif;white-space:normal}.cpro-chat-suggestions button::after{content:'↗';color:#9b3917;font-size:18px}.cpro-chat .cpro-chat-suggestions button:hover{border-color:#b4c0b1;background:#f6f8f2}
.cpro-chat-message{max-width:94%;margin:0 0 20px}.cpro-chat-speaker{display:block;font-size:11px;font-weight:600;color:#626b64;margin:0 0 5px}.cpro-chat-message p{margin:0;padding:13px 15px;border:1px solid #e8e9e1;border-radius:3px 16px 16px 16px;background:#f3f4ed;color:#252728;font:400 15px/1.75 Manrope,Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}.cpro-chat-message--user{margin-left:auto;max-width:88%}.cpro-chat-message--user .cpro-chat-speaker{text-align:right}.cpro-chat-message--user p{background:#29382f;border-color:#29382f;color:#fff;border-radius:16px 3px 16px 16px}.cpro-chat-message--user a{color:#fff}
.cpro-chat-typing{display:flex;align-items:center;gap:5px;min-height:38px;padding:4px 0 16px;color:#616961}.cpro-chat-typing>span{width:5px;height:5px;border-radius:50%;background:#64755f;animation:cpro-chat-dot 1.4s infinite}.cpro-chat-typing>span:nth-child(2){animation-delay:.15s}.cpro-chat-typing>span:nth-child(3){animation-delay:.3s}.cpro-chat-typing small{margin-left:6px;font-size:12px}.cpro-chat-status{flex:0 0 auto;margin:0;padding:0 22px;color:#59635b;font-size:12px;line-height:1.5}.cpro-chat-status:not(:empty){padding-bottom:8px}.cpro-chat-status--error{color:#a32b16}
.cpro-chat-form{flex:0 0 auto;padding:12px 22px 8px;border-top:1px solid #eceee6;margin:0;background:#fff}.cpro-chat-label{display:block;font-size:12px;font-weight:600;color:#5b655d;margin:0 0 7px}.cpro-chat-input-row{display:flex;align-items:flex-end;gap:6px;padding:5px;border:1px solid #c9cec3;border-radius:14px;background:#fff}.cpro-chat .cpro-chat-input-row textarea{appearance:none;resize:none;display:block;width:100%;height:48px;min-height:48px;max-height:84px;margin:0;padding:11px 7px;border:0;border-radius:8px;background:#fff;color:#252728;font:400 16px/1.5 Manrope,Arial,sans-serif;box-shadow:none}.cpro-chat .cpro-chat-input-row textarea::placeholder{color:#686f67;opacity:1}.cpro-chat .cpro-chat-send{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:0;border-radius:10px;background:#c93a00;color:#fff;font:500 26px/1 Arial,sans-serif}.cpro-chat .cpro-chat-send:hover{background:#a93000}.cpro-chat-counter{display:block;text-align:right;margin-top:4px;color:#626a62;font-size:11px;line-height:1.4}
.cpro-chat-bottom{display:flex;flex-direction:column;gap:7px;align-items:stretch;flex:0 0 auto;padding:10px 22px max(18px,env(safe-area-inset-bottom));border-top:1px solid #edeee7;background:#f9faf5}.cpro-chat-bottom>span{font-size:11px;text-align:center;color:#626b63}.cpro-chat .cpro-chat-human{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 12px;border:1px solid #cdd9c8;border-radius:11px;background:#edf3e9;color:#284e32;text-decoration:none;font-size:13px;font-weight:700;line-height:1.45;white-space:normal}.cpro-chat-human svg{width:23px;height:23px;flex:0 0 23px;margin-right:-2px}.cpro-chat .cpro-chat-human:hover{background:#e1ebda;border-color:#8faa85}.cpro-chat-message>.cpro-chat-human{margin-top:8px}.cpro-chat :disabled{cursor:not-allowed;opacity:.55}
.cpro-chat :focus-visible,.cpro-chat-launch:focus-visible,.cpro-chat-greeting :focus-visible,.cpro-chat-load-error:focus-visible{outline:3px solid #006a95;outline-offset:3px}.cpro-chat textarea:focus-visible{outline-offset:0}.cpro-chat-greeting{position:fixed;z-index:901;right:24px;bottom:96px;width:290px;padding:18px 45px 17px 18px;border:1px solid #dfe2d7;border-radius:18px 18px 4px 18px;background:#fff;color:#303b33;box-shadow:0 8px 32px #1d2a2020;font:400 14px/1.6 Manrope,Arial,sans-serif}.cpro-chat-greeting>button:first-child{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;min-height:44px}.cpro-chat-greeting strong{display:block;font-size:11px;color:#67715f;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.cpro-chat-greeting .cpro-chat-greeting-close{position:absolute;top:4px;right:2px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;font:400 22px/1 Arial,sans-serif;color:#4d574e;cursor:pointer}.cpro-chat-load-error{position:fixed;right:24px;bottom:100px;max-width:290px;padding:16px;background:#fff;border:1px solid #dfe2d7;border-radius:12px;color:#284e32;z-index:902;font:600 14px/1.6 Manrope,Arial,sans-serif}
@keyframes cpro-chat-dot{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
/* La identidad ya está en la cabecera: en escritorio dejamos sitio para las tres sugerencias. */
@media(min-width:601px){.cpro-chat-intro>.cpro-chat-avatar{display:none}}
@media(max-width:600px){.cpro-chat-launch{right:16px;bottom:max(16px,env(safe-area-inset-bottom));width:60px;padding:0;border-radius:22px}.cpro-chat-launch>span{display:none}.cpro-chat[open]{inset:0;width:100%;max-width:none;height:100dvh;border:0;border-radius:0}.cpro-chat-head{padding:calc(16px + env(safe-area-inset-top)) 18px 10px;grid-template-columns:40px minmax(0,1fr) 44px;column-gap:10px}.cpro-chat-head h2{font-size:25px}.cpro-chat-eyebrow{font-size:10px}.cpro-chat-identity{font-size:10px}.cpro-chat-disclosure{padding:9px 18px;font-size:11px}.cpro-chat-messages{padding:22px 18px 10px}.cpro-chat-intro p{font-size:32px}.cpro-chat-form{padding-inline:18px}.cpro-chat-bottom{padding-inline:18px}.cpro-chat-greeting{right:16px;bottom:88px;width:min(290px,calc(100vw - 32px))}.cpro-chat-status{padding-inline:18px}}
@media(max-height:650px){.cpro-chat-intro>.cpro-chat-avatar{display:none}.cpro-chat-head{row-gap:0}.cpro-chat-head>button:last-child:not(.cpro-chat-close){margin:0 0 -8px;min-height:36px}.cpro-chat-disclosure{padding-block:6px}.cpro-chat-bottom{gap:4px;padding-top:7px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.cpro-chat-bottom>span{display:none}.cpro-chat-form{padding-top:7px}.cpro-chat-intro p{font-size:29px}}
@media(prefers-reduced-motion:reduce){.cpro-chat-launch{transition:none}.cpro-chat-typing>span{animation:none;opacity:.65}}
/* En móvil, saludo y launcher comparten una fila compacta en un hueco seguro. */
@media(max-width:600px){.cpro-chat-greeting{right:88px;bottom:max(16px,env(safe-area-inset-bottom));width:calc(100vw - 104px);max-width:290px;padding:10px 34px 10px 13px;border-radius:16px 16px 4px 16px;font-size:13px;line-height:1.55}.cpro-chat-greeting strong{display:none}.cpro-chat-greeting>button:first-child{min-height:44px}.cpro-chat-greeting .cpro-chat-greeting-close{right:0;top:0}}
/* Landscape phones: one-row identity leaves the conversation and both exits reachable. */
@media(min-width:601px) and (max-height:450px){.cpro-chat[open]{inset:12px 12px 12px auto;width:min(680px,calc(100vw - 24px));height:calc(100dvh - 24px)}.cpro-chat-head{grid-template-columns:44px minmax(0,1fr) 124px 44px;gap:10px;padding:10px 18px}.cpro-chat-head .cpro-chat-close{grid-column:4;grid-row:1}.cpro-chat-head>button:last-child:not(.cpro-chat-close){grid-column:3;grid-row:1;align-self:center;min-height:44px;margin:0;padding:6px;font-size:12px}.cpro-chat-identity{display:none}.cpro-chat-head h2{font-size:24px}.cpro-chat-eyebrow{font-size:10px}.cpro-chat-disclosure{padding:6px 18px}.cpro-chat-messages{min-height:48px;padding:12px 18px 8px}.cpro-chat-form{padding:6px 18px}.cpro-chat-label{margin-bottom:4px}.cpro-chat-counter{margin-top:2px}.cpro-chat-bottom{padding:6px 18px 8px}}
/* Foco del campo de escribir (Iván, 17/10): fino y con la marca, en todo el recuadro, sin el contorno azul de 3 px. */
.cpro-chat .cpro-chat-input-row textarea:focus,.cpro-chat .cpro-chat-input-row textarea:focus-visible{outline:none}
.cpro-chat-input-row{transition:border-color .15s,box-shadow .15s}
.cpro-chat-input-row:focus-within{border-color:var(--cpro-chat-dark,#B82F00);box-shadow:0 0 0 3px #fc48001a}
/* Sobre fondos oscuros (pie) el botón se confundía con el fondo: borde claro muy fino (17/10). */
.cpro-chat-launch{border-color:#ffffff38}
.cpro-chat-intro>.cpro-chat-avatar svg{width:32px;height:32px}
