/* ── Botón flotante "Sugerir componente" ─────────────────────────── */
.btn-sugerir {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.05rem;
    background: var(--primary-color, #ff7b3a);
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 123, 58, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-sugerir:hover {
    background: var(--primary-hover, #ff6621);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 123, 58, 0.5);
}
.btn-sugerir i { font-size: 0.85rem; }

/* ── Overlay ─────────────────────────────────────────────────────── */
.modal-sugerir-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-sugerir-overlay.open {
    display: flex;
}

/* ── Caja del modal ──────────────────────────────────────────────── */
.modal-sugerir-box {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    animation: msBounceIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes msBounceIn {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* header */
.modal-sugerir-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 1.4rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.modal-sugerir-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 123, 58, 0.15);
    color: var(--primary-color, #ff7b3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.modal-sugerir-title {
    flex: 1;
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.modal-sugerir-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 5px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.modal-sugerir-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* descripción */
.modal-sugerir-desc {
    padding: 0.9rem 1.4rem 0.4rem;
    font-size: 0.81rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.65;
}

/* formulario */
.modal-sugerir-form {
    padding: 0.7rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ms-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.ms-field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.55px;
}
.ms-field .ms-required {
    color: var(--primary-color, #ff7b3a);
    margin-left: 2px;
}
.ms-field input,
.ms-field select,
.ms-field textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    padding: 0.58rem 0.82rem;
    outline: none;
    transition: border-color 0.18s, background 0.18s;
    width: 100%;
}
.ms-field input:focus,
.ms-field select:focus,
.ms-field textarea:focus {
    border-color: var(--primary-color, #ff7b3a);
    background: rgba(255, 123, 58, 0.04);
}
.ms-field input::placeholder,
.ms-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.ms-field select option {
    background: #1e1e1e;
    color: #fff;
}
.ms-field textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
}

.ms-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.ms-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.1rem;
    line-height: 1.5;
}

/* estado */
.ms-status {
    font-size: 0.81rem;
    padding: 0.55rem 0.82rem;
    border-radius: 7px;
    line-height: 1.5;
    display: none;
}
.ms-status.ok {
    display: block;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.22);
    color: #2ed573;
}
.ms-status.err {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.22);
    color: #e87070;
}

/* acciones */
.modal-sugerir-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
    margin-top: 0.15rem;
}
.ms-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    padding: 0.58rem 1.1rem;
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.ms-btn-cancel:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ms-btn-enviar {
    background: var(--primary-color, #ff7b3a);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 0.58rem 1.3rem;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ms-btn-enviar:hover:not(:disabled) {
    background: var(--primary-hover, #ff6621);
    transform: translateY(-1px);
}
.ms-btn-enviar:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Tema claro ──────────────────────────────────────────────────── */
.light-theme .modal-sugerir-box {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.light-theme .modal-sugerir-header { border-color: rgba(0, 0, 0, 0.08); }
.light-theme .modal-sugerir-title  { color: #111; }
.light-theme .modal-sugerir-desc   { color: rgba(0, 0, 0, 0.48); }
.light-theme .modal-sugerir-close  { color: rgba(0, 0, 0, 0.35); }
.light-theme .modal-sugerir-close:hover { color: #111; background: rgba(0,0,0,0.07); }
.light-theme .ms-field label  { color: rgba(0, 0, 0, 0.52); }
.light-theme .ms-hint         { color: rgba(0, 0, 0, 0.35); }
.light-theme .ms-field input,
.light-theme .ms-field select,
.light-theme .ms-field textarea {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.14);
    color: #111;
}
.light-theme .ms-field input::placeholder,
.light-theme .ms-field textarea::placeholder { color: rgba(0,0,0,0.28); }
.light-theme .ms-field input:focus,
.light-theme .ms-field select:focus,
.light-theme .ms-field textarea:focus {
    background: rgba(255, 123, 58, 0.04);
}
.light-theme .ms-field select option { background: #fff; color: #111; }
.light-theme .ms-btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.55);
}
.light-theme .ms-btn-cancel:hover { background: rgba(0,0,0,0.09); color: #111; }
