.iya-secretaria {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 9999;
    font-family: "Source Sans 3", sans-serif;
}

.iya-secretaria__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(43, 38, 35, 0.06);
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    background: rgba(125, 52, 49, 0.96);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 36px rgba(43, 38, 35, 0.14);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.iya-secretaria__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(43, 38, 35, 0.18);
    background: #6e2f2f;
}

.iya-secretaria__toggle-label {
    white-space: nowrap;
}

.iya-secretaria__panel {
    width: min(370px, calc(100vw - 1.4rem));
    margin-top: 0.8rem;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(251, 247, 240, 0.98);
    border: 1px solid rgba(43, 38, 35, 0.08);
    box-shadow: 0 28px 60px rgba(43, 38, 35, 0.2);
}

.iya-secretaria__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.9rem;
    background:
        linear-gradient(180deg, rgba(239, 227, 208, 0.96), rgba(245, 237, 224, 0.96));
}

.iya-secretaria__header h2 {
    margin: 0.1rem 0 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.9rem;
    line-height: 1;
}

.iya-secretaria__eyebrow {
    margin: 0;
    color: #5e6b52;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.iya-secretaria__intro {
    margin: 0.4rem 0 0;
    max-width: 18rem;
    color: #63574f;
    font-size: 0.95rem;
    line-height: 1.45;
}

.iya-secretaria__close {
    border: 0;
    background: transparent;
    color: #2b2623;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.iya-secretaria__messages {
    display: grid;
    gap: 0.75rem;
    max-height: 320px;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.55);
}

.iya-secretaria__message {
    max-width: 86%;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    white-space: pre-line;
    line-height: 1.5;
}

.iya-secretaria__message--assistant {
    background: #efe3d0;
    color: #2b2623;
}

.iya-secretaria__message--user {
    margin-left: auto;
    background: #7d3431;
    color: #fff;
}

.iya-secretaria__form {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    background: #fbf7f0;
    border-top: 1px solid rgba(43, 38, 35, 0.06);
}

.iya-secretaria__helper {
    margin: 0;
    color: #63574f;
    font-size: 0.9rem;
}

.iya-secretaria__helper a {
    color: #7d3431;
    font-weight: 700;
}

.iya-secretaria__form textarea {
    width: 100%;
    min-height: 78px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(43, 38, 35, 0.14);
    border-radius: 16px;
    resize: vertical;
    font: inherit;
    color: #2b2623;
    background: #fff;
}

.iya-secretaria__form textarea:focus {
    outline: 2px solid rgba(125, 52, 49, 0.16);
    border-color: rgba(125, 52, 49, 0.25);
}

.iya-secretaria__actions {
    display: grid;
    gap: 0.65rem;
}

.iya-secretaria__form button {
    border: 0;
    border-radius: 999px;
    min-height: 46px;
    background: #7d3431;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.iya-secretaria__secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(125, 52, 49, 0.18);
    color: #7d3431;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.65);
}

.iya-secretaria__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .iya-secretaria {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .iya-secretaria__panel {
        width: min(100vw - 1rem, 370px);
    }

    .iya-secretaria__toggle {
        padding-inline: 1rem;
    }
}
