/* Marea 1.3 — conversation-first layout. All component rules are scoped. */
.bavcg{--sea:#155c58;--deep:#173c39;--ink:#203e3c;--muted:#627471;--line:#dce5df;position:fixed;bottom:18px;z-index:99990;font:15px/1.55 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);max-width:calc(100vw - 24px);text-align:left;-webkit-font-smoothing:antialiased}
.bavcg *{box-sizing:border-box}.bavcg [hidden]{display:none!important}.bavcg-left{left:12px}.bavcg-right{right:12px}.bavcg button,.bavcg a,.bavcg textarea,.bavcg summary{font-family:inherit!important;letter-spacing:normal;text-transform:none;line-height:1.5}.bavcg button,.bavcg a,.bavcg summary{cursor:pointer;-webkit-tap-highlight-color:transparent}.bavcg button:focus-visible,.bavcg a:focus-visible,.bavcg summary:focus-visible{outline:3px solid #986e2d!important;outline-offset:3px}.bavcg button:disabled{cursor:default;opacity:.38}.bavcg button{box-shadow:none;white-space:normal}
.bavcg-panel{position:relative;isolation:isolate;display:flex;flex-direction:column;width:400px;max-width:100%;height:min(700px,calc(100dvh - 100px));border:1px solid #dce5df;border-radius:26px;overflow:hidden;background:#fafbf8;box-shadow:0 24px 70px #173c3921;margin-bottom:12px}
.bavcg .bavcg-head{display:flex;align-items:center;gap:10px;padding:16px 20px;background:#fafbf8;border-bottom:1px solid #e6ebe5;flex-shrink:0}.bavcg-titles{flex:1;min-width:0}.bavcg .bavcg-head strong{display:block;color:var(--ink);font-size:18px;line-height:1.2;font-weight:650;letter-spacing:-.4px}.bavcg-head small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.bavcg-avatar{position:relative;display:block;width:34px;height:34px;border-radius:50%;background:var(--sea);flex-shrink:0}.bavcg-avatar:before,.bavcg-avatar:after{content:'';position:absolute;left:8px;width:19px;height:10px;border:2px solid #d9eee3;border-top:0;border-left:0;border-radius:0 0 14px 0;transform:rotate(12deg)}.bavcg-avatar:before{top:7px}.bavcg-avatar:after{top:14px}
.bavcg .bavcg-reset,.bavcg .bavcg-close{border:1px solid #dce5df!important;background:transparent!important;color:var(--sea)!important;display:grid;place-items:center;border-radius:50%!important;padding:0!important;width:38px;height:38px;font-size:22px!important;min-width:38px}.bavcg .bavcg-reset:hover{background:#eaf1eb!important}
.bavcg-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px;background:radial-gradient(ellipse at 50% 30%,#eaf1e7 0,transparent 65%),#fafbf8;scrollbar-width:thin;scrollbar-color:#c4d3c9 transparent}.bavcg[data-state="welcome"] .bavcg-body{display:flex;align-items:center;justify-content:center}.bavcg-intro{width:100%;text-align:center;padding:8px 0 16px}.bavcg-emblem{position:relative;width:60px;height:60px;margin:0 auto 18px;background:linear-gradient(135deg,#699989,#1e625d);border-radius:23px;transform:rotate(-8deg);box-shadow:0 10px 24px #1b645620,inset 0 1px 1px #ffffff60}.bavcg-emblem:before,.bavcg-emblem:after{content:'';position:absolute;width:32px;height:16px;left:15px;border:3px solid #eef5e7;border-left:0;border-top:0;border-radius:0 0 22px 0;transform:rotate(16deg)}.bavcg-emblem:before{top:12px}.bavcg-emblem:after{top:25px}.bavcg-eyebrow{display:block;font-size:9px;font-weight:600;letter-spacing:1.9px;color:#5c7870;margin-bottom:12px}
.bavcg .bavcg-hero-title{font-family:inherit!important;font-size:32px!important;line-height:1.13!important;font-weight:500!important;letter-spacing:-1.4px!important;color:var(--deep)!important;white-space:pre-line;margin:0 0 14px!important;padding:0!important}.bavcg .bavcg-hero-sub{font-size:13px;line-height:1.6;color:var(--muted);margin:0 auto 23px;max-width:310px;padding:0}.bavcg-starters{display:grid;grid-template-columns:1fr;gap:8px;text-align:left;max-width:620px;margin:0 auto}.bavcg .bavcg-starter{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid #d9e3d9!important;border-radius:14px!important;background:#ffffffab!important;color:var(--ink)!important;padding:12px 14px!important;min-height:48px;transition:background .15s,transform .15s,border-color .15s}.bavcg .bavcg-starter:hover{background:#fff!important;border-color:#99b4a9!important;transform:translateY(-2px)}.bavcg-card-icon{color:#407769;font-size:22px;width:23px;flex-shrink:0;line-height:1}.bavcg-card-label{flex:1;font-size:12px;line-height:1.4;font-weight:500}.bavcg-card-arrow{font-size:15px;color:#638277}
.bavcg-log{display:flex;flex-direction:column;gap:22px;max-width:760px;margin:0 auto}.bavcg[data-state="welcome"] .bavcg-log{display:none}.bavcg[data-state="chat"] .bavcg-intro{display:none}.bavcg-message{max-width:92%;padding:14px 16px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.bavcg-reply{align-self:flex-start;background:transparent;border:0;border-radius:0;padding:4px 0}.bavcg-user{align-self:flex-end;color:var(--deep);background:#e3ede4;border:1px solid #dbe5dc;border-bottom-right-radius:5px}.bavcg-sender{display:block;font-size:10px;font-weight:650;margin-bottom:7px;color:#526d61}.bavcg-user .bavcg-sender{display:none}
.bavcg-footer{position:relative;z-index:2;padding:12px 16px 14px;background:#fafbf8;flex-shrink:0}.bavcg-composer{display:flex;align-items:flex-end;gap:8px;border:1px solid #cad7cd;border-radius:22px;padding:9px;background:#fff;margin:0;box-shadow:0 5px 20px #203e3c08;transition:box-shadow .15s}.bavcg-composer:focus-within{outline:2px solid #5b8e7f;outline-offset:2px;box-shadow:0 7px 25px #203e3c0c}.bavcg textarea.bavcg-input{display:block;flex:1;min-width:0;width:100%;min-height:48px;height:48px;max-height:90px;resize:none;border:0!important;border-radius:12px;padding:12px 8px!important;background:#fff!important;color:var(--ink)!important;box-shadow:none!important;outline:none!important;font-size:16px!important;line-height:1.5!important;margin:0!important}.bavcg-input::placeholder{color:#7a8982;opacity:1}.bavcg .bavcg-send{display:grid;place-items:center;flex-shrink:0;border:0!important;background:var(--sea)!important;color:white!important;border-radius:50%!important;width:44px;min-width:44px;height:44px;padding:0!important;font-size:23px!important;margin:0 0 2px!important}
.bavcg-actions{display:flex;align-items:center;justify-content:center;gap:9px;padding:13px 0 6px}.bavcg-actions a{display:flex;align-items:center;justify-content:center;flex:initial;border:0!important;border-radius:24px;padding:8px 13px!important;text-decoration:none!important;font-size:11px!important;font-weight:550;line-height:1.4;color:var(--muted)!important;background:transparent!important;min-height:36px;white-space:nowrap}.bavcg-actions .bavcg-primary{color:var(--sea)!important;background:#eaf0e7!important}.bavcg-actions a:hover{background:#e5ece2!important}
.bavcg-footline{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:center;justify-content:center}.bavcg-faqs{margin:0}.bavcg-faqs summary{color:#5f7269;font-size:10px;padding:5px 0;min-height:28px}.bavcg-options{position:absolute;bottom:calc(100% - 8px);left:12px;right:12px;display:grid;gap:7px;max-height:230px;overflow:auto;padding:14px;background:#fff;border:1px solid #d9e3d9;border-radius:18px;box-shadow:0 -8px 40px #203e3c14;z-index:4}.bavcg .bavcg-option,.bavcg .bavcg-chip{border:1px solid var(--line)!important;border-radius:12px!important;padding:10px 12px!important;background:#f7faf5!important;color:var(--sea)!important;text-align:left;white-space:normal;font-size:12px!important;min-height:44px}.bavcg .bavcg-option:hover,.bavcg .bavcg-chip:hover{background:#e6f0e4!important}.bavcg-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;white-space:normal}.bavcg .bavcg-note{font-size:9px;color:#65766e;margin:0;line-height:1.4}.bavcg-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bavcg .bavcg-launch{border:0!important;border-radius:30px!important;padding:14px 20px!important;background:var(--sea)!important;color:white!important;font-weight:600;min-height:48px;box-shadow:0 6px 24px #173c3920}.bavcg-inline{position:relative;bottom:auto;left:auto;right:auto;z-index:1;width:100%;max-width:1000px;margin:16px auto}.bavcg-inline .bavcg-panel{width:100%;height:740px;max-height:900px;margin:0;border-radius:28px;box-shadow:0 12px 55px #173c390a}.bavcg-inline .bavcg-head{padding:18px 28px}.bavcg-inline .bavcg-head small{font-size:11px}.bavcg-inline .bavcg-body{padding:24px 36px}.bavcg-inline .bavcg-hero-title{font-size:48px!important;letter-spacing:-2.2px!important}.bavcg-inline .bavcg-hero-sub{font-size:15px;max-width:410px;margin-bottom:30px}.bavcg-inline .bavcg-emblem{width:64px;height:64px;margin-bottom:22px}.bavcg-inline .bavcg-starters{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.bavcg-inline .bavcg-starter{display:grid;grid-template-columns:1fr auto;gap:15px;padding:17px!important;align-content:start;min-height:104px}.bavcg-inline .bavcg-card-label{grid-column:1/-1;grid-row:2}.bavcg-inline .bavcg-card-arrow{grid-column:2;grid-row:1}.bavcg-inline .bavcg-message{max-width:85%;font-size:15px}.bavcg-inline .bavcg-footer{width:100%;max-width:800px;align-self:center;padding:12px 28px 20px}.bavcg-inline .bavcg-input{height:54px}.bavcg-inline .bavcg-options{left:28px;right:28px;grid-template-columns:repeat(2,minmax(0,1fr))}
/* Hide the duplicate Joinchat launcher only where the embedded Marea is present. */
body.bavcg-page .joinchat{display:none!important}
@media(max-width:600px){.bavcg{bottom:max(12px,env(safe-area-inset-bottom))}.bavcg-inline{bottom:auto;margin:0;max-width:100%}.bavcg-inline .bavcg-panel{height:720px;height:clamp(600px,calc(100svh - 24px),780px);max-height:none;border-radius:22px}.bavcg-inline .bavcg-head{padding:14px 17px}.bavcg-inline .bavcg-head strong{font-size:18px}.bavcg-inline .bavcg-body{padding:20px}.bavcg-inline .bavcg-hero-title{font-size:35px!important;letter-spacing:-1.4px!important}.bavcg-inline .bavcg-hero-sub{font-size:13px;max-width:270px;margin-bottom:22px}.bavcg-inline .bavcg-emblem{width:56px;height:56px;border-radius:20px;margin-bottom:17px}.bavcg-inline .bavcg-starters{grid-template-columns:1fr;gap:7px}.bavcg-inline .bavcg-starter{display:flex;min-height:46px;padding:10px 13px!important;gap:9px}.bavcg-inline .bavcg-card-label{font-size:12px}.bavcg-inline .bavcg-card-icon{font-size:21px}.bavcg-inline .bavcg-message{max-width:94%;font-size:14px}.bavcg-inline .bavcg-footer{padding:8px 13px 12px}.bavcg-inline .bavcg-options{left:13px;right:13px;grid-template-columns:1fr}.bavcg .bavcg-actions{gap:4px;padding:9px 0 3px}.bavcg .bavcg-actions a{font-size:10px!important;padding:7px 10px!important}.bavcg-eyebrow{font-size:8px;letter-spacing:1.5px}.bavcg-intro{padding:2px 0}.bavcg .bavcg-note{font-size:8px}}
@media(prefers-reduced-motion:reduce){.bavcg *{transition:none!important;scroll-behavior:auto!important}}
/* 1.4 — Marea's original identity, subtle motion and expanded conversation. */
.bavcg .bavcg-with-image{background:none!important;box-shadow:none!important;border:0!important;transform:none;overflow:visible}
.bavcg .bavcg-with-image:before,.bavcg .bavcg-with-image:after{display:none}
.bavcg img.bavcg-mascot{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;border:0;border-radius:0;box-shadow:none;animation:bavcg-float 5s ease-in-out infinite;transform-origin:50% 70%}
.bavcg .bavcg-avatar.bavcg-with-image{width:46px;height:46px}.bavcg .bavcg-emblem.bavcg-with-image{width:112px;height:112px;margin:0 auto 10px}
.bavcg .bavcg-avatar .bavcg-mascot{animation-duration:6s}
@keyframes bavcg-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
.bavcg .bavcg-footer{padding-top:7px;padding-bottom:8px}.bavcg .bavcg-composer{border-radius:18px;padding:5px 7px;align-items:center}.bavcg textarea.bavcg-input{height:44px!important;min-height:44px;max-height:72px;padding:10px 8px!important}.bavcg .bavcg-send{margin:0!important;width:40px;min-width:40px;height:40px}.bavcg .bavcg-footline{gap:0 12px;min-height:30px}.bavcg .bavcg-actions{padding:2px 0;gap:4px}.bavcg .bavcg-actions a{padding:6px 10px!important;min-height:32px}.bavcg .bavcg-note{font-size:8px}.bavcg .bavcg-log{max-width:100%;gap:20px}.bavcg .bavcg-message{max-width:96%}.bavcg .bavcg-reply{width:100%;max-width:100%;line-height:1.75;padding:0 4px}.bavcg .bavcg-user{max-width:84%}.bavcg .bavcg-body{padding:18px 24px}.bavcg[data-state="chat"] .bavcg-note{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
html:has(body.bavcg-standalone){margin-top:0!important;overflow:hidden!important}
body.bavcg-standalone{margin:0!important;padding:0!important;background:#fafbf8!important;overflow:hidden!important;min-height:0!important}
body.bavcg-standalone>main{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
body.bavcg-standalone .bavcg-embed{margin:0;padding:0;width:100%}
body.bavcg-standalone .bavcg-inline{position:fixed;top:var(--bavcg-vtop,0px);left:0;right:0;bottom:auto;width:100%;max-width:none;margin:0!important;height:var(--bavcg-vh,100dvh);z-index:99990;background:#fafbf8}
body.bavcg-standalone .bavcg-panel{width:100%;max-width:1180px;height:100%!important;max-height:none;border:0;border-radius:0!important;box-shadow:none;margin:0 auto}
body.bavcg-standalone .bavcg-head{padding:10px 24px;padding-top:max(10px,env(safe-area-inset-top));background:#fafbf8}
body.bavcg-standalone .bavcg-footer{max-width:1100px;padding-bottom:max(6px,env(safe-area-inset-bottom))}
body.bavcg-standalone .bavcg-body{padding:20px 34px}
body.bavcg-standalone .bavcg-loading{padding:30px;text-align:center}
body.bavcg-standalone #wpadminbar,body.bavcg-standalone .joinchat{display:none!important}
@media(max-width:600px){.bavcg .bavcg-emblem.bavcg-with-image{width:96px;height:96px;margin-bottom:8px}.bavcg .bavcg-body{padding:16px}.bavcg .bavcg-footline{gap:0 6px}.bavcg .bavcg-actions a{font-size:10px!important;padding:6px 8px!important}.bavcg .bavcg-faqs summary{font-size:9px}.bavcg .bavcg-note{flex-basis:100%;text-align:center}.bavcg .bavcg-reply{font-size:15px!important;line-height:1.7}.bavcg .bavcg-message{max-width:100%}.bavcg .bavcg-user{max-width:90%}body.bavcg-standalone .bavcg-head{padding:8px 14px;padding-top:max(8px,env(safe-area-inset-top))}body.bavcg-standalone .bavcg-body{padding:16px 18px}body.bavcg-standalone .bavcg-footer{padding:6px 10px max(6px,env(safe-area-inset-bottom))}}
@media(max-height:640px){.bavcg[data-state="welcome"] .bavcg-body{align-items:flex-start}.bavcg .bavcg-emblem.bavcg-with-image{width:60px;height:60px}.bavcg .bavcg-hero-title{font-size:28px!important}.bavcg .bavcg-hero-sub{margin-bottom:12px}.bavcg .bavcg-head{padding-top:6px;padding-bottom:6px}}
@media(prefers-reduced-motion:reduce){.bavcg img.bavcg-mascot{animation:none!important;transform:none!important}}

/* Marea 1.6 — sugerencias de escritura */
.bavcg-live-suggestions{position:absolute;left:16px;right:16px;bottom:calc(100% - 10px);z-index:12;display:grid;gap:5px;padding:8px;background:#fff;border:1px solid #d9e3d9;border-radius:16px;box-shadow:0 -10px 35px #203e3c1c;max-height:270px;overflow:auto}
.bavcg-live-suggestions[hidden]{display:none!important}
.bavcg .bavcg-live-option{width:100%;border:0!important;border-radius:10px!important;padding:10px 12px!important;background:#fff!important;color:var(--sea)!important;text-align:left!important;font-size:12px!important;line-height:1.35!important;min-height:40px!important;margin:0!important}
.bavcg .bavcg-live-option:hover,.bavcg .bavcg-live-option:focus{background:#edf4ed!important;outline:1px solid #cad7cd}
.bavcg-inline .bavcg-live-suggestions{left:28px;right:28px}
@media(max-width:600px){.bavcg-live-suggestions,.bavcg-inline .bavcg-live-suggestions{left:10px;right:10px;max-height:230px}.bavcg .bavcg-live-option{font-size:12px!important;padding:9px 10px!important}}

/* Marea 2.0 — respuestas enriquecidas */
.bavcg-content p{margin:.35em 0}.bavcg-content ul,.bavcg-content ol{margin:.45em 0 .45em 1.15em}.bavcg-content strong{font-weight:750}.bavcg-content a{color:inherit;text-decoration:underline}.bavcg-answer-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.bavcg-answer-image{display:block;border-radius:12px;overflow:hidden}.bavcg-answer-image img{display:block;width:100%;height:145px;object-fit:cover}.bavcg-answer-gallery .bavcg-answer-image:only-child{grid-column:1/-1}.bavcg-answer-gallery .bavcg-answer-image:only-child img{height:auto;max-height:280px}

/* Marea 2.0.2 — lectura compacta y acciones contextuales */
.bavcg .bavcg-content{line-height:1.52!important}
.bavcg .bavcg-content>p{margin:0 0 9px!important;padding:0!important}
.bavcg .bavcg-content>p:last-child{margin-bottom:0!important}
.bavcg .bavcg-content p:empty{display:none!important}
.bavcg .bavcg-content br+br{display:none!important}
.bavcg .bavcg-content ul,.bavcg .bavcg-content ol{margin:7px 0 10px 20px!important;padding:0!important}
.bavcg .bavcg-content li{margin:3px 0!important;padding:0!important;line-height:1.45!important}
.bavcg .bavcg-content h2,.bavcg .bavcg-content h3,.bavcg .bavcg-content h4{margin:10px 0 6px!important;line-height:1.25!important}
.bavcg .bavcg-content a{color:#0f5d59!important;text-decoration:underline;text-underline-offset:2px;font-weight:650}
.bavcg .bavcg-content img{max-width:100%;height:auto;border-radius:14px}
.bavcg-response-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(15,61,62,.09)}
.bavcg .bavcg-response-btn{appearance:none;border:1px solid #cddbd2!important;background:#f5f9f4!important;color:#174b48!important;border-radius:999px!important;padding:8px 12px!important;min-height:36px!important;font-size:11px!important;font-weight:650!important;line-height:1.2!important;text-decoration:none!important;cursor:pointer;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;width:auto!important;margin:0!important}
.bavcg .bavcg-response-btn:hover,.bavcg .bavcg-response-btn:focus{background:#e7f0e7!important;border-color:#aac3b3!important;outline:none}
.bavcg .bavcg-response-link:first-child{background:#174b48!important;color:#fff!important;border-color:#174b48!important}
@media(max-width:600px){.bavcg .bavcg-content{line-height:1.48!important}.bavcg .bavcg-content>p{margin-bottom:7px!important}.bavcg-response-actions{gap:6px;margin-top:10px;padding-top:8px}.bavcg .bavcg-response-btn{font-size:10.5px!important;padding:8px 10px!important;min-height:34px!important}.bavcg-answer-image img{height:120px}}
