/* Mini-chat de contacto (site publico) */
#fmb-contact-root {
    position: relative;
    z-index: 60;
}

.fmb-contact-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.05rem;
    height: 3.05rem;
    padding: 0;
    background: #006837;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(0, 104, 55, 0.32);
    cursor: pointer;
    z-index: 60;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.fmb-contact-fab:hover {
    filter: brightness(1.06);
    transform: scale(1.05);
}

.fmb-contact-panel {
    position: fixed;
    right: 1.5rem;
    bottom: 5.1rem;
    width: min(24rem, calc(100vw - 1.5rem));
    max-height: min(34rem, calc(100vh - 6.5rem));
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
    overflow: hidden;
    z-index: 61;
}

.fmb-contact-panel.hidden {
    display: none;
}

.fmb-contact-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    background: #006837;
    color: #fff;
}

.fmb-contact-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.fmb-contact-panel-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.fmb-contact-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.15rem;
    line-height: 1;
}

.fmb-contact-body {
    padding: 1rem 1.05rem 1.15rem;
    overflow-y: auto;
}

.fmb-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fmb-contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
}

.fmb-contact-form input,
.fmb-contact-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.55rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    font-family: inherit;
}

.fmb-contact-form textarea {
    resize: vertical;
    min-height: 6.5rem;
}

.fmb-contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
}

.fmb-contact-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.fmb-contact-hint.is-ok {
    color: #006837;
    font-weight: 600;
}

.fmb-contact-hint.is-err {
    color: #b91c1c;
    font-weight: 600;
}

.fmb-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #F5C400;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

.fmb-contact-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.fmb-contact-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 9rem;
    color: #6b7280;
    font-size: 0.88rem;
}

.fmb-contact-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2.5px solid #d1d5db;
    border-top-color: #006837;
    border-radius: 999px;
    animation: fmb-contact-spin 0.7s linear infinite;
}

.fmb-contact-spinner--btn {
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    border-width: 2px;
    border-color: rgba(26, 26, 26, 0.25);
    border-top-color: #1a1a1a;
    vertical-align: -0.15em;
}

@keyframes fmb-contact-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    body.fmb-contact-open #home-fab-stack {
        display: none;
    }

    body.fmb-contact-open .fmb-contact-fab {
        display: none;
    }

    .fmb-contact-panel {
        right: 0;
        bottom: 0;
        width: 100vw;
        max-height: 88vh;
        border-radius: 1rem 1rem 0 0;
    }
}

