.petro-widget[hidden], .petro-fallback-backdrop[hidden] { display: none; }
.petro-introduction { padding-bottom: 36px; }
.petro-invite { display: flex; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.petro-invite > img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 20px; object-fit: cover; object-position: top; border: 1px solid rgba(85,227,218,.3); }
.petro-invite > div { flex: 1; }
.petro-invite strong { font-size: 1.25rem; }
.petro-invite p { margin: 4px 0 0; color: rgba(255,255,255,.7); font-size: .94rem; }
.petro-invite button { cursor: pointer; border: 0; }
.petro-launcher { position: fixed; z-index: 70; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1px solid rgba(85,227,218,.42); border-radius: 999px; background: #06263d; color: #fff; box-shadow: 0 14px 46px rgba(3,18,31,.3); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.petro-launcher:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(3,18,31,.38); }
.petro-avatar { display: block; flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: #101710; border: 2px solid #6bdfaf; }
.petro-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.petro-launcher-copy { text-align: left; }
.petro-launcher-copy strong { display: block; font-size: 1.04rem; }
.petro-launcher-copy small { display: block; color: #c3dfec; font-size: .74rem; }
.petro-chat-icon { width: 22px; height: 22px; margin-left: 4px; color: var(--aqua); }
.petro-chat-icon svg, .petro-icon-button svg, .petro-send svg { display: block; width: 100%; height: 100%; }
.petro-chat { position: fixed; inset: auto 24px calc(112px + var(--petro-keyboard-offset, 0px)) auto; margin: 0; padding: 0; width: min(440px, calc(100vw - 32px)); height: min(690px, calc(var(--petro-viewport-height, 100dvh) - 144px)); max-width: none; max-height: none; border: 1px solid #d1e2e9; border-radius: 28px; color: var(--ink); background: #f4f8fb; box-shadow: 0 32px 100px rgba(0,20,34,.36); overflow: hidden; }
.petro-chat:not([open]) { display: none; }
.petro-chat[open] { display: flex; flex-direction: column; }
.petro-chat::backdrop { background: rgba(1,16,29,.25); backdrop-filter: blur(2px); }
.petro-chat-header { flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 20px; color: #fff; background: radial-gradient(circle at 90% 0, rgba(85,227,218,.18), transparent 70%), #06283f; }
.petro-avatar-header { flex-basis: 60px; width: 60px; height: 60px; }
.petro-heading { flex: 1; }
.petro-heading h2 { margin: 0; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.04em; }
.petro-heading p { margin: 5px 0 0; color: #d1e7f0; font-size: .78rem; }
.petro-heading > span { display: block; margin-top: 6px; color: #77e6c6; font-size: .69rem; }
.petro-icon-button { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.petro-icon-button:hover { background: rgba(255,255,255,.2); }
.petro-chat-tools { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 18px; border-bottom: 1px solid #dae6ec; background: #fff; font-size: .7rem; color: #566e7e; }
.petro-chat-tools button { min-height: 44px; padding: 6px 2px; border: 0; background: none; color: #005177; text-decoration: underline; text-underline-offset: 3px; font-size: .73rem; cursor: pointer; }
.petro-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 20px 16px 12px; }
.petro-message { width: 94%; margin: 0 0 16px; padding: 16px; border-radius: 18px 18px 18px 4px; border: 1px solid #dbe7ed; background: #fff; }
.petro-message-name { display: block; color: #087459; font-size: .69rem; font-weight: 800; }
.petro-message p { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.55; }
.petro-message-user { margin-left: auto; width: fit-content; max-width: 90%; border: 0; border-radius: 18px 18px 4px 18px; background: #083d5c; color: #fff; }
.petro-message-user .petro-message-name { color: #b7e2ec; }
.petro-message-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.petro-message-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border: 1px solid #b9dcd6; border-radius: 12px; color: #07583f; background: #eaf7f1; font-size: .76rem; font-weight: 750; }
.petro-message-actions a:hover { background: #d6f1e4; }
.petro-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e1ebef; }
.petro-suggestions button { min-height: 44px; padding: 9px 11px; border: 1px solid #cbdce6; border-radius: 999px; color: #25465d; background: #f6fafc; font-size: .75rem; text-align: left; cursor: pointer; }
.petro-suggestions button:hover { border-color: #68b3a2; background: #eaf7f1; }
.petro-compose { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; border-top: 1px solid #d6e3ea; background: #fff; }
.petro-compose textarea { display: block; width: 100%; min-width: 0; height: 54px; min-height: 54px; max-height: 90px; margin: 0; padding: 13px 14px; resize: none; border: 1px solid #cbdde6; border-radius: 16px; color: #14384d; background: #f6fafc; font: inherit; font-size: 16px; line-height: 1.35; }
.petro-compose textarea::placeholder { color: #667e8e; }
.petro-send { flex: 0 0 48px; width: 48px; height: 48px; padding: 13px; border: 0; border-radius: 16px; background: #086947; color: #fff; cursor: pointer; }
.petro-send:hover { background: #045a3b; }
.petro-note { flex-shrink: 0; margin: 0; padding: 4px 18px 14px; color: #536d7d; background: #fff; text-align: center; font-size: .66rem; line-height: 1.4; }
.petro-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.petro-fallback-backdrop { position: fixed; z-index: 79; inset: 0; background: rgba(1,16,29,.25); }
.petro-fallback { z-index: 80; }
.petro-noscript { padding-bottom: 24px; font-size: .85rem; }
.petro-noscript a { text-decoration: underline; }
.petro-chat :focus-visible { outline: 3px solid #087459; outline-offset: 3px; }
.petro-chat-header :focus-visible { outline-color: var(--aqua); }
.petro-chat.petro-compact { bottom: calc(12px + var(--petro-keyboard-offset, 0px)); height: min(690px, calc(var(--petro-viewport-height, 100dvh) - 24px)); }
.petro-compact .petro-chat-header { padding: 10px 14px; }
.petro-compact .petro-avatar-header { flex-basis: 48px; width: 48px; height: 48px; }
.petro-compact .petro-heading > span { display: none; }
.petro-compact .petro-chat-tools { padding-block: 0; }
.petro-compact .petro-note { padding-bottom: 8px; }
.petro-tiny .petro-chat-header { padding: 8px 14px; }
.petro-tiny .petro-avatar-header, .petro-tiny .petro-heading p, .petro-tiny .petro-chat-tools, .petro-tiny .petro-note { display: none; }
.petro-tiny .petro-heading h2 { font-size: 1.25rem; }
.petro-tiny .petro-compose { padding-block: 8px; }
.petro-tiny .petro-compose textarea { height: 48px; min-height: 48px; }
#soluciones, #plataforma, #metodo, #contacto { scroll-margin-top: 88px; }

@media (max-width: 600px) {
  .petro-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); gap: 9px; padding: 6px 12px 6px 6px; }
  .petro-avatar { flex-basis: 48px; width: 48px; height: 48px; }
  .petro-launcher-copy small { display: none; }
  .petro-chat-icon { width: 20px; height: 20px; margin-left: 0; }
  .petro-chat { inset: auto 12px calc(12px + var(--petro-keyboard-offset, 0px)) auto; width: calc(100vw - 24px); height: min(740px, calc(var(--petro-viewport-height, 100dvh) - 24px)); border-radius: 24px; }
  .petro-chat-header { padding: 14px 16px; }
  .petro-chat-tools { padding-inline: 16px; }
  .petro-messages { padding-top: 16px; }
  .petro-note { padding-bottom: 12px; }
  .petro-invite { flex-wrap: wrap; gap: 16px; }
  .petro-invite > div { flex-basis: calc(100% - 80px); }
  .petro-invite .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .petro-launcher { transition: none; }
}
@media print {
  .petro-widget, .petro-invite { display: none !important; }
}
