/* Chat "Dona un árbol" — usa la paleta de styles.css */
.rchat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 1200; background: var(--sunset); color: var(--white);
  border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; box-shadow: var(--shadow); }
.rchat-fab:hover { background: var(--sunset-2); }
/* Netlify inyecta su badge (iframe #nl-badge-frame, ~92px de alto) abajo a la derecha: el chat se sube encima */
:root:has(#nl-badge-frame) .rchat-fab { bottom: 104px; }
:root:has(#nl-badge-frame) .rchat-panel { bottom: 168px; height: min(560px, calc(100vh - 194px)); }
.rchat-panel { position: fixed; right: 20px; bottom: 84px; z-index: 1200; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rchat-head { display: flex; gap: 8px; align-items: center; background: var(--spruce); color: var(--white); padding: 12px 14px; }
.rchat-head b { flex: 1; font-weight: 900; text-transform: uppercase; }
.rchat-x { background: transparent; color: var(--sky); border: 0; font-size: .85rem; }
.rchat-log { flex: 1; overflow-y: auto; padding: 12px; background: var(--gray-1); display: flex; flex-direction: column; gap: 8px; }
.rchat-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; white-space: pre-line; font-size: .9rem; line-height: 1.4; }
.rchat-bot { background: var(--white); color: var(--text); align-self: flex-start; border: 1px solid var(--gray-2); }
.rchat-yo { background: var(--moss); color: var(--white); align-self: flex-end; }
.rchat-pub { display: block; margin-top: 8px; text-align: center; background: var(--spruce); color: var(--white); padding: 9px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.rchat-ops { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 0; }
.rchat-op { background: var(--sky); color: var(--spruce); border: 0; border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 700; }
.rchat-form { display: flex; gap: 6px; padding: 10px 12px; }
.rchat-form input { flex: 1; border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 9px; }
.rchat-send { background: var(--fern); color: var(--white); border: 0; border-radius: var(--radius); padding: 0 14px; font-weight: 700; }
