/* Chat público — estilos independientes de la presentación. */
@font-face { font-family: Montserrat; src: url('../fonts/Montserrat.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/PlayfairDisplay.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
.chat-public { --petrol:#17232C; --gold:#BC913F; --ivory:#F4EBDC; --ink:#303030; --line:#d6c7ae; margin:0; min-height:100vh; background:radial-gradient(ellipse at 50% 0, #30414c, var(--petrol) 65%); color:var(--ivory); font: 1rem/1.5 Montserrat,Arial,sans-serif; }
.chat-public *, .chat-public *::before, .chat-public *::after { box-sizing:border-box; }
.chat-public [hidden] { display:none !important; }
.chat-public p,.chat-public h1 { margin:0; }
.chat-public :focus-visible { outline:3px solid #916A25; outline-offset:3px; }
.chat-brand { display:flex; align-items:center; gap:15px; width:min(100% - 32px,560px); margin:0 auto; padding:22px 0; }
.chat-brand img { width:72px; height:72px; object-fit:contain; flex-shrink:0; }
.chat-kicker { font-size:.69rem; font-weight:700; text-transform:uppercase; letter-spacing:.13em; color:#916A25; }
.chat-brand .chat-kicker { color:var(--gold); }
.chat-brand-name { font:600 clamp(1.15rem,4vw,1.55rem)/1.25 'Playfair Display',Georgia,serif; }
.chat-shell { width:min(100% - 32px,560px); margin:0 auto 24px; padding:clamp(18px,5vw,36px); background:var(--ivory); color:var(--ink); border-top:4px solid var(--gold); border-radius:14px; box-shadow:0 15px 40px #0003; }
.chat-intro { display:grid; gap:9px; margin-bottom:22px; }
.chat-intro h1 { font:700 clamp(1.9rem,6vw,2.65rem)/1.15 'Playfair Display',Georgia,serif; color:var(--petrol); }
.chat-intro > p:last-child { font-size:.94rem; }
.chat-connection { display:flex; align-items:flex-start; gap:12px; background:#fff; border:1px solid var(--line); border-radius:8px; padding:13px 15px; margin-bottom:24px; }
.chat-indicator { width:11px; height:11px; border-radius:50%; background:#807465; flex-shrink:0; margin-top:6px; }
.chat-connection[data-state="open"] .chat-indicator { background:#32785D; box-shadow:0 0 0 4px #e3f1e9; }
.chat-connection[data-state="closed"] .chat-indicator { background:#916A25; }
.chat-connection[data-state="offline"] .chat-indicator { background:#963D3D; }
.chat-connection strong { font-size:.9rem; color:var(--petrol); }
.chat-connection p { font-size:.79rem; margin-top:3px; }
.chat-form { display:grid; gap:19px; }
.chat-field { display:grid; gap:7px; min-width:0; }
.chat-field label { font-size:.9rem; font-weight:700; color:var(--petrol); }
.chat-field input,.chat-field textarea { width:100%; min-width:0; padding:12px 14px; border:1px solid #ad9d85; border-radius:7px; background:#fff; color:var(--ink); font:inherit; font-size:16px; }
.chat-field input:disabled,.chat-field textarea:disabled { background:#eee8df; color:#625d55; }
.chat-field textarea { resize:vertical; min-height:128px; }
.chat-field small,.chat-counter,.chat-privacy { font-size:.76rem; color:#59544b; }
.chat-counter { text-align:right; font-variant-numeric:tabular-nums; }
.chat-counter[data-over="true"] { color:#963D3D; font-weight:700; }
.chat-privacy { line-height:1.65; }
.chat-submit { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:12px 18px; border:1px solid var(--petrol); border-radius:8px; background:var(--petrol); color:var(--ivory); font:600 .95rem Montserrat,Arial,sans-serif; cursor:pointer; }
.chat-submit:not(:disabled):hover { background:#29404f; }
.chat-submit:disabled { opacity:.48; cursor:not-allowed; }
.chat-feedback { padding:12px 14px; border:1px solid var(--line); background:white; border-radius:7px; font-size:.88rem; overflow-wrap:anywhere; }
.chat-feedback[data-kind="success"] { background:#e3f1e9; border-color:#32785d; color:#20513c; }
.chat-feedback[data-kind="error"] { background:#f7e5e5; border-color:#963d3d; color:#592424; }
.chat-footnote { border-top:1px solid var(--line); padding-top:17px; margin-top:24px!important; text-align:center; font:italic .88rem/1.6 Georgia,serif; color:#6a5125; }
.chat-noscript { padding:12px; margin-top:15px!important; background:#f7e5e5; }
@media(max-width:360px){ .chat-brand,.chat-shell { width:calc(100% - 20px); } .chat-brand img { width:56px;height:56px; } }
