:root {
    --primary: #0a0a0a;
    --brand-gold: #c9a962;
}
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: #1a1a1a; border-color: #1a1a1a; }
.navbar-logo { object-fit: contain; filter: brightness(1.05); }
.hero { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%); }
.auth-bg { background: #f0f4f8; }
.inmueble-card { transition: transform .2s; }
.inmueble-card:hover { transform: translateY(-4px); }

/* Chatbot */
#chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1050; }
#chatbot-toggle {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(145deg, #e8d5a3 0%, var(--brand-gold) 45%, #a68b4b 100%);
    color: #0a0a0a; border: 1px solid rgba(232, 213, 163, 0.6);
    box-shadow: 0 4px 18px rgba(201, 169, 98, 0.55);
    font-size: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
#chatbot-toggle:hover {
    filter: brightness(1.08);
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(201, 169, 98, 0.65);
}
#chatbot-panel {
    display: none;
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: min(520px, calc(100dvh - 96px));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    flex-direction: column;
    overflow: hidden;
}
#chatbot-panel.open { display: flex; }
#chatbot-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: var(--brand-gold);
    border-bottom: 2px solid var(--brand-gold);
    padding: 12px 16px;
    font-weight: 600;
}
#chatbot-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}
#chatbot-messages {
    padding: 12px 12px 4px;
    min-height: 0;
}
.chat-msg { margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; max-width: 90%; font-size: .9rem; }
.chat-msg.bot { background: #e9ecef; margin-right: auto; }
.chat-msg.user { background: var(--primary); color: #fff; margin-left: auto; }
#chatbot-input-area {
    flex-shrink: 0;
    padding: 8px 12px 12px;
    border-top: 1px solid #eee;
    background: #fff;
}
.chatbot-contact-form .btn-primary {
    min-height: 44px;
    font-weight: 600;
}
.chatbot-contact-form .form-control {
    min-height: 40px;
}
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-options button { font-size: .8rem; min-height: 40px; }
